joyce8/EMBER2024-capa huggingface dataset:
Function at 0x512da0
Capabilities:
Query service status

Disassembly:
sub esp, 0x20
mov eax, dword [0x59b000]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push reloc.WS2_32.dll_accept
push 0
push 0
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x512e4d
push edi
push closesocket
push 0x44eaa0
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x512e45
push esi
mov esi, dword [esp + 0x34]
jmp 0x512df0
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 0
xorps xmm0, xmm0
push eax
push edi
movdqu xmmword [esp + 0x18], xmm0
movq qword [esp + 0x28], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x512e3d
mov eax, dword [esp + 0x14]
cmp eax, 2
je 0x512e2a
cmp eax, 4
je 0x512e3b
test esi, esi
jle 0x512e3d
dec esi
push 0x64
call fcn.004c5530
add esp, 4
cmp dword [esp + 0x14], 4
jne 0x512df0
mov bl, 1
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov ecx, dword [esp + 0x24]
mov al, bl
pop ebp
pop ebx
xor ecx, esp
call fcn.0054a992
add esp, 0x20
ret 4

Function at 0x512e70
Capabilities:
Check if process is running under wine
Get file version info

Disassembly:
sub esp, 0x1c
mov eax, dword [0x59b000]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov esi, ecx
cmp byte [esi + 1], 1
je 0x512f88
mov eax, dword [0x44ea54]
push ebx
mov dword [esp + 0x18], eax
xor bl, bl
mov ax, word [0x44ea58]
push ebp
mov word [esp + 0x20], ax
lea eax, [esp + 0x14]
push edi
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x14], 0
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, eax
test ebp, ebp
je 0x512f4b
xor edx, edx
mov ecx, ebp
add ecx, 0x32
setb dl
neg edx
or edx, ecx
push edx
call fcn.0054cb68
mov edi, eax
add esp, 4
test edi, edi
je 0x512f4b
push edi
push ebp
push dword [esp + 0x20]
lea eax, [esp + 0x2c]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x512f42
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x14]
push eax
push 0x44ea5c
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x512f42
cmp dword [esp + 0x1c], 0
je 0x512f42
push 4
push 0x44ea84
push dword [esp + 0x18]
call fcn.0054caf0
add esp, 0xc
movzx ebx, bl
test eax, eax
mov ecx, 1
cmove ebx, ecx
push edi
call fcn.00549ff4
add esp, 4
lea eax, [esp + 0x14]
push eax
push 1
push 0
push 0x44ea8c
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x512f74
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esi + 1], 1
test edi, edi
je 0x512f81
cmp bl, 1
jne 0x512f85
mov byte [esi + 2], 1
pop edi
pop ebp
pop ebx
mov al, byte [esi + 2]
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
call fcn.0054a992
add esp, 0x1c
ret
Function at 0x516310
Capabilities:
Access peb ldr_data
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x57b018
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x59b000]
xor eax, esp
mov dword [esp + 0x40], eax
push esi
mov eax, dword [0x59b000]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x5c]
xorps xmm0, xmm0
mov eax, dword [esp + 0x60]
movq qword [esp + 0xc], xmm0
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
cmp dword [eax + 0x14], 0x10
movdqu xmmword [esp + 0x28], xmm0
mov dword [esp + 0x54], 0
movdqu xmmword [esp + 0x38], xmm0
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 1
jb 0x5163ac
mov eax, dword [eax]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x5163dc
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
jmp 0x51649c
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0x18]
movzx eax, word [edx]
sub eax, 2
je 0x516428
sub eax, 0x15
jne 0x51647e
push dword [esp + 0x24]
lea ecx, [edx + 0x18]
mov dword [esp + 0x1c], 0
push ecx
lea eax, [edx + 8]
mov dword [esp + 0x24], 0
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x2c], 0
call fcn.004c6ec0
mov byte [esp + 0x54], 2
jmp 0x51645a
push dword [esp + 0x24]
lea ecx, [edx + 8]
mov dword [esp + 0x1c], 0
push ecx
lea eax, [edx + 4]
mov dword [esp + 0x24], 0
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x2c], 0
call fcn.004c6ec0
mov byte [esp + 0x54], 1
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
call fcn.00515b10
mov eax, dword [esp + 0x18]
mov byte [esp + 0x54], 0
test eax, eax
je 0x51647e
push eax
call fcn.00549eaf
add esp, 4
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [esp + 0xc]
mov dword [esi], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 8], eax
mov eax, esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0054a992
add esp, 0x50
ret 8
Function at 0x516520
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x57b048
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x59b000]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x13]
mov dword [esp + 0x28], 0
xorps xmm0, xmm0
mov byte [esp + 0x13], 0xff
push eax
movq qword [esp + 0x24], xmm0
lea ecx, [esp + 0x24]
push 4
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call fcn.00517000
push dword [esp + 0x2c]
lea eax, [esi + 0xc]
mov dword [esp + 0x20], 0
push eax
xorps xmm0, xmm0
mov dword [esp + 0x40], 0
lea eax, [esi + 8]
movq qword [esp + 0x1c], xmm0
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call fcn.004c6ec0
mov edx, dword [esp + 0x18]
mov eax, edx
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
sub ecx, esi
mov edi, dword [esp + 0x14]
sub eax, edi
cmp eax, ecx
jne 0x5165f9
push esi
push edx
push edi
call fcn.00517040
add esp, 0xc
test al, al
je 0x5165f9
mov bl, 1
jmp 0x5165fb
xor bl, bl
test edi, edi
je 0x516608
push edi
call fcn.00549eaf
add esp, 4
test esi, esi
je 0x516615
push esi
call fcn.00549eaf
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x516e60
Capabilities:
Check for peb ntglobalflag flag
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x57b140
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x59b000]
xor eax, esp
mov dword [esp + 0x48], eax
push esi
push edi
mov eax, dword [0x59b000]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x68]
lea eax, [esp + 0x30]
mov dword [esp + 0x28], eax
xorps xmm0, xmm0
lea eax, [esp + 0x28]
mov dword [esp + 0x30], 0
push eax
lea eax, [esp + 0x28]
movdqu xmmword [esp + 0x38], xmm0
push eax
movdqu xmmword [esp + 0x4c], xmm0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 1
call fcn.005153a0
add esp, 8
lea eax, [esp + 0x30]
mov dword [esp + 0x60], 0
push eax
lea eax, [esp + 0x38]
push eax
push 0
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x516faa
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x18]
movzx eax, word [ecx]
sub eax, 2
je 0x516f1c
sub eax, 0x15
jne 0x516faa
push ecx
mov ecx, edi
call fcn.00516bc0
jmp 0x516f29
lea eax, [ecx + 4]
mov ecx, edi
push 4
push eax
call fcn.00516cf0
cmp byte [esi], 0
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
jne 0x516f47
xor ecx, ecx
jmp 0x516f59
mov ecx, esi
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x516f50
sub ecx, edx
push ecx
push esi
lea ecx, [esp + 0x14]
call fcn.00465aa0
lea ecx, [edi + 0x70]
mov byte [esp + 0x60], 1
lea eax, [esp + 0xc]
cmp ecx, eax
je 0x516f7e
push 0xffffffffffffffff
push 0
push eax
call fcn.004658c0
cmp dword [esp + 0x20], 0x10
jb 0x516f91
push dword [esp + 0xc]
call fcn.00549eaf
add esp, 4
mov dword [esp + 0x20], 0xf
mov al, 1
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
jmp 0x516fac
xor al, al
mov esi, dword [esp + 0x24]
mov byte [esp + 0x2f], al
mov dword [esp + 0x60], 0xffffffff
mov ecx, dword [esi]
test ecx, ecx
je 0x516fd3
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov al, byte [esp + 0x2f]
mov dword [esi], 0
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0054a992
add esp, 0x58
ret 4
Function at 0x51aba0
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
sub esp, 0x128
mov eax, dword [0x59b000]
xor eax, esp
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0x144]
movdqu xmm0, xmmword [esp + 0x12c]
push ebp
mov ebp, dword [esp + 0x14c]
push esi
push edi
mov dword [esp + 0x28], eax
mov edi, ecx
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 1
push eax
movdqu xmmword [esp + 0x14], xmm0
mov eax, dword [edi + 0x14]
xor esi, esi
movq xmm0, qword [esp + 0x14c]
push 0x8004667e
push eax
movq qword [esp + 0x2c], xmm0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0x1c
lea eax, [esp + 0x14]
push eax
mov eax, dword [edi + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x51ac81
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x51ac66
push 0x104
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0054b440
mov eax, dword [edi + 0x14]
add esp, 0xc
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 1
push ebp
push esi
push eax
mov eax, dword [edi + 0x14]
push esi
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
cmp esi, 0xffffffff
jne 0x51ac6b
or esi, 0xffffffff
jmp 0x51ac81
lea eax, [esp + 0x2c]
push eax
mov eax, dword [edi + 0x14]
push eax
call sub.WS2_32.dll___WSAFDIsSet
or ecx, 0xffffffff
test eax, eax
cmove esi, ecx
mov ecx, dword [edi + 0x14]
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [esp + 0x130]
mov eax, esi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0054a992
add esp, 0x128
ret 0x20

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

Disassembly:
push esi
push 0
push dword [esp + 0x14]
mov esi, ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x51b1d3
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
test al, al
je 0x51b18b
mov eax, dword [esi + 0x14]
push 0
push 0
push 0x444144
push eax
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
test al, al
je 0x51b1c4
mov eax, dword [esi + 0x14]
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jns 0x51b1b9
mov dword [esi + 0xc], 0x64
and dword [esi + 8], 0xfffffffd
mov dword [esi + 0x14], 0xffffffff
call fcn.004c5520
mov dword [esi + 0xc], 0x66
or eax, 0xffffffff
pop esi
ret 0xc
Function at 0x51b1e0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x120
mov eax, dword [0x59b000]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x128]
push ebx
push ebp
push esi
mov ebx, ecx
mov dword [esp + 0x10], eax
push edi
xor esi, esi
xor edi, edi
cmp dword [ebx + 0xa0], esi
je 0x51b33e
push 0x104
lea eax, [esp + 0x2c]
xorps xmm0, xmm0
push edi
push eax
movq qword [esp + 0x28], xmm0
call fcn.0054b440
add esp, 0xc
xor ebp, ebp
cmp dword [ebx + 0xa0], esi
jle 0x51b314
mov edi, dword [esp + 0x134]
mov eax, dword [ebx + 0xa0]
lea edx, [edi + 1]
mov ecx, 2
mov dword [esp + 0x20], 0x1388
cmp eax, ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], 1
cmovb ecx, eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
lea eax, [esp + 0x34]
mov dword [esp + 0x28], ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_select]
mov dword [esp + 0x10], eax
test eax, eax
jle 0x51b2cc
lea eax, [esp + 0x28]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x51b2fd
push 0
push dword [esp + 0x140]
push dword [esp + 0x1c]
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jns 0x51b30c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
jne 0x51b2fd
mov edi, dword [esp + 0x10]
xor esi, esi
jmp 0x51b314
jne 0x51b2fd
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x1c], 4
push eax
push 0x1007
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
js 0x51b335
add ebp, 2
cmp ebp, dword [ebx + 0xa0]
jl 0x51b246
mov edi, dword [esp + 0x10]
test esi, esi
jg 0x51b35e
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax + 0x10]
test esi, esi
jns 0x51b328
mov dword [ebx + 0xc], 0x67
test edi, edi
jle 0x51b359
test esi, esi
jne 0x51b359
lea eax, [esi - 2]
jmp 0x51b360
mov edi, dword [esp + 0x10]
or esi, 0xffffffff
jmp 0x51b314
push 0
push dword [esp + 0x140]
push eax
push dword [esp + 0x140]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
jmp 0x51b310
or eax, 0xffffffff
jmp 0x51b360
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0054a992
add esp, 0x120
ret 0xc
Function at 0x51b770
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x57b4d4
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x59b000]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov eax, dword [0x5a21f8]
test eax, eax
jne 0x51b832
push 4
call fcn.00549e5e
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x38], ebx
test esi, esi
je 0x51b806
mov dword [esi], ebx
lea ecx, [esp + 0x18]
push 9
push 0x44ede4
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00465aa0
mov dword [esp + 0x14], 0x4442f8
lea eax, [esp + 0x14]
mov byte [esp + 0x38], 1
mov ebx, 1
mov ecx, esi
push eax
mov dword [esp + 0x10], ebx
call fcn.0051c960
jmp 0x51b808
xor eax, eax
mov dword [0x5a21f8], eax
test bl, 1
je 0x51b832
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0x14], 0x4442f8
jb 0x51b832
push dword [esp + 0x18]
call fcn.00549eaf
mov eax, dword [0x5a21f8]
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret

Function at 0x51c1b0
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
mov edx, dword [esp + 0xc]
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
cmp edx, 0xffffffff
jae 0x51c301
mov eax, dword [esp + 0x14]
cmp edx, 4
jb 0x51c301
push ebx
push edi
mov cl, byte [eax]
test cl, cl
je 0x51c2ff
movsx ecx, cl
cmp ecx, 0x80
jae 0x51c2ff
movsx ecx, byte [ecx + 0x44ee50]
mov dword [esp + 0xc], ecx
cmp ecx, 0xffffffff
je 0x51c2ff
movsx ecx, byte [eax + 1]
cmp ecx, 0x80
jae 0x51c2ff
movsx ecx, byte [ecx + 0x44ee50]
mov dword [esp + 0x10], ecx
cmp ecx, 0xffffffff
je 0x51c2ff
mov bl, byte [eax + 2]
cmp bl, 0x3d
je 0x51c249
movsx edi, bl
cmp edi, 0x80
jae 0x51c2ff
cmp byte [edi + 0x44ee50], 0xff
je 0x51c2ff
mov bh, byte [eax + 3]
sub edx, 4
add eax, 4
mov byte [esp + 0x20], bh
cmp bh, 0x3d
je 0x51c277
movsx edi, bh
cmp edi, 0x80
jae 0x51c2ff
cmp byte [edi + 0x44ee50], 0xff
je 0x51c2ff
shl byte [esp + 0xc], 2
sar ecx, 4
and cl, 3
or cl, byte [esp + 0xc]
mov byte [esi], cl
inc esi
cmp bl, 0x3d
je 0x51c2f6
movsx edi, bl
cmp edi, 0x80
jae 0x51c2a2
movsx ecx, byte [edi + 0x44ee50]
jmp 0x51c2a5
or ecx, 0xffffffff
mov ebx, dword [esp + 0x10]
sar ecx, 2
shl bl, 4
and cl, 0xf
or cl, bl
mov bl, byte [esp + 0x20]
mov byte [esi], cl
inc esi
cmp bl, 0x3d
je 0x51c2f6
cmp edi, 0x80
jae 0x51c2d1
movsx ecx, byte [edi + 0x44ee50]
jmp 0x51c2d4
or ecx, 0xffffffff
movsx edi, bl
cmp edi, 0x80
jae 0x51c2e8
movsx ebx, byte [edi + 0x44ee50]
jmp 0x51c2eb
or ebx, 0xffffffff
shl cl, 6
and bl, 0x3f
or cl, bl
mov byte [esi], cl
inc esi
cmp edx, 4
jae 0x51c1d4
pop edi
pop ebx
sub esi, dword [esp + 0x10]
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x51c310
Capabilities:
Encode data using base64

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
mov eax, 0xaaaaaaab
push ebp
lea ecx, [ebx + 2]
mul ecx
mov ebp, edx
shr ebp, 1
shl ebp, 2
mov dword [esp + 0x18], ebp
cmp ebp, 0xbffffffd
ja 0x51c454
cmp ebx, 0xfffffffd
jae 0x51c454
cmp dword [esp + 0x10], ebp
jb 0x51c454
mov ecx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x18]
push edi
xor edi, edi
cmp ebx, 3
jb 0x51c3d9
mov eax, 0xaaaaaaab
mul ebx
mov ebp, edx
shr ebp, 1
lea edi, [ebp*4]
lea ecx, [ecx]
movzx eax, byte [esi]
sub ebx, 3
shr eax, 2
movzx eax, byte [eax + 0x44ee08]
mov byte [ecx], al
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
and edx, 3
shr eax, 4
shl edx, 4
or edx, eax
movzx eax, byte [edx + 0x44ee08]
mov byte [ecx + 1], al
movzx edx, byte [esi + 1]
movzx eax, byte [esi + 2]
and edx, 0xf
shr eax, 6
shl edx, 2
or edx, eax
movzx eax, byte [edx + 0x44ee08]
mov byte [ecx + 2], al
movzx eax, byte [esi + 2]
add esi, 3
and eax, 0x3f
movzx eax, byte [eax + 0x44ee08]
mov byte [ecx + 3], al
add ecx, 4
dec ebp
jne 0x51c370
mov ebp, dword [esp + 0x20]
test ebx, ebx
je 0x51c441
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + 0x44ee08]
mov byte [ecx], al
cmp ebx, 1
jne 0x51c408
movzx eax, byte [esi]
and eax, 3
shl eax, 4
mov al, byte [eax + 0x44ee08]
mov byte [ecx + 1], al
mov byte [ecx + 2], 0x3d
jmp 0x51c436
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
and edx, 3
shr eax, 4
shl edx, 4
or edx, eax
movzx eax, byte [edx + 0x44ee08]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
and eax, 0xf
movzx eax, byte [eax*4 + 0x44ee08]
mov byte [ecx + 2], al
add ecx, 3
add edi, 3
mov byte [ecx], 0x3d
inc ecx
inc edi
lea eax, [ebp + 1]
cmp dword [esp + 0x18], eax
mov eax, edi
jb 0x51c44f
mov byte [ecx], 0
pop edi
pop esi
pop ebp
pop ebx
ret
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x51cef0
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
sub esp, 0x154
mov eax, dword [0x59b000]
xor eax, esp
mov dword [esp + 0x150], eax
mov eax, ecx
mov edx, 0x40
push ebx
push ebp
push esi
movdqu xmm0, xmmword [eax + 0x1c]
mov ecx, dword [eax]
mov ebp, dword [eax + 4]
mov ebx, dword [eax + 0xc]
movdqu xmmword [esp + 0x1c], xmm0
mov dword [esp + 0x14], ecx
movdqu xmm0, xmmword [eax + 0x2c]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x10]
movdqu xmmword [esp + 0x2c], xmm0
push edi
movdqu xmm0, xmmword [eax + 0x3c]
mov edi, dword [eax + 8]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x28]
movdqu xmmword [esp + 0x40], xmm0
mov dword [esp + 0x1c], eax
movdqu xmm0, xmmword [eax + 0x4c]
movdqu xmmword [esp + 0x50], xmm0
lea ecx, [ecx]
mov eax, dword [ecx + 0x2c]
lea ecx, [ecx + 4]
xor eax, dword [ecx + 0x14]
xor eax, dword [ecx - 0xc]
xor eax, dword [ecx - 4]
rol eax, 1
mov dword [ecx + 0x34], eax
dec edx
jne 0x51cf60
mov edx, dword [esp + 0x14]
xor esi, esi
lea ecx, [ecx]
mov eax, ebx
mov ecx, edx
xor eax, edi
rol ecx, 5
and eax, ebp
xor eax, ebx
add ecx, eax
mov eax, dword [esp + 0x10]
add ecx, dword [esp + esi*4 + 0x20]
add eax, 0x5a827999
add eax, ecx
inc esi
mov ecx, ebx
mov ebx, edi
mov edi, ebp
mov dword [esp + 0x10], ecx
ror edi, 2
mov ebp, edx
mov edx, eax
cmp esi, 0x14
jl 0x51cf80
mov dword [esp + 0x14], edx
cmp esi, 0x28
jge 0x51cff6
mov edi, edi
mov ecx, ebx
rol eax, 5
xor ecx, edi
xor ecx, ebp
add eax, ecx
mov ecx, dword [esp + 0x10]
add eax, dword [esp + esi*4 + 0x20]
add ecx, 0x6ed9eba1
add eax, ecx
inc esi
mov ecx, ebx
mov ebx, edi
mov edi, ebp
mov dword [esp + 0x10], ecx
ror edi, 2
mov ebp, edx
mov edx, eax
cmp esi, 0x28
jl 0x51cfc0
mov dword [esp + 0x14], eax
cmp esi, 0x3c
jge 0x51d03c
jmp 0x51d000
mov edx, edi
rol eax, 5
add eax, dword [esp + 0x10]
or edx, ebp
and edx, ebx
mov ecx, edi
and ecx, ebp
or edx, ecx
mov ecx, ebx
add edx, 0x8f1bbcdc
mov dword [esp + 0x10], ecx
add edx, dword [esp + esi*4 + 0x20]
mov ebx, edi
add eax, edx
mov edi, ebp
mov ebp, dword [esp + 0x14]
inc esi
ror edi, 2
mov edx, eax
mov dword [esp + 0x14], edx
cmp esi, 0x3c
jl 0x51d000
cmp esi, 0x50
jge 0x51d071
mov ecx, ebx
rol eax, 5
add eax, dword [esp + 0x10]
xor ecx, edi
xor ecx, ebp
add ecx, 0xca62c1d6
add ecx, dword [esp + esi*4 + 0x20]
inc esi
add eax, ecx
mov ecx, ebx
mov ebx, edi
mov dword [esp + 0x10], ecx
mov edi, ebp
mov ebp, edx
ror edi, 2
mov edx, eax
cmp esi, 0x50
jl 0x51d041
mov edx, dword [esp + 0x1c]
add eax, dword [esp + 0x18]
add dword [edx + 8], edi
add dword [edx + 4], ebp
add dword [edx + 0x10], ecx
add dword [edx + 0xc], ebx
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov dword [edx], eax
call fcn.0054a992
add esp, 0x154
ret

Function at 0x51d0a0
Capabilities:
Hash data using sha1

Disassembly:
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x5c], 0
ret
Function at 0x51d740
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x2c4
mov eax, dword [0x59b000]
xor eax, esp
mov dword [esp + 0x2c0], eax
mov eax, dword [esp + 0x2d4]
push ebx
mov ebx, dword [esp + 0x2d0]
push ebp
push esi
mov dword [esp + 0xc], eax
mov ebp, ebx
xor esi, esi
xor eax, eax
push edi
mov edi, dword [esp + 0x2e0]
and ebp, 1
jne 0x51d785
test bl, 3
jne 0x51d85d
push 0x444144
lea eax, [esp + 0x1a8]
push 0x64
push eax
call fcn.0054db28
movzx eax, word [edi + 6]
push eax
movzx eax, word [edi + 4]
push eax
movzx eax, word [edi + 2]
push eax
movzx eax, word [edi]
push eax
lea eax, [esp + 0x1c0]
push eax
push 0x45014c
lea eax, [esp + 0x38]
push 0x64
push eax
call fcn.0054a950
movzx eax, word [edi + 8]
push eax
movzx eax, byte [edi + 0xb]
push eax
movzx eax, byte [edi + 0xa]
push eax
lea eax, [esp + 0x4c]
push eax
push 0x450160
lea eax, [esp + 0xb8]
push 0x64
push eax
call fcn.0054a950
add esp, 0x48
lea eax, [esp + 0x78]
push eax
push 0x44dfd0
lea eax, [esp + 0xe4]
push 0xc8
push eax
call fcn.0054a950
lea esi, [esp + 0xec]
add esp, 0x10
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x51d820
sub esi, ecx
cmp esi, 0xc8
jae 0x51d9da
mov byte [esp + esi + 0xdc], al
lea eax, [esi + 1]
push eax
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0x210]
push eax
call fcn.0054adf0
add esp, 0xc
mov eax, 1
test bl, 2
je 0x51d98e
cmp dword [esp + 0x2d8], 1
je 0x51d98e
cmp word [edi + 0x10], 0
jne 0x51d886
cmp word [edi + 0x12], 0
je 0x51d98e
xor ebx, ebx
test ebp, ebp
je 0x51d8b4
cmp eax, 1
jne 0x51d8bb
mov byte [esp + esi + 0x208], 0x7c
inc esi
cmp esi, 0xc8
jae 0x51d9da
lea ebx, [esp + 0x208]
add ebx, esi
mov byte [ebx], 0
jmp 0x51d8bb
lea ebx, [esp + 0x208]
push 0x444144
lea eax, [esp + 0x7c]
push 0x64
push eax
call fcn.0054db28
movzx eax, word [edi + 0x16]
push eax
movzx eax, word [edi + 0x14]
push eax
movzx eax, word [edi + 0x12]
push eax
movzx eax, word [edi + 0x10]
push eax
lea eax, [esp + 0x94]
push eax
push 0x45014c
lea eax, [esp + 0x38]
push 0x64
push eax
call fcn.0054a950
movzx eax, word [edi + 0x18]
push eax
movzx eax, byte [edi + 0x1b]
push eax
movzx eax, byte [edi + 0x1a]
push eax
lea eax, [esp + 0x4c]
push eax
push 0x450160
lea eax, [esp + 0x1e4]
push 0x64
push eax
call fcn.0054a950
add esp, 0x48
lea eax, [esp + 0x1a4]
push eax
push 0x44dfd0
lea eax, [esp + 0xe4]
push 0xc8
push eax
call fcn.0054a950
lea edi, [esp + 0xec]
add esp, 0x10
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x51d950
sub edi, ecx
cmp edi, 0xc8
jae 0x51d9da
mov byte [esp + edi + 0xdc], al
mov eax, 0xc8
sub eax, esi
cmp eax, edi
jb 0x51d98a
lea eax, [edi + 1]
push eax
lea eax, [esp + 0xe0]
push eax
push ebx
call fcn.0054adf0
add esp, 0xc
jmp 0x51d98c
xor edi, edi
add esi, edi
cmp esi, 0xc8
jae 0x51d9da
mov byte [esp + esi + 0x208], 0
cmp dword [esp + 0x2e8], esi
jb 0x51d9bf
lea eax, [esi + 1]
push eax
lea eax, [esp + 0x20c]
push eax
push dword [esp + 0x18]
call fcn.0054adf0
add esp, 0xc
mov ecx, dword [esp + 0x2d0]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0054a992
add esp, 0x2c4
ret
call fcn.0054f847
int3