joyce8/EMBER2024-capa huggingface dataset:
Function at 0x499560
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4995a3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 0x2733
sete cl
mov dword [edx], 0
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x19
add eax, 0x38
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x499620
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp dword [esi + 0xbfc], edi
je 0x4996b5
cmp dword [esi + 0x620], edi
je 0x499675
push 1
push esi
call fcn.00497360
mov eax, dword [esi + 0x5b4]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x620]
push edx
push eax
push esi
call ecx
push 0
push esi
mov edi, eax
call fcn.00497360
add esp, 0x24
mov eax, edi
pop edi
pop esi
ret
mov eax, dword [esp + 0x10]
test eax, eax
js 0x4996b5
cmp eax, 2
jg 0x4996b5
mov edx, dword [esi + 0x5b0]
push edx
push 1
lea eax, [eax + eax*2 + 0x5197c4]
push 2
push eax
call fcn.004d7434
mov ecx, dword [esi + 0x5b0]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
push 1
push edx
push eax
call fcn.004d7434
add esp, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x49986c
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
cmp dword [esi + 0xbfc], 0
jne 0x4997b4
cmp dword [esi + 0x5b8], 0
je 0x499890
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0xc]
push 0x100
push edx
call fcn.004a3060
lea eax, [esp + 0x14]
add esp, 0x10
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4997e0
sub eax, edx
mov edx, dword [esi + 0x5b8]
push edi
mov edi, eax
test edx, edx
je 0x499817
cmp dword [esi + 0x1230], 0
jne 0x499817
lea ecx, [esp + 8]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x499803
mov dword [esi + 0x1230], 1
mov byte [esp + edi + 8], 0xa
inc edi
cmp dword [esi + 0xbfc], 0
je 0x49988f
cmp dword [esi + 0x620], 0
je 0x499863
push 1
push esi
call fcn.00497360
mov eax, dword [esi + 0x5b4]
mov edx, dword [esi + 0x620]
push eax
push edi
lea ecx, [esp + 0x18]
push ecx
push 0
push esi
call edx
push 0
push esi
call fcn.00497360
add esp, 0x24
pop edi
pop esi
add esp, 0x104
ret
mov eax, dword [esi + 0x5b0]
push eax
push 1
push 2
push 0x5197c4
call fcn.004d7434
mov ecx, dword [esi + 0x5b0]
push ecx
push 1
lea edx, [esp + 0x20]
push edi
push edx
call fcn.004d7434
add esp, 0x20
pop edi
pop esi
add esp, 0x104
ret
Function at 0x499b90
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov edx, dword [ebx + 0x5f0]
push ebp
mov ebp, dword [ebx + eax*4 + 0x420]
mov ecx, eax
add ecx, ecx
push esi
lea esi, [ebx + ecx*8 + 0x448]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x40], 3
je 0x499c32
cmp dword [ebx + eax*4 + 0x438], 0x4998a0
jne 0x499c32
cmp dword [esi], 0
je 0x499bcd
test edi, edi
je 0x499c32
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.004c0f20
add esp, 0x14
cmp eax, 0xffffffff
je 0x499c32
test al, 1
je 0x499c32
cmp dword [esi], 0
jne 0x499c1b
mov eax, dword [ebx]
mov eax, dword [eax + 0x97c]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x54ae68]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
cmp eax, ecx
jne 0x499c12
pop edi
pop esi
lea eax, [ecx + 0x1b]
pop ebp
ret
mov edi, dword [esi + 4]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
add ecx, dword [esi + 8]
push 0
push edi
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x499c32
add dword [esi + 8], eax
pop edi
pop esi
xor eax, eax
pop ebp
ret

Function at 0x499c40
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x100
push ebx
mov ebx, dword [esp + 0x108]
push esi
mov esi, dword [ebx + eax*4 + 0x420]
call fcn.00499b90
test eax, eax
je 0x499c7c
mov eax, dword [esp + 0x11c]
pop esi
mov dword [eax], 0x1b
or eax, 0xffffffff
pop ebx
add esp, 0x100
ret
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push edi
push 0
push ecx
push edx
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [esp + 0x120]
mov esi, eax
mov dword [edi], 0
cmp esi, 0xffffffff
jne 0x499d00
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x499cd0
pop ebp
xor esi, esi
mov dword [edi], 0x51
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x100
ret
push 0x100
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.0048ee30
mov ecx, dword [ebx]
push eax
push str.Send_failure:__s
push ecx
call fcn.00499790
mov edx, dword [ebx]
add esp, 0x18
mov dword [edx + 0xec4], ebp
mov dword [edi], 0x37
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x100
ret

Function at 0x49da20
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x14
push esi
mov esi, eax
test esi, esi
je 0x49da6e
lea eax, [esp + 4]
push eax
push esi
push 2
call fcn.004c80d0
add esp, 0xc
test eax, eax
jne 0x49da6e
lea ecx, [esp + 8]
push ecx
push esi
push 0x17
call fcn.004c80d0
add esp, 0xc
test eax, eax
jne 0x49da6e
lea edx, [esp + 4]
push edx
call fcn.0049d980
add esp, 4
mov ecx, eax
mov eax, dword [esp + 4]
pop esi
add esp, 0x14
jmp fcn.0049d9e0
xor eax, eax
pop esi
add esp, 0x14
ret
Function at 0x49fb30
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0xc34], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x49fb6e
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004996c0
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0xb48]
push edx
mov dword [esp + 0xc], 1
call fcn.0049c8c0
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xb4c]
push eax
call fcn.0049c8c0
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x49fbe7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.004996c0
add esp, 0x10
add esp, 0x14
ret
Function at 0x4a04c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x184
push esi
push 0x80
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x10], 0x80
call fcn.004d8c50
mov eax, dword [esp + 0x19c]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4a053b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x100
lea ecx, [esp + 0x8c]
mov esi, eax
push ecx
push esi
call fcn.0048ee30
mov edx, dword [esp + 0x198]
push eax
mov eax, dword [edx]
push esi
push str.getsockname___failed_with_errno__d:__s
push eax
call fcn.00499790
add esp, 0x1c
pop esi
add esp, 0x184
ret
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x190]
lea ecx, [ebx + 0x3d4]
push ecx
lea edx, [ebx + 0x3a4]
push edx
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004a0310
add esp, 0x10
test eax, eax
jne 0x4a05a0
push edi
call fcn.004dd4fd
mov esi, eax
call fcn.004dd4fd
push 0x100
lea edx, [esp + 0x94]
mov edi, eax
mov eax, dword [esi]
push edx
push eax
call fcn.0048ee30
mov ecx, dword [edi]
mov edx, dword [ebx]
push eax
push ecx
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.00499790
add esp, 0x1c
pop edi
pop ebx
pop esi
add esp, 0x184
ret

Function at 0x4a0780
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [eax]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4a07cc
push 0x100
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0048ee30
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004996c0
add esp, 0x18
pop esi
add esp, 0x104
ret
Function at 0x4a7370
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x14
push esi
push 0
push ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], esi
call fcn.004d8c50
mov eax, dword [esp + 0x2c]
add esp, 0xc
push 0xf0000040
push eax
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4a7450
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 4]
lea edx, [esp]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4a7431
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp]
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4a7431
mov ecx, dword [esp]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 4
push ecx
call ebp
test eax, eax
je 0x4a7430
cmp esi, dword [esp + 0xc]
jb 0x4a7430
mov eax, dword [esp + 4]
push 0
lea edx, [esp + 0x18]
push edx
push ebx
push 2
push eax
call ebp
pop ebp
mov eax, dword [esp]
test eax, eax
je 0x4a743f
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x4a7450
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0x14
ret

Function at 0x4a9860
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
push esi
xor ebp, ebp
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x54ae70]
mov edi, eax
add esp, 8
test edi, edi
je 0x4a9828
lea ebx, [ebx]
mov eax, dword [esp + 0x14]
push esi
push edi
push eax
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x4a9840
cmp esi, ebx
je 0x4a9840
cmp esi, 0x8000
ja 0x4a9840
cmp esi, ebx
jb 0x4a9839
push esi
push edi
call dword [0x54ae70]
mov edi, eax
add esp, 8
test edi, edi
jne 0x4a97f0
push ebp
call dword [0x54ae6c]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x54ae6c]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
jmp 0x4a97d0
Function at 0x4ae8a0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x519648
push ecx
call fcn.004996c0
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.004ad950
test eax, eax
jne 0x4ae8d0
mov eax, esi
jmp fcn.004add80
ret

Function at 0x4af320
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov edx, dword [edi + 0x420]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4af364
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00499790
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.004af220
add esp, 4
pop esi
pop ecx
ret

Function at 0x4b0030
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebp
mov ebp, dword [eax + 0x140]
mov dword [esp + 4], eax
jne 0x4b0187
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb0]
lea edi, [ebp + 0x1eb0]
mov dword [edi], ebx
cmp ebx, edi
jae 0x4b0067
mov byte [ebx], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4b0072
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4b007d
mov byte [eax], 0x1f
inc dword [edi]
movzx ecx, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebp + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x4b00af
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4b00bd
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4b00c7
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4b00d1
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4b00dc
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4b00e7
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
mov dword [ebp + 0x1eb4], eax
sub eax, ebx
sub eax, 2
push eax
lea eax, [ebp + 0x1cb2]
push 0x3e
mov dword [edi], ebx
call fcn.004af570
mov edi, dword [esp + 0x20]
mov edx, dword [edi + 0x420]
add esp, 8
push 0
push 3
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
push edx
call ebx
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x4b0142
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.00499790
add esp, 0xc
lea ecx, [ebp + 0x1cb3]
push ecx
push edi
mov eax, 4
call fcn.004afdc0
mov edx, dword [edi + 0x420]
add esp, 8
push 0
push 2
add ebp, 0x1cb7
push ebp
push edx
call ebx
test eax, eax
jns 0x4b0184
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.00499790
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x4b5870
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov esi, eax
mov ebp, dword [esi + 0x424]
mov edi, dword [esi]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebp
or ebx, 0xffffffff
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4b58bf
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push ebp
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push ebp
push esi
call fcn.004a0970
add esp, 8
cmp ebx, 0xffffffff
jne 0x4b58ec
push str.Error_accept__ing_server_connect
push edi
call fcn.00499790
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1e
pop ebx
add esp, 0x84
ret
push str.Connection_accepted_from_server_n
push edi
call fcn.004996c0
push 1
push ebx
mov dword [esi + 0x574], 0
mov dword [esi + 0x424], ebx
call fcn.004c5ca0
add esp, 0x10
mov dword [esi + 0x5c0], 1
cmp dword [edi + 0x628], 0
je 0x4b5965
push 1
push edi
call fcn.00497360
mov ecx, dword [edi + 0x62c]
mov edx, dword [edi + 0x628]
push 1
push ebx
push ecx
call edx
push 0
push edi
mov ebx, eax
call fcn.00497360
add esp, 0x1c
test ebx, ebx
je 0x4b5965
call fcn.004b57d0
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x84
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x84
ret
Function at 0x4c0b40
Capabilities:
Get socket status

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
xor eax, eax
cmp ebx, eax
je 0x4c0b52
cmp dword [ebx], eax
jne 0x4c0b81
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
je 0x4c0b5e
cmp dword [ecx], eax
jne 0x4c0b85
mov edx, dword [esp + 0x20]
cmp edx, eax
je 0x4c0b6a
cmp dword [edx], eax
jne 0x4c0b89
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
push edx
call fcn.004c0af0
add esp, 8
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push esi
lea esi, [esp + 0xc]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x2c]
cmp esi, eax
jg 0x4c0bb5
jl 0x4c0ba5
cmp edi, eax
jae 0x4c0bab
mov dword [esp + 0xc], eax
jmp 0x4c0c27
cmp esi, eax
jl 0x4c0c1f
jg 0x4c0bb5
cmp edi, eax
jbe 0x4c0c1f
push ebp
push eax
push 0x3e8
push esi
push edi
call fcn.004dca40
push 0
push 0x3e8
push edx
push eax
mov ebp, eax
mov ebx, edx
call fcn.004dc860
push 0
sub edi, eax
push 0x3e8
sbb esi, edx
push esi
push edi
call fcn.004dc860
mov dword [esp + 0x18], edx
test ebx, ebx
jl 0x4c0c06
jg 0x4c0bf9
cmp ebp, 0x7fffffff
jbe 0x4c0c06
mov ebp, SysReAllocString
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
xor eax, eax
pop ebp
jmp 0x4c0c27
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
cmp edx, eax
je 0x4c0c2f
cmp dword [edx], eax
jne 0x4c0c31
xor edx, edx
cmp ecx, eax
je 0x4c0c39
cmp dword [ecx], eax
jne 0x4c0c3b
xor ecx, ecx
cmp ebx, eax
je 0x4c0c45
cmp dword [ebx], eax
je 0x4c0c45
mov eax, ebx
mov esi, dword [esp + 0xc]
push esi
push edx
push ecx
push eax
mov eax, dword [esp + 0x2c]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x4c7d80
Capabilities:
Move file

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.004a44d0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebx, dword [eax + 8]
mov ebp, dword [eax + 0xc]
add esp, 4
push 1
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x4c7e1d
lea eax, [esp + 0x10]
push eax
call fcn.004a44d0
mov edx, dword [eax]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], esi
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebp
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.004a4570
add esp, 0x20
test edx, edx
ja 0x4c7e27
jb 0x4c7dff
cmp eax, 0x3e8
ja 0x4c7e27
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push 1
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x4c7db5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
Function at 0x4d574b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x54b3f0]
jne 0x4d5755
repz ret
jmp fcn.004e39bf

Function at 0x4de196
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4de1bd
call fcn.004dd510
mov dword [eax], esi
call fcn.004dd4fd
push 0x16
pop esi
mov dword [eax], esi
call fcn.004e5f48
mov eax, esi
jmp 0x4de212
test dword [ebp + 0xc], 0xfffffff9
jne 0x4de1a3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4de1ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004dd523
pop ecx
call fcn.004dd4fd
mov eax, dword [eax]
jmp 0x4de212
test al, 0x10
jne 0x4de210
test al, 1
je 0x4de210
test byte [ebp + 0xc], 2
je 0x4de210
call fcn.004dd510
mov dword [eax], 5
call fcn.004dd4fd
mov dword [eax], 0xd
jmp 0x4de1e1
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4f52e3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004e44e2
and dword [ebp - 0x14], 0
cmp dword [0x550030], 0
mov dword [ebp - 0x18], eax
jne 0x4f5396
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4f543e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x52c078
push ebx
call edi
test eax, eax
je 0x4f543e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x52c068
push ebx
mov dword [0x550030], eax
call edi
push eax
call esi
push 0x52c054
push ebx
mov dword [0x550034], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x550038], eax
call edi
push eax
call esi
mov dword [0x550040], eax
test eax, eax
je 0x4f5396
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x55003c], eax
mov eax, dword [0x55003c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4f53ef
cmp dword [0x550040], ecx
je 0x4f53ef
push eax
call esi
push dword [0x550040]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4f53ef
test ebx, ebx
je 0x4f53ef
call edi
test eax, eax
je 0x4f53e6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4f53e6
test byte [ebp - 8], 1
jne 0x4f53ef
or dword [ebp + 0x10], 0x200000
jmp 0x4f5422
mov eax, dword [0x550034]
cmp eax, dword [ebp - 0x18]
je 0x4f5422
push eax
call esi
test eax, eax
je 0x4f5422
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4f5422
mov eax, dword [0x550038]
cmp eax, dword [ebp - 0x18]
je 0x4f5422
push eax
call esi
test eax, eax
je 0x4f5422
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x550030]
call esi
test eax, eax
je 0x4f543e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4f5440
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d574b
leave
ret
Function at 0x4fe8e0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004fe8f0

Function at 0x4feb70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4feb7c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.004feb90
Function at 0x41a82b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431530]
jne 0x41a835
repz ret
jmp fcn.0041ea2c

Function at 0x421088
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041d6a6
and dword [ebp - 4], 0
cmp dword [0x434e74], 0
mov ebx, eax
jne 0x421139
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4211ea
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4211ea
push eax
call fcn.0041d634
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434e74], eax
call esi
push eax
call fcn.0041d634
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x434e78], eax
call esi
push eax
call fcn.0041d634
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x434e7c], eax
call esi
push eax
call fcn.0041d634
pop ecx
mov dword [0x434e84], eax
test eax, eax
je 0x421139
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041d634
pop ecx
mov dword [0x434e80], eax
mov eax, dword [0x434e80]
cmp eax, ebx
je 0x421191
cmp dword [0x434e84], ebx
je 0x421191
push eax
call fcn.0041d6af
push dword [0x434e84]
mov esi, eax
call fcn.0041d6af
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x421191
test edi, edi
je 0x421191
call esi
test eax, eax
je 0x421188
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x421188
test byte [ebp - 0xc], 1
jne 0x421191
or dword [ebp + 0x10], 0x200000
jmp 0x4211ca
mov eax, dword [0x434e78]
cmp eax, ebx
je 0x4211ca
push eax
call fcn.0041d6af
pop ecx
test eax, eax
je 0x4211ca
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4211ca
mov eax, dword [0x434e7c]
cmp eax, ebx
je 0x4211ca
push eax
call fcn.0041d6af
pop ecx
test eax, eax
je 0x4211ca
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x434e74]
call fcn.0041d6af
pop ecx
test eax, eax
je 0x4211ea
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4211ec
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret