joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489230
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x5ed130]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebp, dword [esp + 0x118]
cmp dword [ebp + 0x1c4], 0
push esi
push edi
mov edi, dword [ebp]
mov dword [esp + 0x14], edi
jne 0x48936b
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4892ac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0048c1e0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.004873e0
add esp, 0x18
jmp 0x489374
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x9c]
push eax
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4892ec
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0048c1e0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.004873e0
add esp, 0x18
jmp 0x489374
lea ebx, [ebp + 0xcc]
lea edi, [ebp + 0x9e]
lea esi, [esp + 0x18]
call fcn.004891c0
test eax, eax
jne 0x48932a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0048c1e0
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.004873e0
add esp, 0x18
jmp 0x489374
lea ebx, [ebp + 0x100]
lea edi, [ebp + 0xd0]
lea esi, [esp + 0x98]
call fcn.004891c0
test eax, eax
jne 0x48936b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0048c1e0
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.004873e0
add esp, 0x18
jmp 0x489374
push ebp
call fcn.00489160
add esp, 4
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043dd0c
add esp, 0x10c
ret

Function at 0x489390
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x34c]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x4893d3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0048c1e0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00487350
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00487350
add esp, 8
pop esi
pop ecx
ret
Function at 0x4893f0
Capabilities:
Check os version
Set socket configuration

Disassembly:
sub esp, 0xa4
mov eax, dword [0x5ed130]
xor eax, esp
mov dword [esp + 0xa0], eax
cmp dword [0x5fab94], 0
mov dword [esp], 0x4020
mov dword [esp + 4], 0
mov dword [esp + 8], 4
jne 0x48947f
push 0x94
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0043fa10
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x94
mov dword [0x5fab94], 1
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x48947f
cmp dword [esp + 0x10], 6
jb 0x48947f
mov dword [0x5fab94], 2
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.0043dd0c
add esp, 0xa4
ret
cmp dword [0x5fab94], 2
je 0x4894d2
push esi
mov esi, dword [esp + 0xac]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4894b9
mov ecx, dword [esp + 8]
cmp ecx, dword [esp + 4]
jg 0x4894d1
push 4
lea edx, [esp + 8]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.0043dd0c
add esp, 0xa4
ret

Function at 0x489510
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x5a0]
test esi, esi
je 0x48955d
mov eax, dword [edi + 0xc]
test eax, eax
je 0x48955d
push 0x4894f0
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0
mov edx, dword [eax + 0x64]
push ecx
push edx
call fcn.004a8900
add esp, 0xc
cmp dword [esp + 0xc], 0
jne 0x489566
mov dword [edi + 0x5a0], 0
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x489570
mov dword [eax], esi
cmp dword [esi + 0x150], 0
mov edi, dword [esi + 0x130]
je 0x489595
push esi
call fcn.0047e750
add esp, 4
test eax, eax
jne 0x4895a9
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
push 2
push 1
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x48955d
mov eax, edi
pop edi
pop esi
add esp, 8
ret
Function at 0x48b240
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ebp
xor ebp, ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax], ebp
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 8], eax
cmp eax, ebp
jne 0x48b3f1
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebp
je 0x48b3cf
push ebx
push esi
lea esp, [esp]
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x48b29d
lea ebx, [eax + 0xe]
jmp 0x48b2a9
cmp eax, 0x17
jne 0x48b348
lea ebx, [eax + 5]
cmp dword [edi + 0x18], ebp
je 0x48b348
mov eax, dword [edi + 0x10]
cmp eax, ebp
jbe 0x48b348
cmp eax, ebx
jb 0x48b348
push 0x20
call dword [0x5effe8]
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x48b355
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push ebx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [0x5effe8]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebp
je 0x48b35f
mov ecx, dword [edi + 0x18]
push ebx
push ecx
push eax
call fcn.0043dec0
mov eax, dword [edi + 0x14]
add esp, 0xc
cmp eax, ebp
je 0x48b32f
push eax
call dword [0x5efff4]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebp
je 0x48b373
cmp dword [esp + 0x10], ebp
jne 0x48b339
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x48b344
mov dword [eax + 0x1c], esi
mov dword [esp + 0x18], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebp
jne 0x48b290
jmp 0x48b38f
mov dword [esp + 0x14], 8
jmp 0x48b38f
push esi
mov dword [esp + 0x18], 8
call dword [0x5effec]
add esp, 4
jmp 0x48b38f
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x5effec]
push esi
call dword [0x5effec]
add esp, 8
mov eax, dword [esp + 0x1c]
pop esi
pop ebx
cmp eax, ebp
je 0x48b3a0
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0xc], ebp
je 0x48b3c9
mov eax, dword [esp + 8]
push eax
call fcn.0048b1f0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
add esp, 4
mov ecx, ebp
pop edi
mov dword [esp + 4], ebp
mov dword [edx], ecx
pop ebp
add esp, 0x10
ret
cmp dword [esp + 8], ebp
jne 0x48b3e2
push 0x2af9
mov dword [esp + 0x10], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
mov dword [edx], ecx
pop edi
pop ebp
add esp, 0x10
ret

Function at 0x48b7f0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.0044151c
add esp, 0x18
test eax, eax
je 0x48b813
cmp eax, 0xffffffff
jne 0x48b815
xor eax, eax
ret

Function at 0x48c9a0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x23c], 2
jne 0x48c9b2
jmp fcn.0048c940
mov eax, 1
ret
Function at 0x48ccd0
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x48ccdf
jmp dword [ecx*4 + 0x48cd34]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
Function at 0x49b840
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x5943a0
push ecx
call fcn.00487350
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.0049a9f0
test eax, eax
jne 0x49b870
mov eax, esi
jmp fcn.0049ae20
ret
Function at 0x49d8c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov edx, dword [edi + 0x130]
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
jge 0x49d904
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004873e0
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.0049d7c0
add esp, 4
pop esi
pop ecx
ret
Function at 0x49e5b0
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 ebx
mov ebx, dword [eax + 0x8f14]
mov dword [esp + 4], eax
jne 0x49e71a
push ebp
push esi
push edi
lea edi, [ebx + 0x1cb0]
lea ebp, [ebx + 0x1eb0]
mov dword [ebp], edi
cmp edi, ebp
jae 0x49e5e9
mov byte [edi], 0xff
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x49e5f6
mov byte [eax], 0xfa
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x49e603
mov byte [eax], 0x1f
inc dword [ebp]
movzx ecx, word [ebx + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebx + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [ebp]
cmp eax, ebp
jae 0x49e637
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x49e647
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x49e653
mov byte [eax], cl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x49e65f
mov byte [eax], ch
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x49e66c
mov byte [eax], 0xff
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x49e679
mov byte [eax], 0xf0
inc dword [ebp]
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov ecx, eax
sub ecx, edi
sub ecx, 2
push ecx
lea edx, [ebx + 0x1cb2]
push edx
push 0x3e
mov dword [ebx + 0x1eb4], eax
mov dword [ebp], edi
call fcn.0049db20
mov ebp, dword [sym.imp.WS2_32.dll_send]
add esp, 0xc
push 0
push 3
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x130]
push eax
call ebp
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jge 0x49e6d9
call esi
mov ecx, dword [esp + 0x10]
push eax
push str.Sending_data_failed___d_
push ecx
call fcn.004873e0
add esp, 0xc
lea edx, [ebx + 0x1cb3]
push 4
push edx
call fcn.0049e380
mov eax, dword [edi + 0x130]
add esp, 8
push 0
push 2
add ebx, 0x1cb7
push ebx
push eax
call ebp
test eax, eax
jge 0x49e717
call esi
mov ecx, dword [esp + 0x10]
push eax
push str.Sending_data_failed___d_
push ecx
call fcn.004873e0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x49f280
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x5ed130]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
mov ebx, dword [esi + 0x134]
push ebp
mov ebp, dword [esi]
push edi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
or edi, 0xffffffff
mov dword [esp + 0x18], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x49f2da
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x18], 0x80
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebx
push esi
call fcn.004895c0
add esp, 8
cmp edi, 0xffffffff
jne 0x49f314
push str.Error_accept__ing_server_connect
push ebp
call fcn.004873e0
add esp, 8
pop edi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.0043dd0c
add esp, 0x88
ret
push str.Connection_accepted_from_server_n
push ebp
call fcn.00487350
push 1
push edi
mov dword [esi + 0x134], edi
call fcn.004ad6b0
mov dword [esi + 0x13c], 1
mov eax, dword [ebp + 0x1a4]
add esp, 0x10
test eax, eax
je 0x49f388
mov ecx, dword [ebp + 0x1a8]
push 1
push edi
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x49f388
push edi
push esi
call fcn.004895c0
add esp, 8
pop edi
pop ebp
mov dword [esi + 0x134], 0xffffffff
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.0043dd0c
add esp, 0x88
ret
mov ecx, dword [esp + 0x90]
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0043dd0c
add esp, 0x88
ret
Function at 0x4aa120
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x5ed130]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004586e5
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4aa185
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4aa185
lea edx, [esp]
push edx
call dword [0x5efff4]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0043dd0c
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.0043dd0c
add esp, 0x108
ret
jmp 0x4aa120

Function at 0x4aa1a0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x5ed130]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004586e5
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4aa185
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4aa185
lea edx, [esp]
push edx
call dword [0x5efff4]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0043dd0c
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.0043dd0c
add esp, 0x108
ret
jmp 0x4aa120
Function at 0x4ad8c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.00450720
mov eax, dword [0x5ed130]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x3c], 0
test esi, esi
jne 0x4ad907
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.0043dd0c
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push esi
call fcn.00441d65
add esp, 8
test eax, eax
jl 0x4ad8f0
mov eax, 8
call fcn.00450720
fldz
fstp qword [esp]
lea ecx, [esp + 0x50]
push 0x30
push ecx
call fcn.004ad730
mov ebx, dword [ebp + 0xc]
add esp, 0x10
test ebx, ebx
je 0x4ad8f0
push 0x5e0580
push esi
call fcn.004433c7
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
je 0x4ad9e1
jmp 0x4ad964
mov eax, dword [esp + 0x40]
test ebx, ebx
jle 0x4ad972
cmp ebx, 0x400
mov esi, ebx
jl 0x4ad977
mov esi, 0x400
push eax
push esi
lea edx, [esp + 0x80]
push 1
push edx
call fcn.00445c1d
mov edi, eax
add esp, 0x10
mov dword [esp + 0x44], edi
test edi, edi
jle 0x4ad9c5
fild dword [esp + 0x44]
mov eax, 8
call fcn.00450720
lea eax, [esp + 0x80]
fstp qword [esp]
push esi
push eax
call fcn.004ad730
add dword [esp + 0x4c], edi
add esp, 0x10
test ebx, ebx
jle 0x4ad960
sub ebx, esi
test ebx, ebx
jg 0x4ad960
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00443872
lea edx, [esp + 0x7c]
push 0x400
push edx
call fcn.004d3d40
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043dd0c
mov esp, ebp
pop ebp
ret

Function at 0x4c37b0
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.0043fa10
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
pop esi
ret
Function at 0x4c4360
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1e0]
test esi, esi
jne 0x4c4379
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.0048b140
push edx
push eax
call fcn.0048b170
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x1d4], 0
je 0x4c43c6
mov eax, dword [ebx + 0x124]
mov ecx, dword [ebx + 0x120]
push eax
push ecx
call fcn.0048b140
push edx
push eax
call fcn.0048b170
mov ecx, dword [edi + 0x1d4]
sub ecx, eax
add esp, 0x10
cmp esi, ecx
mov eax, ecx
jge 0x4c43c8
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x4d4280
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.00450720
mov eax, dword [0x5ed130]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4d42e5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4d42e5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.004513b0
add eax, 0x40
push eax
call fcn.00563e75
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0043dd0c
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.0044803b
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4d4374
call fcn.004d4140
test eax, eax
jle 0x4d4374
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0043dd0c
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0043dd0c
add esp, 0x108
ret

Function at 0x4d43d0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
jbe 0x4d43f4
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
sub esi, eax
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc eax
or cl, dl
sub edi, 1
jne 0x4d43e6
pop esi
movzx eax, cl
pop edi
ret

Function at 0x4d47e0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x4d4827
mov al, byte [edx]
test al, al
je 0x4d4827
push edi
mov edi, 0x100
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
mov ecx, eax
imul ecx, eax
mov al, byte [edx + 1]
inc edx
xor esi, ecx
test al, al
jne 0x4d47f7
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4df980
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24
call fcn.00450720
mov eax, dword [0x5ed130]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, esi
push edi
mov dword [ebp - 0x18], esi
lea ecx, [eax + 1]
jmp 0x4df9b0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4df9b0
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
sub eax, ecx
lea edi, [eax + 1]
push edi
push esi
push 8
push 0xfde9
mov dword [ebp - 0x20], 8
call ebx
mov esi, eax
test esi, esi
jg 0x4dfa28
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x4dfa0a
mov ecx, dword [ebp - 0x18]
push 0
push 0
push edi
push ecx
push 0
push 0xfde9
mov dword [ebp - 0x20], 0
call ebx
mov esi, eax
test esi, esi
jg 0x4dfa28
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x4dfaba
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push edx
push eax
jmp 0x4dfaa8
lea eax, [esi + esi]
call fcn.0044f0e0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov eax, esp
push esi
push eax
push edi
push ecx
push edx
push 0xfde9
mov dword [ebp - 0x24], eax
call ebx
test eax, eax
je 0x4dfaba
mov esi, dword [ebp - 0x1c]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4dfa53
push 8
sub eax, edx
lea ecx, [ebp - 0x14]
push ecx
inc eax
push eax
push esi
push 0
push 0xfde9
call ebx
test eax, eax
je 0x4dfaba
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.004473f9
mov esi, eax
add esp, 8
test esi, esi
jne 0x4dfb5e
call fcn.0044a277
cmp dword [eax], 2
je 0x4dfaa0
call fcn.0044a277
cmp dword [eax], 9
jne 0x4dfab2
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
push ecx
push edx
call fcn.004433c7
mov esi, eax
add esp, 8
test esi, esi
jne 0x4dfb5e
push 0xa9
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004b5890
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push 0x5a2570
push eax
push 0x5b23ec
push ecx
push str.fopen_
push 5
call fcn.004b5b90
add esp, 0x2c
call fcn.0044a277
cmp dword [eax], 2
jne 0x4dfb30
push 0xac
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.004b5890
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dd0c
mov esp, ebp
pop ebp
ret
push 0xae
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.004b5890
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dd0c
mov esp, ebp
pop ebp
ret
push 0x5f05e4
call fcn.004b1700
mov edi, eax
add esp, 4
test edi, edi
jne 0x4dfb90
push esi
call fcn.00443872
add esp, 4
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dd0c
mov esp, ebp
pop ebp
ret
push 0
push edi
call fcn.004b1140
push esi
push 1
push 0x6a
push edi
call fcn.004b14a0
add esp, 0x18
mov eax, edi
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dd0c
mov esp, ebp
pop ebp
ret
Function at 0x520e60
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x520f43
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
movzx edx, byte [esi]
jl 0x520ede
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + 0x5ce370]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x5ce370]
mov byte [ecx + 1], al
inc ecx
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + 0x5ce370]
inc ecx
mov byte [ecx], al
inc ecx
and edx, 0x3f
mov dl, byte [edx + 0x5ce370]
mov byte [ecx], dl
jmp 0x520f30
shl edx, 0x10
cmp edi, 2
jne 0x520eef
movzx eax, byte [esi + 1]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + 0x5ce370]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x5ce370]
inc ecx
mov byte [ecx], al
inc ecx
cmp edi, 1
jne 0x520f1d
lea edx, [edi + 0x3c]
jmp 0x520f2a
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + 0x5ce370]
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x520e80
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret