joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431fe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x435528
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x44c054]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov eax, dword [0x44c054]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi]
mov ebx, dword [esp + 0x3c]
mov eax, dword [ecx + 0x13c]
sub eax, dword [ecx + 0x138]
cmp dword [esi + 0x70], eax
jne 0x43208f
mov eax, dword [esi + 0x7c]
sub eax, dword [esi + 0x78]
test eax, 0xfffffffc
je 0x43208f
mov eax, dword [esi + 0x7c]
cmp dword [eax - 4], ebx
jle 0x43208f
mov eax, dword [ecx + 0x14]
test al, 3
jne 0x43204d
test eax, 0x1000000
je 0x43208f
push str.Cant_terminate_a_sub_expression_with_an_alternation_operator_.
lea ecx, [esp + 0x14]
call fcn.00402326
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 0x5c]
sub eax, dword [esi + 0x54]
mov ecx, esi
push eax
push 0x11
mov dword [esp + 0x40], 0
call fcn.00429a30
cmp dword [esp + 0x24], 0x10
jb 0x43208b
push dword [esp + 0x10]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
jmp 0x4320fe
mov eax, dword [esi + 0x7c]
sub eax, dword [esi + 0x78]
test eax, 0xfffffffc
je 0x4320fc
lea esp, [esp]
mov eax, dword [esi + 0x7c]
mov edi, dword [eax - 4]
cmp edi, ebx
jle 0x4320fc
cmp dword [esi + 0x78], eax
je 0x4320b5
add eax, 0xfffffffc
mov dword [esi + 0x7c], eax
mov edx, dword [esi]
mov ecx, dword [edx + 0x13c]
sub ecx, dword [edx + 0x138]
add ecx, 3
and ecx, 0xfffffffc
add ecx, dword [edx + 0x138]
mov dword [edx + 0x13c], ecx
mov eax, dword [esi]
mov ecx, dword [eax + 0x13c]
sub ecx, dword [eax + 0x138]
mov eax, dword [eax + 0x138]
sub ecx, edi
mov dword [eax + edi + 8], ecx
mov eax, dword [esi + 0x7c]
sub eax, dword [esi + 0x78]
test eax, 0xfffffffc
jne 0x4320a0
mov al, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0041d508
add esp, 0x28
ret 4
Function at 0x433100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xf0
mov dword [esp], 0x43f9ae
mov dword [esp + 4], str.___.__
mov dword [esp + 8], 0x43f4a8
mov dword [esp + 0xc], 0x43f4ac
mov dword [esp + 0x10], 0x43f4b0
mov dword [esp + 0x14], 0x43f4b4
mov dword [esp + 0x18], 0x43f9ac
mov dword [esp + 0x1c], 0x43f4b8
mov dword [esp + 0x20], 0x43f4bc
mov dword [esp + 0x24], 0x43fa28
mov dword [esp + 0x28], 0x43fa24
mov dword [esp + 0x2c], 0x43fd88
mov dword [esp + 0x30], 0x4407ec
mov dword [esp + 0x34], 0x43f4c0
mov dword [esp + 0x38], 0x43f4c4
mov dword [esp + 0x3c], 0x43f4c8
mov dword [esp + 0x40], 0x43f4cc
mov dword [esp + 0x44], 0x43f4d0
mov dword [esp + 0x48], str.bafnrtvxceQXZGpPNKR
mov dword [esp + 0x4c], 0x43fb70
mov dword [esp + 0x50], 0x4407e4
mov dword [esp + 0x54], 0x4407e8
mov dword [esp + 0x58], 0x43f9ae
mov dword [esp + 0x5c], 0x43f9ae
mov dword [esp + 0x60], 0x43f4dc
mov dword [esp + 0x64], 0x43f4e0
mov dword [esp + 0x68], 0x43fa20
mov dword [esp + 0x6c], str._:_
mov dword [esp + 0x70], 0x43f0d4
mov dword [esp + 0x74], 0x43f0d8
mov dword [esp + 0x78], 0x43f0dc
mov dword [esp + 0x7c], 0x43f0e0
mov dword [esp + 0x80], 0x43f0e4
mov dword [esp + 0x84], 0x43f0e8
mov dword [esp + 0x88], 0x43f0ec
mov dword [esp + 0x8c], 0x43f0f0
mov dword [esp + 0x90], 0x43f4e8
mov dword [esp + 0x94], 0x43fa2c
mov dword [esp + 0x98], 0x43f0f4
mov dword [esp + 0x9c], 0x43f9ae
mov dword [esp + 0xa0], 0x43f9ae
mov dword [esp + 0xa4], 0x43f9ae
mov dword [esp + 0xa8], 0x43f9ae
mov dword [esp + 0xac], 0x43f9ae
mov dword [esp + 0xb0], 0x43f9ae
mov dword [esp + 0xb4], 0x43f9ae
mov dword [esp + 0xb8], 0x43f9ae
mov dword [esp + 0xbc], 0x43fb78
mov dword [esp + 0xc0], 0x43f0f8
mov dword [esp + 0xc4], 0x43f0fc
mov dword [esp + 0xc8], str.C13ABDEF
mov dword [esp + 0xcc], 0x43f100
mov dword [esp + 0xd0], 0x43f104
mov dword [esp + 0xd4], 0x43f4ec
mov dword [esp + 0xd8], 0x43f108
mov dword [esp + 0xdc], 0x43f10c
mov dword [esp + 0xe0], 0x43f110
mov dword [esp + 0xe4], 0x43f4f0
mov dword [esp + 0xe8], 0x43f114
mov dword [esp + 0xec], 0x43f118
cmp cl, 0x3c
jb 0x43334a
mov eax, 0x43f9ae
add esp, 0xf0
ret
movzx eax, cl
mov eax, dword [esp + eax*4]
add esp, 0xf0
ret
Function at 0x4018be
Capabilities:
Write file on windows

Disassembly:
push 0x14
mov eax, 0x4237f9
call fcn.004210b8
sub esp, 0x18
lea eax, [ebp + 8]
xor edi, edi
mov ecx, esp
inc edi
mov dword [ebp - 4], edi
push eax
call fcn.004031f1
lea ecx, [ebp - 0x1c]
call fcn.00401608
mov eax, dword [ebp - 0x18]
add esp, 0x18
sub eax, dword [ebp - 0x1c]
je 0x40192e
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
push 0x42a210
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.0040ef23
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x401959
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
push str.Cant_create_file__s_n
push dword [0x42f5a0]
call fcn.0040101c
add esp, 0xc
mov esi, 0x80004005
lea ecx, [ebp - 0x1c]
call fcn.004030a4
push 0
push edi
lea ecx, [ebp + 8]
call fcn.00403407
push 0
push edi
lea ecx, [ebp + 0x20]
call fcn.00403407
mov eax, esi
call fcn.00421092
ret
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
push esi
push eax
push edi
push dword [ebp - 0x1c]
call fcn.0040ec69
push esi
call fcn.0040a5d7
add esp, 0x14
xor esi, esi
jmp 0x401933
Function at 0x401977
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0x38
xor edi, edi
lea eax, [ebp - 0x3c]
push edi
push eax
mov bl, cl
call fcn.00409980
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
mov dword [ebp - 0x3c], 0x440
cmovae eax, dword [ebp + 8]
cmp dword [ebp + 0x34], 8
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], str.open
mov dword [ebp - 0x24], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4019f6
push str.ShellExecuteEx_Ok_n
push dword [0x42f5a0]
call fcn.0040101c
pop ecx
pop ecx
jmp 0x401a0c
call esi
push eax
push str.Error:_0x_X_n
push dword [0x42f5a0]
call fcn.0040101c
add esp, 0xc
test bl, bl
je 0x401a80
cmp dword [ebp - 8], edi
je 0x401a80
push str.Waiting_for_installing..._n
push dword [0x42f5a0]
call fcn.0040101c
push dword [0x42f5a0]
call fcn.0040a508
add esp, 0xc
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x401a5c
push dword [ebp - 4]
push str.Exit_code:_0x_X_n
jmp 0x401a64
call esi
push eax
push str.Cant_get_exit_code._Error:_0x_X_n
push dword [0x42f5a0]
call fcn.0040101c
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], edi
jmp 0x401aa7
push 1
push 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x401aa7
call esi
push eax
push str.SetHandleInformation_error:_0x_08X_n
push dword [0x42f5a0]
call fcn.0040101c
add esp, 0xc
push dword [0x42f5a0]
call fcn.0040a508
mov esi, dword [ebp - 8]
pop ecx
push edi
push 1
lea ecx, [ebp + 8]
call fcn.00403407
push edi
push 1
lea ecx, [ebp + 0x20]
call fcn.00403407
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401ad5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42383d
mov eax, dword fs:[0]
push eax
mov eax, 0x1008c
call fcn.00407d40
mov eax, dword [0x42e024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10028]
call fcn.00406324
mov ebx, 0x42a388
mov byte [ebp - 4], 1
mov ecx, ebx
call fcn.004010b7
push eax
push ebx
lea ecx, [ebp - 0x10028]
call fcn.0040377e
push 0xffffffffffffffff
xor ebx, ebx
lea eax, [ebp + 8]
push ebx
push eax
lea ecx, [ebp - 0x10028]
call fcn.00404397
test esi, esi
je 0x401be7
mov ebx, 0x42a38c
mov ecx, ebx
call fcn.004010b7
push eax
push ebx
lea ecx, [ebp - 0x10028]
call fcn.0040377e
mov edx, esi
lea ecx, [ebp - 0x10040]
call fcn.004066d4
push 0xffffffffffffffff
xor ebx, ebx
mov byte [ebp - 4], 2
push ebx
push eax
lea ecx, [ebp - 0x10028]
call fcn.00404397
push ebx
push 1
lea ecx, [ebp - 0x10040]
mov byte [ebp - 4], 1
call fcn.00403407
mov esi, str.___st
mov ecx, esi
call fcn.004010b7
push eax
push esi
lea ecx, [ebp - 0x10028]
call fcn.0040377e
mov edx, edi
lea ecx, [ebp - 0x10040]
call fcn.004066d4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x10028]
mov byte [ebp - 4], 3
call fcn.00404397
push ebx
push 1
lea ecx, [ebp - 0x10040]
call fcn.00403407
cmp dword [ebp - 0x10014], 8
lea eax, [ebp - 0x10028]
cmovae eax, dword [ebp - 0x10028]
push eax
lea eax, [ebp - 0x10010]
push 0x8000
push eax
call fcn.0040e7a3
add esp, 0xc
mov dword [ebp - 0x10098], 0x44
lea eax, [ebp - 0x10094]
push 0x40
push ebx
push eax
call fcn.00409980
add esp, 0xc
lea eax, [ebp - 0x10050]
xorps xmm0, xmm0
movups xmmword [ebp - 0x10050], xmm0
push eax
lea eax, [ebp - 0x10098]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0x10010]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401c75
push dword [ebp - 0x1004c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10050]
call esi
jmp 0x401c8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Clone_Error:_0x_08X_n
push dword [0x42f5a0]
call fcn.0040101c
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x10028]
call fcn.00403407
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.00403407
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406ff9
mov esp, ebp
pop ebp
ret
Function at 0x402328
Capabilities:
Accept command line arguments

Disassembly:
push 0x74
mov eax, 0x423952
call fcn.004210ec
mov bl, cl
lea ecx, [ebp - 0x74]
call fcn.00401411
xor edi, edi
mov edx, str.downloader.
test bl, bl
mov dword [ebp - 4], edi
mov ecx, str._stat.
cmove ecx, edx
mov edx, eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004049a7
pop ecx
push edi
push 1
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call fcn.00403407
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0x5c]
call fcn.004066d4
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00404397
push edi
push 1
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.00403407
mov esi, str..log
mov ecx, esi
call fcn.004010b7
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040377e
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0x42a520
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.0040ef23
push str._n
push eax
mov dword [0x42f5a0], eax
call fcn.0040101c
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
add esp, 0x10
call esi
test eax, eax
je 0x4023eb
call esi
jmp 0x4023f0
mov eax, 0x429bb0
push eax
push str.cmd:__s_n
push dword [0x42f5a0]
call fcn.0040101c
sub esp, 0xc
mov ecx, esp
call fcn.00406324
lea ecx, [ebp - 0x44]
call fcn.00406385
push 4
pop ebx
mov byte [ebp - 4], bl
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
cmovae eax, dword [ebp - 0x44]
push eax
push str.ver:__s_n
push dword [0x42f5a0]
call fcn.0040101c
add esp, 0x24
lea ecx, [ebp - 0x5c]
call fcn.00401f2d
cmp dword [eax + 0x14], 8
jb 0x402448
mov eax, dword [eax]
push eax
push str.os:__s_n
push dword [0x42f5a0]
call fcn.0040101c
add esp, 0xc
lea ecx, [ebp - 0x5c]
push edi
push 1
call fcn.00403407
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], edi
push eax
push 8
mov esi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4024a0
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], ebx
push eax
push ebx
lea eax, [ebp - 0x7c]
push eax
push 0x14
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne esi, dword [ebp - 0x7c]
cmp dword [ebp - 0x78], 0
je 0x4024af
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x42a604
test esi, esi
mov eax, 0x42a5fc
cmove eax, ecx
push eax
push str.elevated:__s_n
push dword [0x42f5a0]
call fcn.0040101c
add esp, 0xc
lea ecx, [ebp - 0x44]
push edi
push 1
call fcn.00403407
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403407
call fcn.004210a7
ret
Function at 0x405eb6
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 0x24], 0
xor eax, eax
and dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x10
push esi
push edi
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 4]
mov dword [ebp - 0x20], 2
push ecx
lea ecx, [ebp - 0x24]
push ecx
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 0x42aa84
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x405f03
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor esi, esi
jmp 0x405f2f
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [edx + 0x18]
movzx esi, byte [ecx + 4]
movzx eax, byte [ecx + 5]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 6]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 7]
shl esi, 8
or esi, eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00403872
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405f43
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9ac
mov eax, dword [0x42e024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
jne 0x405f67
xor eax, eax
inc eax
jmp 0x40606e
lea eax, [ebp - 0x9a8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x405f5f
sub esp, 0x18
mov ecx, esp
push str.clck.yandex.ru
and dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 0xf
mov byte [ecx], al
call fcn.004038c5
call fcn.00405eb6
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x405f5f
push 0
push 1
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
push 2
mov esi, eax
pop eax
push 0x50
mov word [ebp - 0x818], ax
call dword [sym.imp.WS2_32.dll_htons]
push ebx
mov word [ebp - 0x816], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
lea ecx, [ebp - 0x818]
mov dword [ebp - 0x814], eax
push ecx
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x405ff5
push 2
pop eax
jmp 0x40606e
push edi
push str.GET__click_dtypestred_pid12_cid72435_path_s__HTTP_1.1_r_nUser_Agent:_curl_1.1_r_nHost:_clck.yandex.ru_r_nAccept:_._r_n_r_n
lea eax, [ebp - 0x808]
push 0x800
push eax
call fcn.00405e9a
lea ecx, [ebp - 0x808]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406018
xor ebx, ebx
lea eax, [ebp - 0x808]
push ebx
sub ecx, edx
push ecx
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
push 1
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push ebx
push 0x2000
push 0x42f5a8
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x40605f
cmp eax, 0x2001
jae 0x40607f
mov byte [eax + 0x42f5a8], bl
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ff9
mov esp, ebp
pop ebp
ret
call fcn.004071a4
int3
Function at 0x4060b8
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.00406155
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x40614b
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x406144
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
test edx, edx
je 0x40613b
push 6
pop ecx
mov dword [ebp - 0x1c], edi
xor eax, eax
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40613b
mov ecx, dword [ebp - 0x10]
mov al, 1
mov dword [esi + 0x10], ecx
jmp 0x40614d
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00406155
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4061f9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
test eax, eax
jne 0x40620a
xor al, al
jmp 0x406273
mov ecx, 0x5a4d
push esi
cmp word [eax], cx
jne 0x406270
mov ecx, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
jne 0x406270
mov edx, dword [ecx + eax + 0x98]
xor ecx, ecx
lea esi, [edx + eax]
test edx, edx
jne 0x406233
mov esi, ecx
test esi, esi
je 0x406270
lea eax, [esi + 8]
test eax, eax
je 0x406270
cmp byte [eax], 0x30
lea edx, [eax + 1]
jne 0x406262
mov al, byte [edx]
cmp al, 0x82
jne 0x406262
movzx ecx, byte [edx + 1]
movzx eax, byte [edx + 2]
shl ecx, 8
add ecx, 0x13
add ecx, eax
and ecx, 0xffffff8
test ecx, ecx
je 0x406270
mov dword [edi + 0x14], ecx
mov al, 1
mov dword [edi + 0x18], esi
jmp 0x406272
xor al, al
pop esi
pop edi
pop ebp
ret 4
Function at 0x406385
Capabilities:
Get file version info

Disassembly:
push 0xf4
mov eax, 0x423e0e
call fcn.004210ec
mov esi, ecx
mov dword [ebp - 0xf4], esi
xor edi, edi
mov dword [ebp - 0xf8], edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0xfc]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x4063de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x429bb0
mov ecx, esi
call fcn.004031cc
push edi
jmp 0x4064bf
push ebx
call fcn.00407055
mov edi, eax
pop ecx
test edi, edi
jne 0x4063fc
push 0x429bb0
mov ecx, esi
call fcn.004031cc
jmp 0x4064bd
xor ecx, ecx
mov dword [ebp - 0xdc], 7
xor eax, eax
mov dword [ebp - 0xe0], ecx
mov word [ebp - 0xf0], ax
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
push edi
cmovae eax, dword [ebp + 8]
push ebx
push ecx
push eax
mov dword [ebp - 0xf4], ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x406499
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0xf4]
push eax
push 0x42aaa0
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0xf4]
test ecx, ecx
je 0x406499
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0xd8]
push 0x42aaa4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0xd8]
lea ecx, [ebp - 0xf0]
push eax
call fcn.0040365f
push edi
call fcn.0040700a
pop ecx
lea eax, [ebp - 0xf0]
mov ecx, esi
push eax
call fcn.004031a7
push 0
push 1
lea ecx, [ebp - 0xf0]
call fcn.00403407
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00403407
mov eax, esi
call fcn.004210a7
ret
Function at 0x41a2af
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00419f5d

Function at 0x41de6c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041dceb
Function at 0x401680
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, eax
mov dword [esi], 0
mov edi, edi
mov eax, dword [esi]
mov edx, dword [ebp + 4]
mov ecx, edi
sub ecx, eax
push ecx
add eax, ebx
push eax
push edx
call fcn.0042f3b9
add esp, 0xc
test eax, eax
jle 0x4016b2
add dword [esi], eax
cmp dword [esi], edi
jb 0x401690
test eax, eax
jge 0x4016d6
call fcn.004223b2
mov eax, dword [eax]
push eax
call fcn.00422304
mov ebx, eax
add esp, 4
or eax, 0xffffffff
mov ecx, ebp
call fcn.004015a0
pop ebp
or eax, 0xffffffff
pop ebx
ret
test eax, eax
jne 0x4016e1
mov dword [ebp + 0x28], 1
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x402f10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esi + 0x2c]
push edi
lea esp, [esp]
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea edx, [ecx + ebp - 0x106]
mov dword [esp + 0xc], edi
cmp eax, edx
jb 0x402fa0
mov eax, dword [esi + 0x38]
push ebp
lea ecx, [eax + ebp]
push ecx
push eax
call fcn.00421650
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], ebp
sub dword [esi + 0x6c], ebp
add esp, 0xc
sub dword [esi + 0x5c], ebp
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x402f6f
sub eax, ebp
jmp 0x402f71
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x402f60
mov ecx, dword [esi + 0x40]
mov edx, ebp
lea ecx, [ecx + ebp*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x402f90
sub eax, ebp
jmp 0x402f92
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x402f81
add edi, ebp
mov dword [esp + 0xc], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x4030d2
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x38]
mov ecx, dword [esp + 0xc]
mov ebx, eax
mov dword [esp + 0x10], edx
cmp ebx, ecx
jbe 0x402fc8
mov ebx, ecx
test ebx, ebx
je 0x40301c
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x402fea
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.00407370
jmp 0x403003
cmp eax, 2
jne 0x40300a
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x402ffc
xor eax, eax
jmp 0x403007
mov edx, ebx
call fcn.00403e40
mov edx, dword [esp + 0x10]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.00421650
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x403046
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
add edx, eax
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x40305a
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x402f20
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x4030d2
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x4030a1
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x403081
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.0041fd10
add esp, 0xc
add ebx, edi
pop edi
pop ebp
mov dword [esi + 0x16c0], ebx
pop ebx
add esp, 8
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x4030d2
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x4030bb
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call fcn.0041fd10
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x403e30
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x403e37
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.00403e40