joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c4e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x68
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
xor eax, eax
mov dword [esp + 0x10], 0x5b0a0d
mov ecx, 0x18
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
push str.Search
lea eax, [esp + 0x14]
push eax
call esi
push 0x4173ec
lea ecx, [esp + 0x14]
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x10]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
push ebx
mov dword [esp + 0x20], eax
call ebp
mov esi, eax
mov eax, dword [0x4206f8]
push eax
push str.PosX
lea ecx, [esp + 0x18]
push str._s_d_r_n
push ecx
and esi, 1
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x10]
push edx
call edi
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
push ebx
mov dword [esp + 0x20], eax
call ebp
and esi, eax
mov eax, dword [0x4206fc]
push eax
push str.PosY
lea ecx, [esp + 0x18]
push str._s_d_r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x10]
push edx
call edi
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
push ebx
mov dword [esp + 0x20], eax
call ebp
and esi, eax
mov eax, dword [0x420700]
push eax
push str.Width
push str._s_d_r_n
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x10]
push edx
call edi
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
push ebx
mov dword [esp + 0x20], eax
call ebp
and esi, eax
mov eax, dword [0x4206b8]
push eax
push 0x417854
lea ecx, [esp + 0x18]
push str._s_d_r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x10]
push edx
call edi
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
push ebx
mov dword [esp + 0x20], eax
call ebp
and esi, eax
push str.LastWord
push ebx
or eax, 0xffffffff
mov ecx, 0x420730
call fcn.0040bda0
add esp, 8
pop edi
and eax, esi
pop esi
pop ebp
add esp, 0x68
ret
Function at 0x40c650
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x70
mov eax, dword [0x419a64]
mov ecx, dword [0x419abc]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
push str.Unhook
lea edx, [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x1c], 0x5b0a0d
mov ecx, 0x18
lea edi, [esp + 0x20]
push edx
rep stosd dword es:[edi], eax
call esi
push 0x4173ec
lea eax, [esp + 0x1c]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x18]
push ecx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x24]
push eax
push ebx
call ebp
mov ecx, dword [esp + 0x10]
push ecx
push str.Flag
lea edx, [esp + 0x20]
mov esi, eax
push str._s_08x_r_n
push edx
and esi, 1
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x18]
push eax
call edi
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x24]
push edx
push ebx
mov dword [esp + 0x24], eax
call ebp
and esi, eax
mov eax, dword [esp + 0x14]
push eax
push str.DelayTime
lea ecx, [esp + 0x20]
push str._s_d_r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x18]
push edx
call edi
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x24]
push edx
push ebx
mov dword [esp + 0x28], eax
call ebp
pop edi
and eax, esi
pop esi
pop ebp
add esp, 0x70
ret
Function at 0x40c750
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe8
mov eax, dword [0x41b37c]
mov ecx, dword [0x41b378]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
push str.Suppression
lea edx, [esp + 0x24]
xor eax, eax
mov dword [esp + 0x24], 0x5b0a0d
mov ecx, 0x18
lea edi, [esp + 0x28]
push edx
rep stosd dword es:[edi], eax
call esi
push 0x4173ec
lea eax, [esp + 0x24]
push eax
call esi
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [esp + 0x18]
push edi
push str.Count
lea ecx, [esp + 0x28]
mov esi, eax
push str._s_d_r_n
push ecx
and esi, 1
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x2c]
push edx
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
and esi, eax
test edi, edi
mov dword [esp + 0x14], edx
jle 0x40c960
mov eax, dword [esp + 0x10]
add eax, 0x10c
mov dword [esp + 0xc], eax
jmp 0x40c830
mov edx, dword [esp + 0x14]
nop
xor eax, eax
test edx, edx
mov ecx, 0x18
lea edi, [esp + 0x24]
mov dword [esp + 0x20], 0x5b0a0d
rep stosd dword es:[edi], eax
jl 0x40c86a
push edx
push str.Target_03u
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + eax + 0x28]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40c87a
push str.Target_03u
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4173ec
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x2c]
push edx
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [esp + 0xc]
and esi, eax
mov eax, dword [edi - 0x10c]
push eax
push str.Flags
lea ecx, [esp + 0x90]
push str._s_08x_r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x88]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x94]
push edx
push ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
and esi, eax
push 0x417810
lea ecx, [edi - 0x104]
push ebx
or eax, 0xffffffff
call fcn.0040bda0
and esi, eax
push str.Class
push ebx
or eax, 0xffffffff
mov ecx, edi
call fcn.0040bda0
and esi, eax
push str.Caption
lea ecx, [edi + 0x401]
push ebx
or eax, 0xffffffff
call fcn.0040bda0
mov ecx, dword [esp + 0x30]
and esi, eax
mov eax, dword [esp + 0x2c]
add esp, 0x18
inc eax
add edi, 0x614
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], edi
jl 0x40c82b
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e7b0
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x17c
push ebx
push esi
mov esi, ecx
test esi, esi
push edi
jne 0x40e7f9
test eax, eax
jne 0x40e7d0
lea eax, [esp + 0x80]
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e7f9
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
xor eax, eax
mov dword [esp + 0x18], 0x5b0a0d
mov ecx, 0x18
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
push str.Skin
lea eax, [esp + 0x1c]
push eax
call ebx
push 0x4173ec
lea ecx, [esp + 0x1c]
push ecx
call ebx
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x24]
push edx
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push str.Name
push esi
or eax, 0xffffffff
mov ecx, 0x41b6c0
call fcn.0040bda0
add esp, 8
mov eax, esi
call fcn.0040e9c0
xor eax, eax
mov dword [esp + 0x18], 0x5b0a0d
mov ecx, 0x18
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
push str.Window
lea eax, [esp + 0x1c]
push eax
call ebx
push 0x4173ec
lea ecx, [esp + 0x1c]
push ecx
call ebx
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x24]
push edx
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, 0x41d84c
mov ebx, esi
call fcn.0040f200
xor ebx, ebx
cmp ebx, dword [0x41de7c]
mov dword [esp + 0x10], ebx
jg 0x40e99f
test ebx, ebx
jne 0x40e945
xor eax, eax
mov dword [esp + 0x18], 0x5b0a0d
mov ecx, 0x18
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.PageDefault
lea eax, [esp + 0x1c]
push eax
call edi
push 0x4173ec
lea ecx, [esp + 0x1c]
push ecx
call edi
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x24]
push edx
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x41d8f0
mov eax, esi
call fcn.0040f480
add esp, 4
inc ebx
jmp 0x40e8ca
lea edi, [ebx - 1]
push esi
mov edx, edi
mov ebx, str.Page_03u
call fcn.0040bcb0
add esp, 4
test edi, edi
jl 0x40e988
cmp edi, dword [0x41de7c]
jge 0x40e988
mov eax, dword [0x41deac]
imul edi, edi, 0x134
lea eax, [edi + eax + 0x38]
push eax
mov eax, esi
call fcn.0040f480
mov ebx, dword [esp + 0x14]
add esp, 4
inc ebx
jmp 0x40e8ca
xor eax, eax
push eax
mov eax, esi
call fcn.0040f480
mov ebx, dword [esp + 0x14]
add esp, 4
inc ebx
jmp 0x40e8ca
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x150
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
xor eax, eax
mov dword [esp + 0x20], 0x5b0a0d
mov ecx, 0x18
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
push str.Font
lea eax, [esp + 0x24]
push eax
call esi
push 0x4173ec
lea ecx, [esp + 0x24]
push ecx
call esi
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x2c]
push edx
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
mov eax, dword [ebp + 8]
and esi, 1
test eax, eax
je 0x40f0ad
cmp eax, 1
je 0x40f0ad
mov eax, dword [0x41b388]
and eax, 1
imul eax, eax, 0x148
add eax, 0x41b430
add eax, 0x74
mov dword [esp + 0x10], 0x419c1c
mov dword [esp + 0xc], eax
jmp 0x40f0d0
xor eax, eax
mov dword [esp + 0x20], 0x5b0a0d
mov ecx, 0x18
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push ecx
lea edx, [esp + 0x24]
push edx
call edi
push 0x4173ec
lea eax, [esp + 0x24]
push eax
call edi
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [esp + 0xc]
mov ecx, dword [edi - 4]
push ecx
push str.Size
lea edx, [esp + 0x90]
push str._s_d_r_n
push edx
and esi, eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x94]
push edx
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
and esi, eax
mov eax, dword [edi]
push eax
push str.Flag
lea ecx, [esp + 0xf8]
push str._s_08x_r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0xf0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0xfc]
push edx
push ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
and esi, eax
push str.Face
lea ecx, [edi + 4]
push ebx
or eax, 0xffffffff
call fcn.0040bda0
and esi, eax
mov eax, dword [esp + 0x18]
add esp, 8
add eax, 4
add edi, 0x2c
cmp eax, 0x419c30
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
jl 0x40f0d0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40fa60
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, eax
mov eax, dword [0x41b364]
test ah, 4
je 0x40fa9b
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ecx]
push 0xa
call ebx
call esi
call esi
sub eax, edi
cmp eax, 0xbb8
ja 0x40faa4
mov eax, dword [0x41b364]
test ah, 4
jne 0x40fa80
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x41018d
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4152c0
call fcn.00411c90
mov edi, 0x94
mov eax, edi
call fcn.00411df0
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 [0x419cd0], ecx
mov eax, dword [esi + 4]
mov dword [0x419cdc], eax
mov edx, dword [esi + 8]
mov dword [0x419ce0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x419cd4], esi
cmp ecx, 2
je 0x4101ed
or esi, 0x8000
mov dword [0x419cd4], esi
shl eax, 8
add eax, edx
mov dword [0x419cd8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x410228
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x410228
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x410240
cmp eax, 0x20b
je 0x41022d
mov dword [ebp - 0x1c], esi
jmp 0x410254
cmp dword [ecx + 0x84], 0xe
jbe 0x410228
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41024e
cmp dword [ecx + 0x74], 0xe
jbe 0x410228
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00411c3f
pop ecx
test eax, eax
jne 0x410268
push 0x1c
call fcn.00410169
pop ecx
call fcn.00410783
test eax, eax
jne 0x410279
push 0x10
call fcn.00410169
pop ecx
call fcn.00411b9d
mov dword [ebp - 4], esi
call fcn.0041199f
test eax, eax
jge 0x410292
push 0x1b
call fcn.00410144
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x420f40], eax
call fcn.0041187d
mov dword [0x419ca0], eax
call fcn.004117db
test eax, eax
jge 0x4102b8
push 8
call fcn.00410144
pop ecx
call fcn.004115a8
test eax, eax
jge 0x4102c9
push 9
call fcn.00410144
pop ecx
push 1
call fcn.004110c9
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4102df
push eax
call fcn.00410144
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041154b
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x410300
movzx eax, word [ebp - 0x40]
jmp 0x410303
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00402500
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x410321
push edi
call fcn.004111f6
call fcn.00411218
jmp 0x410353
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00411ccb
ret
Function at 0x411133
Capabilities:
Terminate process

Disassembly:
push 8
push 0x415a18
call fcn.00411c90
push 8
call fcn.004126e3
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x419d10], esi
jne 0x411167
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x419d0c], esi
mov al, byte [ebp + 0x10]
mov byte [0x419d08], al
cmp dword [ebp + 0xc], edi
jne 0x4111b1
cmp dword [0x420d08], edi
je 0x4111a1
mov eax, dword [0x420d04]
sub eax, 4
mov dword [0x420d04], eax
cmp eax, dword [0x420d08]
jb 0x4111a1
mov eax, dword [eax]
cmp eax, edi
je 0x411182
call eax
jmp 0x411182
push 0x419024
mov eax, 0x419020
call fcn.004110b1
pop ecx
push 0x419030
mov eax, 0x419028
call fcn.004110b1
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4111e2
cmp dword [ebp + 0x10], edi
jne 0x4111f0
mov dword [0x419d10], esi
push dword [ebp + 8]
call fcn.0041106f
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4111ef
push 8
call fcn.0041262e
pop ecx
ret
call fcn.00411ccb
ret

Function at 0x411236
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4197b0]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x419448]
je 0x41126d
inc eax
cmp eax, 0x13
jb 0x41125e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x419448]
jne 0x411390
mov eax, dword [0x419ca8]
cmp eax, 1
je 0x41136b
cmp eax, edx
jne 0x41129d
cmp dword [0x419044], 1
je 0x41136b
cmp ecx, 0xfc
je 0x411390
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4112d3
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.004122b0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00412af0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x411307
mov eax, edi
push eax
call fcn.00412af0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x415e10
push edi
call fcn.00412400
add esp, 0x10
push edi
call fcn.00412af0
push dword [esi + 0x41944c]
mov ebx, eax
call fcn.00412af0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00411df0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004122b0
push edi
push ebx
call fcn.004122c0
push 0x415df0
push ebx
call fcn.004122c0
push dword [esi + 0x41944c]
push ebx
call fcn.004122c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00413ecb
add esp, 0x2c
jmp 0x411390
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x41944c]
push dword [esi]
call fcn.00412af0
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]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00412bac
add ebp, 0x90
leave
ret
Function at 0x413ecb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x419ffc], ebx
push esi
push edi
jne 0x413f4b
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x413f86
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x416044
push edi
call esi
test eax, eax
mov dword [0x419ffc], eax
je 0x413f86
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41a000], eax
call esi
cmp dword [0x419cd0], 2
mov dword [0x41a004], eax
jne 0x413f4b
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41a00c], eax
je 0x413f4b
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41a008], eax
mov eax, dword [0x41a008]
test eax, eax
je 0x413f90
call eax
test eax, eax
je 0x413f77
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41a00c]
test eax, eax
je 0x413f77
test byte [ebp - 8], 1
jne 0x413f90
cmp dword [0x419cdc], 4
jb 0x413f8a
or byte [ebp + 0x12], 0x20
jmp 0x413faf
xor eax, eax
jmp 0x413fbf
or byte [ebp + 0x12], 4
jmp 0x413faf
mov eax, dword [0x41a000]
test eax, eax
je 0x413faf
call eax
mov ebx, eax
test ebx, ebx
je 0x413faf
mov eax, dword [0x41a004]
test eax, eax
je 0x413faf
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x419ffc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4140a3
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 0x4140d1
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 0x4140d8
cmp ebx, dword [eax + 4]
jae 0x4140d8
xor eax, eax
jmp 0x4142c8
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4140e9
xor eax, eax
inc eax
jmp 0x4142c7
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4140ff
cmp ecx, edx
jae 0x414244
cmp dword [eax + 4], 0
je 0x414108
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4140f0
cmp dword [ebp + 8], 0
je 0x41412a
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x414244
cmp eax, esi
jae 0x414244
mov eax, dword [0x41a018]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41414f
cmp dword [esi*4 + 0x41a020], edi
je 0x414248
inc esi
cmp esi, eax
jl 0x41413d
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4142c4
cmp dword [ebp - 8], 0x1000000
jne 0x4142c4
test byte [ebp - 0xc], 0xcc
je 0x4141cd
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4142c4
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4142c4
cmp word [eax + 0x18], 0x10b
jne 0x4142c4
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4142c4
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4141cd
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4141cd
test byte [ecx + 0x27], 0x80
jne 0x414244
push 1
push 0x41a060
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4140e1
mov ecx, dword [0x41a018]
test ecx, ecx
mov edx, ecx
jle 0x414201
lea eax, [ecx*4 + 0x41a01c]
cmp dword [eax], edi
je 0x414201
dec edx
sub eax, 4
test edx, edx
jg 0x4141f5
test edx, edx
jne 0x414232
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41420e
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x414226
lea eax, [edx*4 + 0x41a020]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x414214
cmp ecx, 0x10
jge 0x414232
inc ecx
mov dword [0x41a018], ecx
push 0
push 0x41a060
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4140e1
xor eax, eax
jmp 0x4142c7
test esi, esi
jle 0x4140e1
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x41a060
call ebx
test eax, eax
jne 0x4140e1
cmp dword [esi*4 + 0x41a020], edi
je 0x41429e
mov eax, dword [0x41a018]
lea esi, [eax - 1]
test esi, esi
jl 0x41428c
cmp dword [esi*4 + 0x41a020], edi
je 0x414288
dec esi
jns 0x41427c
test esi, esi
jge 0x41429c
cmp eax, 0x10
jge 0x414297
inc eax
mov dword [0x41a018], eax
lea esi, [eax - 1]
jmp 0x41429e
je 0x4142b6
xor ecx, ecx
test esi, esi
jl 0x4142b6
lea eax, [ecx*4 + 0x41a020]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4142a4
push 0
push 0x41a060
call ebx
jmp 0x4140e1
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4144ed
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00411df0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x414588
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x419cd0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x414588
cmp eax, 1
je 0x4145a9
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x414588
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x414555
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x414584
xor eax, eax
inc eax
jmp 0x4145c8
cmp edi, eax
jae 0x41458c
xor eax, eax
jmp 0x4145c8
cmp eax, esi
jae 0x414593
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x419cd0]
jmp 0x4145ac
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret