joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e1d5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0047e151
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x47e344
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x47e344
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x47e2f9
jg 0x47e231
test eax, eax
je 0x47e2ef
push 1
push 0x1000
call fcn.00470e65
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x47e254
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x47e2e6
push 0x8000
push ebx
call fcn.0046cdcf
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x47e27d
jg 0x47e278
cmp ecx, 0x1000
jb 0x47e27d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004718cb
add esp, 0x10
cmp eax, 0xffffffff
je 0x47e2c2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x47e278
jl 0x47e2a9
test ecx, ecx
jne 0x47e26a
push dword [ebp - 0xc]
push ebx
call fcn.0046cdcf
push esi
call fcn.0046f99b
add esp, 0xc
xor ebx, ebx
jmp 0x47e352
cmp byte [edi + 0x24], 0
je 0x47e2d9
cmp dword [edi + 0x20], 5
jne 0x47e2d9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x47e2e4
mov ebx, dword [edi + 0x18]
jmp 0x47e2e6
xor ebx, ebx
push esi
call fcn.0046f99b
pop ecx
jmp 0x47e352
test ecx, ecx
jg 0x47e2bb
jl 0x47e2f9
test eax, eax
jae 0x47e2bb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00471d2d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x47e319
cmp byte [edi + 0x1c], 0
je 0x47e2bb
jmp 0x47e34a
push ebx
call fcn.004779c9
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x47e2bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x47e352
cmp byte [edi + 0x1c], 0
je 0x47e34f
mov ebx, dword [edi + 0x18]
jmp 0x47e352
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00471d2d
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x47f1e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47f20d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47f20d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401410
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
push esi
mov esi, dword [ebx]
cmp byte [esi], 0
jne 0x401433
pop esi
xor eax, eax
pop ebx
add esp, 0x104
ret 8
push edi
mov edi, esi
test edi, edi
je 0x401460
inc esi
push 0x410358
push esi
call fcn.00407380
mov edi, eax
sub eax, esi
add esp, 8
cmp eax, 1
jle 0x401436
test edi, edi
je 0x401460
lea ecx, [edi + 1]
mov byte [edi], 0
mov dword [ebx], ecx
jmp 0x401472
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401465
sub eax, edx
add eax, esi
mov dword [ebx], eax
mov edx, edi
sub edx, esi
je 0x4014e5
push 0x104
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, dword [esp + 0x118]
lea ecx, [esp + 0xc]
push ecx
push 0x104
push ebx
call fcn.00401b80
push str.cursors
push esi
call fcn.00407380
add esp, 0x14
test eax, eax
je 0x4014e5
cmp eax, edi
jae 0x4014e5
push eax
push 0x104
push ebx
call fcn.00401b20
add esp, 0xc
test edi, edi
je 0x4014cb
mov byte [edi], 0x2c
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4014d0
pop edi
pop esi
sub eax, edx
pop ebx
add esp, 0x104
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x104
ret 8

Function at 0x401c30
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20
push esi
push 0
push eax
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x4142b0
push 0x414248
push 0
mov dword [0x414314], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x401c74
pop esi
add esp, 0x20
ret
mov eax, dword [esp + 0x2c]
push edi
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [0x41040c]
xor eax, eax
mov ecx, 8
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, dword [0x410408]
mov eax, dword [0x410410]
mov dword [esp + 0x18], edx
push 0
lea edx, [esp + 0xc]
mov dword [esp + 0x18], ecx
mov ecx, dword [0x410414]
push edx
push esi
mov dword [esp + 0x14], 0x20
mov dword [esp + 0x18], 5
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.USER32.dll_RegisterDeviceNotificationA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x20
ret
Function at 0x401cf0
Capabilities:
Create process on windows
Get common file path
Terminate thread

Disassembly:
mov eax, dword [0x41423c]
sub esp, 0x15c
push ebx
push esi
push edi
push 0
push 0
push 2
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x413a44]
xor esi, esi
test eax, eax
jle 0x401d32
mov ecx, dword [esi*4 + 0x413a48]
push esi
push ecx
call dword [0x4139fc]
mov eax, dword [0x413a44]
add esp, 8
inc esi
cmp esi, eax
jl 0x401d16
push 1
call dword [sym.imp.USER32.dll_ShowCursor]
mov eax, dword [0x414370]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0xc], 0x103
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x401dac
call dword [0x413a28]
push str.EloVaTerminateTh
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
push esi
call edi
mov ecx, dword [0x414370]
push 0x2710
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
mov dword [esp + 0xc], eax
jne 0x401da9
mov edx, dword [0x414370]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call ebx
mov eax, dword [esp + 0x16c]
test eax, eax
je 0x401e0f
push 0xc8
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.EloDkMon.exe
lea ecx, [esp + 0x68]
push 0x104
push ecx
call fcn.00401b20
add esp, 0xc
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
lea edx, [esp + 0x88]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [0x414208]
test eax, eax
je 0x401e1b
push eax
call edi
mov eax, dword [0x4141a0]
push eax
call ebx
mov ecx, dword [0x414208]
push ecx
call ebx
mov edx, dword [0x4141a4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
pop esi
pop ebx
add esp, 0x15c
ret
Function at 0x402170
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
push 0x104
lea eax, [esp + 0x1c]
xor ebp, ebp
push eax
xor edi, edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.EloVideo.txt
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call fcn.00401b20
lea edx, [esp + 0x24]
push 0x4105cc
push edx
call fcn.004079d0
add esp, 0x14
cmp eax, ebp
mov dword [0x414374], eax
je 0x40220f
mov cl, byte [eax + 0xc]
mov bl, 0x10
test bl, cl
jne 0x4021fd
mov edi, edi
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push str._d__d
push eax
call fcn.00407990
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp eax, ebp
mov eax, dword [0x414374]
je 0x4021fd
mov cl, byte [eax + 0xc]
inc edi
test bl, cl
je 0x4021d0
push eax
call fcn.0040793b
add esp, 4
cmp edi, ebp
jne 0x40223f
mov eax, dword [0x414374]
cmp dword [0x4131d8], ebp
je 0x40222c
jmp 0x402220
mov ecx, dword [edi*8 + 0x4131e0]
inc edi
cmp ecx, ebp
jne 0x402220
cmp eax, ebp
je 0x40223f
push eax
call fcn.004078e5
add esp, 4
mov dword [0x414374], ebp
lea eax, [edi*8]
push eax
call fcn.00406c3a
mov esi, eax
xor eax, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0x10], eax
jle 0x4022ac
jmp 0x402260
cmp esi, ebp
je 0x4022ac
mov ecx, dword [0x414374]
cmp ecx, ebp
je 0x402286
lea eax, [esi + eax*8]
lea edx, [eax + 4]
push edx
push eax
push str._d__d
push ecx
call fcn.00407990
add esp, 0x10
jmp 0x40229f
mov ecx, dword [eax*8 + 0x4131d8]
mov dword [esi + eax*8], ecx
mov eax, dword [esp + 0x10]
mov edx, dword [eax*8 + 0x4131dc]
mov dword [esi + eax*8 + 4], edx
mov eax, dword [esp + 0x10]
inc eax
cmp eax, edi
mov dword [esp + 0x10], eax
jl 0x402260
mov edi, dword [esp + 0x120]
xor ecx, ecx
cmp esi, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
je 0x4022f8
mov ebx, dword [esi + ecx*8]
test ebx, ebx
je 0x4022f8
mov eax, dword [edi]
cdq
idiv ebx
test edx, edx
jne 0x4022dd
mov eax, dword [edi + 4]
cdq
idiv dword [esi + ecx*8 + 4]
test edx, edx
je 0x4022e0
inc ecx
jmp 0x4022c1
mov eax, dword [edi]
cdq
idiv dword [esi + ecx*8]
mov ebp, eax
mov eax, dword [edi + 4]
cdq
mov dword [esp + 0x10], ebp
idiv dword [esi + ecx*8 + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ebx, eax
imul ebx, ebp
test ebx, ebx
je 0x402325
mov edx, dword [esi + ecx*8]
mov dword [edi], edx
mov ecx, dword [esi + ecx*8 + 4]
mov edx, dword [esp + 0x124]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x128]
mov dword [edx], ebp
mov dword [ecx], eax
jmp 0x40233f
mov edx, dword [esp + 0x128]
mov eax, dword [esp + 0x124]
mov dword [edx], 1
mov dword [eax], 1
mov eax, dword [0x414374]
test eax, eax
je 0x402351
push eax
call fcn.004078e5
add esp, 4
test esi, esi
je 0x40235e
push esi
call fcn.00406df3
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x10c
ret

Function at 0x4029d0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push 0
push 0
push eax
push 0x401ed0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
Function at 0x402f90
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x40f80b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebp
push edi
push 0x1c
xor ebp, ebp
call fcn.00406c3f
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebp
mov dword [esp + 0x74], ebp
je 0x402fd1
mov ecx, eax
call fcn.004044f0
mov edi, eax
mov dword [esp + 0xc], edi
jmp 0x402fd7
mov dword [esp + 0xc], ebp
mov edi, ebp
cmp edi, ebp
mov dword [esp + 0x74], 0xffffffff
jne 0x402ff6
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret
push ebx
push esi
mov ecx, edi
call fcn.004048b0
mov ecx, edi
call fcn.00404540
mov esi, dword [esp + 0x84]
mov ebx, 1
inc eax
cmp eax, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x2c], eax
jle 0x40317b
jmp 0x403030
mov ebx, dword [esp + 0x10]
lea esp, [esp]
lea eax, [esp + 0x54]
push eax
push ebx
mov ecx, edi
call fcn.00404570
lea ecx, [esp + 0x64]
push ecx
push ebx
mov ecx, edi
call fcn.004045e0
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x54]
mov eax, edx
sub eax, ebx
mov ebx, dword [esp + 0x60]
sub edx, eax
mov ecx, ebx
sub ecx, dword [esp + 0x58]
mov dword [esp + 0x4c], edx
lea edx, [esp + 0x24]
mov dword [esp + 0x44], eax
push edx
lea eax, [esp + 0x2c]
sub ebx, ecx
mov dword [esp + 0x4c], ecx
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.00402170
mov eax, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jle 0x403166
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x20], eax
nop
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x403149
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x30]
push edx
mov ecx, esi
call fcn.004064e0
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call fcn.00404f30
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x48]
push ecx
mov ecx, dword [eax]
push edi
push edx
push ebx
add ecx, 8
call fcn.00404c70
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call fcn.00404f30
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [eax]
add ecx, 8
call fcn.00404c20
lea edx, [esp + 0x3c]
push edx
mov ecx, esi
inc ebp
call fcn.00404f30
mov ecx, dword [eax]
push ebp
add ecx, 8
call fcn.00404c40
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.00404f30
mov ecx, dword [eax]
add ecx, 8
call fcn.00404e90
push eax
call fcn.00402370
mov eax, dword [esp + 0x20]
add esp, 4
add edi, ebx
dec eax
mov dword [esp + 0x1c], eax
jne 0x4030b4
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x20]
add edx, ecx
dec eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
jne 0x4030a0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x403025
push 3
mov ecx, esi
call fcn.00404fe0
push ebp
mov ecx, esi
call fcn.00404f80
push 0
lea edx, [esp + 0x30]
push edx
mov ecx, esi
call fcn.00405a60
mov ecx, edi
call fcn.00404520
push edi
call fcn.00406df3
mov ecx, dword [esp + 0x78]
add esp, 4
pop esi
pop ebx
pop edi
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
add esp, 0x70
ret
Function at 0x404460
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push edi
xor eax, eax
mov ecx, 0x25
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4044bd
mov eax, dword [esp + 0x18]
dec eax
je 0x4044c4
dec eax
jne 0x4044bd
mov eax, dword [esp + 0xc]
cmp eax, 4
ja 0x4044ae
mov eax, 0x28
pop edi
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x4044bd
mov eax, 0x7d0
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
cmp eax, 4
ja 0x4044e1
jne 0x4044d7
mov eax, dword [esp + 0x10]
test eax, eax
ja 0x4044e1
mov eax, 0x5f
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 0x62
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4068a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x30]
push ebp
mov ebp, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x34]
push edi
mov edi, ecx
cmp ebx, dword [edi + 8]
jne 0x4068bf
cmp ebp, dword [edi + 0xc]
je 0x4068ec
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.00406730
push esi
call dword [sym.imp.GDI32.dll_GetBkColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x24]
push ecx
push esi
call dword [sym.imp.USER32.dll_FillRect]
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x38]
cmp eax, 0xfa
jb 0x4068f6
push 0
push 3
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push 0xff
push 3
push 0
mov dword [esp + 0x48], eax
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xffffff
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [edi + 0x10]
test ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], ecx
jle 0x406997
jmp 0x406962
mov ecx, dword [esp + 0x38]
mov eax, dword [edi + 0x14]
imul eax, ecx
mov ecx, dword [edi + 0x10]
shl ecx, 1
cdq
idiv ecx
dec eax
lea edx, [eax + ebp]
mov ecx, eax
push edx
add eax, ebx
push eax
neg ecx
lea eax, [ecx + ebp]
push eax
add ecx, ebx
push ecx
push esi
call dword [sym.imp.GDI32.dll_Ellipse]
mov eax, dword [esp + 0x38]
dec eax
test eax, eax
mov dword [esp + 0x38], eax
jg 0x40695e
mov eax, dword [edi + 0x14]
mov ecx, dword [esp + 0x3c]
cdq
sub eax, edx
push ecx
mov edi, eax
push esi
sar edi, 1
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, ebp
push 0
sub edx, edi
add edx, 3
push edx
push ebx
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
lea eax, [edi + ebp - 3]
push eax
push ebx
push esi
call dword [sym.imp.GDI32.dll_LineTo]
push 0
mov ecx, ebx
sub ecx, edi
push ebp
add ecx, 3
push ecx
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
push ebp
lea edx, [edi + ebx - 3]
push edx
push esi
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
call ebx
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push ecx
call edi
mov edx, dword [esp + 0x3c]
push edx
call edi
mov eax, dword [esp + 0x18]
push eax
push esi
call ebx
mov ecx, dword [esp + 0x1c]
push ecx
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x10
Function at 0x409711
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x414438], esi
push edi
jne 0x409731
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 [0x414434], esi
mov byte [0x414430], al
jne 0x409797
mov ecx, dword [0x415968]
test ecx, ecx
je 0x409778
mov eax, dword [0x415964]
sub eax, 4
cmp eax, ecx
jmp 0x409771
mov eax, dword [eax]
test eax, eax
je 0x409763
call eax
mov eax, dword [0x415964]
sub eax, 4
cmp eax, dword [0x415968]
mov dword [0x415964], eax
jae 0x40975b
mov eax, 0x413024
mov esi, 0x41302c
cmp eax, esi
mov edi, eax
jae 0x409797
mov eax, dword [edi]
test eax, eax
je 0x409790
call eax
add edi, 4
cmp edi, esi
jb 0x409788
mov eax, 0x413030
mov esi, 0x413038
cmp eax, esi
mov edi, eax
jae 0x4097b6
mov eax, dword [edi]
test eax, eax
je 0x4097af
call eax
add edi, 4
cmp edi, esi
jb 0x4097a7
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4097d1
push dword [ebp + 8]
mov dword [0x414438], 1
call fcn.00409646
pop ecx
pop ebp
ret

Function at 0x409918
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.00409dd0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4099ad
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 [0x4143f8]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4099ad
cmp eax, 1
je 0x4099c5
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 0x4099ad
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x409982
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4099a9
xor eax, eax
inc eax
jmp 0x4099e1
cmp esi, ebx
jae 0x4099b1
xor eax, eax
jmp 0x4099e1
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4143f8]
jmp 0x4099c7
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 0x40b398
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4139d4]
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 + 0x4133a0]
je 0x40b3c5
inc eax
cmp eax, 0x12
jb 0x40b3b6
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4133a0]
jne 0x40b4f9
mov eax, dword [0x4143d0]
cmp eax, 1
je 0x40b4d4
cmp eax, edx
jne 0x40b3f5
cmp dword [0x413364], 1
je 0x40b4d4
cmp ecx, 0xfc
je 0x40b4f9
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 0x40b42e
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00409820
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00408590
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40b470
lea eax, [ebp - 0x10c]
push eax
call fcn.00408590
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x410e60
push edi
call fcn.00407590
add esp, 0x10
push edi
call fcn.00408590
push dword [esi + 0x4133a4]
mov ebx, eax
call fcn.00408590
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00409dd0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00409820
push edi
push ebx
call fcn.00409830
push 0x410e40
push ebx
call fcn.00409830
push dword [esi + 0x4133a4]
push ebx
call fcn.00409830
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040ea13
add esp, 0x2c
jmp 0x40b4f9
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x4133a4]
push dword [esi]
call fcn.00408590
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.0040e564
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d652
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x40d6bd
push 0x3d
push dword [ebp + 8]
call fcn.0040eee7
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x40d6bd
cmp dword [ebp + 8], esi
je 0x40d6bd
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x414418]
cmp eax, dword [0x41441c]
jne 0x40d6a3
mov edi, eax
call fcn.0040d5f1
mov dword [0x414418], eax
cmp eax, ebx
jne 0x40d6fc
cmp dword [ebp + 0xc], ebx
je 0x40d6c5
cmp dword [0x414420], ebx
je 0x40d6c5
call fcn.004095db
test eax, eax
je 0x40d6fc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x40d800
push 4
call fcn.00408549
cmp eax, ebx
pop ecx
mov dword [0x414418], eax
je 0x40d6bd
mov dword [eax], ebx
cmp dword [0x414420], ebx
jne 0x40d6fc
push 4
call fcn.00408549
cmp eax, ebx
pop ecx
mov dword [0x414420], eax
je 0x40d6bd
mov dword [eax], ebx
mov ebx, dword [0x414418]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0040d5a4
mov edi, eax
test edi, edi
pop ecx
jl 0x40d755
cmp dword [ebx], 0
je 0x40d755
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0040897f
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x40d73d
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x40d78b
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x40d734
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.0040b104
test eax, eax
pop ecx
pop ecx
je 0x40d78b
jmp 0x40d786
cmp dword [ebp - 4], 0
jne 0x40d7f9
test edi, edi
jge 0x40d765
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.0040b104
test eax, eax
pop ecx
pop ecx
je 0x40d6bd
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x414418], eax
cmp dword [ebp + 0xc], 0
je 0x40d7e2
push dword [ebp + 8]
call fcn.00408590
inc eax
inc eax
push eax
call fcn.00408549
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40d7e2
push dword [ebp + 8]
push esi
call fcn.00409820
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x40d7db
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0040897f
pop ecx
cmp dword [ebp - 4], 0
je 0x40d7f1
push dword [ebp + 8]
call fcn.0040897f
pop ecx
mov eax, dword [ebp - 8]
jmp 0x40d6c0
push esi
call fcn.0040897f
pop ecx
xor eax, eax
jmp 0x40d6c0