joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10057530
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
imul eax, dword [ebp + 8], 0x2c
add eax, dword [0x100b82b0]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 5
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x10057574
mov eax, dword [ebp - 8]
sub eax, 5
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
add ecx, 2
mov dword [ebp - 0xc], ecx
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10057596
mov eax, 0xa
jmp 0x10057681
cmp dword [ebp + 0xc], 0
je 0x100575e2
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov byte [eax], 0xe9
mov ecx, dword [ebp - 8]
add ecx, 5
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
sub eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 1], eax
mov edx, dword [ebp - 4]
mov al, byte [edx + 0x14]
and al, 1
movzx ecx, al
test ecx, ecx
je 0x100575e0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov byte [ecx], 0xeb
mov edx, dword [ebp - 0x14]
mov byte [edx + 1], 0xf9
jmp 0x10057622
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x1005760f
mov eax, dword [ebp - 4]
add eax, 0xc
mov ecx, dword [ebp - 8]
mov edx, dword [eax]
mov dword [ecx], edx
mov dx, word [eax + 4]
mov word [ecx + 4], dx
mov al, byte [eax + 6]
mov byte [ecx + 6], al
jmp 0x10057622
mov ecx, dword [ebp - 4]
add ecx, 0xc
mov edx, dword [ebp - 8]
mov eax, dword [ecx]
mov dword [edx], eax
mov cl, byte [ecx + 4]
mov byte [edx + 4], cl
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov dl, byte [ebp + 0xc]
and dl, 1
shl dl, 1
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 0xfd
or cl, dl
mov edx, dword [ebp - 4]
mov byte [edx + 0x14], cl
mov al, byte [ebp + 0xc]
and al, 1
shl al, 2
mov ecx, dword [ebp - 4]
mov dl, byte [ecx + 0x14]
and dl, 0xfb
or dl, al
mov eax, dword [ebp - 4]
mov byte [eax + 0x14], dl
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10057cb0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x10057cf9
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x90
je 0x10057cf9
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + eax]
cmp edx, 0xcc
je 0x10057cf9
xor eax, eax
jmp 0x10057d3a
mov dword [ebp - 4], 1
jmp 0x10057d0b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10057d35
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov ecx, 1
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
cmp eax, edx
je 0x10057d33
xor eax, eax
jmp 0x10057d3a
jmp 0x10057d02
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4011a4
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, 0x40a5dc
cmp dword [esi], 0
jne 0x4011ea
push 0x644
push 0
call sub.KERNEL32.DLL_TerminateProcess
mov ecx, eax
test ecx, ecx
jne 0x4011c7
xor eax, eax
pop esi
pop ebx
ret
mov eax, dword [0x40a5d8]
mov dword [ecx], eax
mov dword [0x40a5d8], ecx
xor edx, edx
mov eax, edx
add eax, eax
lea eax, [ecx + eax*8 + 4]
mov ebx, dword [esi]
mov dword [eax], ebx
mov dword [esi], eax
inc edx
cmp edx, 0x64
jne 0x4011d6
mov eax, dword [esi]
mov edx, dword [eax]
mov dword [esi], edx
pop esi
pop ebx
ret

Function at 0x401348
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
cmp esi, 0x100000
jge 0x40135e
mov esi, 0x100000
jmp 0x40136a
add esi, 0xffff
and esi, 0xffff0000
mov dword [ebx + 4], esi
push 1
push 0x2000
push esi
push 0
call sub.KERNEL32.DLL_WriteFile
mov edi, eax
mov dword [ebx], edi
test edi, edi
je 0x4013a7
mov edx, ebx
mov eax, 0x40a5e0
call fcn.004011fc
test al, al
jne 0x4013a7
push 0x8000
push 0
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_GetModuleHandleA
xor eax, eax
mov dword [ebx], eax
pop edi
pop esi
pop ebx
ret

Function at 0x4013ac
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, ecx
mov esi, edx
mov ebp, eax
mov dword [ebx + 4], 0x100000
push 4
push 0x2000
push 0x100000
push ebp
call sub.KERNEL32.DLL_WriteFile
mov edi, eax
mov dword [ebx], edi
test edi, edi
jne 0x4013f6
add esi, 0xffff
and esi, 0xffff0000
mov dword [ebx + 4], esi
push 4
push 0x2000
push esi
push ebp
call sub.KERNEL32.DLL_WriteFile
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x40141e
mov edx, ebx
mov eax, 0x40a5e0
call fcn.004011fc
test al, al
jne 0x40141e
push 0x8000
push 0
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_GetModuleHandleA
xor eax, eax
mov dword [ebx], eax
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4014dc
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], ecx
mov dword [esp], edx
mov edx, eax
mov ebp, edx
and ebp, 0xfffff000
add edx, dword [esp]
add edx, 0xfff
and edx, 0xfffff000
mov dword [esp + 8], edx
mov eax, dword [esp + 4]
mov dword [eax], ebp
mov eax, dword [esp + 8]
sub eax, ebp
mov edx, dword [esp + 4]
mov dword [edx + 4], eax
mov esi, dword [0x40a5e0]
jmp 0x40155e
mov ebx, dword [esi + 8]
mov edi, dword [esi + 0xc]
add edi, ebx
cmp ebp, ebx
jbe 0x401530
mov ebx, ebp
cmp edi, dword [esp + 8]
jbe 0x40153a
mov edi, dword [esp + 8]
cmp edi, ebx
jbe 0x40155c
push 4
push 0x1000
sub edi, ebx
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
test eax, eax
jne 0x40155c
mov eax, dword [esp + 4]
xor edx, edx
mov dword [eax], edx
jmp 0x401566
mov esi, dword [esi]
cmp esi, 0x40a5e0
jne 0x401522
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4018f4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
cmp byte [0x40a5b8], 0
je 0x4019d1
xor edx, edx
push ebp
push 0x4019ca
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x40a045], 0
je 0x401926
push 0x40a5c0
call sub.KERNEL32.DLL_TlsGetValue
mov byte [0x40a5b8], 0
mov eax, dword [0x40a618]
push eax
call sub.KERNEL32.DLL_VirtualQuery
xor eax, eax
mov dword [0x40a618], eax
mov ebx, dword [0x40a5e0]
jmp 0x401959
push 0x8000
push 0
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, dword [ebx]
cmp ebx, 0x40a5e0
jne 0x401947
mov eax, 0x40a5e0
call fcn.004011f4
mov eax, 0x40a5f0
call fcn.004011f4
mov eax, 0x40a61c
call fcn.004011f4
mov eax, dword [0x40a5d8]
test eax, eax
je 0x40199f
mov edx, dword [eax]
mov dword [0x40a5d8], edx
push eax
call sub.KERNEL32.DLL_VirtualQuery
mov eax, dword [0x40a5d8]
test eax, eax
jne 0x401988
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4019d1
cmp byte [0x40a045], 0
je 0x4019bf
push 0x40a5c0
call sub.KERNEL32.DLL_TlsSetValue
push 0x40a5c0
call sub.KERNEL32.DLL_Sleep
ret
pop ebx
pop ebp
ret
Function at 0x401f1c
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, eax
cmp byte [0x40a5b8], 0
jne 0x401f39
call fcn.00401830
test al, al
je 0x401f41
cmp ebx, 0x7ffffff8
jle 0x401f4b
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x40209f
xor ecx, ecx
push ebp
push 0x402098
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x40a045], 0
je 0x401f6c
push 0x40a5c0
call sub.KERNEL32.DLL_TlsGetValue
add ebx, 7
and ebx, 0xfffffffc
cmp ebx, 0xc
jge 0x401f7c
mov ebx, 0xc
cmp ebx, 0x1000
jg 0x40201b
mov eax, ebx
test eax, eax
jns 0x401f91
add eax, 3
sar eax, 2
mov edx, dword [0x40a618]
mov edx, dword [edx + eax*4 - 0xc]
test edx, edx
je 0x40201b
mov esi, edx
mov eax, esi
add eax, ebx
and dword [eax], 0xfffffffe
mov eax, dword [edx + 4]
cmp edx, eax
jne 0x401fcc
mov eax, ebx
test eax, eax
jns 0x401fbb
add eax, 3
sar eax, 2
mov ecx, dword [0x40a618]
xor edi, edi
mov dword [ecx + eax*4 - 0xc], edi
jmp 0x401ff2
mov ecx, ebx
test ecx, ecx
jns 0x401fd5
add ecx, 3
sar ecx, 2
mov edi, dword [0x40a618]
mov dword [edi + ecx*4 - 0xc], eax
mov ecx, dword [edx]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, esi
mov edx, dword [edx + 8]
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x40a5ac]
sub ebx, 4
add dword [0x40a5b0], ebx
call fcn.004030c0
jmp 0x40209f
cmp ebx, dword [0x40a610]
jg 0x40206d
sub dword [0x40a610], ebx
cmp dword [0x40a610], 0xc
jge 0x40203f
add ebx, dword [0x40a610]
xor eax, eax
mov dword [0x40a610], eax
mov eax, dword [0x40a614]
add dword [0x40a614], ebx
mov edx, ebx
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x40a5ac]
sub ebx, 4
add dword [0x40a5b0], ebx
call fcn.004030c0
jmp 0x40209f
mov eax, ebx
call fcn.00401e28
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40209f
cmp byte [0x40a045], 0
je 0x402097
push 0x40a5c0
call sub.KERNEL32.DLL_TlsSetValue
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4020ac
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
mov dword [0x40a5bc], eax
cmp byte [0x40a5b8], 0
jne 0x4020e4
call fcn.00401830
test al, al
jne 0x4020e4
mov dword [0x40a5bc], 8
mov dword [ebp - 4], 8
jmp 0x402245
xor ecx, ecx
push ebp
push 0x40223e
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x40a045], 0
je 0x402105
push 0x40a5c0
call sub.KERNEL32.DLL_TlsGetValue
mov esi, ebx
sub esi, 4
mov ebx, dword [esi]
test bl, 2
jne 0x402120
mov dword [0x40a5bc], 9
jmp 0x402215
dec dword [0x40a5ac]
mov eax, ebx
and eax, 0x7ffffffc
sub eax, 4
sub dword [0x40a5b0], eax
test bl, 1
je 0x402180
mov eax, esi
sub eax, 0xc
mov edx, dword [eax + 8]
cmp edx, 0xc
jl 0x402150
test edx, 0x80000003
je 0x40215f
mov dword [0x40a5bc], 0xa
jmp 0x402215
mov eax, esi
sub eax, edx
cmp edx, dword [eax + 8]
je 0x402177
mov dword [0x40a5bc], 0xa
jmp 0x402215
add ebx, edx
mov esi, eax
call fcn.004019d4
and ebx, 0x7ffffffc
mov eax, esi
add eax, ebx
mov edi, eax
cmp edi, dword [0x40a614]
jne 0x4021c0
sub dword [0x40a614], ebx
add dword [0x40a610], ebx
cmp dword [0x40a610], 0x3c00
jle 0x4021b1
call fcn.00401cc4
xor eax, eax
mov dword [ebp - 4], eax
call fcn.004030c0
jmp 0x402245
mov edx, dword [eax]
test dl, 2
je 0x4021e3
and edx, 0x7ffffffc
cmp edx, 4
jge 0x4021de
mov dword [0x40a5bc], 0xb
jmp 0x402215
or dword [eax], 1
jmp 0x40220c
mov eax, edi
cmp dword [eax + 4], 0
je 0x4021f6
cmp dword [eax], 0
je 0x4021f6
cmp dword [eax + 8], 0xc
jge 0x402202
mov dword [0x40a5bc], 0xb
jmp 0x402215
mov edx, dword [eax + 8]
add ebx, edx
call fcn.004019d4
mov edx, ebx
mov eax, esi
call fcn.00401c3c
mov eax, dword [0x40a5bc]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402245
cmp byte [0x40a045], 0
je 0x40223d
push 0x40a5c0
call sub.KERNEL32.DLL_TlsSetValue
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x402af4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40900c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402b8c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402b6c
xor eax, eax
push ebp
push 0x402b65
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402ba8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402b6c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40900c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40900c], ax
mov esp, ebp
pop ebp
ret
Function at 0x403d94
Capabilities:
Get disk size
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
push 0x403f28
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
mov esi, eax
test esi, esi
je 0x403dfc
push 0x403f38
push esi
call sub.KERNEL32.DLL_GetLocaleInfoA
mov ebx, eax
test ebx, ebx
je 0x403dfc
push 0x105
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call ebx
test eax, eax
je 0x403dfc
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetStringTypeExA
jmp 0x403f1e
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x403e3c
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x5c
jne 0x403f1e
mov eax, dword [ebp - 4]
add eax, 2
call fcn.00403d80
mov esi, eax
cmp byte [esi], 0
je 0x403f1e
lea eax, [esi + 1]
call fcn.00403d80
mov esi, eax
cmp byte [esi], 0
je 0x403f1e
jmp 0x403e42
mov esi, dword [ebp - 4]
add esi, 2
mov ebx, esi
sub ebx, dword [ebp - 4]
lea eax, [ebx + 1]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_GetStringTypeExA
jmp 0x403f01
lea eax, [esi + 1]
call fcn.00403d80
mov edi, eax
mov eax, edi
sub eax, esi
mov edx, eax
add edx, ebx
inc edx
cmp edx, 0x105
jg 0x403f1e
inc eax
push eax
push esi
lea eax, [ebp - 0x24f]
add eax, ebx
push eax
call sub.KERNEL32.DLL_GetStringTypeExA
lea eax, [ebp - 0x14a]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_DeleteCriticalSection
mov esi, eax
cmp esi, 0xffffffff
je 0x403f1e
push esi
call sub.KERNEL32.DLL_LeaveCriticalSection
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_GetThreadLocale
lea edx, [ebx + 1]
add eax, edx
inc eax
cmp eax, 0x105
jg 0x403f1e
mov byte [ebp + ebx - 0x24f], 0x5c
mov eax, 0x105
sub eax, ebx
dec eax
push eax
lea eax, [ebp - 0x11e]
push eax
lea eax, [ebp - 0x24f]
add eax, ebx
inc eax
push eax
call sub.KERNEL32.DLL_GetStringTypeExA
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_GetThreadLocale
inc eax
add ebx, eax
mov esi, edi
cmp byte [esi], 0
jne 0x403e60
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetStringTypeExA
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403f4c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetCPInfo
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40417c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403fcf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40417c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403fcf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404198
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404058
xor eax, eax
push ebp
push 0x404051
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00403d94
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404036
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4041b8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404036
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404058
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_GetStringTypeExA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetProcAddress
push eax
call sub.KERNEL32.DLL_GetACP
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404172
cmp byte [ebp - 0xd], 0
jne 0x40409f
cmp byte [ebp - 0x12], 0
je 0x404172
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_GetThreadLocale
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4040b8
dec ebx
cmp byte [ebx], 0x2e
je 0x4040c7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4040b7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404172
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404104
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_GetStringTypeExA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_GetStdHandle
mov esi, eax
test esi, esi
jne 0x404172
cmp byte [ebp - 0xd], 0
je 0x404172
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_GetStringTypeExA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_GetStdHandle
mov esi, eax
test esi, esi
jne 0x404172
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_GetStringTypeExA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_GetStdHandle
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50ef60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xba000]
push edi
jmp 0x50ef7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50ef81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50ef70
mov eax, 1
add ebx, ebx
jne 0x50ef93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50efa4
jne 0x50efc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50efc3
dec eax
add ebx, ebx
jne 0x50efb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x50ef88
add ebx, ebx
jne 0x50efbf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x50f015
xor ecx, ecx
sub eax, 3
jb 0x50efdb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50f04a
sar eax, 1
mov ebp, eax
jmp 0x50efe6
add ebx, ebx
jne 0x50efe6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50efb4
inc ecx
add ebx, ebx
jne 0x50eff4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50efb4
add ebx, ebx
jne 0x50f001
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50eff6
jne 0x50f012
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50eff6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50f034
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50f026
jmp 0x50ef76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50f034
add edi, ecx
jmp 0x50ef76
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50f052
cmp byte [edi], 0x11
jne 0x50f052
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x50f057
lea edi, [esi + 0x107000]
mov eax, dword [edi]
or eax, eax
je 0x50f0cf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x145548]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1456c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50f084
mov ecx, edi
jns 0x50f0b3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1456c8]
or eax, eax
je 0x50f0c9
mov dword [ebx], eax
add ebx, 4
jmp 0x50f0a1
call dword [esi + 0x1456d8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x50f100
cmp al, 0xef
ja 0x50f0f3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x50f0d5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x50f0e2
mov ebp, dword [esi + 0x1456cc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x50f134
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x10013bc3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0x8c]
mov dword [esi + 4], ebx
call fcn.1000c1a9
mov edi, dword [esi + 0x7c]
test edi, edi
je 0x1000a8ef
mov ebx, dword [esi + 0x80]
test ebx, ebx
je 0x1000a8e0
mov ecx, edi
call fcn.1000bffb
add edi, 4
dec ebx
jne 0x1000a8d3
push dword [esi + 0x7c]
call dword [fcn.100434b8]
xor ebx, ebx
pop ecx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
lea ecx, [esi + 0xc4]
mov dword [esi + 0x84], ebx
mov dword [esi + 8], ebx
call fcn.1000c2d9
lea ecx, [esi + 0x4c]
call fcn.1000c0ec
cmp dword [esi + 0x24], 0
je 0x1000a924
push dword [esi + 0x24]
call dword [fcn.100434b8]
pop ecx
mov dword [esi + 0x24], ebx
lea ecx, [esi + 0x34]
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.1000c357
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1000a94e
mov edx, dword [esi + 0x18]
call fcn.1000c740
push dword [esi + 0x14]
call dword [fcn.100434b8]
pop ecx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov ecx, dword [esi + 0x10]
pop edi
pop esi
pop ebx
jmp fcn.10013779
mov edi, edi
push esi
mov esi, ecx
cmp dword [esi + 0x54], 1
jne 0x10013bdd
xor eax, eax
push eax
push 0x9d6c
push eax
push eax
call fcn.100137a7
mov eax, dword [esi + 0x64]
lea ecx, [esi + 0x6c]
mov byte [eax + 0x3c], 1
pop esi
jmp 0x1000a8ab
Function at 0x10038bc0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x10038bfe
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10038bf6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10038c00
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10038be6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10038ce0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10038cf6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x10038d11
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret