joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ba00
Capabilities:
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x433dbf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
push eax
mov esi, ecx
push 0x66
mov dword [esp + 0x18], esi
call fcn.0042638e
lea ecx, [esi + 0x70]
mov dword [esp + 0x1c], 0
mov dword [esi], method.CDialog.virtual_0
call fcn.00407850
lea ecx, [esi + 0x164]
mov byte [esp + 0x1c], 1
call fcn.00407850
lea ecx, [esi + 0x258]
mov byte [esp + 0x1c], 2
call fcn.00407850
lea ecx, [esi + 0x34c]
mov byte [esp + 0x1c], 3
call fcn.00407850
lea ecx, [esi + 0x440]
mov byte [esp + 0x1c], 4
call fcn.00407850
lea ecx, [esi + 0x534]
mov byte [esp + 0x1c], 5
call fcn.00407850
lea ecx, [esi + 0x628]
mov byte [esp + 0x1c], 6
call fcn.00407850
lea ecx, [esi + 0x71c]
mov byte [esp + 0x1c], 7
call fcn.00407850
lea ecx, [esi + 0x810]
mov byte [esp + 0x1c], 8
call fcn.00407850
lea ebx, [esi + 0x904]
mov ecx, ebx
mov byte [esp + 0x1c], 9
call fcn.00408150
lea edi, [esi + 0x9f8]
mov ecx, edi
mov byte [esp + 0x1c], 0xa
call fcn.0040d9b0
mov byte [esp + 0x1c], 0xb
call fcn.0042f683
mov eax, dword [eax + 0xc]
mov ebp, dword [sym.imp.USER32.dll_LoadIconA]
push 0x80
push eax
call ebp
push 0x14
push 0
push str.Look_at_me_
push str.Heres_a_cool_new_Win2K_balloon_
push 0
push 0x8c
push eax
push str.Safe_Clean
push 0x800a
push 0
mov ecx, edi
call fcn.0040cfe0
test eax, eax
jne 0x40bb39
push 1
push 3
mov ecx, edi
call fcn.0040d1f0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.mailto:balkrishnatalele_yahoo.com
call fcn.00401f50
mov ecx, ebx
call fcn.00408730
call fcn.0042f683
call fcn.0042f683
mov eax, dword [eax + 0xc]
push 0x80
push eax
call ebp
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xc84], eax
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 4
Function at 0x40c0e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x433e43
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0042d09c
xor edi, edi
lea ebp, [esi + 0x10]
mov dword [esi], method.CDC.virtual_0
mov dword [esp + 0x2c], edi
mov dword [ebp + 4], edi
mov dword [ebp], vtable.CBitmap.0
mov ebx, dword [esp + 0x34]
xor eax, eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ebx
cmp dword [ebx + 0xc], edi
sete al
mov byte [esp + 0x2c], 1
cmp eax, edi
mov dword [esi + 0x30], eax
je 0x40c1ee
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.0042d4ec
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
lea edi, [esi + 0x20]
je 0x40c185
mov edx, dword [ebx]
push edi
mov ecx, ebx
call dword [edx + 0x50]
jmp 0x40c1a2
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov edx, dword [edi]
sub eax, ecx
mov ecx, dword [edi + 8]
push eax
mov eax, dword [ebx + 4]
sub ecx, edx
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call fcn.0042d7d3
test ebp, ebp
je 0x40c1cc
mov ebp, dword [ebp + 4]
mov ecx, dword [esi + 4]
push ebp
push ecx
call fcn.0042d85c
mov edx, dword [esi + 0x24]
mov dword [esi + 0x18], eax
mov eax, dword [edi]
push edx
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.0042d1ec
jmp 0x40c200
mov edx, dword [ebx + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov ecx, dword [ebx + 8]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x24]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x14

Function at 0x40cb90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
push esi
mov esi, ecx
push edi
xor eax, eax
mov ecx, 0x7a
lea edi, [esi + 0x50]
rep stosd dword es:[edi], eax
xor ebx, ebx
mov dword [esp + 0x10], 0x94
mov ecx, 0x24
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
mov dword [esi + 0x238], ebx
mov dword [esi + 0x23c], 1
mov dword [esi + 0x240], 1
mov dword [esi + 0x280], ebx
mov dword [esi + 0x284], 1
mov dword [esi + 0x244], ebx
mov dword [esi + 0x264], ebx
mov dword [esi + 0x27c], ebx
mov dword [esi + 0x24c], ebx
mov dword [esi + 0x288], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x20], 2
jne 0x40cc35
cmp dword [esp + 0x14], 5
jb 0x40cc35
mov eax, 1
mov dword [esi + 0x248], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi + 0x248], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d620
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x24
push esi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x40d657
push edi
mov edi, dword [esp + 0x30]
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push edi
push 0x40d570
push esi
call dword [sym.imp.USER32.dll_EnumChildWindows]
pop edi
pop esi
add esp, 0x24
ret
lea eax, [esp + 4]
push eax
push 5
mov dword [esp + 0xc], 0x24
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x40d6cc
mov eax, dword [esp + 0x10]
cmp eax, 3
ja case.default.0x40d679
jmp dword [eax*4 + 0x40d6f8]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov dword [eax + 8], edx
pop esi
add esp, 0x24
ret
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0xc], edx
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax], edx
mov dword [eax + 8], ecx
pop esi
add esp, 0x24
ret
mov esi, dword [esp + 0x2c]
push 0
push esi
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub eax, 0x96
sub ecx, 0x1e
mov dword [esi], eax
mov dword [esi + 4], ecx
pop esi
add esp, 0x24
ret
Function at 0x40f438
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40f48b
call fcn.0042f683
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40f48b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40f481
xor eax, eax
jmp 0x40f5a0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x40f4ba
mov eax, dword [edi]
push ebx
push dword [ebp - 4]
mov ecx, edi
push dword [ebp + 8]
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x40f4ba
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x40f59d
mov edi, dword [eax + 0x40]
and dword [ebp + 0x10], 0
xor eax, eax
cmp edi, eax
mov dword [ebp + 0xc], edi
mov dword [ebp - 8], edi
je 0x40f4e9
mov ecx, dword [edi]
mov dword [ebp + 0xc], ecx
mov ecx, dword [edi + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], ecx
cmp dword [ebx + 8], eax
mov dword [ebp - 4], eax
jbe 0x40f59d
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40f527
mov ecx, dword [ecx + 4]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40f527
test edi, edi
mov dword [ebp - 8], edi
je 0x40f521
mov eax, dword [edi]
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
jmp 0x40f58d
and dword [ebp + 0x10], 0
jmp 0x40f58d
mov ecx, dword [ebx + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40f58d
push 0xc
call fcn.0042626c
mov esi, eax
test esi, esi
pop ecx
je 0x40f56c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp - 0x10]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0xc]
mov dword [esi], eax
jmp 0x40f56e
xor esi, esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40f588
push dword [ebp - 8]
call fcn.00425b74
jmp 0x40f58d
call fcn.00425b4b
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jb 0x40f4f5
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x417d70
Capabilities:
Set current directory

Disassembly:
push 0x10
push 0x43c588
call fcn.0041c4a0
mov ebx, dword [ebp + 8]
cmp ebx, 1
jl 0x417ddf
cmp ebx, 0x1f
jg 0x417ddf
push 7
call fcn.0041c46c
pop ecx
and dword [ebp - 4], 0
add ebx, 0x40
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], 0x3a
and byte [ebp - 0x1a], 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x417db7
and dword [ebp - 0x20], 0
jmp 0x417dc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00419fb7
pop ecx
or dword [ebp - 0x20], 0xffffffff
or dword [ebp - 4], 0xffffffff
call fcn.00417dd6
mov eax, dword [ebp - 0x20]
jmp 0x417df8
call fcn.00419fa5
mov dword [eax], 0xd
call fcn.00419fae
mov dword [eax], 0xf
or eax, 0xffffffff
call fcn.0041c4db
ret

Function at 0x417e35
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x446490]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x417eb0
push ebx
call fcn.00417dfe
test eax, eax
pop ecx
jne 0x417e82
call fcn.00419fae
mov dword [eax], 0xf
call fcn.00419fa5
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.004195ce
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x417ec2
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x417e72
inc eax
cmp eax, 0x104
ja 0x417e72
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x417efa
cmp eax, dword [ebp + 0x10]
jg 0x417edd
mov eax, dword [ebp + 0x10]
push eax
call fcn.00418d60
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x417f0f
call fcn.00419fa5
mov dword [eax], 0xc
jmp 0x417e72
cmp eax, dword [ebp + 0x10]
jle 0x417f0f
call fcn.00419fa5
mov dword [eax], 0x22
jmp 0x417e72
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.0041c4f0
pop ecx
pop ecx
jmp 0x417e74
Function at 0x41846e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.0041c46c
xor esi, esi
inc esi
cmp dword [0x4497d4], esi
pop ecx
jne 0x418496
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 [0x4497d0], esi
mov byte [0x4497cc], al
jne 0x4184fc
mov ecx, dword [0x44b00c]
test ecx, ecx
je 0x4184dd
mov eax, dword [0x44b008]
sub eax, 4
cmp eax, ecx
jmp 0x4184d6
mov eax, dword [eax]
test eax, eax
je 0x4184c8
call eax
mov eax, dword [0x44b008]
sub eax, 4
cmp eax, dword [0x44b00c]
mov dword [0x44b008], eax
jae 0x4184c0
mov eax, 0x4450a4
mov esi, 0x4450ac
cmp eax, esi
mov edi, eax
jae 0x4184fc
mov eax, dword [edi]
test eax, eax
je 0x4184f5
call eax
add edi, 4
cmp edi, esi
jb 0x4184ed
mov eax, 0x4450b0
mov esi, 0x4450b8
cmp eax, esi
mov edi, eax
jae 0x41851b
mov eax, dword [edi]
test eax, eax
je 0x418514
call eax
add edi, 4
cmp edi, esi
jb 0x41850c
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x41852c
push 8
call fcn.0041c3d8
jmp 0x41853e
push dword [ebp + 8]
mov dword [0x4497d4], 1
call fcn.004183c7
pop ecx
pop ebp
ret
Function at 0x419087
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x43c6d0
call fcn.0041c4a0
mov edi, 0x94
mov eax, edi
call fcn.004189f0
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 [0x449794], ecx
mov eax, dword [esi + 4]
mov dword [0x4497a0], eax
mov edx, dword [esi + 8]
mov dword [0x4497a4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x449798], esi
cmp ecx, 2
je 0x4190e7
or esi, 0x8000
mov dword [0x449798], esi
shl eax, 8
add eax, edx
mov dword [0x44979c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x419122
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x419122
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41913a
cmp eax, 0x20b
je 0x419127
mov dword [ebp - 0x1c], esi
jmp 0x41914e
cmp dword [ecx + 0x84], 0xe
jbe 0x419122
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x419148
cmp dword [ecx + 0x74], 0xe
jbe 0x419122
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041ef80
pop ecx
test eax, eax
jne 0x419162
push 0x1c
call fcn.00419063
pop ecx
call fcn.0041acc5
test eax, eax
jne 0x419173
push 0x10
call fcn.00419063
pop ecx
call fcn.0041e295
mov dword [ebp - 4], esi
call fcn.00420674
test eax, eax
jge 0x41918c
push 0x1b
call fcn.0041903e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x44b000], eax
call fcn.00420552
mov dword [0x4497e0], eax
call fcn.004204b0
test eax, eax
jge 0x4191b2
push 8
call fcn.0041903e
pop ecx
call fcn.0042027d
test eax, eax
jge 0x4191c3
push 9
call fcn.0041903e
pop ecx
call fcn.00418409
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4191d6
push eax
call fcn.0041903e
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00420214
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x4191f7
movzx eax, word [ebp - 0x34]
jmp 0x4191fa
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00425030
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x419218
push edi
call fcn.00418541
call fcn.00418563
jmp 0x41924a
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041c4db
ret
Function at 0x41ff00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x446490]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x446d48]
je 0x41ff2d
inc eax
cmp eax, 0x12
jb 0x41ff1e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x446d48]
jne 0x420061
mov eax, dword [0x4497e8]
cmp eax, 1
je 0x42003c
cmp eax, edx
jne 0x41ff5d
cmp dword [0x44648c], 1
je 0x42003c
cmp ecx, 0xfc
je 0x420061
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41ff96
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.0041c4f0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004195e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41ffd8
lea eax, [ebp - 0x10c]
push eax
call fcn.004195e0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x43cef8
push edi
call fcn.00418ad0
add esp, 0x10
push edi
call fcn.004195e0
push dword [esi + 0x446d4c]
mov ebx, eax
call fcn.004195e0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004189f0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0041c4f0
push edi
push ebx
call fcn.0041c500
push 0x43ced8
push ebx
call fcn.0041c500
push dword [esi + 0x446d4c]
push ebx
call fcn.0041c500
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004234fa
add esp, 0x2c
jmp 0x420061
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x446d4c]
push dword [esi]
call fcn.004195e0
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004195ce
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420dbf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x446490]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x420de8
xor eax, eax
jmp 0x420f56
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 + 0x449c80]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x420e1b
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00423635
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x420eed
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x420f28
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x420e76
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x420e67
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x420e4a
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x420eb6
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x420ebf
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x420e3b
jmp 0x420ec1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x420f51
cmp dword [ebp - 8], edi
je 0x420f28
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x420f1a
call fcn.00419fa5
mov dword [eax], 9
call fcn.00419fae
mov dword [eax], esi
jmp 0x420f23
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x420f0f
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x420ec1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x420ec1
push dword [ebp - 8]
call fcn.00419fb7
pop ecx
or eax, 0xffffffff
jmp 0x420f54
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x420f3d
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x420f3d
xor eax, eax
jmp 0x420f54
call fcn.00419fa5
mov dword [eax], 0x1c
call fcn.00419fae
mov dword [eax], edi
jmp 0x420f23
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.004195ce
leave
ret
Function at 0x4217c8
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.004189f0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42185d
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 [0x449794]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x42185d
cmp eax, 1
je 0x421875
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 0x42185d
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x421832
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x421859
xor eax, eax
inc eax
jmp 0x421891
cmp esi, ebx
jae 0x421861
xor eax, eax
jmp 0x421891
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x449794]
jmp 0x421877
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 0x422222
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4223e8
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x449c80]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4223e8
test cl, 0x48
je 0x422288
mov al, byte [eax + 5]
cmp al, 0xa
je 0x422288
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4222da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4222c2
call fcn.00419fa5
mov dword [eax], 9
call fcn.00419fae
mov dword [eax], esi
jmp 0x4222d2
cmp eax, 0x6d
je 0x4223e8
push eax
call fcn.00419fb7
pop ecx
or eax, 0xffffffff
jmp 0x4223ea
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x4223e3
test edx, edx
je 0x4222fd
cmp byte [ebx], 0xa
jne 0x4222fd
or al, 4
jmp 0x4222ff
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4223dd
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4223cd
cmp al, 0xd
je 0x422333
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4223bf
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x42234d
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x422348
add dword [ebp + 0x10], 2
jmp 0x4223a1
mov dword [ebp + 0x10], eax
jmp 0x4223bb
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x422375
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4223bb
cmp dword [ebp - 0xc], 0
je 0x4223bb
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x422396
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4223a1
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4223be
cmp ebx, dword [ebp + 0xc]
jne 0x4223a6
cmp byte [ebp - 1], 0xa
jne 0x4223a6
mov byte [ebx], 0xa
jmp 0x4223be
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00420ca0
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4223bf
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x422317
jmp 0x4223dd
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x4223dd
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4223ea
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret