joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d45c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d92cb
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x640844]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [ebp - 4], 0
mov dword [esi], 0
call fcn.004c4e40
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x3d0], 0
mov dword [esi + 0x3d4], 0
test ecx, ecx
je 0x4d4627
lock inc dword [ecx + 4]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x3d0], eax
mov dword [esi + 0x3d4], ecx
push 0x420
mov byte [ebp - 4], 2
call fcn.004ece2f
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
mov byte [ebp - 4], 3
test ebx, ebx
je 0x4d476e
mov edi, dword [esi + 0x3d4]
test edi, edi
je 0x4d466c
lock inc dword [edi + 4]
mov edi, dword [esi + 0x3d4]
mov eax, dword [esi + 0x3d0]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
lea eax, [esi + 4]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebx + 4]
mov dword [ebx], vtable.AsyncOfferInstall::AsyncOfferInstallImpl.0
call fcn.004c4e40
xorps xmm0, xmm0
mov dword [ebx + 0x3d0], 0
movq qword [ebx + 0x3d8], xmm0
lea eax, [ebx + 0x3e0]
push 0x102
push eax
call fcn.004d8036
mov dword [ebx + 0x410], 0
mov dword [ebx + 0x414], 0
lea eax, [ebx + 0x418]
mov byte [ebp - 4], 8
push eax
call fcn.0048fda0
push 8
mov byte [ebp - 4], 9
call fcn.004ece2f
add esp, 0x10
test eax, eax
je 0x4d46f5
mov dword [eax], 0x4d49a0
mov dword [eax + 4], ebx
jmp 0x4d46f7
xor eax, eax
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
push ecx
push 0
push eax
push 0x44a600
push 0
push 0
call fcn.004f8f45
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x4d47b5
cmp dword [ebx + 0x3dc], 0
jne 0x4d47b0
mov eax, dword [ebp - 0x18]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebx + 0x3d8], ecx
mov dword [ebx + 0x3dc], eax
test edi, edi
je 0x4d4770
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x4d4770
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x4d4770
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x4d4770
xor ebx, ebx
mov edi, dword [ebp + 0x10]
mov dword [esi], ebx
test edi, edi
je 0x4d479a
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x4d479a
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x4d479a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.004f8dad
push 6
mov dword [ebp - 0x18], 0
call fcn.004d835f
int3
Function at 0x4d68f0
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x640844]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], 0
push eax
push 0
mov ebx, ecx
or esi, 0xffffffff
push 0
push 0
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x4d6a11
nop word [eax + eax]
mov edi, dword [ebp - 0x108]
test edi, edi
je 0x4d6a63
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.004ef230
add esp, 0xc
mov dword [ebp - 0x10c], 0
lea eax, [ebp - 0x10c]
cmp edi, 0xfe
push 0
push eax
mov eax, 0xfe
cmova edi, eax
lea eax, [ebp - 0x104]
push edi
push eax
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d6a11
mov eax, dword [ebp - 0x10c]
test eax, eax
je 0x4d6a11
mov word [ebp + eax - 0x104], 0
cmp esi, 0xffffffff
jne 0x4d6a4c
cmp eax, 4
jb 0x4d69d3
cmp byte [ebp - 0x103], 0
jne 0x4d6a37
cmp byte [ebp - 0x101], 0
jne 0x4d6a37
mov esi, 1
lea eax, [ebp - 0x104]
push eax
push 0x5e5f58
call fcn.0043c3f0
add esp, 8
mov dword [ebp - 0x108], 0
lea eax, [ebp - 0x108]
push 0
push eax
push 0
push 0
push 0
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x4d6940
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x4d6a79
cmp eax, 0xe8
je 0x4d6a79
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ed0cc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x104]
xor esi, esi
push eax
push 0x5e0f64
call fcn.00438280
jmp 0x4d69e4
test esi, esi
jne 0x4d69d3
lea eax, [ebp - 0x104]
push eax
push 0x5e0f64
call fcn.00438280
jmp 0x4d69e4
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ed0cc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ed0cc
mov esp, ebp
pop ebp
ret

Function at 0x50a1bb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00509e6c

Function at 0x50a1c6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00509ff6

Function at 0x510b80
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005106d3
Function at 0x52aa30
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x600], 0
je 0x52aa74
push esi
push 1
push edi
call fcn.0051c120
push dword [edi + 0x594]
mov eax, dword [edi + 0x600]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.0051c120
add esp, 0x24
mov eax, esi
pop esi
pop edi
ret
mov edx, dword [esp + 0xc]
mov ecx, edx
sub ecx, 0
je 0x52aa89
sub ecx, 1
je 0x52aa89
sub ecx, 1
jne 0x52aaba
push dword [edi + 0x590]
lea eax, [edx*2 + 0x5f2ee8]
push 1
add eax, edx
push 2
push eax
call fcn.004f8637
push dword [edi + 0x590]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.004f8637
add esp, 0x20
xor eax, eax
pop edi
ret

Function at 0x52b1c0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x640844]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x94]
push ebx
mov ebx, dword [esp + 0x94]
mov dword [esp + 8], eax
xor eax, eax
push ebp
mov ebp, dword [esp + 0xa8]
mov ecx, dword [ebx + 0x1c4]
cmp edx, ecx
push esi
sete al
mov esi, 0x1e4
push edi
lea eax, [eax*4 + 0x1c0]
mov eax, dword [eax + ebx]
mov dword [esp + 0x10], eax
mov eax, 0x1f4
cmove esi, eax
mov eax, dword [ebx + 0x2c8]
add esi, ebx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x52b2ce
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x1d4]
cmp dword [eax + ebx], 0x52ad80
jne 0x52b2ce
cmp dword [esi], 0
je 0x52b258
test edi, edi
je 0x52b2ce
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.0052df00
add esp, 0x14
cmp eax, 0xffffffff
je 0x52b2ce
test al, 1
je 0x52b2ce
mov ecx, dword [esi]
test ecx, ecx
jne 0x52b2ab
mov eax, dword [ebx]
mov eax, dword [eax + 0x8e4]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x6412b0]
mov edi, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x52b2c7
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x52b2ce
add dword [esi + 8], eax
jmp 0x52b2ce
mov dword [esi + 4], 0
push 0
push dword [esp + 0xb0]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x52b337
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x52b308
mov dword [ebp], 0
lea eax, [edi + 0x52]
jmp 0x52b33c
push 0x80
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.00552980
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.0052aac0
mov eax, dword [ebx]
add esp, 0x18
mov dword [eax + 0xcb4], esi
mov eax, 0x37
jmp 0x52b339
xor eax, eax
mov dword [ebp], edi
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ed0cc
add esp, 0x8c
ret
Function at 0x52d4b0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x52d4ca
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push 0x5f3368
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x5f3378
push esi
call fcn.00516bf0
add esp, 8
test eax, eax
je 0x52d512
test ebp, ebp
je 0x52d503
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x52d538
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x52d538
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x52d5ef
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x52d555
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x6412b0]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x52d5e5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x52d5e5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x52d587
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x52d5a0
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x52d5b0
test ebp, ebp
je 0x52d5dc
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x6412b4]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x6412b4]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x54d940
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x640844]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
mov ebp, dword [esp + 0x98]
lea eax, [esp + 8]
push esi
push edi
push eax
mov edi, dword [ebp + 0x4a8]
lea eax, [esp + 0x1c]
mov ebx, dword [ebp]
push eax
mov dword [esp + 0x18], 0x80
mov eax, dword [edi + 0x154]
push 0
add eax, 4
push eax
push dword [edi + 0x15c]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x148], 0
mov dword [edi + 0x14c], eax
jne 0x54d9c6
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea eax, [edi + 0xc8]
push eax
call fcn.004eecb0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi + 0x148], eax
mov esi, dword [edi + 0x14c]
cmp esi, 4
jge 0x54da01
push str.Received_too_short_packet
push ebx
call fcn.0052aac0
add esp, 8
mov dword [edi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ed0cc
add esp, 0x8c
ret
mov edx, dword [edi + 0x15c]
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
mov dword [edi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x54da20.1
jmp dword [ecx*4 + 0x54db34]
cmp esi, 4
jle case.0x54da20.4
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x54da20.4
lea eax, [esi - 4]
push eax
lea eax, [edx + 4]
push eax
push 1
push ebp
call fcn.0052aa00
mov esi, eax
add esp, 0x10
test esi, esi
je 0x54da78
push 5
push edi
call fcn.0054e4e0
add esp, 8
mov eax, esi
jmp 0x54d9e8
mov eax, dword [edi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x98], eax
adc dword [ebx + 0x9c], edx
push dword [ebx + 0x9c]
push dword [ebx + 0x98]
push ebx
call fcn.00538050
jmp 0x54db08
movzx ecx, byte [edx + 2]
lea eax, [edx + 4]
mov dword [esp + 0x14], eax
add esi, 0xfffffffc
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
lea eax, [edx + 4]
push esi
push eax
mov dword [edi + 8], ecx
call fcn.0054d610
add esp, 8
cmp eax, esi
jae case.0x54da20.4
push dword [esp + 0x14]
push str.TFTP_error:__s_n
push ebx
call fcn.0052abb0
jmp 0x54db08
lea eax, [esi - 2]
push eax
lea eax, [edx + 2]
push eax
push edi
call fcn.0054d6c0
add esp, 0xc
test eax, eax
je case.0x54da20.4
jmp 0x54d9e8
push str.Internal_error:_Unexpected_packet
push 0x5e0f64
push ebx
call fcn.0052aac0
add esp, 0xc
push ebp
call fcn.00538420
add esp, 4
test eax, eax
je 0x54d9e6
push 5
push edi
call fcn.0054e4e0
add esp, 8
mov eax, 0x2a
jmp 0x54d9e8
Function at 0x5608b0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x5608f5
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x8002
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push dword [esp + 0x18]
call fcn.0052d250
add esp, 4
push 0
push eax
push dword [esp + 0x1c]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [esp], 0x10
jne 0x56094c
push 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x18]
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp + 8]
test eax, eax
je 0x56095b
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x56096c
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0xc
ret

Function at 0x5609c0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x6412b0]
mov edi, eax
add esp, 4
test edi, edi
jne 0x5609e7
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x560a32
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [esp + 0x20], ebx
jmp 0x560a36
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x560a96
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x560a55
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x560ac7
nop dword [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0x5fd286
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x5fd287
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x560aa0
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x595280
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
push dword [esp + 0x10]
call fcn.00595350
mov edi, eax
add esp, 8
test edi, edi
jne 0x595311
push 0xaf
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.0056f540
push 0x61a01c
push esi
push 0x61a020
push dword [esp + 0x2c]
push str.fopen_
push 5
call fcn.0056ed90
add esp, 0x2c
call fcn.004f24f9
cmp dword [eax], 2
je 0x5952ef
call fcn.004f24f9
cmp dword [eax], 6
je 0x5952ef
lea eax, [edi + 2]
mov ecx, 0xb8
jmp 0x5952f9
mov eax, 0x80
mov ecx, 0xb6
push ecx
push str..crypto_bio_bss_file.c
push eax
push 0x6d
push 0x20
call fcn.0056f540
add esp, 0x14
xor eax, eax
pop edi
pop esi
ret
push 0x641818
call fcn.0056e280
mov esi, eax
add esp, 4
test esi, esi
jne 0x595332
push edi
call fcn.004f7b75
add esp, 4
xor eax, eax
pop edi
pop esi
ret
push 0
push esi
call fcn.0056deb0
push edi
push 1
push 0x6a
push esi
call fcn.0056dee0
add esp, 0x18
mov eax, esi
pop edi
pop esi
ret

Function at 0x596a40
Capabilities:
Encode data using base64

Disassembly:
mov eax, 4
call fcn.004ed3f0
push esi
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 4], ecx
test esi, esi
jle 0x596b43
mov edx, dword [esp + 0xc]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x1c]
inc edi
nop dword [eax]
movzx eax, byte [edi - 1]
cmp esi, 3
jb 0x596ac8
movzx ecx, byte [edi]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 1]
shl eax, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 1], cl
mov ecx, eax
and ecx, 0x3f
shr eax, 6
add edx, 2
and eax, 0x3f
mov bl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, edx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x596b14
shl eax, 0x10
cmp esi, 2
jne 0x596ad8
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 1], cl
add edx, 2
mov ecx, edx
cmp esi, 1
jne 0x596b06
mov al, 0x3d
jmp 0x596b12
shr eax, 6
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov bl, 0x3d
lea ebp, [ecx + 2]
mov byte [edx], al
mov byte [ecx + 1], bl
sub esi, 3
mov ecx, dword [esp + 0x10]
add edi, 3
add ecx, 4
mov edx, ebp
mov dword [esp + 0x10], ecx
test esi, esi
jg 0x596a70
pop edi
mov byte [ebp], 0
mov eax, ecx
pop ebp
pop ebx
pop esi
pop ecx
ret
mov eax, dword [esp + 0xc]
pop esi
mov byte [eax], cl
mov eax, ecx
pop ecx
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0xe62abc
Capabilities:
Encode data using xor

Disassembly:
jmp 0xe62ac6
pushal
call 0xe62acc
pop ebp
sub ebp, 0x10
sub ebp, 0xa62abc
jmp 0xe62ae2
mov eax, 0xa62abc
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c3
mov edx, 0x6fab9623
xor byte [eax], dl
inc eax
dec ecx
jne 0xe62af9
jmp 0xe62b0c
test al, 0xee
test al, 0xaa
pop ds
and esp, dword [ebx]
and esp, dword [edx + 0x2323dbe2]
and esp, dword [eax]
out dx, al
wait
and eax, 0x99232323
or esp, dword [ebx]
and esp, dword [ebx]
aam 0xc1
and bl, ch
test al, 0xa2
das
and esp, dword [ebx]
and esp, dword [eax]
out 0x73, al
scasb al, byte es:[edi]
inc edi
pop es
fild qword [edx + 0x534b0727]
cmpsd dword [esi], dword es:[edi]
and ecx, dword ds:[ebx + 0x6f]
test dword [ebx + 0x70f2223], ebp
dec ebx
push ebp
test al, 0x2a
xor bl, cl
and esp, dword es:[ebx]
and ecx, edx
pop ss
and esp, dword [ebx]
and ebp, dword [esi - 0x5520f8b9]
sysret
Function at 0x4035a0
Capabilities:
Set current directory

Disassembly:
test al, al
je 0x4035b4
inc dword [0x4c7614]
add dword [0x4c39ac], 0x110
mov edx, dword [0x4c39ac]
push esi
push edi
mov ecx, 0x44
mov esi, 0x4c60d8
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xc]
mov esi, edx
mov dword [esi + 0x2c], ecx
test al, al
je 0x4035e3
push 0
mov eax, 0x4c9630
call fcn.00415e30
cmp dword [0x4c7640], 0
mov dword [0x4ca100], 0
mov dword [0x4ca104], 0
je 0x40360b
push 0x4c7ca8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [esp + 0x10], 0
jne 0x40368f
or ecx, 0xffffffff
cmp byte [esi + 0xee], 0
jne 0x40363a
xor eax, eax
cmp byte [esp + 0x14], 0x65
sete al
mov byte [esi + 0xee], al
test al, al
je 0x40363a
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x4ca10c], 0
je 0x40364c
cmp dword [0x4ca108], 0
jne 0x403655
cmp byte [esi + 0xee], 0
je 0x40368f
cmp byte [esi + 0xee], 0
mov byte [esi + 0xec], 0
jne 0x40368f
cmp dword [0x4ca10c], 0
jge 0x403677
pop edi
mov dword [esi + 0xe0], ecx
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xdc], eax
mov edx, dword [0x4ca10c]
mov dword [esi + 0xe0], edx
pop edi
pop esi
ret