joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467c90
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x497a90
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x467e37
mov ecx, dword [0x4c0348]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x467d8c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.004669b0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.00487b18
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00487a2b
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4bd154
call fcn.00487a99
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.00466d70
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.00487b18
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.00487a2b
lea ecx, [esp + 0xc]
call fcn.00487ef3
mov ecx, dword [esp + 0xc]
push 0x4bdb94
push ecx
call fcn.00476b24
add esp, 8
test eax, eax
je 0x467db4
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x467ced
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.00487a2b
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00487a2b
jmp 0x467e3b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00467a30
test eax, eax
push 0
je 0x467e1f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.004660d0
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x467e05
cmp eax, 0x64
jg 0x467df3
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x467d90
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x467d90
cmp eax, 0x64
jge 0x467d8c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x467d90
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.004660d0
mov esi, eax
jmp 0x467d90
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x467e45
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x46f330
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x46f396
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x46f396
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x46f377
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x46f720
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x46f758
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4703e0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x470429
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4708a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x497e40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00470450
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004704d0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004704d0
lea ecx, [esi + 0xc]
call fcn.004879b6
lea ecx, [esi + 0x10]
call fcn.004879b6
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00471a60
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00471a60
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00471a60
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00487a2b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00487a2b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x472e60
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x4be81c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x472e73
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x472eb4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x4be8c4]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x472ee6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x472eea
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x472edb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x472f08
mov bl, byte [esp + ecx + 0x4c]
jmp 0x472f0c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x472efd
xor ecx, ecx
mov eax, 0x4be82c
xor ebx, ebx
mov bl, byte [ecx + 0x4be8d4]
cmp byte [esp + ebx + 0x14], 0
je 0x472f37
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x4be8ec]
cmp byte [esp + ebx + 0x14], 0
je 0x472f4e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x472f1e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x472ea7
lea edx, [esp + 0x84]
push edx
call fcn.00472f90
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x489e0c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x489e44
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00487e86
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00487e5e
jmp 0x489e50
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48b501
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48b543
call fcn.0049158e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48b543
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48b53a
xor eax, eax
jmp 0x48b54b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048b551
pop edi
pop esi
pop ebx
ret 4

Function at 0x491abe
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 0x491aec
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x491b0a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00491a24
jmp 0x491b0a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x491b0a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00491a24
test edi, edi
mov eax, edi
jne 0x491af4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4016d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
lea eax, [esp]
push eax
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401707
cmp dword [esp + 0xc], 4
sete al
dec eax
and eax, 0xd
pop ecx
ret 8

Function at 0x401710
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi]
inc eax
push eax
mov eax, dword [esp + 0x18]
push edi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc

Function at 0x401740
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
movzx eax, word [esp + 4]
push edi
push 0x40a1ec
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40175e
pop edi
ret 8
push ebx
push ebp
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
push ebp
call fcn.00402b6b
mov ecx, ebp
mov edx, ecx
shr ecx, 2
mov ebx, eax
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
add esp, 4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4017c7
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4017c7
push ebx
call fcn.004035cd
add esp, 4
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
ret 8
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x4017b5
xor eax, eax
test ebp, ebp
jle 0x4017f9
lea esp, [esp]
add byte [eax + ebx], 0x9c
inc eax
cmp eax, ebp
jl 0x4017f0
push 0
lea eax, [esp + 0x18]
push eax
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.004035cd
add esp, 4
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
ret 8
Function at 0x401850
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x40d0f4]
mov edx, dword [esp + 0x120]
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x12c], eax
mov eax, dword [edi]
push edx
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 8]
mov esi, eax
test esi, esi
jne 0x4018ba
test ecx, ecx
je 0x4018ac
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 8], ecx
je 0x4018c8
test ecx, ecx
je 0x40196b
push ecx
jmp 0x401965
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
mov dword [esp + 0x2c], pe_nt_image_headers32
call esi
test eax, eax
jne 0x401932
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xc]
call fcn.00401850
mov edi, eax
test edi, edi
jne 0x401984
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0xc]
push eax
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
push edx
mov dword [esp + 0x2c], pe_nt_image_headers32
call esi
test eax, eax
je 0x4018f4
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 8]
test eax, eax
je 0x401949
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
mov eax, dword [esp + 0x128]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x40196b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x118]
call fcn.004034b5
add esp, 0x11c
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x401993
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
call fcn.004034b5
add esp, 0x11c
ret 4
Function at 0x401d30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [0x40d0f4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x11c], eax
lea eax, [esp + 0xc]
push eax
push 1
xor esi, esi
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401dd8
mov byte [esp + 0x18], al
mov ecx, 0x3f
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push esi
push eax
push ecx
mov dword [esp + 0x28], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401dcd
cmp dword [esp + 0x14], 1
jne 0x401dcd
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401db1
mov ecx, dword [ebp + 0x14]
sub eax, edx
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.00401340
mov esi, 1
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x11c]
mov eax, esi
call fcn.004034b5
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403724
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40a730
call fcn.00405368
mov edi, 0x94
mov eax, edi
call fcn.00406ec0
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 [0x40d820], ecx
mov eax, dword [esi + 4]
mov dword [0x40d82c], eax
mov edx, dword [esi + 8]
mov dword [0x40d830], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40d824], esi
cmp ecx, 2
je 0x403784
or esi, 0x8000
mov dword [0x40d824], esi
shl eax, 8
add eax, edx
mov dword [0x40d828], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4037bf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4037bf
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4037d7
cmp eax, 0x20b
je 0x4037c4
mov dword [ebp - 0x1c], esi
jmp 0x4037eb
cmp dword [ecx + 0x84], 0xe
jbe 0x4037bf
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4037e5
cmp dword [ecx + 0x74], 0xe
jbe 0x4037bf
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004055f7
pop ecx
test eax, eax
jne 0x403817
cmp dword [0x40d7a4], 1
jne 0x403804
call fcn.00406684
push 0x1c
call fcn.0040650d
push 0xff
call fcn.0040633a
pop ecx
pop ecx
call fcn.00406e2d
mov dword [ebp - 4], esi
call fcn.00406c82
test eax, eax
jge 0x403830
push 0x1b
call fcn.004036ff
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40edb8], eax
call fcn.00406b60
mov dword [0x40d79c], eax
call fcn.00406abe
test eax, eax
jge 0x403856
push 8
call fcn.004036ff
pop ecx
call fcn.0040688b
test eax, eax
jge 0x403867
push 9
call fcn.004036ff
pop ecx
push 1
call fcn.0040636a
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40387d
push eax
call fcn.004036ff
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040682e
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40389e
movzx eax, word [ebp - 0x40]
jmp 0x4038a1
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401470
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4038bf
push edi
call fcn.00406495
call fcn.004064b7
jmp 0x4038f1
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004053a3
ret
Function at 0x4053b4
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 0x4053e2
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 0x4053e9
cmp ebx, dword [eax + 4]
jae 0x4053e9
xor eax, eax
jmp 0x4055d9
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4053fa
xor eax, eax
inc eax
jmp 0x4055d8
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x405410
cmp ecx, edx
jae 0x405555
cmp dword [eax + 4], 0
je 0x405419
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x405401
cmp dword [ebp + 8], 0
je 0x40543b
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x405555
cmp eax, esi
jae 0x405555
mov eax, dword [0x40d7c8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x405460
cmp dword [esi*4 + 0x40d7d0], edi
je 0x405559
inc esi
cmp esi, eax
jl 0x40544e
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4055d5
cmp dword [ebp - 8], 0x1000000
jne 0x4055d5
test byte [ebp - 0xc], 0xcc
je 0x4054de
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4055d5
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4055d5
cmp word [eax + 0x18], 0x10b
jne 0x4055d5
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4055d5
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4054de
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4054de
test byte [ecx + 0x27], 0x80
jne 0x405555
push 1
push 0x40d810
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4053f2
mov ecx, dword [0x40d7c8]
test ecx, ecx
mov edx, ecx
jle 0x405512
lea eax, [ecx*4 + 0x40d7cc]
cmp dword [eax], edi
je 0x405512
dec edx
sub eax, 4
test edx, edx
jg 0x405506
test edx, edx
jne 0x405543
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40551f
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x405537
lea eax, [edx*4 + 0x40d7d0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x405525
cmp ecx, 0x10
jge 0x405543
inc ecx
mov dword [0x40d7c8], ecx
push 0
push 0x40d810
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4053f2
xor eax, eax
jmp 0x4055d8
test esi, esi
jle 0x4053f2
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40d810
call ebx
test eax, eax
jne 0x4053f2
cmp dword [esi*4 + 0x40d7d0], edi
je 0x4055af
mov eax, dword [0x40d7c8]
lea esi, [eax - 1]
test esi, esi
jl 0x40559d
cmp dword [esi*4 + 0x40d7d0], edi
je 0x405599
dec esi
jns 0x40558d
test esi, esi
jge 0x4055ad
cmp eax, 0x10
jge 0x4055a8
inc eax
mov dword [0x40d7c8], eax
lea esi, [eax - 1]
jmp 0x4055af
je 0x4055c7
xor ecx, ecx
test esi, esi
jl 0x4055c7
lea eax, [ecx*4 + 0x40d7d0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4055b5
push 0
push 0x40d810
call ebx
jmp 0x4053f2
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4063d4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40d860], esi
push edi
jne 0x4063f4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40d85c], esi
mov byte [0x40d858], al
jne 0x40645a
mov ecx, dword [0x40ed88]
test ecx, ecx
je 0x40643b
mov eax, dword [0x40ed84]
sub eax, 4
cmp eax, ecx
jmp 0x406434
mov eax, dword [eax]
test eax, eax
je 0x406426
call eax
mov eax, dword [0x40ed84]
sub eax, 4
cmp eax, dword [0x40ed88]
mov dword [0x40ed84], eax
jae 0x40641e
mov eax, 0x40d028
mov esi, 0x40d030
cmp eax, esi
mov edi, eax
jae 0x40645a
mov eax, dword [edi]
test eax, eax
je 0x406453
call eax
add edi, 4
cmp edi, esi
jb 0x40644b
mov eax, 0x40d034
mov esi, 0x40d03c
cmp eax, esi
mov edi, eax
jae 0x406479
mov eax, dword [edi]
test eax, eax
je 0x406472
call eax
add edi, 4
cmp edi, esi
jb 0x40646a
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x406493
push dword [ebp + 8]
mov dword [0x40d860], 1
call fcn.0040633a
pop ebp
ret

Function at 0x40650d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40d0f4]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40d140]
je 0x406542
inc eax
cmp eax, 0x13
jb 0x406533
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40d140]
jne 0x406668
mov eax, dword [0x40d7a4]
cmp eax, 1
je 0x406640
cmp eax, edx
jne 0x406572
cmp dword [0x40d0fc], 1
je 0x406640
cmp ecx, 0xfc
je 0x406668
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4065a8
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00406f90
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004039a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4065dc
mov eax, edi
push eax
call fcn.004039a0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a884
push edi
call fcn.00407690
add esp, 0x10
push edi
call fcn.004039a0
push dword [esi + 0x40d144]
mov ebx, eax
call fcn.004039a0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00406ec0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00406f90
push edi
push ebx
call fcn.00406fa0
push 0x40a880
push ebx
call fcn.00406fa0
push dword [esi + 0x40d144]
push ebx
call fcn.00406fa0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00407595
add esp, 0x2c
jmp 0x406668
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40d144]
push dword [esi]
call fcn.004039a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004034b5
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret