joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d0a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x41e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x40d179
cmp byte [edi + 0x3d], 0
je 0x40d179
push esi
call fcn.0040dc20
mov edx, dword [edi]
mov esi, eax
push esi
mov ecx, edi
call dword [edx + 0xc]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], esi
push eax
call fcn.0040dc50
add esp, 8
test al, al
jne 0x40d167
mov ecx, dword [edi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [edi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x40d12e
sub eax, 1
je 0x40d132
sub eax, 2
jne 0x40d167
mov byte [edi + 0x3d], al
mov al, 1
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414bfe
mov esp, ebp
pop ebp
ret
mov byte [edi + 0x3d], 0
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x40d150
push dword [edi + 0x4c]
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x40d167
cmp byte [edi + 0x3d], 0
pop esi
sete al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414bfe
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414bfe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop edi
call fcn.00414bfe
mov esp, ebp
pop ebp
ret

Function at 0x411840
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x41e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x419520
push ecx
lea eax, [ebp - 8]
mov ebx, edx
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov eax, dword [ebp - 8]
add esp, 0xc
test eax, eax
je 0x4118db
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 2
push 0
push eax
call esi
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push 0
push 0
push dword [ebp - 8]
mov edi, eax
call esi
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 0x20
test esi, esi
je 0x4118db
push edi
push 0
push esi
call sub.VCRUNTIME140.dll_memset
push dword [ebp - 8]
push 1
push edi
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x20
test ebx, ebx
je 0x4118c8
mov dword [ebx], edi
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414bfe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414bfe
mov esp, ebp
pop ebp
ret
Function at 0x411d30
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41709d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x41e00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.JMProxy
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push str.JMProxy_by_Joakim_Meriko_n
call fcn.004068e0
sub esp, 8
lea ecx, [ebp - 0x18]
call fcn.00411e10
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.00411c60
push str.HTTP_server_is_running._n
call fcn.004068e0
add esp, 4
call fcn.00406280
call fcn.00413a50
test al, al
je 0x411dd1
push str.Server__client_proxy_is_running._n
call fcn.004068e0
add esp, 4
nop
call fcn.00413a20
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push eax
lea ecx, [ebp - 0x24]
call fcn.0040e780
mov ecx, eax
call fcn.0040e7a0
jmp 0x411db0
push str.Failed_to_start_server_or_proxy._n
call fcn.004068e0
add esp, 4
lea ecx, [ebp - 0x18]
call fcn.00411c40
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414bfe
mov esp, ebp
pop ebp
ret

Function at 0x411e50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4170dd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x41e00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040dcc0
mov ecx, eax
call fcn.0040dd70
push eax
mov ecx, edx
call fcn.0040dd70
push eax
mov ecx, esi
call fcn.0040dd70
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.00411f60
add esp, 8
lea ecx, [ebp - 0x14]
push eax
call fcn.00411fd0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.00411f30
lea esi, [edi + 4]
push esi
push 0
lea ecx, [ebp - 0x14]
call fcn.004071c0
push eax
push 0x412000
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x411f1b
lea ecx, [ebp - 0x14]
call fcn.0040f2f0
call fcn.00411f30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414bfe
mov esp, ebp
pop ebp
ret 0xc
push 6
mov dword [esi], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x412b70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x124c
call fcn.00415f20
mov eax, dword [0x41e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov esi, ecx
lea eax, [ebp - 0x1228]
push 0xfff
push eax
push dword [esi + 0x50]
call dword [sym.imp.WS2_32.dll_recv]
mov edx, eax
mov dword [ebp - 0x122c], edx
test edx, edx
jle 0x412c75
mov eax, dword [esi + 4]
lea edi, [esi + 0x54]
xor ebx, ebx
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], eax
nop word [eax + eax]
mov dl, byte [ebp + ebx - 0x1228]
mov ecx, edi
call fcn.00412740
test eax, eax
jne 0x412c8d
cmp dword [esi], eax
jne 0x412c3b
mov ecx, dword [esi + 0x58]
cmp ecx, 4
jb 0x412c3b
add ecx, 0xfffffffc
mov edx, str._r_n_r_n
add ecx, dword [edi]
push 4
call fcn.004125a0
add esp, 4
test eax, eax
je 0x412c3b
mov ecx, edi
mov dword [esi], 1
call fcn.00412a10
test eax, eax
jne 0x412c8d
mov ecx, dword [edi]
call fcn.00412630
test eax, eax
je 0x412c9e
mov edi, dword [esi + 0x58]
mov ecx, eax
call fcn.00412470
add eax, edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x48], eax
lea edi, [esi + 0x54]
mov eax, dword [esi + 0x48]
cmp eax, dword [esi + 0x58]
je 0x412c9e
inc ebx
cmp ebx, dword [ebp - 0x122c]
jl 0x412bd0
push 0
push 0xfff
lea eax, [ebp - 0x1228]
push eax
push dword [esi + 0x50]
call dword [sym.imp.WS2_32.dll_recv]
mov edx, eax
mov dword [ebp - 0x122c], eax
test edx, edx
jg 0x412bb3
test edx, edx
je 0x412c84
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x412c8b
mov ecx, esi
call fcn.00412aa0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414bfe
mov esp, ebp
pop ebp
ret
mov ecx, edi
mov dword [esi], 2
call fcn.00412a10
test eax, eax
jne 0x412c8d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x122c]
push eax
lea eax, [ebp - 0x24]
push eax
push str._15s__n_s__15s
push dword [edi]
call fcn.00412300
add esp, 0x14
cmp eax, 2
jne 0x412c84
push 4
mov edx, str.HTTP
lea ecx, [ebp - 0x14]
call fcn.004125a0
add esp, 4
test eax, eax
je 0x412c84
mov edx, dword [edi]
add edx, dword [ebp - 0x122c]
push ecx
lea ecx, [ebp - 0x228]
call fcn.004124f0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1248], 2
add esp, 4
mov dword [ebp - 0x1234], eax
lea eax, [ebp - 0x228]
mov ecx, esi
lea edx, [ebp - 0x1248]
mov dword [ebp - 0x1230], eax
call fcn.00412ab0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414bfe
mov esp, ebp
pop ebp
ret
Function at 0x412d40
Capabilities:
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x412d95
cmp dword [esi + 0x6c], eax
je 0x412db9
lea edi, [esi + 0x60]
mov edx, 0x2000
mov ecx, edi
call fcn.00412710
test eax, eax
jne 0x412ddd
push dword [esi + 0x6c]
push dword [esi + 0x68]
push 1
push dword [edi]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov dword [esi + 0x64], eax
test eax, eax
jne 0x412d98
push dword [esi + 0x6c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [esi + 0x6c], 0
xor eax, eax
pop edi
pop esi
ret
lea edi, [esi + 0x60]
push 0
push eax
push dword [edi]
push dword [esi + 0x50]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x412dc3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x412ddb
mov ecx, esi
call fcn.00412aa0
pop edi
xor eax, eax
pop esi
ret
mov edx, eax
mov ecx, edi
call fcn.004126f0
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], eax
xor eax, eax
pop edi
pop esi
ret
Function at 0x412f50
Capabilities:
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c0
mov eax, dword [0x41e00c]
xor eax, esp
mov dword [esp + 0x1bc], eax
push esi
push edi
lea eax, [esp + 0x30]
mov dword [esp + 8], 0
push eax
push 0x202
mov edi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x30
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x4130cb
push 0x30
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov dword [esi + 8], 0xffffffff
add esp, 0xc
mov eax, dword [edi]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x412fc8
call fcn.00412470
jmp 0x412fcd
mov eax, 0x7530
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov ecx, dword [edi + 0x18]
call fcn.00412470
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x14]
call fcn.00412470
mov dword [esi + 0x20], eax
xorps xmm0, xmm0
mov dword [esi + 0x24], 0
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x14]
movlpd qword [esp + 0x20], xmm0
push eax
push dword [edi + 0xc]
movlpd qword [esp + 0x30], xmm0
push dword [edi + 8]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x4130cb
mov eax, dword [esp + 8]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x4130cb
mov ecx, eax
call fcn.004123a0
push 4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push 4
push 0xffff
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [esp + 8]
push dword [eax + 0x10]
push dword [eax + 0x18]
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x4130cb
push 0x3ff
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x4130cb
push dword [esp + 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x1bc]
xor ecx, esp
call fcn.00414bfe
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 8]
test eax, eax
je 0x4130da
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x4130e5
mov ecx, esi
call fcn.00413100
mov ecx, dword [esp + 0x1c4]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00414bfe
mov esp, ebp
pop ebp
ret
Function at 0x414530
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 1
mov dword [0x41e8ac], edx
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x41e8ac], edx
inc eax
cmp eax, 0x270
jb 0x414541
mov dword [0x41e8a8], 0x270
pop ebp
ret 8

Function at 0x414ac0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea eax, [ecx + 8]
mov esi, 0x270
nop dword [eax]
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
sub esi, 1
jne 0x414ad0
pop esi
ret

Function at 0x414b10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x9c4]
push esi
push edi
lea edi, [ebx + 0x9c4]
mov dword [ebp - 4], ebx
mov ebx, 0xe3
nop dword [eax]
mov ecx, dword [edi + 4]
lea edx, [edi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x414b30
mov edi, dword [ebp - 4]
mov ebx, 0x18c
add edi, 0xd50
mov eax, dword [edi]
nop dword [eax]
mov ecx, dword [edi + 4]
lea edx, [edi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x414b80
mov ebx, dword [ebp - 4]
pop edi
pop esi
mov ecx, dword [ebx + 0x1380]
xor ecx, dword [ebx + 4]
and ecx, 0x7fffffff
mov dword [ebx], 0
xor ecx, dword [ebx + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx + 0x9c0], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41596b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4159aa
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4159aa
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4159aa
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4159aa
cmp dword [ecx + 0x74], 0xe
jbe 0x4159aa
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401497
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x472eb0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40152c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014e9
cmp dword [ebp + 0x10], ebx
jne 0x401520
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.00401497
test eax, eax
jne 0x4014fb
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.004063e0
cmp eax, ebx
je 0x401533
push ebx
push dword [0x472eb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40152c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x472eb0], ebx
jne 0x401529
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x401529
jmp 0x40152c
Function at 0x40338e
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x42f1e4]
sub esi, dword [0x4331f0]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x472e20], eax
jle 0x4034ec
push dword [0x4331ec]
call fcn.00403377
push ebx
push ebx
push dword [0x4331f0]
push dword [0x40b014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x42f1e0], esi
mov dword [0x41f154], ebx
mov ebp, 0x4271e0
mov eax, dword [0x4331e8]
sub eax, dword [0x4331ec]
mov edi, 0x4000
cmp eax, edi
jg 0x403403
mov edi, eax
push edi
mov esi, 0x42f1e8
push esi
call fcn.00403345
test eax, eax
je 0x4034fe
add dword [0x4331ec], edi
mov dword [0x427170], esi
mov dword [0x427174], edi
cmp dword [0x472ddc], ebx
je 0x40345a
cmp dword [0x472ea0], ebx
jne 0x40345a
mov eax, dword [0x42f1e0]
sub eax, dword [0x42f1e4]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x4331f0]
mov dword [0x41f154], eax
call fcn.004032a3
pop ecx
mov ecx, 0x427158
mov dword [0x427178], ebp
mov dword [0x42717c], 0x8000
call fcn.00407043
test eax, eax
jl 0x403503
mov esi, dword [0x427178]
sub esi, ebp
je 0x4034b8
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x40b014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403508
cmp esi, dword [esp + 0x10]
jne 0x403508
add dword [0x4331f0], esi
cmp dword [0x427174], ebx
jne 0x403429
jmp 0x4034c4
cmp dword [0x427174], ebx
jne 0x403503
cmp edi, ebx
je 0x403503
mov eax, dword [0x42f1e4]
mov ecx, eax
sub ecx, dword [0x4331f0]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x4033ed
push ebx
push ebx
push eax
push dword [0x40b014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.004032a3
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x4034f6
push 0xfffffffffffffffd
pop eax
jmp 0x4034f6
push 0xfffffffffffffffe
jmp 0x403505
Function at 0x40350c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x403538
mov ecx, dword [0x472e18]
push edi
add eax, ecx
push edi
push eax
push dword [0x40b014]
mov dword [0x42f1e4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.0040338e
cmp eax, edi
jl 0x403631
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40b014]
call ebx
test eax, eax
je 0x40362d
cmp dword [ebp - 4], esi
jne 0x40362d
push dword [ebp + 8]
add dword [0x42f1e4], esi
call fcn.0040338e
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403630
cmp dword [ebp + 0x10], edi
jne 0x4035fc
cmp dword [ebp + 8], edi
jle 0x403628
mov esi, 0x42f1e8
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x4035ac
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40b014]
call ebx
test eax, eax
je 0x40362d
cmp edi, dword [ebp - 4]
jne 0x40362d
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4035f8
cmp dword [ebp + 0x14], edi
jne 0x4035f8
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x42f1e4], eax
cmp dword [ebp + 8], 0
jg 0x40359f
jmp 0x403628
push 0xfffffffffffffffe
jmp 0x40362f
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403607
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40b014]
call ebx
test eax, eax
je 0x40362d
mov eax, dword [ebp - 4]
add dword [0x42f1e4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403630
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x405d56
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x457288
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x457288], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405d91
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405f48
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405f65
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x405f68
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405f97
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4095fc]
mov dword [ebp - 8], eax
mov eax, dword [0x409600]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405fe7
test edi, edi
jne 0x405fa4
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405fe1

Function at 0x405feb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406064
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4008
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40604d
cmp dword [ebp + 0x14], 1
je 0x406052
cmp dword [ebp + 0x14], 2
je 0x406052
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x18]
xor eax, eax
mov word [esi + 0x4006], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14
Function at 0x406202
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x406227
mov eax, dword [0x40b058]
cmp eax, 0xffffffff
je 0x40621e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40b058], 0xffffffff
jmp 0x40629f
cmp dword [0x461530], edi
je 0x40629f
cmp word [0x46a560], di
je 0x406267
cmp dword [0x40b058], 0xffffffff
jne 0x406270
push 4
push 0x40000000
push 0x46a560
call fcn.00405f68
mov dword [0x40b058], eax
cmp eax, 0xffffffff
je 0x40629f
push 2
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40b058], 0xffffffff
je 0x40629f
push esi
push 0x409618
mov esi, 0x461540
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
lea ecx, [ebp + 8]
push ecx
add eax, eax
push eax
push esi
push dword [0x40b058]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop edi
pop ebp
ret 4
Function at 0x406863
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4572d0
push esi
call fcn.00406122
push esi
call fcn.00405e71
mov edi, eax
test edi, edi
jne 0x406884
xor eax, eax
jmp 0x4068e2
push edi
call fcn.00406151
test byte [0x472e28], 0x80
je 0x4068a1
movzx eax, word [edi]
test ax, ax
je 0x406880
cmp ax, 0x5c
je 0x406880
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x4068c3
push esi
call fcn.004063b9
test eax, eax
je 0x4068bd
test byte [eax], 0x10
je 0x4068e7
push esi
call fcn.00406836
push esi
call ebx
cmp eax, edi
jg 0x4068ae
push esi
call fcn.00406807
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4068e1