joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fab97
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x524
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x524], ecx
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.004b7da0
add esp, 0xc
mov byte [ebp - 0x514], 0
push 0x3ff
push 0
lea eax, [ebp - 0x513]
push eax
call fcn.004b7da0
add esp, 0xc
push dword [ebp + 8]
push 0x400
lea eax, [ebp - 0x514]
push eax
push 0
push 0x583c70
push 0x583c6c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x104
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x514]
push eax
mov ecx, dword [ebp - 0x524]
call fcn.004fb464
mov dword [ebp - 0x518], 1
lea eax, [ebp - 0x110]
test eax, eax
je 0x4fac6d
push 0x3a
lea eax, [ebp - 0x110]
push eax
call fcn.004df5c1
pop ecx
pop ecx
test eax, eax
je 0x4fac5a
and dword [ebp - 0x518], 0
jmp 0x4fac6d
movsx eax, byte [ebp - 0x110]
cmp eax, 0x5c
jne 0x4fac6d
and dword [ebp - 0x518], 0
cmp dword [ebp - 0x518], 0
jne 0x4facea
and dword [ebp - 0x51c], 0
cmp dword [ebp + 0xc], 0
je 0x4face8
cmp dword [ebp + 0x10], 0
jle 0x4face8
lea eax, [ebp - 0x110]
test eax, eax
je 0x4face8
and dword [ebp - 0x520], 0
lea eax, [ebp - 0x110]
test eax, eax
je 0x4facc0
lea eax, [ebp - 0x110]
push eax
call fcn.004b2fa0
pop ecx
cmp eax, dword [ebp + 0x10]
jae 0x4facc0
mov dword [ebp - 0x520], 1
cmp dword [ebp - 0x520], 0
je 0x4face8
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004c155c
add esp, 0xc
mov dword [ebp - 0x51c], 1
jmp 0x4fad05
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 8]
mov ecx, dword [ebp - 0x524]
call fcn.004faf4d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b2f5a
leave
ret 0xc
Function at 0x4faf4d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x650
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x650], ecx
mov byte [ebp - 0x10], 0
xor eax, eax
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov byte [ebp - 0x624], 0
push 0x3ff
push 0
lea eax, [ebp - 0x623]
push eax
call fcn.004b7da0
add esp, 0xc
push dword [ebp + 8]
push 0x400
lea eax, [ebp - 0x624]
push eax
push 0x583cb0
push str.NotUseDefaultDllPath
push 0x583c6c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xa
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x624]
push eax
mov ecx, dword [ebp - 0x650]
call fcn.004fb464
movsx eax, byte [ebp - 0x10]
cmp eax, 0x31
jne 0x4faff1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x650]
call fcn.004fb598
jmp 0x4fb149
mov byte [ebp - 0x118], 0
push 0x103
push 0
lea eax, [ebp - 0x117]
push eax
call fcn.004b7da0
add esp, 0xc
push dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0
push str.DllPath
push str.DefaultValue
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [ebp - 0x220], 0
push 0x103
push 0
lea eax, [ebp - 0x21f]
push eax
call fcn.004b7da0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x650]
call fcn.004fb36b
mov dword [ebp - 0x644], 1
lea eax, [ebp - 0x220]
test eax, eax
je 0x4fb0b1
push 0x3a
lea eax, [ebp - 0x220]
push eax
call fcn.004df5c1
pop ecx
pop ecx
test eax, eax
je 0x4fb09e
and dword [ebp - 0x644], 0
jmp 0x4fb0b1
movsx eax, byte [ebp - 0x220]
cmp eax, 0x5c
jne 0x4fb0b1
and dword [ebp - 0x644], 0
cmp dword [ebp - 0x644], 0
je 0x4fb0d7
push dword [ebp + 0x14]
push dword [ebp + 0x10]
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
mov ecx, dword [ebp - 0x650]
call fcn.004fb598
jmp 0x4fb149
and dword [ebp - 0x648], 0
cmp dword [ebp + 0x10], 0
je 0x4fb149
cmp dword [ebp + 0x14], 0
jle 0x4fb149
lea eax, [ebp - 0x220]
test eax, eax
je 0x4fb149
and dword [ebp - 0x64c], 0
lea eax, [ebp - 0x220]
test eax, eax
je 0x4fb121
lea eax, [ebp - 0x220]
push eax
call fcn.004b2fa0
pop ecx
cmp eax, dword [ebp + 0x14]
jae 0x4fb121
mov dword [ebp - 0x64c], 1
cmp dword [ebp - 0x64c], 0
je 0x4fb149
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004c155c
add esp, 0xc
mov dword [ebp - 0x648], 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b2f5a
leave
ret 0x10
Function at 0x4fb158
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x128], ecx
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.004b7da0
add esp, 0xc
push dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0
push str.Path
push str.Redirect
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x110]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], 1
cmp dword [ebp - 0x118], 0
je 0x4fb20f
mov eax, dword [ebp - 0x118]
movsx eax, byte [eax]
test eax, eax
je 0x4fb20f
mov eax, dword [ebp - 0x118]
movsx eax, byte [eax]
cmp eax, 0x20
je 0x4fb200
mov eax, dword [ebp - 0x118]
movsx eax, byte [eax]
cmp eax, 9
je 0x4fb200
and dword [ebp - 0x114], 0
jmp 0x4fb20f
mov eax, dword [ebp - 0x118]
inc eax
mov dword [ebp - 0x118], eax
jmp 0x4fb1ce
cmp dword [ebp - 0x114], 0
jne 0x4fb2a0
mov dword [ebp - 0x11c], 1
lea eax, [ebp - 0x110]
test eax, eax
je 0x4fb260
push 0x3a
lea eax, [ebp - 0x110]
push eax
call fcn.004df5c1
pop ecx
pop ecx
test eax, eax
je 0x4fb24d
and dword [ebp - 0x11c], 0
jmp 0x4fb260
movsx eax, byte [ebp - 0x110]
cmp eax, 0x5c
jne 0x4fb260
and dword [ebp - 0x11c], 0
cmp dword [ebp - 0x11c], 0
je 0x4fb286
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 8]
mov ecx, dword [ebp - 0x128]
call fcn.004fb598
jmp 0x4fb29e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x128]
call fcn.004fb158
jmp 0x4fb302
and dword [ebp - 0x120], 0
cmp dword [ebp + 0xc], 0
je 0x4fb302
cmp dword [ebp + 0x10], 0
jle 0x4fb302
cmp dword [ebp + 8], 0
je 0x4fb302
and dword [ebp - 0x124], 0
cmp dword [ebp + 8], 0
je 0x4fb2de
push dword [ebp + 8]
call fcn.004b2fa0
pop ecx
cmp eax, dword [ebp + 0x10]
jae 0x4fb2de
mov dword [ebp - 0x124], 1
cmp dword [ebp - 0x124], 0
je 0x4fb302
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004c155c
add esp, 0xc
mov dword [ebp - 0x120], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b2f5a
leave
ret 0xc
Function at 0x514510
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x84
mov eax, dword [0x5b4a28]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
xor eax, eax
mov dword [ebp], eax
push esi
mov esi, dword [esp + 0x94]
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
push edi
mov dword [ebp + 0xc], eax
mov eax, 2
push 0x3a
push esi
mov word [ebp], ax
call fcn.004bb5b0
mov edi, eax
add esp, 8
test edi, edi
je 0x514595
mov ebx, edi
sub ebx, esi
cmp ebx, 0x80
jge 0x51460a
push ebx
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.004b3170
inc edi
add esp, 0xc
mov byte [esp + ebx + 0x10], 0
test edi, edi
je 0x5145c2
push edi
call fcn.004b8a52
add esp, 4
movzx eax, ax
jmp 0x5145c4
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5145a0
sub eax, edx
cmp eax, 0x80
jae 0x51460a
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x5145b8
xor eax, eax
push eax
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 0x10]
push str.1234567890.
push edx
mov word [ebp + 2], ax
call fcn.0054be80
lea ecx, [esp + 0x18]
add esp, 8
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x5145e8
sub ecx, esi
cmp eax, ecx
jne 0x51460f
add ebp, 4
lea eax, [esp + 0x10]
push ebp
push eax
call fcn.00514eb0
add esp, 8
test eax, eax
jne 0x514628
or eax, 0xffffffff
jmp 0x51462a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x51460a
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp + 4], ecx
xor eax, eax
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b2f5a
add esp, 0x84
ret
Function at 0x514e60
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
jmp 0x5157f0
sub esp, 0x110
mov eax, dword [0x5b4a28]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov ebx, dword [esp + 0x11c]
push esi
mov esi, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x12c]
test edi, edi
je 0x5158a7
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xc]
cmp edi, 0xffffffff
jne 0x51583d
xor ecx, ecx
jmp 0x515866
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xc], eax
imul eax, eax, 0x3e8
mov edx, edi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x10], edx
push ecx
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esi + 1]
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x5158a5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2714
pop edi
neg eax
pop esi
sbb eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004b2f5a
add esp, 0x110
ret
je 0x515903
mov edx, dword [esp + 0x128]
push 0
push edx
push ebx
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jns 0x51591d
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x5158f2
call esi
cmp eax, 0x2733
je 0x5158f2
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004b2f5a
add esp, 0x110
ret
test edi, edi
je 0x515903
push 0x186a0
call fcn.005166d0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004b2f5a
add esp, 0x110
ret
jne 0x515924
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b2f5a
add esp, 0x110
ret

Function at 0x515180
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x5b4a28]
xor eax, esp
mov dword [esp + 0x190], eax
movzx ecx, byte [esp + 0x19c]
movzx edx, byte [esp + 0x198]
shl cx, 8
lea eax, [esp]
push eax
or cx, dx
movzx eax, cx
push eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004b2f5a
add esp, 0x194
ret

Function at 0x515200
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
ret

Function at 0x515210
Capabilities:
Create udp socket

Disassembly:
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
ret
Function at 0x5152f0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x214
mov eax, dword [0x5b4a28]
xor eax, esp
mov dword [esp + 0x210], eax
mov ecx, dword [esp + 0x21c]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp], eax
imul eax, eax, 0x3e8
mov edx, ecx
sub edx, eax
imul edx, edx, 0x3e8
push esi
mov esi, dword [esp + 0x21c]
mov dword [esp + 8], edx
mov dword [esp + 0x114], esi
mov dword [esp + 0x110], 1
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 1
cmp ecx, 0xffffffff
jne 0x515375
push 0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x118]
push ecx
push 0
lea edx, [esi + 1]
push edx
jmp 0x51538d
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x118]
push edx
push 0
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x5153b0
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004b2f5a
add esp, 0x214
ret
jne 0x5153cd
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004b2f5a
add esp, 0x214
ret
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.WS2_32.dll___WSAFDIsSet
mov ecx, dword [esp + 0x214]
neg eax
sbb eax, eax
pop esi
xor ecx, esp
call fcn.004b2f5a
add esp, 0x214
ret

Function at 0x515400
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push eax
push ecx
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x515449
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2748
je 0x515449
cmp eax, 0x2733
je 0x515435
cmp eax, 0x2735
jne 0x51544d
mov edx, dword [esp + 0x14]
push edx
push esi
call fcn.005152f0
add esp, 8
neg eax
sbb eax, eax
pop esi
ret
xor eax, eax
pop esi
ret
or eax, 0xffffffff
pop esi
ret
Function at 0x515540
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x110
mov eax, dword [0x5b4a28]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov ebx, dword [esp + 0x11c]
push esi
mov esi, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x12c]
test edi, edi
je 0x5155e7
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xc]
cmp edi, 0xffffffff
jne 0x515589
xor ecx, ecx
jmp 0x5155b2
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xc], eax
imul eax, eax, 0x3e8
mov edx, edi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x10], edx
push ecx
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esi + 1]
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x5155e5
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004b2f5a
add esp, 0x110
ret
je 0x515643
mov edx, dword [esp + 0x128]
push 0
push edx
push ebx
push esi
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x51565d
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x515632
call esi
cmp eax, 0x2733
je 0x515632
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004b2f5a
add esp, 0x110
ret
test edi, edi
je 0x515643
push 0x30d40
call fcn.005166d0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004b2f5a
add esp, 0x110
ret
jne 0x515664
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b2f5a
add esp, 0x110
ret
Function at 0x5157f0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
jmp 0x5157f0
sub esp, 0x110
mov eax, dword [0x5b4a28]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov ebx, dword [esp + 0x11c]
push esi
mov esi, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x12c]
test edi, edi
je 0x5158a7
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xc]
cmp edi, 0xffffffff
jne 0x51583d
xor ecx, ecx
jmp 0x515866
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xc], eax
imul eax, eax, 0x3e8
mov edx, edi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x10], edx
push ecx
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esi + 1]
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x5158a5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2714
pop edi
neg eax
pop esi
sbb eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004b2f5a
add esp, 0x110
ret
je 0x515903
mov edx, dword [esp + 0x128]
push 0
push edx
push ebx
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jns 0x51591d
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x5158f2
call esi
cmp eax, 0x2733
je 0x5158f2
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004b2f5a
add esp, 0x110
ret
test edi, edi
je 0x515903
push 0x186a0
call fcn.005166d0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004b2f5a
add esp, 0x110
ret
jne 0x515924
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b2f5a
add esp, 0x110
ret

Function at 0x516370
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jns 0x51638d
pop esi
or eax, 0xffffffff
pop ebx
pop ecx
ret
jne 0x5163a9
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [eax], 0
pop esi
mov dword [ecx], 0
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x18]
push edi
lea eax, [esi + 1]
push eax
push 1
mov dword [edx], esi
call fcn.004bae7d
mov edi, eax
add esp, 8
test edi, edi
je 0x516403
test esi, esi
jle 0x5163e2
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5163e2
mov eax, dword [esp + 0xc]
jmp 0x5163e5
or eax, 0xffffffff
cmp eax, esi
jne 0x5163fa
mov edx, dword [esp + 0x18]
mov dword [edx], edi
mov byte [edi + esi], 0
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push edi
call fcn.004b7e1a
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ecx
ret

Function at 0x517e30
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
lea ecx, [eax - 1]
cmp ecx, 0x1c
ja case.0x517e43.1
movzx ecx, byte [ecx + 0x517e5c]
jmp dword [ecx*4 + 0x517e54]
and eax, 0x7f
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x52a6e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
xor ecx, ecx
cmp eax, edx
je 0x52a70f
push esi
push edi
mov esi, ecx
mov edi, ecx
shl esi, 6
shr edi, 2
add esi, edi
movsx edi, byte [eax]
lea esi, [esi + edi - 0x61c88647]
inc eax
xor ecx, esi
cmp eax, edx
jne 0x52a6f0
pop edi
pop esi
mov eax, 0x4e25
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add edx, eax
shr edx, 0x1e
imul edx, edx, 0x7fffd8ee
mov eax, ecx
sub eax, edx
add eax, 0x2710
ret

Function at 0x534aa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x564408
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5b4a28]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x5b4a28]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov edi, dword [esp + 0x44]
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [eax + 0x140]
sub ecx, dword [eax + 0x13c]
cmp dword [esi + 0x78], ecx
jne 0x534b7d
mov edx, dword [esi + 0x84]
sub edx, dword [esi + 0x80]
test edx, 0xfffffffc
je 0x534b7d
mov ecx, dword [esi + 0x84]
cmp dword [ecx - 4], edi
jle 0x534b7d
mov eax, dword [eax + 0x18]
test al, 3
jne 0x534b1b
test eax, 0x1000000
je 0x534b7d
push str.Cant_terminate_a_sub_expression_with_an_alternation_operator_.
lea ecx, [esp + 0x18]
call fcn.004045a0
mov edi, dword [esi + 0x64]
sub edi, dword [esi + 0x5c]
xor eax, eax
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 0xf
push eax
mov dword [esp + 0x64], eax
mov byte [ecx], al
lea eax, [esp + 0x3c]
push eax
call fcn.00406020
push edi
push 0x11
mov ecx, esi
call fcn.00532b60
cmp dword [esp + 0x28], 0x10
jb 0x534b76
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004b3165
add esp, 4
xor al, al
jmp 0x534bfe
mov edx, dword [esi + 0x84]
sub edx, dword [esi + 0x80]
test edx, 0xfffffffc
je 0x534bfc
mov eax, dword [esi + 0x84]
cmp dword [eax - 4], edi
jle 0x534bfc
mov edx, dword [eax - 4]
cmp dword [esi + 0x80], eax
je 0x534bb0
add eax, 0xfffffffc
mov dword [esi + 0x84], eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x13c]
mov ebx, dword [eax + 0x140]
sub ebx, ecx
add ebx, 3
and ebx, 0xfffffffc
add ebx, ecx
mov dword [eax + 0x140], ebx
mov eax, dword [esi]
mov ecx, dword [eax + 0x140]
sub ecx, dword [eax + 0x13c]
mov eax, dword [eax + 0x13c]
sub ecx, edx
mov dword [eax + edx + 8], ecx
mov ecx, dword [esi + 0x84]
sub ecx, dword [esi + 0x80]
test ecx, 0xfffffffc
jne 0x534b91
mov al, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004b2f5a
add esp, 0x30
ret 4
Function at 0x54a840
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xf0
mov eax, 0x58b710
mov dword [esp], eax
mov dword [esp + 4], 0x58837c
mov dword [esp + 8], 0x56f7a0
mov dword [esp + 0xc], 0x588378
mov dword [esp + 0x10], 0x57d70c
mov dword [esp + 0x14], 0x575594
mov dword [esp + 0x18], 0x571450
mov dword [esp + 0x1c], 0x57d734
mov dword [esp + 0x20], 0x588374
mov dword [esp + 0x24], str.___:
mov dword [esp + 0x28], 0x58bc9c
mov dword [esp + 0x2c], 0x57d708
mov dword [esp + 0x30], 0x578bf0
mov dword [esp + 0x34], str.___
mov dword [esp + 0x38], 0x5734b0
mov dword [esp + 0x3c], 0x58bca0
mov dword [esp + 0x40], 0x58bcac
mov dword [esp + 0x44], str.0123456789
mov dword [esp + 0x48], 0x58807c
mov dword [esp + 0x4c], 0x588138
mov dword [esp + 0x50], 0x57d724
mov dword [esp + 0x54], 0x57d71c
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x588360
mov dword [esp + 0x64], 0x58835c
mov dword [esp + 0x68], 0x58b9e4
mov dword [esp + 0x6c], 0x58bc98
mov dword [esp + 0x70], 0x578374
mov dword [esp + 0x74], 0x588070
mov dword [esp + 0x78], 0x588050
mov dword [esp + 0x7c], 0x57556c
mov dword [esp + 0x80], 0x58803c
mov dword [esp + 0x84], 0x588034
mov dword [esp + 0x88], 0x588030
mov dword [esp + 0x8c], 0x588078
mov dword [esp + 0x90], 0x58bca8
mov dword [esp + 0x94], 0x57a294
mov dword [esp + 0x98], 0x58bce8
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], 0x58bce4
mov dword [esp + 0xc0], 0x588104
mov dword [esp + 0xc4], 0x5880e8
mov dword [esp + 0xc8], 0x57a4ec
mov dword [esp + 0xcc], str.ZYXWVUTSRQPONMLKJIHGFDBA
mov dword [esp + 0xd0], 0x58812c
mov dword [esp + 0xd4], 0x576acc
mov dword [esp + 0xd8], 0x588048
mov dword [esp + 0xdc], 0x588108
mov dword [esp + 0xe0], 0x588110
mov dword [esp + 0xe4], 0x588358
mov dword [esp + 0xe8], 0x58811c
mov dword [esp + 0xec], 0x588100
cmp cl, 0x3c
jae 0x54aa5d
movzx eax, cl
mov eax, dword [esp + eax*4]
add esp, 0xf0
ret
Function at 0x54b094
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push dword [eax]
call sub.WS2_32.dll_ntohl
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
call sub.WS2_32.dll_ntohl
mov dword [ebp - 0x24], eax
and dword [ebp - 8], 0
jmp 0x54b0cc
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jge 0x54b0e9
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push dword [ecx + eax*4]
call sub.WS2_32.dll_ntohl
mov ecx, dword [ebp - 8]
mov dword [ebp + ecx*4 - 0x1c], eax
jmp 0x54b0c5
and dword [ebp - 0x20], 0
and dword [ebp - 8], 0
jmp 0x54b0fa
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x10
jge 0x54b151
mov eax, dword [ebp - 0x20]
sub eax, 0x61c88647
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
shl eax, 4
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x20]
xor eax, ecx
mov ecx, dword [ebp - 0x24]
shr ecx, 5
add ecx, dword [ebp - 0x18]
xor eax, ecx
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shl eax, 4
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x20]
xor eax, ecx
mov ecx, dword [ebp - 4]
shr ecx, 5
add ecx, dword [ebp - 0x10]
xor eax, ecx
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
jmp 0x54b0f3
push dword [ebp - 4]
call sub.WS2_32.dll_htonl
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebp - 0x24]
call sub.WS2_32.dll_htonl
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004b2f5a
leave
ret