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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x455fff
add esp, 0xfffffff0
call fcn.00403498
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b368
mov eax, dword [0x47d9ec]
cmp word [eax + 2], 0
jne 0x456027
mov eax, dword [0x47d9ec]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004576d8
mov eax, dword [0x47db28]
cmp word [eax + 2], 0
jne 0x456041
mov eax, dword [0x47db28]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004578d0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412160]
call fcn.00403144
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412160]
call fcn.00403144
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41d8c4]
call fcn.00424e10
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4561c8
mov eax, dword [0x47d870]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004251e0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x457e70
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x47d870]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cb54
test eax, eax
je 0x456136
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408cf8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cb7c
test eax, eax
je 0x45614a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004041d8
mov eax, dword [0x47d63c]
cmp byte [eax], 0
jne 0x45617e
mov eax, ebx
call fcn.004562f0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045804c
mov eax, ebx
call fcn.00458a10
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4561be
call fcn.004034f0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x456570
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x47ebe8]
cmp dword [eax + 0x30], 0
je 0x45661a
cmp dword [ebx + 0x94], 0
jne 0x456614
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x456500
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x456614
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4565da
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x456614
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041484c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4565e9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45717c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4571b1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404058
jmp 0x4571be
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403fbc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x458228
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x458269
mov eax, esi
call fcn.0043e92c
test al, al
je 0x458269
mov eax, dword [ebx + 0x84]
call fcn.0043e628
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x458269
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043e628
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4672d8
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4672e0
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4674d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4674e8
mov eax, esi
call fcn.00464ed8
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00403fbc
lea ecx, [ebp - 0x10]
mov edx, 0x4674fc
mov eax, esi
call fcn.00464ed8
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00403fbc
lea ecx, [ebp - 0x14]
mov edx, 0x467514
mov eax, esi
call fcn.00464ed8
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00403fbc
lea ecx, [ebp - 0x18]
mov edx, 0x467530
mov eax, esi
call fcn.00464ed8
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00403fbc
lea ecx, [ebp - 0x1c]
mov edx, 0x46754c
mov eax, esi
call fcn.00464ed8
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00403fbc
lea ecx, [ebp - 0x24]
mov edx, 0x467564
mov eax, esi
call fcn.00464ed8
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408258
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408638
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x46757c
mov eax, esi
call fcn.00464ed8
mov eax, dword [ebp - 0x28]
call fcn.0045e5e8
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x46758c
mov eax, esi
call fcn.00464ed8
mov eax, dword [ebp - 0x2c]
call fcn.0045e5e8
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4675a4
mov eax, esi
call fcn.00464ed8
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408638
inc eax
je 0x467475
lea ecx, [ebp - 0x34]
mov edx, 0x4675a4
mov eax, esi
call fcn.00464ed8
mov eax, dword [ebp - 0x34]
call fcn.004085fc
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.00409c68
fstp qword [ebp - 0x3c]
wait
call fcn.00409fcc
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x467490
lea ecx, [ebp - 0x40]
mov edx, 0x4675a4
mov eax, esi
call fcn.00464ed8
mov eax, dword [ebp - 0x40]
call fcn.0045e5e8
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4675b4
mov eax, esi
call fcn.00464ed8
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00403fbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4674d9
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00403f8c
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00403f8c
ret
Function at 0x4797d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4798ad
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
call fcn.00403f68
xor edx, edx
push ebp
push 0x47986f
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
push eax
push esi
mov eax, ebx
call fcn.0043e628
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x479865
lea eax, [ebp - 0x111]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x479865
lea eax, [ebp - 0x118]
lea edx, [ebp - 0x111]
mov ecx, 0x105
call fcn.004041d8
mov edx, dword [ebp - 0x118]
lea eax, [ebp - 0xc]
mov ecx, 0x4798c4
call fcn.00404274
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x479881
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00403fbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4798b4
lea eax, [ebp - 0x118]
call fcn.00403f68
lea eax, [ebp - 0xc]
call fcn.00403f68
ret

Function at 0x4798c8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
xor edx, edx
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4799b7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
mov eax, ebx
call fcn.0043e628
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x10d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
lea eax, [ebp - 0x114]
lea edx, [ebp - 0x10d]
mov ecx, 0x105
call fcn.004041d8
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 4]
mov ecx, 0x4799cc
call fcn.00404274
lea ecx, [ebp - 0x118]
mov edx, 3
mov eax, dword [ebp - 4]
call fcn.0042ab64
mov edx, dword [ebp - 0x118]
mov eax, 0x47f3cc
mov ecx, 0x4799d8
call fcn.00404274
mov eax, 0xff
call fcn.00408ebc
mov ebx, eax
push 0xff
push ebx
call sub.KERNEL32.DLL_GetSystemDirectoryA
mov eax, 0x47f3c8
mov edx, ebx
call fcn.00404160
mov eax, ebx
call fcn.00408f08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4799be
lea eax, [ebp - 0x118]
mov edx, 2
call fcn.00403f8c
lea eax, [ebp - 4]
call fcn.00403f68
ret
Function at 0x4799f4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404418
xor eax, eax
push ebp
push 0x479acb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404428
call fcn.00408cbc
cmp eax, 5
jb 0x479ab5
xor eax, eax
push ebp
push 0x479aa9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x22]
xor ecx, ecx
mov edx, 0x1e
call fcn.00402b84
lea eax, [ebp - 0x122]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00402b84
lea eax, [ebp - 0x122]
mov edx, dword [ebp - 4]
call fcn.00408d54
xor eax, eax
mov dword [ebp - 0x22], eax
lea eax, [ebp - 0x122]
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x1e], 3
mov word [ebp - 0x12], 0x40
or word [ebp - 0x12], 0x10
or word [ebp - 0x12], 4
lea eax, [ebp - 0x22]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x479ab5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479ad2
lea eax, [ebp - 4]
call fcn.00403f68
ret

Function at 0x479fdc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404418
xor eax, eax
push ebp
push 0x47a0b0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov dword [ebp - 0x12c], 0x128
xor edx, edx
mov eax, 2
call fcn.00471e18
mov esi, eax
lea edx, [ebp - 0x12c]
mov eax, esi
call fcn.00471e38
test eax, eax
je 0x47a089
lea eax, [ebp - 0x130]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.004041d8
mov eax, dword [ebp - 0x130]
mov edx, dword [ebp - 4]
call fcn.004080d0
test eax, eax
jne 0x47a078
mov eax, dword [ebp - 0x124]
push eax
push 0xffffffffffffffff
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
push 0
push eax
call sub.KERNEL32.DLL_TerminateProcess
mov bl, 1
lea edx, [ebp - 0x12c]
mov eax, esi
call fcn.00471e58
test eax, eax
jne 0x47a033
push esi
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a0b7
lea eax, [ebp - 0x130]
call fcn.00403f68
lea eax, [ebp - 4]
call fcn.00403f68
ret
Function at 0x4011e5
Capabilities:
Terminate process

Disassembly:
push 0
push str.EPOC_error
push dword [esp + 0xc]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xa
call fcn.00405a1d
int3

Function at 0x401a8a
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push esi
lea edx, [ecx + eax]
cmp ecx, edx
push edi
mov edi, dword [esp + 0xc]
movzx eax, word [edi]
mov esi, ecx
jae 0x401ac8
push ebx
xor ebx, ebx
mov bl, byte [esi]
mov ecx, eax
shr ecx, 8
shl eax, 8
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x40d248]
xor eax, ecx
inc esi
cmp esi, edx
jb 0x401aa5
pop ebx
mov word [edi], ax
pop edi
pop esi
ret
Function at 0x4036bb
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x24]
push esi
mov ecx, dword [edi + 0x64]
mov eax, dword [edi + 0x34]
mov edx, dword [edi + 0x6c]
sub eax, ecx
sub eax, edx
mov dword [ebp - 4], eax
jne 0x4036e2
test ecx, ecx
jne 0x4036ec
test edx, edx
jne 0x4036ec
mov eax, ebx
jmp 0x403758
cmp eax, 0xffffffff
jne 0x4036ec
push 0xfffffffffffffffe
pop eax
jmp 0x403758
mov edx, dword [edi + 0x24]
lea edx, [ebx + edx - 0x106]
cmp ecx, edx
jb 0x403758
mov eax, dword [edi + 0x30]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00405aa0
mov ecx, dword [edi + 0x44]
mov eax, dword [edi + 0x3c]
sub dword [edi + 0x68], ebx
sub dword [edi + 0x64], ebx
add esp, 0xc
sub dword [edi + 0x54], ebx
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov esi, edx
sub esi, ebx
cmp edx, ebx
sbb edx, edx
not edx
and edx, esi
dec ecx
mov word [eax], dx
jne 0x40371d
mov eax, dword [edi + 0x38]
mov edx, ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov esi, ecx
sub esi, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, esi
dec edx
mov word [eax], cx
jne 0x40373c
mov eax, dword [ebp - 4]
add eax, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x4037b1
push eax
mov eax, dword [edi + 0x6c]
add eax, dword [edi + 0x64]
add eax, dword [edi + 0x30]
push eax
call fcn.004034a9
add dword [edi + 0x6c], eax
mov esi, dword [edi + 0x6c]
cmp esi, 3
pop ecx
pop ecx
jb 0x40379d
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x30]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x50]
mov dword [edi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x4c]
mov dword [edi + 0x40], eax
cmp esi, 0x106
jae 0x4037b1
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x4036c4
pop esi
pop ebx
leave
ret

Function at 0x40595b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x412cac], esi
push edi
jne 0x40597b
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 [0x412ca8], esi
mov byte [0x412ca4], al
jne 0x4059e1
mov ecx, dword [0x41424c]
test ecx, ecx
je 0x4059c2
mov eax, dword [0x414248]
sub eax, 4
cmp eax, ecx
jmp 0x4059bb
mov eax, dword [eax]
test eax, eax
je 0x4059ad
call eax
mov eax, dword [0x414248]
sub eax, 4
cmp eax, dword [0x41424c]
mov dword [0x414248], eax
jae 0x4059a5
mov eax, 0x411024
mov esi, 0x41102c
cmp eax, esi
mov edi, eax
jae 0x4059e1
mov eax, dword [edi]
test eax, eax
je 0x4059da
call eax
add edi, 4
cmp edi, esi
jb 0x4059d2
mov eax, 0x411030
mov esi, 0x411038
cmp eax, esi
mov edi, eax
jae 0x405a00
mov eax, dword [edi]
test eax, eax
je 0x4059f9
call eax
add edi, 4
cmp edi, esi
jb 0x4059f1
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x405a1b
push dword [ebp + 8]
mov dword [0x412cac], 1
call fcn.004058c6
pop ecx
pop ebp
ret
Function at 0x406c28
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40f158
call fcn.00409894
mov edi, 0x94
mov eax, edi
call fcn.004098e0
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 [0x412c6c], ecx
mov eax, dword [esi + 4]
mov dword [0x412c78], eax
mov edx, dword [esi + 8]
mov dword [0x412c7c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x412c70], esi
cmp ecx, 2
je 0x406c88
or esi, 0x8000
mov dword [0x412c70], esi
shl eax, 8
add eax, edx
mov dword [0x412c74], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x406cc3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406cc3
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x406cdb
cmp eax, 0x20b
je 0x406cc8
mov dword [ebp - 0x1c], esi
jmp 0x406cef
cmp dword [ecx + 0x84], 0xe
jbe 0x406cc3
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x406ce9
cmp dword [ecx + 0x74], 0xe
jbe 0x406cc3
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004073bd
pop ecx
test eax, eax
jne 0x406d1b
cmp dword [0x412cc0], 1
jne 0x406d08
call fcn.00409289
push 0x1c
call fcn.00409112
push 0xff
call fcn.004058c6
pop ecx
pop ecx
call fcn.0040731b
mov dword [ebp - 4], esi
call fcn.00408ea4
test eax, eax
jge 0x406d34
push 0x1b
call fcn.00406c03
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x413224], eax
call fcn.00409771
mov dword [0x412cb8], eax
call fcn.004096cf
test eax, eax
jge 0x406d5a
push 8
call fcn.00406c03
pop ecx
call fcn.0040949c
test eax, eax
jge 0x406d6b
push 9
call fcn.00406c03
pop ecx
call fcn.004058f6
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x406d7e
push eax
call fcn.00406c03
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.00409433
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x406d9f
movzx eax, word [ebp - 0x34]
jmp 0x406da2
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00402f1b
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x406dc0
push edi
call fcn.00405a1d
call fcn.00405a3f
jmp 0x406df2
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004098cf
ret
Function at 0x408312
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4127d8]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x4130e0]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
jae 0x4084a2
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x413100]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x18], ebx
je 0x4084a2
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
jne 0x408371
xor eax, eax
jmp 0x4084b6
test al, 0x20
je 0x408382
push 2
push edi
push edi
push ecx
call fcn.0040a9c9
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40843e
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x408476
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
cmp ecx, dword [ebp + 0x10]
jae 0x4083d8
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4083c9
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x18]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x4083ae
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x10]
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 0x408418
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x408421
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4083a2
jmp 0x408423
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x40849d
cmp dword [ebp + 8], edi
je 0x408476
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x40846b
mov dword [0x412c64], eax
jmp 0x4084a9
push edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x408460
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x408423
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 8], eax
jmp 0x408423
push dword [ebp + 8]
call fcn.0040a749
pop ecx
jmp 0x4084b3
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40848b
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x40836a
mov dword [0x412c60], 0x1c
mov dword [0x412c64], edi
jmp 0x4084b3
sub eax, dword [ebp - 0x14]
jmp 0x4084b6
and dword [0x412c64], 0
mov dword [0x412c60], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.0040aa99
leave
ret
Function at 0x409112
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4127d8]
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 + 0x412500]
je 0x40913f
inc eax
cmp eax, 0x12
jb 0x409130
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x412500]
jne 0x409273
mov eax, dword [0x412cc0]
cmp eax, 1
je 0x40924e
cmp eax, edx
jne 0x40916f
cmp dword [0x4124c4], 1
je 0x40924e
cmp ecx, 0xfc
je 0x409273
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 0x4091a8
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.004068c0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00406330
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4091ea
lea eax, [ebp - 0x10c]
push eax
call fcn.00406330
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f600
push edi
call fcn.004060a0
add esp, 0x10
push edi
call fcn.00406330
push dword [esi + 0x412504]
mov ebx, eax
call fcn.00406330
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004098e0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004068c0
push edi
push ebx
call fcn.004068d0
push 0x40f5e0
push ebx
call fcn.004068d0
push dword [esi + 0x412504]
push ebx
call fcn.004068d0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040ac95
add esp, 0x2c
jmp 0x409273
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x412504]
push dword [esi]
call fcn.00406330
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.0040aa99
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ac95
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x412e40], ebx
push esi
push edi
jne 0x40ad15
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40ad50
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x40fa94
push edi
call esi
test eax, eax
mov dword [0x412e40], eax
je 0x40ad50
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x412e44], eax
call esi
cmp dword [0x412c6c], 2
mov dword [0x412e48], eax
jne 0x40ad15
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x412e50], eax
je 0x40ad15
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x412e4c], eax
mov eax, dword [0x412e4c]
test eax, eax
je 0x40ad5a
call eax
test eax, eax
je 0x40ad41
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x412e50]
test eax, eax
je 0x40ad41
test byte [ebp - 8], 1
jne 0x40ad5a
cmp dword [0x412c78], 4
jb 0x40ad54
or byte [ebp + 0x12], 0x20
jmp 0x40ad79
xor eax, eax
jmp 0x40ad89
or byte [ebp + 0x12], 4
jmp 0x40ad79
mov eax, dword [0x412e44]
test eax, eax
je 0x40ad79
call eax
mov ebx, eax
test ebx, ebx
je 0x40ad79
mov eax, dword [0x412e48]
test eax, eax
je 0x40ad79
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x412e40]
pop edi
pop esi
pop ebx
leave
ret