joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458932
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x47ca30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4806c8]
push ebx
push esi
xor esi, esi
mov ebx, 0x4806b0
push edi
xor edi, edi
inc esi
mov dword [ebp - 0x110], edi
test al, 1
jne 0x45897a
or eax, esi
mov ecx, ebx
mov dword [0x4806c8], eax
call fcn.0041fe60
push 0x47abb3
call fcn.0045ae7d
pop ecx
mov ecx, ebx
call fcn.00424240
cmp byte [0x4806cc], 0
jne 0x458b2e
lea eax, [ebp - 0x34]
push eax
call fcn.00458e6b
pop ecx
push eax
push 0x406368
lea ecx, [ebp - 0x10c]
call fcn.00413ef0
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.00458c6e
pop ecx
push eax
push 0x40636c
lea ecx, [ebp - 0x94]
call fcn.00413ef0
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00458b4b
pop ecx
push eax
push 0x406370
lea ecx, [ebp - 0xac]
call fcn.00413ef0
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004225f0
add esp, 0xc
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.004225f0
add esp, 0xc
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.004225f0
add esp, 0xc
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.004225f0
add esp, 0xc
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004225f0
add esp, 0xc
lea ecx, [ebp - 0xc4]
push edi
push esi
call fcn.00414c80
push edi
push esi
lea ecx, [ebp - 0x7c]
call fcn.00414c80
push edi
push esi
lea ecx, [ebp - 0xf4]
call fcn.00414c80
push edi
push esi
lea ecx, [ebp - 0x4c]
call fcn.00414c80
push edi
push esi
lea ecx, [ebp - 0xac]
call fcn.00414c80
push edi
push esi
lea ecx, [ebp - 0x64]
call fcn.00414c80
push edi
push esi
lea ecx, [ebp - 0x94]
call fcn.00414c80
push edi
push esi
lea ecx, [ebp - 0xdc]
call fcn.00414c80
push edi
push esi
lea ecx, [ebp - 0x10c]
call fcn.00414c80
push edi
push esi
lea ecx, [ebp - 0x34]
call fcn.00414c80
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmovae eax, dword [ebp - 0x1c]
push eax
call esi
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00459f53
add esp, 0xc
lea ecx, [ebp - 0x1c]
push eax
call fcn.00421c80
push edi
push 1
lea ecx, [ebp - 0x34]
call fcn.00414c80
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00459f53
add esp, 0xc
lea ecx, [ebp - 0x1c]
push eax
call fcn.00421c80
push edi
push 1
lea ecx, [ebp - 0x34]
call fcn.00414c80
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call esi
cmp dword [ebp - 8], 0x10
lea esi, [ebp - 0x1c]
push 8
cmovae esi, dword [ebp - 0x1c]
mov edi, 0x4806cc
pop ecx
rep movsd dword es:[edi], dword [esi]
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00414c80
mov ecx, ebx
call fcn.00424250
mov ecx, dword [ebp - 4]
mov eax, 0x4806cc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045ed71
mov esp, ebp
pop ebp
ret
Function at 0x459a4b
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37c8
call fcn.0045bf30
mov eax, dword [0x47ca30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov ebx, edi
mov esi, edi
push esi
lea eax, [ebp - 0x104]
push 0x40648c
push eax
call fcn.0045bdb6
add esp, 0xc
lea eax, [ebp - 0x104]
push edi
push edi
push 3
push edi
push 3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x37c8], eax
cmp eax, 0xffffffff
je 0x459c3c
mov dword [ebp - 0x37c4], edi
xor eax, eax
lea edi, [ebp - 0x37c0]
stosd dword es:[edi], eax
push 0x2710
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x33cc]
xor edi, edi
push edi
push eax
mov dword [ebp - 0x37c0], edi
mov dword [ebp - 0x37bc], edi
call fcn.00438c15
add esp, 0xc
lea eax, [ebp - 0x37c4]
push edi
mov edi, dword [ebp - 0x37c8]
push eax
push 0x2710
lea eax, [ebp - 0x33cc]
push eax
push 0xc
lea eax, [ebp - 0x37c0]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x459c2d
lea eax, [ebp - 0xcbc]
push eax
push 0
push dword [ebp - 0x33c0]
lea eax, [ebp - 0x33cc]
push eax
call fcn.00459c59
lea eax, [ebp - 0x8d4]
push eax
push 0
push dword [ebp - 0x33bc]
lea eax, [ebp - 0x33cc]
push eax
call fcn.00459c59
lea eax, [ebp - 0x37b4]
push eax
push 0
push dword [ebp - 0x33b8]
lea eax, [ebp - 0x33cc]
push eax
call fcn.00459c59
lea eax, [ebp - 0x4ec]
push eax
push 1
push dword [ebp - 0x33b4]
lea eax, [ebp - 0x33cc]
push eax
call fcn.00459c59
add esp, 0x40
cmp byte [0x480718], 0
jne 0x459bf1
movsx eax, byte [ebp - 0x4ec]
push eax
call fcn.0045ef78
pop ecx
test eax, eax
jne 0x459bab
movsx eax, byte [ebp - 0x4d9]
push eax
call fcn.0045ef78
pop ecx
test eax, eax
je 0x459bf1
xor eax, eax
cmp byte [ebp - 0x4ec], 0x20
jne 0x459bc1
inc eax
cmp byte [ebp + eax - 0x4ec], 0x20
je 0x459bb6
lea ecx, [ebp - 0x4ec]
mov edx, 0x480718
add ecx, eax
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x459bd0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x8d4]
mov byte [ecx + 0x480b18], al
inc ecx
test al, al
jne 0x459bdc
xor ebx, ebx
inc ebx
push 0x2710
lea eax, [ebp - 0x33cc]
push 0
push eax
call fcn.00438c15
add esp, 0xc
lea eax, [ebp - 0x37c4]
xor ecx, ecx
push ecx
push eax
push 0x2710
lea eax, [ebp - 0x33cc]
push eax
push ecx
push ecx
push 0x700a0
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x459c33
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc esi
cmp esi, 0x10
jl 0x459a6b
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045ed71
mov esp, ebp
pop ebp
ret

Function at 0x459da4
Capabilities:
Hash data with md5

Disassembly:
push esi
push 0x40
mov esi, ecx
push 0
push esi
call fcn.00438c15
and dword [esi + 0x44], 0
add esp, 0xc
and dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x48], 0x67452301
mov dword [esi + 0x4c], 0xefcdab89
mov dword [esi + 0x50], 0x98badcfe
mov dword [esi + 0x54], 0x10325476
pop esi
ret
Function at 0x45a8f6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45a989
push esi
xor ecx, ecx
mov eax, 0x19000
push 2
pop edx
mov dword [ebp + 0xc], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045bef5
mov esi, eax
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
push ebx
push esi
call fcn.00438c15
add esp, 0x10
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
push esi
sbb al, al
lea ebx, [eax + 1]
call fcn.00411ae0
pop ecx
mov ecx, dword [ebp + 0x14]
push eax
push esi
call fcn.00415a10
push esi
call fcn.0045bef0
pop ecx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x45ab1f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], ebx
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x45ab52
xor al, al
jmp 0x45ab86
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0x14]
push 1
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x45ab7b
mov bl, 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x47265a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47ca30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00463d67
mov dword [ebp - 0x14], eax
cmp dword [0x482798], esi
jne 0x47274d
push 0x800
push esi
push 0x4061f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4726da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x47282d
push esi
push esi
push 0x4061f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x47282d
push 0x40aa60
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47282d
push eax
call ebx
push 0x40aa6c
push edi
mov dword [0x482798], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x40aa7c
push edi
mov dword [0x48279c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x40aa90
push edi
mov dword [0x4827a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4827a8], eax
test eax, eax
je 0x47274a
push 0x40aaac
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4827a4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x472772
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x472765
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x472787
push 4
pop eax
jmp 0x47282f
cmp dword [ebp - 0x14], esi
je 0x472787
push dword [0x482798]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x47276c
mov eax, dword [0x4827a4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4727e5
cmp dword [0x4827a8], edi
je 0x4727e5
push eax
call ebx
push dword [0x4827a8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4727e5
test eax, eax
je 0x4727e5
call ecx
test eax, eax
je 0x4727da
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4727da
test byte [ebp - 8], 1
jne 0x4727e5
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x472815
mov eax, dword [0x48279c]
cmp eax, edi
je 0x472812
push eax
call ebx
test eax, eax
je 0x472812
call eax
mov esi, eax
test esi, esi
je 0x472812
mov eax, dword [0x4827a0]
cmp eax, edi
je 0x472812
push eax
call ebx
test eax, eax
je 0x472812
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x482798]
call ebx
test eax, eax
je 0x47282d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x47282f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045ed71
mov esp, ebp
pop ebp
ret
Function at 0x4031a6
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x4031ed
cmp ebx, 0x20
je 0x4031ed
cmp ebx, 0xffffffe0
je 0x4031ed
jne 0x4031f6
add eax, 1
cmp esi, eax
je 0x403203
jne 0x4031d2
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x403207
jne 0x4031ce
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x40321b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x4032dc
test ecx, ecx
je 0x4032dc
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x4032dc
test ebx, ebx
je 0x4032dc
mov ebx, eax
add ebx, edx
je 0x4032dc
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x4032dc
cmp dword [edx + eax + 0x14], 0
je 0x4032dc
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x4032dc
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x4032cc
test dl, dl
je 0x4032c8
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x4032cc
add edi, 2
add esi, 2
test dl, dl
jne 0x4032ac
xor eax, eax
jmp 0x4032d1
sbb eax, eax
or eax, 1
test eax, eax
je 0x4032e8
inc ebp
cmp ebp, dword [esp + 4]
jb 0x403299
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x4041de
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x40420c
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x404203
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x4041fb
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x40422d
mov esp, ebp
pop ebp
ret

Function at 0x404231
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x40429d
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x4042ca
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x4042b9
xor ecx, eax
xor edx, ebx
dec edi
jne 0x4042aa
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x4042f0
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x404291
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x40431c
mov esp, ebp
pop ebp
ret 0xc

Function at 0x405970
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x40598e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x405983
pop esi
ret
Function at 0x41468f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4146bd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4146db
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004145f5
jmp 0x4146db
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4146db
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004145f5
test edi, edi
mov eax, edi
jne 0x4146c5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x47e720
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x68000]
push edi
jmp 0x47e73a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x47e741
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47e730
mov eax, 1
add ebx, ebx
jne 0x47e753
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47e764
jne 0x47e783
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47e783
dec eax
add ebx, ebx
jne 0x47e770
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x47e748
add ebx, ebx
jne 0x47e77f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x47e7d5
xor ecx, ecx
sub eax, 3
jb 0x47e79b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47e80a
sar eax, 1
mov ebp, eax
jmp 0x47e7a6
add ebx, ebx
jne 0x47e7a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47e774
inc ecx
add ebx, ebx
jne 0x47e7b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47e774
add ebx, ebx
jne 0x47e7c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47e7b6
jne 0x47e7d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47e7b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47e7f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47e7e6
jmp 0x47e736
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47e7f4
add edi, ecx
jmp 0x47e736
pop esi
mov edi, esi
mov ecx, 0x2adf
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x47e812
cmp byte [edi], 8
jne 0x47e812
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 0x47e817
lea edi, [esi + 0x7b000]
mov eax, dword [edi]
or eax, eax
je 0x47e88f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7e000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7e118]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47e844
mov ecx, edi
jns 0x47e873
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 + 0x7e11c]
or eax, eax
je 0x47e889
mov dword [ebx], eax
add ebx, 4
jmp 0x47e861
call dword [esi + 0x7e12c]
mov ebp, dword [esi + 0x7e120]
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 0x47e8c3
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x10001000
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x1004f920
call fcn.100196b0
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov edx, dword [ebp - 0x30]
cmp word [edx], ax
jne 0x10001068
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x10001068
mov ecx, dword [eax + 0xd8]
lea esi, [ecx + edx]
cmp dword [ebp + 0xc], esi
jb 0x10001068
mov eax, dword [eax + 0xdc]
add eax, ecx
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x10001068
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x10001071
mov dword [ebp - 4], 0xfffffffe
xor al, al
call fcn.100196f6
ret
Function at 0x10001169
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
push edi
mov ebx, 0x10000
cmp esi, 0x7ff80000
jbe 0x1000118c
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x1000118f
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x100011a2
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x100011a9
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x10096abc]
mov ecx, dword [0x10096ab8]
test eax, eax
jne 0x100011c3
test ecx, ecx
je 0x100011d8
mov eax, ecx
mov dword [0x10096abc], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x100011d8
cmp edx, dword [ebp - 4]
jb 0x100011d8
cmp edx, dword [ebp - 8]
jbe 0x100012a9
mov eax, ecx
test ecx, ecx
jmp 0x100011fc
test eax, eax
je 0x100011f7
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x100011f7
cmp ecx, dword [ebp - 4]
jb 0x100011f7
cmp ecx, dword [ebp - 8]
jbe 0x100012a9
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x10096abc], eax
jne 0x100011de
mov eax, esi
and eax, 0xffff
sub esi, eax
mov edi, esi
cmp esi, dword [ebp - 4]
jbe 0x1000133b
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x10001229
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000133b
cmp dword [ebp - 0x30], ebx
jne 0x10001248
cmp dword [ebp - 0x34], ebx
jae 0x1000125b
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x10001217
jmp 0x1000133b
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10096abc], eax
test eax, eax
je 0x1000133b
mov ecx, dword [0x10096ab8]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x10096ab8], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x1000129b
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, dword [ebp - 4]
jb 0x10001340
cmp esi, dword [ebp - 8]
ja 0x10001340
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call fcn.10019b80
add esp, 0xc
mov eax, esi
jmp 0x10001342
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x100012ea
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10001340
cmp dword [ebp - 0x14], ebx
jne 0x10001335
cmp dword [ebp - 0x18], ebx
jb 0x10001335
movzx ecx, si
test ecx, ecx
je 0x10001319
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x18], eax
add dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10096abc], eax
test eax, eax
jne 0x10001277
mov esi, dword [ebp - 0x24]
add esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 8]
jb 0x100012d8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret