joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a5684
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4a56b5
mov ecx, dword [0x4b225c]
mov dl, 1
mov eax, dword [0x4a459c]
call fcn.0040cdd8
call fcn.00404264
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x4a56e2
mov ecx, dword [0x4b21cc]
mov dl, 1
mov eax, dword [0x4a459c]
call fcn.0040cdd8
call fcn.00404264
xor eax, eax
push ebp
push 0x4a575e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403c10
cmp byte [ebp + 8], 0
je 0x4a573a
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004a55ec
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.004a54d4
jmp 0x4a5754
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004a4fcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a577b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4a5940
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004a5294
xor eax, eax
push ebp
push 0x4a5ab1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x4a5a9b
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x4a598b
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4a5995
call fcn.00404310
jmp 0x4a5ab8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041ece4
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x4a5a90
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4a5a43
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x4a5a30
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403c10
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.004a58f8
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x4a5ac4]
cmp dl, byte [eax + 0x28]
je 0x4a5a97
call fcn.0040ccfc
jmp 0x4a5a97
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041ed04
jmp 0x4a5a97
cmp ecx, ebx
jge 0x4a5a5f
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041ed04
jmp 0x4a5995
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041ece4
cmp edx, dword [esp + 4]
jne 0x4a5a7f
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4a5995
push ebp
call fcn.004a58f8
pop ecx
jmp 0x4a5a97
push ebp
call fcn.004a58f8
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5ab8
mov eax, dword [ebp - 4]
call fcn.004a52a0
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a5ac8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a5bea
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004a5294
xor eax, eax
push ebp
push 0x4a5bcd
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4a5b18
call fcn.00404310
jmp 0x4a5bd4
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4a5bb7
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4a5bb7
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403c10
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x4a5bb7
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c4f0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x4a5c04
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4b2390]
mov dl, 1
mov eax, dword [0x4a459c]
call fcn.0040ce14
call fcn.00404264
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5bd4
mov eax, dword [ebp - 4]
call fcn.004a52a0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5bf1
lea eax, [ebp - 0x28]
call fcn.004048ac
ret
Function at 0x4a5c50
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a5d9a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004a5294
xor eax, eax
push ebp
push 0x4a5d7d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x4a5cb5
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4a5cb5
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x4a5d67
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4a5cc8
call fcn.00404310
jmp 0x4a5d84
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4a5d67
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4a5d67
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403c10
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x4a5d67
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c4f0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x4a5db4
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4b2390]
mov dl, 1
mov eax, dword [0x4a459c]
call fcn.0040ce14
call fcn.00404264
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5d84
mov eax, dword [ebp - 4]
call fcn.004a52a0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5da1
lea eax, [ebp - 0x28]
call fcn.004048ac
ret
Function at 0x4a7030
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x128], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a723d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0xc]
call fcn.004064c4
push eax
push 0x4a724c
push 1
push 0
mov eax, dword [0x4b1ec4]
push eax
call sub.ole32.dll_CoCreateInstance
mov esi, eax
mov eax, esi
call fcn.00419b08
test al, al
je 0x4a70fb
lea eax, [ebp - 4]
call fcn.004064c4
push eax
push 0
push 0
mov eax, dword [0x4b2000]
push eax
push 1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
call fcn.0047d0d8
jmp 0x4a70df
lea edx, [ebp - 0x128]
lea eax, [ebp - 0x24]
call fcn.0047d1d4
mov edx, dword [ebp - 0x128]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
push 1
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x4a70c4
jmp 0x4a71fc
lea eax, [ebp - 0x10]
push eax
push 0x4a725c
push 0x80000000
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
je 0x4a71fc
xor eax, eax
push ebp
push 0x4a71f5
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
jmp 0x4a71c0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x124]
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x134], 6
lea edx, [ebp - 0x13c]
mov eax, dword [0x4b2000]
call fcn.0047d14c
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x130], eax
mov byte [ebp - 0x12c], 0xb
lea edx, [ebp - 0x138]
mov ecx, 1
mov eax, 0x4a726c
call fcn.00409df8
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x124]
mov ecx, pe_nt_image_headers32
call fcn.00404b1c
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x138]
call fcn.0047d0f0
lea eax, [ebp - 0x138]
lea edx, [ebp - 0x140]
call fcn.0047d1d4
mov edx, dword [ebp - 0x140]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
push pe_nt_image_headers32
lea eax, [ebp - 0x124]
push eax
push esi
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegEnumKeyA
test eax, eax
je 0x4a712b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a71fc
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7244
lea eax, [ebp - 0x144]
mov edx, 3
call fcn.004048d0
lea eax, [ebp - 0x128]
call fcn.004048ac
lea eax, [ebp - 0x14]
call fcn.004048ac
lea eax, [ebp - 0xc]
call fcn.004064c4
lea eax, [ebp - 4]
call fcn.004064c4
ret
Function at 0x4a72f4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor ebx, ebx
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumKeyA
test eax, eax
jne 0x4a7335
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404b1c
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a7340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor ebx, ebx
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x108]
push eax
mov eax, edi
call fcn.00404d6c
push eax
push esi
call sub.advapi32.dll_RegQueryValueA
test eax, eax
jne 0x4a738e
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x108]
mov ecx, pe_nt_image_headers32
call fcn.00404b1c
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ad17c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4ad1ed
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4b1d98]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x4ad1d7
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.004ad16c
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4acf78]
call fcn.004ad214
mov dword [0x4b1dfc], eax
mov eax, dword [ebp - 4]
call fcn.004ad11c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ad1f4
lea eax, [ebp - 8]
call fcn.004064c4
ret
Function at 0x4ae6d4
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404d5c
xor eax, eax
push ebp
push 0x4ae7b5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea edx, [ebp - 0x10]
mov eax, dword [0x4b22c0]
mov eax, dword [eax]
call fcn.0046217c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004095ac
push dword [ebp - 0xc]
push dword [ebp - 4]
push 0x4ae7cc
push dword [ebx + 0x370]
lea eax, [ebp - 8]
mov edx, 4
call fcn.00404c2c
mov eax, dword [ebp - 8]
call fcn.00404d6c
push eax
call sub.kernel32.dll_WinExec
mov eax, dword [ebp - 4]
call fcn.00404d6c
push eax
push 0
call sub.user32.dll_FindWindowA
mov esi, eax
test esi, esi
je 0x4ae79a
mov eax, dword [ebx + 0x36c]
call fcn.00448698
push eax
push esi
call sub.user32.dll_SetParent
push 0xffffffffffffffff
mov eax, dword [ebx + 0x36c]
mov edx, dword [eax + 0x4c]
push edx
mov eax, dword [eax + 0x48]
push eax
push 0
push 0
push esi
call sub.user32.dll_MoveWindow
push 1
push esi
call sub.user32.dll_ShowWindow
lea eax, [ebx + 0x378]
mov edx, dword [ebp - 4]
call fcn.00404900
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae7bc
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004048d0
ret

Function at 0x4aed80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d5c
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4aeeee
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.004aeab0
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.004aead0
jmp 0x4aeeba
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404b1c
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.004095e0
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408bc4
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408bc4
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404cb8
je 0x4aee9a
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404b1c
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408bc4
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408bc4
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404cb8
jne 0x4aeeb1
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.004aeaf0
test eax, eax
jne 0x4aedfb
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aeef5
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.004048d0
lea eax, [ebp - 4]
call fcn.004048ac
ret
Function at 0x5166df50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x62b000]
push edi
or ebp, 0xffffffff
jmp 0x5166df72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5166df79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5166df68
mov eax, 1
add ebx, ebx
jne 0x5166df8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5166df9c
jne 0x5166dfbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5166dfbb
dec eax
add ebx, ebx
jne 0x5166dfa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5166df80
add ebx, ebx
jne 0x5166dfb7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5166e00d
xor ecx, ecx
sub eax, 3
jb 0x5166dfd3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5166e042
sar eax, 1
mov ebp, eax
jmp 0x5166dfde
add ebx, ebx
jne 0x5166dfde
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5166dfac
inc ecx
add ebx, ebx
jne 0x5166dfec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5166dfac
add ebx, ebx
jne 0x5166dff9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5166dfee
jne 0x5166e00a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5166dfee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5166e02c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5166e01e
jmp 0x5166df6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5166e02c
add edi, ecx
jmp 0x5166df6e
pop esi
mov edi, esi
mov ecx, 0x39a6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5166e04a
cmp byte [edi], 0x14
jne 0x5166e04a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5166e04f
lea edi, [esi + 0x66a000]
mov eax, dword [edi]
or eax, eax
je 0x5166e0be
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x671048]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x671110]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5166e07c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x671114]
or eax, eax
je 0x5166e0b8
mov dword [ebx], eax
add ebx, 4
jmp 0x5166e099
call dword [esi + 0x67111c]
mov ebp, dword [esi + 0x671118]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5166e0f2
sub esp, 0xffffff80
jmp 0x51082838
Function at 0x404070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, edx
test esi, esi
jne 0x404084
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
test edx, edx
jne 0x404099
mov edx, esi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x404090
sub edx, ecx
mov eax, 0xffffffff
cmp edx, 8
jb 0x40417f
push edi
mov edi, edx
shr edi, 3
nop dword [eax]
movzx ecx, byte [esi]
sub edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + str.UUUU]
movzx ecx, byte [esi + 1]
xor eax, 0x55555555
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + str.UUUU]
movzx ecx, byte [esi + 2]
xor eax, 0x55555555
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + str.UUUU]
movzx ecx, byte [esi + 3]
xor eax, 0x55555555
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + str.UUUU]
movzx ecx, byte [esi + 4]
xor eax, 0x55555555
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + str.UUUU]
movzx ecx, byte [esi + 5]
xor eax, 0x55555555
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + str.UUUU]
movzx ecx, byte [esi + 6]
xor eax, 0x55555555
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + str.UUUU]
movzx ecx, byte [esi + 7]
xor eax, 0x55555555
xor ecx, eax
add esi, 8
movzx ecx, cl
shr eax, 8
xor eax, dword [ecx*4 + str.UUUU]
xor eax, 0x55555555
sub edi, 1
jne 0x4040b0
pop edi
test edx, edx
je 0x4041a2
movzx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + str.UUUU]
xor eax, 0x55555555
sub edx, 1
jne 0x404183
not eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4047f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push ecx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
xor esi, esi
mov ecx, dword [ebx + 0x3c]
mov edi, dword [ecx + ebx + 0x78]
mov ecx, dword [edi + ebx + 0x24]
add edi, ebx
add ecx, ebx
mov dword [ebp - 0xc], ecx
mov eax, dword [edi + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x20]
add eax, ebx
mov dword [ebp - 8], eax
cmp dword [edi + 0x18], esi
jbe 0x404872
nop
mov ecx, dword [eax + esi*4]
add ecx, ebx
call fcn.00404770
mov ecx, dword [ebp - 4]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x404860
test dl, dl
je 0x40485c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x404860
add ecx, 2
add eax, 2
test dl, dl
jne 0x404840
xor eax, eax
jmp 0x404865
sbb eax, eax
or eax, 1
test eax, eax
je 0x40487b
mov eax, dword [ebp - 8]
inc esi
cmp esi, dword [edi + 0x18]
jb 0x404830
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
pop edi
movzx eax, word [eax + esi*2]
pop esi
mov eax, dword [ecx + eax*4]
add eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409969
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4099a8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4099a8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4099a8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4099a8
cmp dword [ecx + 0x74], 0xe
jbe 0x4099a8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41504c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4227c8
push 0x4227c0
push str.FlsAlloc
push 0x1f
call fcn.00414f0b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415080
push dword [ebp + 8]
mov ecx, esi
call dword [0x420154]
call esi
jmp 0x415086
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4150ca
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4227d8
push 0x4227d0
push str.FlsGetValue
push 0x21
call fcn.00414f0b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415101
push dword [ebp + 8]
mov ecx, esi
call dword [0x420154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x415109
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4227e0
push 0x4227d8
push str.FlsSetValue
push 0x22
call fcn.00414f0b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415143
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x420154]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]