joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f830
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x492da3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0048675f
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0048bdf5
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048d311
test eax, eax
je 0x43f94c
mov ecx, dword [esp + 0x3c]
call fcn.0048be22
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43f910
push edi
mov ecx, esi
call fcn.0048948b
mov ecx, esi
call fcn.0043faf0
cmp dword [esp + 0x38], 1
jne 0x43f945
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004895c6
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x441b40
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x441b73
push esi
call fcn.0044fef0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x441b6c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x441bf9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x441be2
mov eax, dword [esi + 8]
test eax, eax
je 0x441b97
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x441bde
cmp eax, 2
je 0x441be2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x441b8a
cmp eax, 3
je 0x441bbd
cmp eax, 1
jne 0x441b8a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x441b8a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x441b8a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00441c20
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x441c08
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00441c20
add esp, 4
pop esi
ret

Function at 0x442490
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4424b1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4424b1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4424b1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x460000
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4d92dc]
xor edx, edx
cmp eax, edx
jne 0x460026
xor eax, eax
mov byte [eax + 0x4d91dc], al
inc eax
cmp eax, 0x100
jl 0x46000e
mov dword [0x4d92dc], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4d91dc
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4600b7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x46008a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x460058
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x460130
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x460183
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x46016a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x466b10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4932ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00467430
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x49c00c
call fcn.00484eef
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x466ba3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00484eef
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x466b9c
push 0
mov ecx, eax
call fcn.0045dc40
mov dword [esi + 0xc], eax
jmp 0x466ba5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x466ba5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x487555
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48758d
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.00485609
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004855e1
jmp 0x487599
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x488c43
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 0x488c85
call fcn.0048e701
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x488c85
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x488c7c
xor eax, eax
jmp 0x488c8d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00488c93
pop edi
pop esi
pop ebx
ret 4
Function at 0x48ec31
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 0x48ec5f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48ec7d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048eb97
jmp 0x48ec7d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48ec7d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048eb97
test edi, edi
mov eax, edi
jne 0x48ec67
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4021b0
Capabilities:
Create directory

Disassembly:
push esi
push 0x4381d8
push str.C:_tmp_
call fcn.0040eab8
add esp, 8
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, esi
pop esi
ret
Function at 0x4048e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
mov ecx, esi
mov ebx, eax
call fcn.00405620
call edi
mov ebp, dword [esp + 0x14]
sub eax, ebx
cmp eax, ebp
ja 0x404912
mov ecx, esi
call fcn.00405620
call edi
sub eax, ebx
cmp eax, ebp
jbe 0x404903
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x405320
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [esp + 0x10], edi
mov eax, dword [edi + 0x558]
mov ebx, dword [edi + 0x554]
lea ecx, [eax - 0x400]
mov eax, 0x51eb851f
mul ecx
shr edx, 5
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
jne 0x405360
mov dword [esp + 0x18], 1
mov ebp, ebx
lea ecx, [esp + 0x28]
xor eax, eax
sub ebp, ecx
lea ecx, [esp + eax + 0x28]
inc eax
cmp eax, 0x104
mov dl, byte [ecx + ebp]
mov byte [ecx], dl
jl 0x40536a
mov eax, dword [edi + 0x538]
add ebx, 0x400
test eax, eax
mov dword [esp + 0x20], ebx
je 0x4053a8
mov ecx, dword [esp + 0x130]
lea edx, [ecx - 1]
mov ecx, eax
mov eax, dword [eax]
mov esi, dword [ecx + 8]
cmp dword [esi], edx
je 0x4053a8
test eax, eax
jne 0x405399
xor ebx, ebx
test esi, esi
je 0x4053df
mov ecx, dword [esi + 8]
lea edx, [esp + 0x24]
push 0
push edx
lea eax, [esp + 0x30]
push 0x14
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4053df
inc ebx
cmp ebx, 5
jle 0x4053ae
mov edx, dword [esi]
push 1
push edx
mov ecx, edi
mov dword [esi + 0x14], eax
call fcn.00403210
xor ebx, ebx
jmp 0x4053e7
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x405486
mov eax, dword [esp + 0x14]
mov ebp, 0x800
sub eax, ebx
cmp eax, 0x800
ja 0x405406
mov ebp, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], 0
lea edi, [ebx + eax]
mov edx, dword [esi + 8]
lea ecx, [esp + 0x24]
push 0
push ecx
push ebp
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40544f
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 5
mov dword [esp + 0x1c], eax
jle 0x405415
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
push 1
push eax
mov dword [esi + 0x14], 0
call fcn.00403210
add ebx, ebp
xor edx, edx
mov eax, ebx
div dword [esp + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x14]
cmp ebx, eax
jb 0x4053e3
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov ecx, dword [eax + 0x55c]
pop ebx
dec ecx
mov dword [eax + 0x55c], ecx
add esp, 0x11c
ret 4
mov eax, dword [edi + 0x55c]
dec eax
mov dword [edi + 0x55c], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret 4
Function at 0x405a70
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x429408
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov eax, dword [esp + 0x1c]
push str.DLLEXE
and eax, 0xffff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x405acc
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.004210d1
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x405b02
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.004210d1
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405b36
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.004210d1
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x405b6a
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.004210d1
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
mov ecx, dword [esp + 0x20]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405bae
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
call fcn.004210d1
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
lea edx, [esp + 0x1c]
push 0
push edx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x405be9
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.004210d1
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.004210d1
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8
Function at 0x40eed6
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42df98
call fcn.00412180
mov edi, 0x94
mov eax, edi
call fcn.0040fcd0
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 [0x43c384], ecx
mov eax, dword [esi + 4]
mov dword [0x43c390], eax
mov edx, dword [esi + 8]
mov dword [0x43c394], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x43c388], esi
cmp ecx, 2
je 0x40ef36
or esi, 0x8000
mov dword [0x43c388], esi
shl eax, 8
add eax, edx
mov dword [0x43c38c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40ef71
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ef71
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40ef89
cmp eax, 0x20b
je 0x40ef76
mov dword [ebp - 0x1c], esi
jmp 0x40ef9d
cmp dword [ecx + 0x84], 0xe
jbe 0x40ef71
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40ef97
cmp dword [ecx + 0x74], 0xe
jbe 0x40ef71
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00412dea
pop ecx
test eax, eax
jne 0x40efb1
push 0x1c
call fcn.0040eeb2
pop ecx
call fcn.00411cd7
test eax, eax
jne 0x40efc2
push 0x10
call fcn.0040eeb2
pop ecx
mov dword [ebp - 4], esi
call fcn.0041415c
test eax, eax
jge 0x40efd6
push 0x1b
call fcn.0040ee8d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x43dbb0], eax
call fcn.00414036
mov dword [0x43c374], eax
call fcn.00413f94
test eax, eax
jge 0x40effc
push 8
call fcn.0040ee8d
pop ecx
call fcn.00413d48
test eax, eax
jge 0x40f00d
push 9
call fcn.0040ee8d
pop ecx
call fcn.0040fe0e
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x40f020
push eax
call fcn.0040ee8d
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00413cdf
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x40f041
movzx eax, word [ebp - 0x34]
jmp 0x40f044
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.0041cf07
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40f062
push edi
call fcn.0040ff2d
call fcn.0040ff4f
jmp 0x40f094
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004121b9
ret

Function at 0x4123c5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4123e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00410b1b
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x412408
test byte [esp + 8], 2
je 0x412408
call fcn.00410b09
mov dword [eax], 0xd
call fcn.00410b12
mov dword [eax], 5
jmp 0x4123e1
xor eax, eax
ret
Function at 0x413979
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
cmp edx, dword [eax*8 + 0x439690]
je 0x413999
inc eax
cmp eax, 0x12
jb 0x41398a
shl eax, 3
cmp edx, dword [eax + 0x439690]
mov dword [ebp + 8], eax
jne 0x413b37
mov ecx, dword [0x43c37c]
cmp ecx, 1
je 0x413b0c
test ecx, ecx
jne 0x4139cb
cmp dword [0x4391f4], 1
je 0x413b0c
cmp edx, 0xfc
je 0x413b37
and byte [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x413a06
push 5
pop ecx
mov esi, str._program_name_unknown_
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10c]
lea ebx, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413a15
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x413a4d
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413a2d
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x42e6c8
push ebx
call fcn.004178b0
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413a52
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x439694]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x413a69
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.0040fcd0
mov edx, esp
push 6
pop ecx
mov esi, str.Runtime_Error__n_nProgram:
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413a95
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x413aa1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x413aba
mov eax, dword [ebp + 8]
mov esi, 0x42e6a8
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x439694]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413ad5
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x413ae1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.004177a8
add esp, 0xc
jmp 0x413b37
mov ecx, dword [eax + 0x439694]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x413b17
push 0
lea edx, [ebp - 4]
push edx
sub eax, esi
push eax
push ecx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41646a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040fcd0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4164ff
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x43c384]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4164ff
cmp eax, 1
je 0x416517
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4164ff
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4164d4
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4164fb
xor eax, eax
inc eax
jmp 0x416533
cmp esi, ebx
jae 0x416503
xor eax, eax
jmp 0x416533
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x43c384]
jmp 0x416519
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417479
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
jne 0x417497
xor eax, eax
jmp 0x417605
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x43d840]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4174ca
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00419376
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41759c
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edi
jbe 0x4175d7
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
mov dword [ebp - 8], edi
cmp ecx, dword [ebp + 0x10]
jae 0x417525
mov edx, dword [ebp - 0xc]
inc dword [ebp - 0xc]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x417516
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 8]
mov byte [eax], dl
inc eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x400
jl 0x4174f9
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x417565
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
cmp eax, edi
jl 0x41756e
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4174ea
jmp 0x417570
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
xor edi, edi
mov eax, dword [ebp - 0x10]
cmp eax, edi
jne 0x417600
cmp dword [ebp - 4], edi
je 0x4175d7
push 5
pop esi
cmp dword [ebp - 4], esi
jne 0x4175c9
call fcn.00410b09
mov dword [eax], 9
call fcn.00410b12
mov dword [eax], esi
jmp 0x4175d2
push edi
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4175be
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], eax
jmp 0x417570
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x417570
push dword [ebp - 4]
call fcn.00410b1b
pop ecx
or eax, 0xffffffff
jmp 0x417603
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4175ec
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4175ec
xor eax, eax
jmp 0x417603
call fcn.00410b09
mov dword [eax], 0x1c
call fcn.00410b12
mov dword [eax], edi
jmp 0x4175d2
sub eax, dword [ebp - 0x14]
pop esi
pop ebx
pop edi
leave
ret