joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405fe0
Capabilities:
Change the wallpaper

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push edi
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [0x40f0cc], 8
jb 0x406238
mov dword [ebp - 0x108], 0
push str.FTFLX1.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
je 0x406200
push str.MyIsAd
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x110], eax
call dword [ebp - 0x110]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
je 0x40612e
cmp dword [0x410928], 0
je 0x4060c7
push 0
push 0x4110a4
push 0
push 0
push 0
push 0
push 0x222110
mov ecx, dword [0x410704]
push ecx
mov edx, dword [0x410928]
push edx
call fcn.00408d70
add esp, 0x24
push 0
push 0x4110a4
push 0
push 0
push 0
push 0
push 0x222110
mov eax, dword [0x410708]
push eax
mov ecx, dword [0x410928]
push ecx
call fcn.00409390
add esp, 0x24
jmp 0x40612e
cmp dword [0x40f0cc], 8
jne 0x4060fb
push 0
push 0x4110a4
push 0
push 0
push 0
push 0
push 0x272110
mov edx, dword [0x410704]
push edx
mov eax, dword [0x410928]
push eax
call fcn.00408d70
add esp, 0x24
jmp 0x40612e
cmp dword [0x40f0cc], 9
jne 0x40612e
push 0
push 0x4110a4
push 0
push 0
push 0
push 0
push 0x222110
mov ecx, dword [0x410704]
push ecx
mov edx, dword [0x410928]
push edx
call fcn.00408d70
add esp, 0x24
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x410928], 0
je 0x406199
push 0
push 0x4110a4
push 0
push 0
push 0
push 0
push 0x22210c
mov ecx, dword [0x410704]
push ecx
mov edx, dword [0x410928]
push edx
call fcn.00408d70
add esp, 0x24
push 0
push 0x4110a4
push 0
push 0
push 0
push 0
push 0x22210c
mov eax, dword [0x410708]
push eax
mov ecx, dword [0x410928]
push ecx
call fcn.00409390
add esp, 0x24
jmp 0x406200
cmp dword [0x40f0cc], 8
jne 0x4061cd
push 0
push 0x4110a4
push 0
push 0
push 0
push 0
push 0x27210c
mov edx, dword [0x410704]
push edx
mov eax, dword [0x410928]
push eax
call fcn.00408d70
add esp, 0x24
jmp 0x406200
cmp dword [0x40f0cc], 9
jne 0x406200
push 0
push 0x4110a4
push 0
push 0
push 0
push 0
push 0x22210c
mov ecx, dword [0x410704]
push ecx
mov edx, dword [0x410928]
push edx
call fcn.00408d70
add esp, 0x24
push 3
push 0
push 0x14
push 0x1e
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 3
push 0
push 0x14
push 0x1d
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 3
push 0
push 0x14
push 0x4d
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 3
push 0
push 0x14
push 0x4c
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x408170
Capabilities:
Create process on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push edi
mov dword [ebp - 0x20c], 0
mov byte [ebp - 0x41c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x41b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x310], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x30f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x208], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x314], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 2
je 0x408310
cmp dword [ebp - 0x420], 0x16
je 0x408310
cmp dword [ebp - 0x420], 0x400
je 0x408230
jmp 0x40831a
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x424], ecx
cmp dword [ebp - 0x424], 0x2345
je 0x408256
cmp dword [ebp - 0x424], 0x3412
je 0x408284
jmp 0x40830e
mov dword [0x4110a8], 0
push 0x411098
push 0
mov edx, dword [ebp + 8]
push edx
push 0x408ae0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4110a8], eax
jmp 0x40830e
push 0x104
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [0x411100]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 4
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0x41c]
push edx
call fcn.00409da0
add esp, 8
push 0x5c
lea eax, [ebp - 0x41c]
push eax
call fcn.00409fa0
add esp, 8
mov byte [eax], 0
push str.Fidvrpad.exe
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
lea edx, [ebp - 0x310]
push edx
push 0
lea eax, [ebp - 0x41c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x408340
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x408340
cmp dword [ebp + 0xc], 0x400
jbe 0x408328
or eax, 0xffffffff
jmp 0x408342
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_DefWindowProcA]
jmp 0x408342
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40b0d9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40ffe8
cmp edx, dword [eax]
je 0x40b0fb
add eax, 8
inc ecx
cmp eax, 0x410078
jl 0x40b0ec
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40ffe8]
jne 0x40b229
mov eax, dword [0x410e9c]
cmp eax, 1
je 0x40b203
test eax, eax
jne 0x40b12c
cmp dword [0x40ff34], 1
je 0x40b203
cmp edx, 0xfc
je 0x40b229
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b163
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409da0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040b800
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b1a6
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040b800
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40e4b0
push edi
call fcn.0040c860
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409da0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409db0
lea eax, [ebp - 0xa0]
push 0x40e490
push eax
call fcn.00409db0
push dword [esi + 0x40ffec]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409db0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040c7d7
add esp, 0x2c
pop edi
jmp 0x40b229
lea eax, [ebp + 8]
lea esi, [esi + 0x40ffec]
push 0
push eax
push dword [esi]
call fcn.0040b800
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]
pop esi
leave
ret
Function at 0x401ea0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x40a1f4]
xor eax, dword [esp + 0x108]
push esi
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x110]
push edi
push eax
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.starcur.ini
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea eax, [esp + 8]
push eax
push 0
push str.Type
push str.Star
call edi
cmp al, 3
mov esi, dword [esp + 0x118]
mov byte [esi], al
jb 0x401f07
mov byte [esi], 0
lea ecx, [esp + 8]
push ecx
push 0
push str.Color
push str.Star
call edi
cmp al, 5
mov byte [esi + 1], al
jb 0x401f25
mov byte [esi + 1], 0
lea edx, [esp + 8]
push edx
push 0
push str.Size
push str.Star
call edi
cmp al, 3
mov byte [esi + 2], al
jb 0x401f43
mov byte [esi + 2], 0
lea eax, [esp + 8]
push eax
push 1
push 0x407444
push str.Star
call edi
cmp al, 3
mov byte [esi + 3], al
jb 0x401f61
mov byte [esi + 3], 1
lea ecx, [esp + 8]
push ecx
push 0
push str.Always
push str.System
call edi
lea edx, [esp + 8]
push edx
push 5
push str.PosX
push str.System
mov dword [esi + 4], eax
mov dword [esi + 8], 0
call edi
mov dword [esi + 0xc], eax
lea eax, [esp + 8]
push eax
push 0xf
push str.PosY
push str.System
call edi
lea ecx, [esp + 8]
push ecx
push 0x3c
push str.MaxStar
push str.System
mov dword [esi + 0x10], eax
call edi
cmp eax, 0xa
mov dword [esi + 0x14], eax
jl 0x401fca
cmp eax, 0x3c
jle 0x401fd1
mov dword [esi + 0x14], 0x3c
mov ecx, dword [esp + 0x10c]
xor ecx, dword [esp + 0x110]
pop edi
pop esi
add esp, 0x108
jmp fcn.00403271
Function at 0x4021c0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 8
push esi
mov esi, dword [edi + 0x30]
test esi, esi
je 0x4021d2
xor eax, eax
pop esi
add esp, 8
ret
mov esi, dword [esp + 0x10]
push ebx
mov bl, byte [esp + 0x1c]
mov byte [edi + 0x1a], bl
mov ebx, dword [0x40a084]
add ebx, esi
mov esi, dword [esp + 0x18]
imul ebx, ebx, 0x3e8
mov dword [edi + 0x1c], ebx
mov ebx, dword [0x40a088]
add ebx, esi
mov esi, dword [0x40b2e8]
imul ebx, ebx, 0x3e8
mov byte [edi + 0x14], dl
mov byte [edi + 0x15], al
mov byte [edi + 0x16], cl
mov dword [edi + 0x20], ebx
mov esi, dword [esi*4 + 0x40a090]
mov dword [edi + 0x24], esi
mov esi, dword [0x40b2ec]
mov esi, dword [esi*4 + 0x40a0f8]
movzx eax, al
movzx edx, dl
movzx ecx, cl
lea edx, [eax + edx*2]
mov dword [edi + 0x28], esi
mov esi, dword [eax*4 + 0x40806c]
lea edx, [ecx + edx*4]
mov ecx, dword [edx*4 + 0x40a040]
mov eax, edi
call fcn.00402170
mov eax, dword [edi]
push 8
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x1c]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [edi + 0x20]
mov dword [esp + 8], edx
mov eax, 0x10624dd3
imul ecx
sar edx, 6
push 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [0x40b2cc]
lea ecx, [edi + 0x18]
push ecx
push 0
mov dword [esp + 0x18], edx
lea edx, [edi + 4]
push edx
push eax
mov eax, dword [edi]
lea ecx, [edi + 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push eax
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
mov ecx, dword [0x40b2e8]
mov edx, dword [0x40a148]
inc ecx
cmp ecx, edx
mov eax, 1
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
mov dword [0x40b2e8], ecx
pop ebx
jl 0x4022df
mov dword [0x40b2e8], 0
mov ecx, dword [0x40b2ec]
mov edx, dword [0x40a14c]
inc ecx
cmp ecx, edx
mov dword [0x40b2ec], ecx
jl 0x402300
mov dword [0x40b2ec], 0
pop esi
add esp, 8
ret
Function at 0x402910
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
mov eax, dword [0x40a604]
push ebx
push ebp
push esi
push edi
push 0xfffffffffffffffa
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edi, dword [0x40b2c8]
mov dword [esp + 0x14], eax
cmp edi, dword [0x40b250]
mov esi, edi
mov dword [esp + 0x10], esi
jge 0x402a36
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
imul edi, edi, 0x34
add edi, 0x40a62c
mov ecx, dword [esp + 0x14]
mov edx, dword [0x40a610]
push 0
push ecx
push 0
push edx
push 0
push 0
push 0
push 0
push 0x80000000
push 0x4080c1
push str.WCStarCursor_StarWnd
push 0x800a8
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
lea ebx, [edi - 0x14]
mov dword [ebx], eax
je 0x402a43
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x402a21
movzx eax, byte [edi + 1]
movzx ecx, byte [edi]
mov esi, dword [eax*4 + 0x40806c]
lea edx, [eax + ecx*2]
movzx ecx, byte [edi + 2]
lea edx, [ecx + edx*4]
mov ecx, dword [edx*4 + 0x40a040]
mov eax, ebx
call fcn.00402170
mov eax, dword [ebx]
push 8
push eax
call ebp
mov ecx, dword [edi + 8]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x18], edx
mov eax, 0x10624dd3
imul ecx
sar edx, 6
push 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [0x40b2cc]
lea ecx, [edi + 4]
push ecx
push 0
mov dword [esp + 0x28], edx
lea edx, [edi - 0x10]
push edx
push eax
mov eax, dword [ebx]
lea ecx, [edi - 8]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
push eax
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
mov esi, dword [esp + 0x10]
mov eax, dword [0x40b250]
inc esi
add edi, 0x34
cmp esi, eax
mov dword [esp + 0x10], esi
jl 0x402950
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
cmp esi, dword [0x40b250]
jge 0x402a36
push 0x408080
push 0x26e
push 0x54
call section..text
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret

Function at 0x4030b0
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [0x40b2d8]
test eax, eax
je 0x4030d2
push 0x4081a0
push 0x384
push 0x54
call section..text
add esp, 0xc
xor eax, eax
pop ecx
ret
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4030f2
push 0x4081a0
push 0x388
push 0x54
call section..text
add esp, 0xc
xor eax, eax
pop ecx
ret
mov ecx, dword [esp + 8]
lea edx, [esp]
push edx
push 0
mov dword [0x40b2dc], eax
mov eax, dword [esp + 0x18]
push eax
push 0x402fb0
push 0
push 0
mov dword [0x40a610], 0
mov dword [0x40a604], ecx
mov dword [0x40a614], 1
mov dword [0x40b2c4], 0x32
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x40b2d8], eax
jne 0x403157
push eax
push 0x395
push 0x54
call section..text
add esp, 0xc
xor eax, eax
pop ecx
ret
push 0xfffffffffffffff1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
pop ecx
ret
Function at 0x403170
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x40b2d8]
test eax, eax
jne 0x40317c
xor eax, eax
ret
mov eax, dword [0x40a610]
test eax, eax
mov dword [0x40a614], 0
je 0x4031ac
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4031ac
mov eax, dword [0x40a610]
push 0
push 0
push 2
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [0x40b2d8]
push 0x2710
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4031d1
mov edx, dword [0x40b2d8]
push 0xfffffffffffffffd
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x40b2d8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x40b2d8], 0
mov eax, 1
ret
Function at 0x4032a4
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4081d0
call fcn.00403620
mov edi, 0x94
mov eax, edi
call fcn.00404230
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 [0x40b31c], ecx
mov eax, dword [esi + 4]
mov dword [0x40b328], eax
mov edx, dword [esi + 8]
mov dword [0x40b32c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40b320], esi
cmp ecx, 2
je 0x403304
or esi, 0x8000
mov dword [0x40b320], esi
shl eax, 8
add eax, edx
mov dword [0x40b324], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40333f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40333f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x403357
cmp eax, 0x20b
je 0x403344
mov dword [ebp - 0x1c], esi
jmp 0x40336b
cmp dword [ecx + 0x84], 0xe
jbe 0x40333f
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x403365
cmp dword [ecx + 0x74], 0xe
jbe 0x40333f
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004041d1
pop ecx
test eax, eax
jne 0x403397
cmp dword [0x40b308], 1
jne 0x403384
call fcn.0040397a
push 0x1c
call fcn.00403803
push 0xff
call fcn.0040366c
pop ecx
pop ecx
call fcn.0040412f
mov dword [ebp - 4], esi
call fcn.00403f84
test eax, eax
jge 0x4033b0
push 0x1b
call fcn.0040327f
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40b834], eax
call fcn.00403e62
mov dword [0x40b300], eax
call fcn.00403dc0
test eax, eax
jge 0x4033d6
push 8
call fcn.0040327f
pop ecx
call fcn.00403b8d
test eax, eax
jge 0x4033e7
push 9
call fcn.0040327f
pop ecx
call fcn.0040369c
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4033fa
push eax
call fcn.0040327f
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00403b24
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x40341b
movzx eax, word [ebp - 0x34]
jmp 0x40341e
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00401df0
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40343c
push edi
call fcn.004037c3
call fcn.004037e5
jmp 0x40346e
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040365b
ret
Function at 0x403701
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40b35c], esi
push edi
jne 0x403721
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 [0x40b358], esi
mov byte [0x40b354], al
jne 0x403787
mov ecx, dword [0x40b828]
test ecx, ecx
je 0x403768
mov eax, dword [0x40b824]
sub eax, 4
cmp eax, ecx
jmp 0x403761
mov eax, dword [eax]
test eax, eax
je 0x403753
call eax
mov eax, dword [0x40b824]
sub eax, 4
cmp eax, dword [0x40b828]
mov dword [0x40b824], eax
jae 0x40374b
mov eax, 0x40a01c
mov esi, 0x40a020
cmp eax, esi
mov edi, eax
jae 0x403787
mov eax, dword [edi]
test eax, eax
je 0x403780
call eax
add edi, 4
cmp edi, esi
jb 0x403778
mov eax, 0x40a024
mov esi, 0x40a028
cmp eax, esi
mov edi, eax
jae 0x4037a6
mov eax, dword [edi]
test eax, eax
je 0x40379f
call eax
add edi, 4
cmp edi, esi
jb 0x403797
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4037c1
push dword [ebp + 8]
mov dword [0x40b35c], 1
call fcn.0040366c
pop ecx
pop ebp
ret

Function at 0x403803
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x40a1f4]
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 + 0x40a200]
je 0x403830
inc eax
cmp eax, 0x12
jb 0x403821
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40a200]
jne 0x403964
mov eax, dword [0x40b308]
cmp eax, 1
je 0x40393f
cmp eax, edx
jne 0x403860
cmp dword [0x40a1fc], 1
je 0x40393f
cmp ecx, 0xfc
je 0x403964
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 0x403899
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00404370
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004045a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4038db
lea eax, [ebp - 0x10c]
push eax
call fcn.004045a0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x408214
push edi
call fcn.00404470
add esp, 0x10
push edi
call fcn.004045a0
push dword [esi + 0x40a204]
mov ebx, eax
call fcn.004045a0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00404230
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00404370
push edi
push ebx
call fcn.00404380
push 0x408210
push ebx
call fcn.00404380
push dword [esi + 0x40a204]
push ebx
call fcn.00404380
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040426d
add esp, 0x2c
jmp 0x403964
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x40a204]
push dword [esi]
call fcn.004045a0
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.00403271
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40426d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40b474], ebx
push esi
push edi
jne 0x4042ed
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x404328
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x408784
push edi
call esi
test eax, eax
mov dword [0x40b474], eax
je 0x404328
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40b478], eax
call esi
cmp dword [0x40b31c], 2
mov dword [0x40b47c], eax
jne 0x4042ed
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40b484], eax
je 0x4042ed
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40b480], eax
mov eax, dword [0x40b480]
test eax, eax
je 0x404332
call eax
test eax, eax
je 0x404319
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40b484]
test eax, eax
je 0x404319
test byte [ebp - 8], 1
jne 0x404332
cmp dword [0x40b328], 4
jb 0x40432c
or byte [ebp + 0x12], 0x20
jmp 0x404351
xor eax, eax
jmp 0x404361
or byte [ebp + 0x12], 4
jmp 0x404351
mov eax, dword [0x40b478]
test eax, eax
je 0x404351
call eax
mov ebx, eax
test ebx, ebx
je 0x404351
mov eax, dword [0x40b47c]
test eax, eax
je 0x404351
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40b474]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4068f8
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.00404230
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40698d
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 [0x40b31c]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x40698d
cmp eax, 1
je 0x4069a5
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 0x40698d
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x406962
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x406989
xor eax, eax
inc eax
jmp 0x4069c1
cmp esi, ebx
jae 0x406991
xor eax, eax
jmp 0x4069c1
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40b31c]
jmp 0x4069a7
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