joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fac9b
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.004b7e80
add esp, 0xc
mov byte [ebp - 0x514], 0
push 0x3ff
push 0
lea eax, [ebp - 0x513]
push eax
call fcn.004b7e80
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.004fb568
mov dword [ebp - 0x518], 1
lea eax, [ebp - 0x110]
test eax, eax
je 0x4fad71
push 0x3a
lea eax, [ebp - 0x110]
push eax
call fcn.004df6a1
pop ecx
pop ecx
test eax, eax
je 0x4fad5e
and dword [ebp - 0x518], 0
jmp 0x4fad71
movsx eax, byte [ebp - 0x110]
cmp eax, 0x5c
jne 0x4fad71
and dword [ebp - 0x518], 0
cmp dword [ebp - 0x518], 0
jne 0x4fadee
and dword [ebp - 0x51c], 0
cmp dword [ebp + 0xc], 0
je 0x4fadec
cmp dword [ebp + 0x10], 0
jle 0x4fadec
lea eax, [ebp - 0x110]
test eax, eax
je 0x4fadec
and dword [ebp - 0x520], 0
lea eax, [ebp - 0x110]
test eax, eax
je 0x4fadc4
lea eax, [ebp - 0x110]
push eax
call fcn.004b3080
pop ecx
cmp eax, dword [ebp + 0x10]
jae 0x4fadc4
mov dword [ebp - 0x520], 1
cmp dword [ebp - 0x520], 0
je 0x4fadec
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004c163c
add esp, 0xc
mov dword [ebp - 0x51c], 1
jmp 0x4fae09
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.004fb051
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b303a
leave
ret 0xc
Function at 0x4fb051
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.004b7e80
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.004fb568
movsx eax, byte [ebp - 0x10]
cmp eax, 0x31
jne 0x4fb0f5
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x650]
call fcn.004fb69c
jmp 0x4fb24d
mov byte [ebp - 0x118], 0
push 0x103
push 0
lea eax, [ebp - 0x117]
push eax
call fcn.004b7e80
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.004b7e80
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.004fb46f
mov dword [ebp - 0x644], 1
lea eax, [ebp - 0x220]
test eax, eax
je 0x4fb1b5
push 0x3a
lea eax, [ebp - 0x220]
push eax
call fcn.004df6a1
pop ecx
pop ecx
test eax, eax
je 0x4fb1a2
and dword [ebp - 0x644], 0
jmp 0x4fb1b5
movsx eax, byte [ebp - 0x220]
cmp eax, 0x5c
jne 0x4fb1b5
and dword [ebp - 0x644], 0
cmp dword [ebp - 0x644], 0
je 0x4fb1db
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.004fb69c
jmp 0x4fb24d
and dword [ebp - 0x648], 0
cmp dword [ebp + 0x10], 0
je 0x4fb24d
cmp dword [ebp + 0x14], 0
jle 0x4fb24d
lea eax, [ebp - 0x220]
test eax, eax
je 0x4fb24d
and dword [ebp - 0x64c], 0
lea eax, [ebp - 0x220]
test eax, eax
je 0x4fb225
lea eax, [ebp - 0x220]
push eax
call fcn.004b3080
pop ecx
cmp eax, dword [ebp + 0x14]
jae 0x4fb225
mov dword [ebp - 0x64c], 1
cmp dword [ebp - 0x64c], 0
je 0x4fb24d
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004c163c
add esp, 0xc
mov dword [ebp - 0x648], 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b303a
leave
ret 0x10
Function at 0x4fb25c
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.004b7e80
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 0x4fb313
mov eax, dword [ebp - 0x118]
movsx eax, byte [eax]
test eax, eax
je 0x4fb313
mov eax, dword [ebp - 0x118]
movsx eax, byte [eax]
cmp eax, 0x20
je 0x4fb304
mov eax, dword [ebp - 0x118]
movsx eax, byte [eax]
cmp eax, 9
je 0x4fb304
and dword [ebp - 0x114], 0
jmp 0x4fb313
mov eax, dword [ebp - 0x118]
inc eax
mov dword [ebp - 0x118], eax
jmp 0x4fb2d2
cmp dword [ebp - 0x114], 0
jne 0x4fb3a4
mov dword [ebp - 0x11c], 1
lea eax, [ebp - 0x110]
test eax, eax
je 0x4fb364
push 0x3a
lea eax, [ebp - 0x110]
push eax
call fcn.004df6a1
pop ecx
pop ecx
test eax, eax
je 0x4fb351
and dword [ebp - 0x11c], 0
jmp 0x4fb364
movsx eax, byte [ebp - 0x110]
cmp eax, 0x5c
jne 0x4fb364
and dword [ebp - 0x11c], 0
cmp dword [ebp - 0x11c], 0
je 0x4fb38a
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.004fb69c
jmp 0x4fb3a2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x128]
call fcn.004fb25c
jmp 0x4fb406
and dword [ebp - 0x120], 0
cmp dword [ebp + 0xc], 0
je 0x4fb406
cmp dword [ebp + 0x10], 0
jle 0x4fb406
cmp dword [ebp + 8], 0
je 0x4fb406
and dword [ebp - 0x124], 0
cmp dword [ebp + 8], 0
je 0x4fb3e2
push dword [ebp + 8]
call fcn.004b3080
pop ecx
cmp eax, dword [ebp + 0x10]
jae 0x4fb3e2
mov dword [ebp - 0x124], 1
cmp dword [ebp - 0x124], 0
je 0x4fb406
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004c163c
add esp, 0xc
mov dword [ebp - 0x120], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b303a
leave
ret 0xc
Function at 0x514610
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.004bb690
mov edi, eax
add esp, 8
test edi, edi
je 0x514695
mov ebx, edi
sub ebx, esi
cmp ebx, 0x80
jge 0x51470a
push ebx
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.004b3250
inc edi
add esp, 0xc
mov byte [esp + ebx + 0x10], 0
test edi, edi
je 0x5146c2
push edi
call fcn.004b8b32
add esp, 4
movzx eax, ax
jmp 0x5146c4
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5146a0
sub eax, edx
cmp eax, 0x80
jae 0x51470a
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 0x5146b8
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.0054bf80
lea ecx, [esp + 0x18]
add esp, 8
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x5146e8
sub ecx, esi
cmp eax, ecx
jne 0x51470f
add ebp, 4
lea eax, [esp + 0x10]
push ebp
push eax
call fcn.00514fb0
add esp, 8
test eax, eax
jne 0x514728
or eax, 0xffffffff
jmp 0x51472a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x51470a
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.004b303a
add esp, 0x84
ret
Function at 0x514f60
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
jmp 0x5158f0
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 0x5159a7
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xc]
cmp edi, 0xffffffff
jne 0x51593d
xor ecx, ecx
jmp 0x515966
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 0x5159a5
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.004b303a
add esp, 0x110
ret
je 0x515a03
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 0x515a1d
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x5159f2
call esi
cmp eax, 0x2733
je 0x5159f2
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004b303a
add esp, 0x110
ret
test edi, edi
je 0x515a03
push 0x186a0
call fcn.005167d0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004b303a
add esp, 0x110
ret
jne 0x515a24
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b303a
add esp, 0x110
ret

Function at 0x515280
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.004b303a
add esp, 0x194
ret

Function at 0x515300
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 0x515310
Capabilities:
Create udp socket

Disassembly:
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
ret
Function at 0x5153f0
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 0x515475
push 0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x118]
push ecx
push 0
lea edx, [esi + 1]
push edx
jmp 0x51548d
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 0x5154b0
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004b303a
add esp, 0x214
ret
jne 0x5154cd
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004b303a
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.004b303a
add esp, 0x214
ret

Function at 0x515500
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 0x515549
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2748
je 0x515549
cmp eax, 0x2733
je 0x515535
cmp eax, 0x2735
jne 0x51554d
mov edx, dword [esp + 0x14]
push edx
push esi
call fcn.005153f0
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 0x515640
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 0x5156e7
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xc]
cmp edi, 0xffffffff
jne 0x515689
xor ecx, ecx
jmp 0x5156b2
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 0x5156e5
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004b303a
add esp, 0x110
ret
je 0x515743
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 0x51575d
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x515732
call esi
cmp eax, 0x2733
je 0x515732
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004b303a
add esp, 0x110
ret
test edi, edi
je 0x515743
push 0x30d40
call fcn.005167d0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004b303a
add esp, 0x110
ret
jne 0x515764
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b303a
add esp, 0x110
ret
Function at 0x5158f0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
jmp 0x5158f0
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 0x5159a7
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xc]
cmp edi, 0xffffffff
jne 0x51593d
xor ecx, ecx
jmp 0x515966
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 0x5159a5
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.004b303a
add esp, 0x110
ret
je 0x515a03
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 0x515a1d
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x5159f2
call esi
cmp eax, 0x2733
je 0x5159f2
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004b303a
add esp, 0x110
ret
test edi, edi
je 0x515a03
push 0x186a0
call fcn.005167d0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004b303a
add esp, 0x110
ret
jne 0x515a24
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b303a
add esp, 0x110
ret

Function at 0x516470
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 0x51648d
pop esi
or eax, 0xffffffff
pop ebx
pop ecx
ret
jne 0x5164a9
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.004baf5d
mov edi, eax
add esp, 8
test edi, edi
je 0x516503
test esi, esi
jle 0x5164e2
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 0x5164e2
mov eax, dword [esp + 0xc]
jmp 0x5164e5
or eax, 0xffffffff
cmp eax, esi
jne 0x5164fa
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.004b7efa
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ecx
ret

Function at 0x517f30
Capabilities:
Terminate process

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

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
xor ecx, ecx
cmp eax, edx
je 0x52a80f
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 0x52a7f0
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 0x534ba0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x564508
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 0x534c7d
mov edx, dword [esi + 0x84]
sub edx, dword [esi + 0x80]
test edx, 0xfffffffc
je 0x534c7d
mov ecx, dword [esi + 0x84]
cmp dword [ecx - 4], edi
jle 0x534c7d
mov eax, dword [eax + 0x18]
test al, 3
jne 0x534c1b
test eax, 0x1000000
je 0x534c7d
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.00532c60
cmp dword [esp + 0x28], 0x10
jb 0x534c76
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004b3245
add esp, 4
xor al, al
jmp 0x534cfe
mov edx, dword [esi + 0x84]
sub edx, dword [esi + 0x80]
test edx, 0xfffffffc
je 0x534cfc
mov eax, dword [esi + 0x84]
cmp dword [eax - 4], edi
jle 0x534cfc
mov edx, dword [eax - 4]
cmp dword [esi + 0x80], eax
je 0x534cb0
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 0x534c91
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.004b303a
add esp, 0x30
ret 4
Function at 0x54a940
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 0x54ab5d
movzx eax, cl
mov eax, dword [esp + eax*4]
add esp, 0xf0
ret
Function at 0x54b194
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 0x54b1cc
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jge 0x54b1e9
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 0x54b1c5
and dword [ebp - 0x20], 0
and dword [ebp - 8], 0
jmp 0x54b1fa
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x10
jge 0x54b251
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 0x54b1f3
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.004b303a
leave
ret