joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412120
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4558b0
mov eax, dword fs:[0]
push eax
sub esp, 0x370
mov eax, dword [0x463064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x370], 0x114
movzx eax, byte [0x465e70]
test eax, eax
jne 0x4121fa
mov ecx, 1
imul edx, ecx, 0
mov dword [ebp - 0x35c], edx
cmp dword [ebp - 0x35c], 0x115
jae 0x412180
jmp 0x412185
call fcn.004478e7
mov eax, dword [ebp - 0x35c]
mov byte [ebp + eax - 0x128], 0
lea ecx, [ebp - 0x128]
push ecx
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x358], eax
lea edx, [ebp - 0x128]
push edx
lea eax, [ebp - 0x37c]
push eax
call fcn.0040f150
mov dword [ebp - 0x368], eax
mov ecx, dword [ebp - 0x368]
mov dword [ebp - 0x36c], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x36c]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040dcb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x37c]
call fcn.0040d110
jmp 0x412252
mov eax, 2
imul ecx, eax, 0
mov dword [ebp - 0x360], ecx
cmp dword [ebp - 0x360], 0x22a
jae 0x412216
jmp 0x41221b
call fcn.004478e7
xor edx, edx
mov eax, dword [ebp - 0x360]
mov word [ebp + eax - 0x354], dx
lea ecx, [ebp - 0x354]
push ecx
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x358], eax
lea edx, [ebp - 0x354]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040de30
mov eax, dword [ebp + 8]
push eax
call fcn.00414f00
cmp dword [ebp - 0x358], 0
je 0x41227c
cmp dword [ebp - 0x358], 0x114
jae 0x41227c
mov dword [ebp - 0x364], 1
jmp 0x412286
mov dword [ebp - 0x364], 0
mov al, byte [ebp - 0x364]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00447417
mov esp, ebp
pop ebp
ret 4

Function at 0x412780
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45550d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x463064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x465e70]
test eax, eax
jne 0x4127fe
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.0040f180
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
call fcn.0040d180
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0040d110
cmp dword [ebp - 0x18], 0
je 0x4127fc
mov al, 1
jmp 0x412816
jmp 0x412814
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x412814
mov al, 1
jmp 0x412816
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x413790
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45582d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x463064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x465e70]
test eax, eax
jne 0x413805
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.0040f180
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
call fcn.0040d180
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040d110
mov eax, dword [ebp - 0x1c]
jmp 0x413820
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x41381d
mov eax, dword [ebp - 0x10]
jmp 0x413820
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x413d60
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x413d97
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x413d97
xor al, al
jmp 0x413db4
xor edx, edx
mov eax, dword [ebp - 4]
mov cl, 0x20
call fcn.00447490
xor ecx, ecx
add eax, dword [ebp - 8]
adc edx, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x414350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0xc], 0x400000
jbe 0x414369
mov dword [ebp + 0xc], 0x400000
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call fcn.004107f0
mov byte [ebp - 1], al
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415bb0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x463064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], SysReAllocStringLen
mov dword [eax + 4], ecx
mov dword [ebp - 0x64], 0x40
push str.GlobalMemoryStatusEx
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x415c21
lea edx, [ebp - 0x64]
push edx
call dword [ebp - 0x68]
test eax, eax
je 0x415c21
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00415a90
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
jmp 0x415c4b
mov dword [ebp - 0x24], 0x20
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00415a60
xor edx, edx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447417
mov esp, ebp
pop ebp
ret 4

Function at 0x42c020
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456e3d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x463064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0x98
call fcn.0042c120
mov ecx, dword [ebp - 0x14]
add ecx, 0x18
call fcn.0040d330
mov ecx, dword [ebp - 0x14]
add ecx, 0x24
call fcn.0040d390
mov ecx, dword [ebp - 0x14]
add ecx, 0x30
call fcn.0040d390
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x14], 0
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x15], 0
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x14]
add ecx, 0x44
call fcn.0040dcb0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x44
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.0040df30
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
call fcn.0040d180
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x60
call fcn.00413770
movzx ecx, al
test ecx, ecx
jne 0x42c0dc
mov dword [ebp - 0x18], 1
jmp 0x42c0e3
mov dword [ebp - 0x18], 0
mov dl, byte [ebp - 0x18]
mov byte [ebp - 0xd], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040d110
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x42c107
call fcn.00413d30
jmp 0x42c109
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4329e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455da0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x463064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00430c30
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0042db70
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.0040d110
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.0040d080
mov ecx, dword [ebp - 0x10]
call fcn.00432950
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x445760
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x463064]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.00448bb0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0xffffffff
je 0x445833
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x210]
push ecx
call fcn.00445c50
mov dword [ebp - 0x218], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call fcn.00447696
add esp, 4
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x214]
mov dword [ecx], edx
push 0
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447417
mov esp, ebp
pop ebp
ret 8

Function at 0x445c50
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x445c82
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x445c82
xor al, al
jmp 0x445c9f
xor edx, edx
mov eax, dword [ebp - 4]
mov cl, 0x20
call fcn.00447490
xor ecx, ecx
add eax, dword [ebp - 8]
adc edx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x44ccdc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44cd1b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44cd1b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44cd1b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44cd1b
cmp dword [ecx + 0x74], 0xe
jbe 0x44cd1b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x44f250
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45bde4
push 0x45bddc
push str.FlsAlloc
push 0x1f
call fcn.0044f12c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44f284
push dword [ebp + 8]
mov ecx, esi
call dword [0x45825c]
call esi
jmp 0x44f28a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x44f2ce
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45bdf4
push 0x45bdec
push str.FlsGetValue
push 0x21
call fcn.0044f12c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44f305
push dword [ebp + 8]
mov ecx, esi
call dword [0x45825c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x44f30d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45bdfc
push 0x45bdf4
push str.FlsSetValue
push 0x22
call fcn.0044f12c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44f347
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x45825c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4508e2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x45097f
push ebx
push esi
call fcn.004508ab
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0044ef4a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x45092c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45097e
push edi
push eax
call fcn.0044eb61
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x45094c
call fcn.0044eb27
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45097d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044ef4a
add esp, 0x20
test eax, eax
jne 0x45096b
push edi
call fcn.0044eb27
jmp 0x450973
push ebx
call fcn.0044eb27
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x5e2d86
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
pushal
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
test eax, eax
je 0x5e2e24
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x5e2e24
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
cmp word [eax], 0x5a4d
jne 0x5e2e24
mov ebx, dword [eax + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
jne 0x5e2e24
mov ebx, dword [eax + 0x34]
mov dword [ebp - 0xc], ebx
mov ebx, dword [eax + 0x50]
mov dword [ebp - 8], ebx
push edi
push 4
push 0x2000
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [edi + 0x122d22f5]
pop edi
test eax, eax
jne 0x5e2e17
push edi
push 4
push 0x2000
push dword [ebp - 8]
push 0
call dword [edi + 0x122d22f5]
pop edi
test eax, eax
je 0x5e2e24
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x14], eax
mov dword [ebp - 0x10], 1
popal
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x5e2ea9
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
pushal
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x14]
mov dword [ebp - 8], ebx
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov ebx, dword [eax + 0x3c]
add eax, ebx
lea ebx, [eax + 0x18]
movzx ecx, word [eax + 0x14]
add ebx, ecx
movzx ecx, word [eax + 6]
test ecx, ecx
je 0x5e2f55
push ecx
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0x10]
cmp ecx, edx
jae 0x5e2eea
mov ecx, edx
mov dword [ebp - 4], ecx
mov eax, dword [ebx + 0xc]
add eax, dword [ebp - 8]
push ecx
push edi
push 4
push 0x1000
push dword [ebp - 4]
push eax
call dword [edi + 0x122d22f5]
pop edi
pop ecx
test eax, eax
je 0x5e2f48
push edi
mov edi, eax
xor eax, eax
push ecx
push edi
rep stosb byte es:[edi], al
pop edi
pop ecx
mov edx, dword [ebx + 0x10]
cmp ecx, edx
jl 0x5e2f28
mov ecx, edx
mov esi, dword [ebx + 0x14]
add esi, dword [ebp - 0xc]
lea eax, [ebx + 0x10]
cmp dword [eax + 4], 0
je 0x5e2f3d
rep movsb byte es:[edi], byte [esi]
pop edi
add ebx, 0x28
pop ecx
dec ecx
jmp 0x5e2ed1
pop ecx
mov dword [ebp - 0x10], 0
jmp 0x5e2f5c
mov dword [ebp - 0x10], 1
popal
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x5e3176
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x14], eax
mov ebx, dword [eax + 0x3c]
add eax, ebx
lea ebx, [eax + 0x18]
movzx ecx, word [eax + 0x14]
add ebx, ecx
movzx ecx, word [eax + 6]
test ecx, ecx
je 0x5e31f0
push ecx
mov ecx, dword [ebx + 0xc]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebx + 0x24]
push edx
call fcn.005e311b
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [edi + 0x122d1e2f]
pop edi
test eax, eax
jne 0x5e31e6
pop ecx
jmp 0x5e31f7
add ebx, 0x28
pop ecx
dec ecx
jmp 0x5e319f
mov dword [ebp - 0x18], 1
popal
mov eax, dword [ebp - 0x18]
leave
ret 4
Function at 0x5e339d
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 0x18], 0
jne 0x5e34f1
cmp dword [ebp + 0xc], 0
jne 0x5e34f1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x5e33e4
sub eax, dword [ebp + 0x10]
js 0x5e34f1
je 0x5e34f1
cmp eax, dword [ebp + 0x14]
jl 0x5e34f1
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
cmp word [eax], 0x5a4d
jne 0x5e34f1
mov ebx, dword [eax + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
jne 0x5e34f1
mov ebx, dword [eax + 0x50]
push edi
push 4
push 0x1000
push ebx
push 0
call dword [edi + 0x122d22f5]
pop edi
test eax, eax
je 0x5e34f1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
pop ebx
lea eax, [ebp - 0x18]
push edi
push eax
lea eax, [edi + 0x124a7754]
push eax
call fcn.005e2405
pop edi
test eax, eax
je 0x5e34f1
lea eax, [ebp - 0x18]
push edi
push eax
lea eax, [edi + 0x124a7758]
push eax
call fcn.005e2405
pop edi
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 0x3c]
add eax, ebx
mov eax, dword [eax + 0x54]
mov dword [ebp - 0xc], eax
push edi
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x1c]
mov esi, dword [esi + 4]
rep movsb byte es:[edi], byte [esi]
pop edi
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
mov ebx, dword [eax + 0x3c]
add eax, ebx
lea ebx, [eax + 0x18]
movzx ecx, word [eax + 0x14]
add ebx, ecx
movzx ecx, word [eax + 6]
test ecx, ecx
je 0x5e34e4
push ecx
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
add eax, dword [ebp - 8]
test eax, eax
je 0x5e34f1
push edi
mov edi, eax
xor eax, eax
push ecx
push edi
rep stosb byte es:[edi], al
pop edi
pop ecx
mov edx, dword [ebx + 0x10]
cmp ecx, edx
jl 0x5e34d1
mov ecx, edx
mov esi, dword [ebx + 0x14]
add esi, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
pop edi
add ebx, 0x28
pop ecx
dec ecx
jmp 0x5e349f
push dword [ebp + 8]
call fcn.005e4293
jmp 0x5e34f8
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
leave
ret 0x14
Function at 0x5e3883
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
pushal
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x5e3972
mov ecx, eax
mov ebx, dword [ecx + 0x3c]
add ecx, ebx
mov ecx, dword [ecx + 0x7c]
test ecx, ecx
je 0x5e3972
mov dword [ebp - 4], ecx
mov ebx, eax
mov ecx, dword [ebx + 0x3c]
add ebx, ecx
mov ebx, dword [ebx + 0x78]
add ebx, eax
mov dword [ebp - 8], ebx
mov eax, dword [ebp + 0xc]
test eax, 0xffff0000
je 0x5e391e
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x5e3972
dec ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x20]
add eax, dword [ebp - 0xc]
push ecx
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
add eax, dword [ebp - 0xc]
push edi
push dword [ebp + 0xc]
push eax
call dword [edi + 0x124a78b4]
pop edi
pop ecx
test eax, eax
jne 0x5e38d7
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 0xc]
shl ecx, 1
add eax, ecx
movzx ecx, word [eax]
jmp 0x5e3924
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebx + 0x10]
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x14]
cmp ecx, eax
jge 0x5e3972
mov eax, dword [ebp - 0xc]
mov edx, dword [ebx + 0x1c]
add edx, eax
shl ecx, 2
add edx, ecx
cmp dword [edx], 0
je 0x5e3972
mov ebx, dword [edx]
add eax, ebx
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 8]
jle 0x5e3972
sub eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jge 0x5e3972
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.005e37cc
mov dword [ebp - 0x10], eax
popal
mov eax, dword [ebp - 0x10]
leave
ret 8

Function at 0x5eeb00
Capabilities:
Encode data using xor

Disassembly:
dec ebx
loop 0x5eeb1f
ljmp 0x8523:0xe19a6dd1
out dx, al
push cs
imul edi, dword [edx], 0x4a2fed6a
out 0xfb, eax
sbb eax, 0x52842186
adc ah, byte [esi - 5]
cmp ch, byte gs:[edx + 0x76]
mov al, 0x7c
jbe 0x5eebaf
imul edi, dword [edx], 0x3a70cf6a
push 0x76
mov al, 0x7c
jbe 0x5eebba
imul edi, dword [edx], 0x74f3f36a
retf 0x7b2b
sub eax, 0x61fa654c
cmp ch, byte [edx + 0x76]
push edx
adc ah, byte [esi - 5]
sti
jp 0x5eebed
push 0x76
cwde
lodsb al, byte [esi]
invalid
dec edx
jne 0x5eec24
aaa
std
jns 0x5eeb43
xlatb
jo 0x5eeba5
cwde
ret 0xcf3c
mov al, byte [0x98437636]
lodsb al, byte [esi]
invalid
loopne 0x5eec61
aaa
add byte [esi - 0x7f], ch
das
sbb esp, ecx
cwde
xchg ebx, eax
add byte [esi + 0x39], dh
and ch, byte [ecx + 0x113698dc]
scasd eax, dword es:[edi]
stosd dword es:[edi], eax
cmp eax, 0x1ce24b6a
ljmp 0x6975
cwde
lodsb al, byte [esi]
invalid
Function at 0x4073e2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461134], 0
jne 0x407420
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4073f6
mov dword [ecx*4 + 0x461130], eax
inc ecx
cmp ecx, 0x100
jl 0x4073f1
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40744d
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461130]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40742e
not eax
pop ebp
ret 0xc

Function at 0x44615a
Capabilities:
Parse pe header

Disassembly:
push eax
push ecx
push esi
push ebp
mov eax, dword fs:[0x30]
test eax, eax
js 0x44614a