joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43bdf0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
push ecx
call dword [sym.imp.kernel32.dll_ResumeThread]
mov esp, ebp
pop ebp
ret

Function at 0x43be50
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac04b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x16c
mov eax, dword [0x4d3804]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x178], ecx
mov ecx, dword [ebp - 0x178]
call fcn.0048c471
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x178]
call fcn.00404d00
test eax, eax
jne 0x43becd
push 0x4001
push 0x160
lea eax, [ebp - 0x174]
push eax
push 0
push 0x4b71e8
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x178]
call fcn.0048c562
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x178]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0047bda9
mov esp, ebp
pop ebp
ret

Function at 0x43bfc0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x4d3804]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x80
mov dword [ebp - 4], 0x4010
cmp dword [ebp + 8], 0
jne 0x43bfe9
xor eax, eax
jmp 0x43c05d
push 0x160
push 0
lea eax, [ebp - 0x170]
push eax
call fcn.0047ca40
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 1]
movzx eax, word [edx]
and eax, 4
je 0x43c01d
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 1]
movzx eax, word [edx + 0x1e]
or eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 1]
movzx eax, word [edx]
test eax, eax
je 0x43c057
mov ecx, 1
test ecx, ecx
je 0x43c057
mov edx, dword [ebp - 4]
push edx
push 0x160
lea eax, [ebp - 0x170]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 1]
mov ecx, dword [eax + 2]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp - 0x16c]
mov ecx, dword [ebp - 0xc]
call fcn.0047bda9
mov esp, ebp
pop ebp
ret
Function at 0x43c0f0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac072
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
mov eax, dword [0x4d3804]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x180]
call fcn.00402080
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push 0x4b71f4
lea ecx, [ebp - 0x180]
push ecx
call fcn.00406c90
add esp, 0xc
mov dword [ebp - 0x14], 0x80
mov dword [ebp - 0x10], 0x4010
push 0x160
push 0
lea edx, [ebp - 0x17c]
push edx
call fcn.0047ca40
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
push 0x160
lea ecx, [ebp - 0x17c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x180]
call fcn.00429470
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp - 0x178]
mov dword [ebp - 0x184], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x180]
call fcn.004020c0
mov eax, dword [ebp - 0x184]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x18]
call fcn.0047bda9
mov esp, ebp
pop ebp
ret

Function at 0x43c1d0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x4d3804]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x90
mov dword [ebp - 4], 0x4010
cmp dword [ebp + 8], 0
je 0x43c1fe
mov eax, dword [ebp - 4]
or eax, 2
mov dword [ebp - 4], eax
push 0x160
push 0
lea ecx, [ebp - 0x170]
push ecx
call fcn.0047ca40
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
push 0x160
lea eax, [ebp - 0x170]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0x4b71fc
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp - 0x16c]
mov ecx, dword [ebp - 0xc]
call fcn.0047bda9
mov esp, ebp
pop ebp
ret
Function at 0x462d40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d3804]
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], ecx
cmp dword [ebp + 8], 0
jne 0x462d5e
xor eax, eax
jmp 0x462dfd
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x462d6f
xor eax, eax
jmp 0x462dfd
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.kernel32.dll_lstrlenA]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x3f
mov byte [ebp - 0xf], 0x2a
mov byte [ebp - 0xe], 0x7c
mov byte [ebp - 0xd], 0x5c
mov byte [ebp - 0xc], 0x2f
mov byte [ebp - 0xb], 0x3a
mov byte [ebp - 0xa], 0x22
mov byte [ebp - 9], 0x3c
mov byte [ebp - 8], 0x3e
mov dword [ebp - 0x18], 9
mov dword [ebp - 0x1c], 0
jmp 0x462db9
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x14]
jge 0x462df8
mov dword [ebp - 0x20], 0
jmp 0x462dd3
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x18]
jge 0x462df6
mov ecx, dword [ebp - 0x20]
movsx edx, byte [ebp + ecx - 0x10]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x1c]
movsx ecx, byte [eax]
cmp edx, ecx
jne 0x462df4
xor eax, eax
jmp 0x462dfd
jmp 0x462dca
jmp 0x462db0
mov eax, 1
mov ecx, dword [ebp - 4]
call fcn.0047bda9
mov esp, ebp
pop ebp
ret 4

Function at 0x466c50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x466c92
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x466c8d
mov eax, 0x65b
jmp 0x466c94
mov eax, dword [ebp - 8]
jmp 0x466c94
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x466ca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x466ce2
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x466cdd
mov eax, 0x65b
jmp 0x466ce4
mov eax, dword [ebp - 8]
jmp 0x466ce4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x46fcb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad662
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x80], 0
jne 0x46fdb7
lea ecx, [ebp - 0x14]
call fcn.00402080
mov dword [ebp - 4], 0
push 0x104
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00402140
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00470160
push 0x4b8970
lea ecx, [ebp - 0x14]
call fcn.00418210
lea ecx, [ebp - 0x14]
call fcn.00429470
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x18], 0
je 0x46fd75
push 0x6a
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x46fd6b
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_CopyIcon]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x80], eax
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.kernel32.dll_FreeLibrary]
cmp dword [ebp - 0x10], 0
je 0x46fda8
push 0x8f
call fcn.0040c340
mov ecx, eax
call fcn.0046ee60
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x46fda8
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x80], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004020c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x46fdd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4d3804]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x11c], ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x46fe3f
mov dword [ebp - 0xc], 0x104
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x118]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.kernel32.dll_lstrcpyA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
call fcn.0047bda9
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46fe60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4d3804]
mov dword [ebp - 4], eax
mov dword [ebp - 0x22c], ecx
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0x4b8980
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0x20
ja 0x46ffc3
lea edx, [ebp - 0x210]
push edx
push 0x4b8988
push 0x80000000
mov ecx, dword [ebp - 0x22c]
call fcn.0046fdd0
test eax, eax
jne 0x46ffc3
push 0x4b8990
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.kernel32.dll_lstrcatA]
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x210]
push edx
push 0x80000000
mov ecx, dword [ebp - 0x22c]
call fcn.0046fdd0
test eax, eax
jne 0x46ffc3
push 0x4b89a4
lea eax, [ebp - 0x210]
push eax
call fcn.00415ea0
add esp, 8
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jne 0x46ff6c
push 0x4b89ac
lea ecx, [ebp - 0x210]
push ecx
call fcn.00415ea0
add esp, 8
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jne 0x46ff61
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.kernel32.dll_lstrlenA]
lea eax, [ebp + eax - 0x211]
mov dword [ebp - 0x228], eax
jmp 0x46ff6a
mov ecx, dword [ebp - 0x228]
mov byte [ecx], 0
jmp 0x46ff75
mov edx, dword [ebp - 0x228]
mov byte [edx], 0
push 0x4b89b0
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.kernel32.dll_lstrcatA]
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.kernel32.dll_lstrcatA]
call fcn.00402640
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.00470010
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_WinExec]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
call fcn.0047bda9
mov esp, ebp
pop ebp
ret 8
Function at 0x47d83f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0047d260
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x47d8da
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x573624]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x47d8da
cmp eax, 1
je 0x47d8fb
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x47d8da
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x47d8a7
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x47d8d6
xor eax, eax
inc eax
jmp 0x47d91a
cmp edi, eax
jae 0x47d8de
xor eax, eax
jmp 0x47d91a
cmp eax, esi
jae 0x47d8e5
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov eax, dword [0x573624]
jmp 0x47d8fe
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47e63a
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4bec60
call fcn.0047ea8c
mov edi, 0x94
mov eax, edi
call fcn.0047d260
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.kernel32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x573624], ecx
mov eax, dword [esi + 4]
mov dword [0x573630], eax
mov edx, dword [esi + 8]
mov dword [0x573634], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x573628], esi
cmp ecx, 2
je 0x47e69a
or esi, 0x8000
mov dword [0x573628], esi
shl eax, 8
add eax, edx
mov dword [0x57362c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x47e6d5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47e6d5
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x47e6ed
cmp eax, 0x20b
je 0x47e6da
mov dword [ebp - 0x1c], esi
jmp 0x47e701
cmp dword [ecx + 0x84], 0xe
jbe 0x47e6d5
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x47e6fb
cmp dword [ecx + 0x74], 0xe
jbe 0x47e6d5
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0048364c
pop ecx
test eax, eax
jne 0x47e715
push 0x1c
call fcn.0047e616
pop ecx
call fcn.00481a60
test eax, eax
jne 0x47e726
push 0x10
call fcn.0047e616
pop ecx
call fcn.00485230
mov dword [ebp - 4], esi
call fcn.0048482f
test eax, eax
jge 0x47e73f
push 0x1b
call fcn.0047e5f1
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x573ed0], eax
call fcn.0048510e
mov dword [0x573614], eax
call fcn.0048506c
test eax, eax
jge 0x47e765
push 8
call fcn.0047e5f1
pop ecx
call fcn.00484e39
test eax, eax
jge 0x47e776
push 9
call fcn.0047e5f1
pop ecx
push 1
call fcn.0047fedf
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x47e78c
push eax
call fcn.0047e5f1
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
call fcn.00484ddc
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x47e7ad
movzx eax, word [ebp - 0x40]
jmp 0x47e7b0
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0048b67a
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x47e7ce
push edi
call fcn.0048000c
call fcn.0048002e
jmp 0x47e800
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0047eac7
ret
Function at 0x47fdfa
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x47fe17
call fcn.0047f4ae
mov dword [eax], 0x16
xor eax, eax
jmp 0x47fe81
push esi
push 0x8c
push 1
call fcn.00480d2d
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x47fe6c
push esi
call fcn.00481866
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x47fe4a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x47fd65
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
jne 0x47fe80
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0047d669
test ebx, ebx
pop ecx
je 0x47fe7e
push ebx
call fcn.0047f4c0
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x47ff49
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4bedb8
call fcn.0047ea8c
push 8
call fcn.00482efd
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x573664], esi
jne 0x47ff7d
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov dword [0x573660], esi
mov al, byte [ebp + 0x10]
mov byte [0x57365c], al
cmp dword [ebp + 0xc], edi
jne 0x47ffc7
cmp dword [0x573ec8], edi
je 0x47ffb7
mov eax, dword [0x573ec4]
sub eax, 4
mov dword [0x573ec4], eax
cmp eax, dword [0x573ec8]
jb 0x47ffb7
mov eax, dword [eax]
cmp eax, edi
je 0x47ff98
call eax
jmp 0x47ff98
push 0x4d20cc
mov eax, 0x4d20c4
call fcn.0047fec7
pop ecx
push 0x4d20d8
mov eax, 0x4d20d0
call fcn.0047fec7
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x47fff8
cmp dword [ebp + 0x10], edi
jne 0x480006
mov dword [0x573664], esi
push dword [ebp + 8]
call fcn.0047fe85
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x480005
push 8
call fcn.00482e48
pop ecx
ret
call fcn.0047eac7
ret
Function at 0x482fc1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x482fef
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x482ff6
cmp ebx, dword [eax + 4]
jae 0x482ff6
xor eax, eax
jmp 0x4831e6
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x483007
xor eax, eax
inc eax
jmp 0x4831e5
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x48301d
cmp ecx, edx
jae 0x483162
cmp dword [eax + 4], 0
je 0x483026
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x48300e
cmp dword [ebp + 8], 0
je 0x483048
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x483162
cmp eax, esi
jae 0x483162
mov eax, dword [0x5737e0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x48306d
cmp dword [esi*4 + 0x5737e8], edi
je 0x483166
inc esi
cmp esi, eax
jl 0x48305b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x4831e2
cmp dword [ebp - 8], 0x1000000
jne 0x4831e2
test byte [ebp - 0xc], 0xcc
je 0x4830eb
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4831e2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4831e2
cmp word [eax + 0x18], 0x10b
jne 0x4831e2
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4831e2
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4830eb
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4830eb
test byte [ecx + 0x27], 0x80
jne 0x483162
push 1
push 0x573828
call dword [sym.imp.kernel32.dll_InterlockedExchange]
test eax, eax
jne 0x482fff
mov ecx, dword [0x5737e0]
test ecx, ecx
mov edx, ecx
jle 0x48311f
lea eax, [ecx*4 + 0x5737e4]
cmp dword [eax], edi
je 0x48311f
dec edx
sub eax, 4
test edx, edx
jg 0x483113
test edx, edx
jne 0x483150
push 0xf
pop ebx
cmp ecx, ebx
jg 0x48312c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x483144
lea eax, [edx*4 + 0x5737e8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x483132
cmp ecx, 0x10
jge 0x483150
inc ecx
mov dword [0x5737e0], ecx
push 0
push 0x573828
call dword [sym.imp.kernel32.dll_InterlockedExchange]
jmp 0x482fff
xor eax, eax
jmp 0x4831e5
test esi, esi
jle 0x482fff
mov ebx, dword [sym.imp.kernel32.dll_InterlockedExchange]
push 1
push 0x573828
call ebx
test eax, eax
jne 0x482fff
cmp dword [esi*4 + 0x5737e8], edi
je 0x4831bc
mov eax, dword [0x5737e0]
lea esi, [eax - 1]
test esi, esi
jl 0x4831aa
cmp dword [esi*4 + 0x5737e8], edi
je 0x4831a6
dec esi
jns 0x48319a
test esi, esi
jge 0x4831ba
cmp eax, 0x10
jge 0x4831b5
inc eax
mov dword [0x5737e0], eax
lea esi, [eax - 1]
jmp 0x4831bc
je 0x4831d4
xor ecx, ecx
test esi, esi
jl 0x4831d4
lea eax, [ecx*4 + 0x5737e8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4831c2
push 0
push 0x573828
call ebx
jmp 0x482fff
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x484448
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4d3804]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x484479
xor eax, eax
jmp 0x484602
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x573b60]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4844b5
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00488fb0
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x484590
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4845ce
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x484519
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x48450a
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x4844ea
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x484559
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x484562
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4844db
jmp 0x484564
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x4845fd
cmp dword [ebp - 0x6c], edi
je 0x4845ce
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4845c3
call fcn.0047f4ae
mov dword [eax], 9
call fcn.0047f4b7
mov dword [eax], esi
jmp 0x4845f8
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x4845b8
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x484564
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x484564
push dword [ebp - 0x6c]
call fcn.0047f4c0
pop ecx
jmp 0x4845f8
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4845e6
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4845e6
xor eax, eax
jmp 0x484600
call fcn.0047f4ae
mov dword [eax], 0x1c
call fcn.0047f4b7
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x484600
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0047bda9
add ebp, 0x3a0
leave
ret