joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100267f1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push 5
push 0x7002
push str.device.log
mov ecx, dword [ebp - 4]
add ecx, 0x1c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1c]
call dword [edx + 4]
push str.StartDevNtfThread
push 3
mov ecx, dword [ebp - 4]
add ecx, 0x1c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1c]
call dword [edx + 0x14]
mov ecx, dword [ebp - 4]
call fcn.10026ee7
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x8fc]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [ebp - 4]
cmp dword [edx + 0x8f8], 0
jne 0x10026875
mov eax, dword [ebp - 4]
add eax, 0x18
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x10026a64
push 0
push 0
call fcn.1002a6ef
add esp, 0x18
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
jmp 0x10026899
mov eax, dword [ebp - 4]
add eax, 0x18
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x10026cf6
push 0
push 0
call fcn.1002a6ef
add esp, 0x18
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
jne 0x100268ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartDevNtfThread___failed___ErrorCode:_0x_08X_.
push 1
mov ecx, dword [ebp - 4]
add ecx, 0x1c
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1c]
push ecx
call dword [eax + 0x1c]
add esp, 0x10
xor eax, eax
jmp 0x1002695c
push 0xbb8
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x8fc]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100268f9
push str.Device_monitor_thread_still_not_run.
push 1
mov ecx, dword [ebp - 4]
add ecx, 0x1c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1c]
call dword [edx + 0x14]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x8f8], 0
je 0x10026957
mov ecx, dword [ebp - 4]
add ecx, 0x1c
push ecx
push 1
push 0x62b
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x8b4
call fcn.1001888a
mov ecx, dword [ebp - 4]
add ecx, 0x8b4
call fcn.100188f4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
push edx
push str.DevHound_is_started__ID___d
push 5
mov eax, dword [ebp - 4]
add eax, 0x1c
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
push eax
call dword [edx + 0x1c]
add esp, 0x10
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x10026960
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push str.StopDevNtfThread__
push 3
mov ecx, dword [ebp - 8]
add ecx, 0x1c
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x1c]
call dword [edx + 0x14]
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 0
je 0x10026a51
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x8f8], 0
je 0x100269bc
mov ecx, dword [ebp - 8]
add ecx, 0x8b4
call fcn.10018957
push str.DevHound_is_stopped
push 5
mov ecx, dword [ebp - 8]
add ecx, 0x1c
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1c]
call dword [eax + 0x14]
mov dword [ebp - 4], 3
cmp dword [ebp - 4], 0
jle 0x100269f5
push 0
push 0
push 0x12
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
test eax, eax
je 0x100269e2
jmp 0x100269f5
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100269c3
push 0xbb8
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10026a30
push 0x64
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push str.Terminate_device_monitor_thread_
push 2
mov ecx, dword [ebp - 8]
add ecx, 0x1c
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1c]
call dword [eax + 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x18], 0
mov ecx, dword [ebp - 8]
add ecx, 0x1c
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1c]
call dword [eax + 8]
mov esp, ebp
pop ebp
ret
Function at 0x10026ee7
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
push edi
mov dword [ebp - 0x504], ecx
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
push 0x104
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [0x10046fc0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10026f32
jmp 0x10027139
push 0x5c
lea edx, [ebp - 0x104]
push edx
call fcn.1001de70
add esp, 8
mov dword [ebp - 0x4f0], eax
cmp dword [ebp - 0x4f0], 0
je 0x10026f5b
mov eax, dword [ebp - 0x4f0]
mov byte [eax], 0
push str.PhoneCommand.ini
lea ecx, [ebp - 0x104]
push ecx
call fcn.10029930
add esp, 8
push 0x3e8
push 0
mov edx, dword [ebp - 0x504]
add edx, 0x904
push edx
call fcn.10029860
add esp, 0xc
mov eax, dword [ebp - 0x504]
mov dword [eax + 0x900], 0
mov byte [ebp - 0x4ec], 0
mov ecx, 0xf9
xor eax, eax
lea edi, [ebp - 0x4eb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x104]
push ecx
push 0x3e8
lea edx, [ebp - 0x4ec]
push edx
push 0x10046fc8
push str.USB_Driver_Name
push str.Property
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x4ec]
push eax
call fcn.10029cb0
add esp, 4
test eax, eax
jbe 0x10027139
push 0x50
call fcn.100298b8
add esp, 4
mov dword [ebp - 0x4fc], eax
mov ecx, dword [ebp - 0x4fc]
mov dword [ebp - 0x4f4], ecx
cmp dword [ebp - 0x4f4], 0
je 0x10027139
mov edx, dword [ebp - 0x504]
add edx, 0x900
push edx
push 0x10042de4
mov eax, dword [ebp - 0x4f4]
push eax
lea ecx, [ebp - 0x4ec]
push ecx
call fcn.100260d0
mov edx, dword [ebp - 0x504]
mov eax, dword [edx + 0x900]
push eax
push str.Compare_Driver_Count:__d
push 3
mov ecx, dword [ebp - 0x504]
add ecx, 0x1c
mov edx, dword [ebp - 0x504]
mov eax, dword [edx + 0x1c]
push ecx
call dword [eax + 0x1c]
add esp, 0x10
mov dword [ebp - 0x4f8], 0
jmp 0x10027089
mov ecx, dword [ebp - 0x4f8]
add ecx, 1
mov dword [ebp - 0x4f8], ecx
mov edx, dword [ebp - 0x504]
mov eax, dword [ebp - 0x4f8]
cmp eax, dword [edx + 0x900]
jge 0x10027114
push 0x31
mov ecx, dword [ebp - 0x4f8]
mov edx, dword [ebp - 0x4f4]
mov eax, dword [edx + ecx*4]
push eax
mov ecx, dword [ebp - 0x4f8]
imul ecx, ecx, 0x32
mov edx, dword [ebp - 0x504]
lea eax, [edx + ecx + 0x904]
push eax
call fcn.1001deb0
add esp, 0xc
mov ecx, dword [ebp - 0x4f8]
imul ecx, ecx, 0x32
mov edx, dword [ebp - 0x504]
lea eax, [edx + ecx + 0x904]
push eax
mov ecx, dword [ebp - 0x4f8]
add ecx, 1
push ecx
push str.___2d:__s
push 3
mov edx, dword [ebp - 0x504]
add edx, 0x1c
mov eax, dword [ebp - 0x504]
mov ecx, dword [eax + 0x1c]
push edx
call dword [ecx + 0x1c]
add esp, 0x14
jmp 0x1002707a
mov edx, dword [ebp - 0x4f4]
mov dword [ebp - 0x500], edx
mov eax, dword [ebp - 0x500]
push eax
call fcn.10029396
add esp, 4
mov dword [ebp - 0x4f4], 0
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x401100
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
or esi, 0xffffffff
test eax, eax
push 4
mov ecx, 0x42e1e0
push 0x40d1a8
je 0x401160
call fcn.00401ec0
mov eax, dword [esp + 0xc]
test eax, eax
mov ecx, 0x42e1e0
je 0x401148
mov eax, dword [0x42e200]
push eax
push 0x42e208
push 4
push 0x40d1a8
call fcn.00402020
mov eax, 1
pop esi
ret
push 0x42e208
push 4
push 0x40d1a8
call fcn.00402150
mov eax, 1
pop esi
ret
call fcn.00402250
mov ecx, dword [0x42e1ec]
imul ecx, ecx, 0x64
mov eax, dword [ecx + 0x40d200]
test eax, eax
jne 0x40118c
mov ecx, 0x42e1e0
call fcn.004022d0
test eax, eax
je 0x40118c
mov esi, dword [0x42e1ec]
mov edx, dword [0x42e200]
push edx
push 0x42e208
push 4
push 0x40d1a8
mov ecx, 0x42e1e0
call fcn.00402020
mov ecx, 0x42e1e0
call fcn.00402310
cmp esi, 3
ja case.default.0x4011b8
jmp dword [esi*4 + 0x401224]
call fcn.00401de0
mov eax, 1
pop esi
ret
push 1
call fcn.00401cd0
add esp, 4
test eax, eax
je case.default.0x4011b8
push 1
push 0
push 0
push 0x42e278
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, 1
pop esi
ret
push 1
push 0
push 0
push str.http:__nenga.shoeisha.com_support.html
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, 1
pop esi
ret
call fcn.004010e0
mov eax, 1
pop esi
ret
Function at 0x401cd0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_LoadCursorA]
push ebp
push esi
push edi
push 0x7f02
push 0
mov dword [esp + 0x18], 0x5c3a41
call ebx
mov ebp, dword [sym.imp.USER32.dll_SetCursor]
push eax
call ebp
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x401d45
push 0x42e380
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x401dcc
mov eax, 0x42e380
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401d20
sub eax, edx
cmp eax, 3
jbe 0x401d45
mov edi, 0x42e380
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401d34
mov ax, word [0x40b62c]
mov word [edi], ax
mov cl, byte [0x42e380]
lea edx, [esp + 0x10]
push str.HAPPY12_1
push edx
mov byte [esp + 0x18], cl
call fcn.00403410
add esp, 8
test eax, eax
jne 0x401d9d
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, dword [sym.imp.USER32.dll_GetActiveWindow]
push 0x35
push 0x40b614
push 0x40b598
call edi
push eax
call esi
cmp eax, 2
je 0x401dcc
lea eax, [esp + 0x10]
push str.HAPPY12_1
push eax
call fcn.00403410
add esp, 8
test eax, eax
je 0x401d71
lea ecx, [esp + 0x10]
push ecx
push 0x40b590
push 0x42e278
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x7f00
push 0
call ebx
push eax
call ebp
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
push 0x7f00
push 0
call ebx
push eax
call ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x401de0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [0x42e4ec]
sub esp, 8
test eax, eax
jne 0x401df0
add esp, 8
ret
push esi
push 0x64
push 0x42e488
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x401e92
push 1
call fcn.00401cd0
add esp, 4
test eax, eax
je 0x401e9c
call fcn.00401960
mov esi, eax
cmp esi, 0xffffffff
je 0x401e9c
mov eax, 0x42e488
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401e30
sub eax, edx
cmp eax, 7
jne 0x401e9c
mov eax, dword [0x42e48b]
mov byte [esp + 8], cl
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], eax
call fcn.00403a5a
add esp, 4
test eax, eax
je 0x401e9c
cmp esi, 6
jge 0x401e6f
call fcn.004019e0
test eax, eax
jne 0x401e92
pop esi
add esp, 8
ret
push 0x34
push 0x40b418
push 0x40b630
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x401e92
call fcn.004010e0
mov eax, 1
pop esi
add esp, 8
ret
push 0x30
push 0x40b418
push 0x40b3c8
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
add esp, 8
ret
Function at 0x402cc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x402db1
cmp dword [ebx], edi
jne 0x402db1
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x402db1
mov esi, dword [esp + 0x18]
movzx eax, ax
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x402db1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x402db1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
cmp ebp, edi
je 0x402db1
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 4]
xor ecx, ecx
mov cx, word [ebp + 0xe]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.00402340
test eax, eax
je 0x402db1
mov cx, word [ebp + 0xe]
cmp cx, 8
ja 0x402d8a
mov eax, dword [ebp + 0x20]
cmp eax, edi
jne 0x402d52
mov eax, 1
shl eax, cl
mov edi, dword [ebx + 0xc]
lea ecx, [eax*4]
mov dword [esp + 0x14], ecx
mov edx, ecx
shr ecx, 2
lea esi, [ebp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 0x18]
push ecx
push eax
push 0
push edx
call dword [sym.imp.GDI32.dll_SetDIBColorTable]
test eax, eax
je 0x402daf
mov edi, dword [esp + 0x14]
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x14]
mov edx, ecx
lea esi, [edi + ebp + 0x28]
mov edi, dword [ebx + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
xor edi, edi
mov eax, dword [ebx + 0x18]
cmp eax, edi
je 0x402dc2
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [ebx + 0x18], edi
mov eax, dword [ebx + 0x14]
cmp eax, edi
je 0x402dd3
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebx + 0x14], edi
mov eax, dword [ebx]
cmp eax, edi
je 0x402de2
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x402f40
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0x45f370], eax
je 0x402f7b
mov eax, dword [esp + 4]
push 0x45f37c
push 0
push eax
push 0x402e50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x45f360], eax
jne 0x402f7e
xor eax, eax
ret
mov eax, dword [0x45f23c]
test eax, eax
jne 0x402f9e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, edi
push 0x64
call esi
mov eax, dword [0x45f23c]
test eax, eax
je 0x402f90
pop esi
mov eax, 1
ret
Function at 0x4033b0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [str.HAPPY2012_1]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x403407
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403407
mov ecx, dword [str.Happy_2012__Disc.1]
mov edx, dword [str.HAPPY2012_1]
push esi
push ecx
push edx
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4033fc
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindowAsync]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
pop esi
ret
mov eax, 1
ret

Function at 0x403410
Capabilities:
Get disk information

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
movsx eax, byte [esi]
push edi
push eax
call fcn.00403bf5
add esp, 4
cmp al, 0x41
mov byte [esi], al
jl 0x403431
cmp al, 0x5a
jle 0x403434
mov byte [esi], 0x41
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov edi, 0x41
cmp byte [esi], 0x5a
jle 0x40344d
mov byte [esi], 0x41
push esi
call ebp
cmp eax, 5
jne 0x403483
push 0
push 0
push 0
push 0
push 0
push 0x21
lea ecx, [esp + 0x28]
push ecx
push esi
call ebx
test eax, eax
je 0x403483
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.00403ae3
add esp, 8
test eax, eax
je 0x403499
mov cl, byte [esi]
inc edi
inc cl
cmp edi, 0x5a
mov byte [esi], cl
jle 0x403445
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret
Function at 0x403cf1
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40b698
call fcn.00406700
mov edi, 0x94
mov eax, edi
call fcn.00406860
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 [0x45f3d4], ecx
mov eax, dword [esi + 4]
mov dword [0x45f3e0], eax
mov edx, dword [esi + 8]
mov dword [0x45f3e4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x45f3d8], esi
cmp ecx, 2
je 0x403d51
or esi, 0x8000
mov dword [0x45f3d8], esi
shl eax, 8
add eax, edx
mov dword [0x45f3dc], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x403d8c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403d8c
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x403da4
cmp eax, 0x20b
je 0x403d91
mov dword [ebp - 0x1c], esi
jmp 0x403db8
cmp dword [ecx + 0x84], 0xe
jbe 0x403d8c
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x403db2
cmp dword [ecx + 0x74], 0xe
jbe 0x403d8c
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004066ae
pop ecx
test eax, eax
jne 0x403de4
cmp dword [0x45f3b0], 1
jne 0x403dd1
call fcn.00405e63
push 0x1c
call fcn.00405ceb
push 0xff
call fcn.00404944
pop ecx
pop ecx
call fcn.0040660c
mov dword [ebp - 4], esi
call fcn.00406461
test eax, eax
jge 0x403dfd
push 0x1b
call fcn.00403ccc
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4609d0], eax
call fcn.0040633f
mov dword [0x45f3a8], eax
call fcn.0040629d
test eax, eax
jge 0x403e23
push 8
call fcn.00403ccc
pop ecx
call fcn.0040606a
test eax, eax
jge 0x403e34
push 9
call fcn.00403ccc
pop ecx
push 1
call fcn.00404974
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x403e4a
push eax
call fcn.00403ccc
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040600d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x403e6b
movzx eax, word [ebp - 0x40]
jmp 0x403e6e
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401800
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x403e8c
push edi
call fcn.00404a9f
call fcn.00404ac1
jmp 0x403ebe
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040673b
ret
Function at 0x4049de
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x45f414], esi
push edi
jne 0x4049fe
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 [0x45f410], esi
mov byte [0x45f40c], al
jne 0x404a64
mov ecx, dword [0x4609c8]
test ecx, ecx
je 0x404a45
mov eax, dword [0x4609c4]
sub eax, 4
cmp eax, ecx
jmp 0x404a3e
mov eax, dword [eax]
test eax, eax
je 0x404a30
call eax
mov eax, dword [0x4609c4]
sub eax, 4
cmp eax, dword [0x4609c8]
mov dword [0x4609c4], eax
jae 0x404a28
mov eax, 0x40d030
mov esi, 0x40d038
cmp eax, esi
mov edi, eax
jae 0x404a64
mov eax, dword [edi]
test eax, eax
je 0x404a5d
call eax
add edi, 4
cmp edi, esi
jb 0x404a55
mov eax, 0x40d03c
mov esi, 0x40d044
cmp eax, esi
mov edi, eax
jae 0x404a83
mov eax, dword [edi]
test eax, eax
je 0x404a7c
call eax
add edi, 4
cmp edi, esi
jb 0x404a74
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x404a9d
push dword [ebp + 8]
mov dword [0x45f414], 1
call fcn.00404944
pop ebp
ret

Function at 0x405ceb
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x42d874]
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 + 0x42d9c0]
je 0x405d22
inc eax
cmp eax, 0x13
jb 0x405d13
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x42d9c0]
jne 0x405e45
mov eax, dword [0x45f3b0]
cmp eax, 1
je 0x405e20
cmp eax, edx
jne 0x405d52
cmp dword [0x42d86c], 1
je 0x405e20
cmp ecx, 0xfc
je 0x405e45
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 0x405d88
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00408a40
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.004053b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x405dbc
mov eax, edi
push eax
call fcn.004053b0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c108
push edi
call fcn.00408560
add esp, 0x10
push edi
call fcn.004053b0
push dword [esi + 0x42d9c4]
mov ebx, eax
call fcn.004053b0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00406860
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00408a40
push edi
push ebx
call fcn.00408a50
push 0x40c0e8
push ebx
call fcn.00408a50
push dword [esi + 0x42d9c4]
push ebx
call fcn.00408a50
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00408ec1
add esp, 0x2c
jmp 0x405e45
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x42d9c4]
push dword [esi]
call fcn.004053b0
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.004080bc
add ebp, 0x90
leave
ret
Function at 0x407fa8
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.00406860
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x408043
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 [0x45f3d4]
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 0x408043
cmp eax, 1
je 0x408064
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 0x408043
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x408010
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40803f
xor eax, eax
inc eax
jmp 0x408083
cmp edi, eax
jae 0x408047
xor eax, eax
jmp 0x408083
cmp eax, esi
jae 0x40804e
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 [0x45f3d4]
jmp 0x408067
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

Function at 0x408ec1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x45f5b8], ebx
push esi
push edi
jne 0x408f41
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x408f7c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40c1cc
push edi
call esi
test eax, eax
mov dword [0x45f5b8], eax
je 0x408f7c
push 0x40c1bc
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x45f5bc], eax
call esi
cmp dword [0x45f3d4], 2
mov dword [0x45f5c0], eax
jne 0x408f41
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x45f5c8], eax
je 0x408f41
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x45f5c4], eax
mov eax, dword [0x45f5c4]
test eax, eax
je 0x408f86
call eax
test eax, eax
je 0x408f6d
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x45f5c8]
test eax, eax
je 0x408f6d
test byte [ebp - 8], 1
jne 0x408f86
cmp dword [0x45f3e0], 4
jb 0x408f80
or byte [ebp + 0x12], 0x20
jmp 0x408fa5
xor eax, eax
jmp 0x408fb5
or byte [ebp + 0x12], 4
jmp 0x408fa5
mov eax, dword [0x45f5bc]
test eax, eax
je 0x408fa5
call eax
mov ebx, eax
test ebx, ebx
je 0x408fa5
mov eax, dword [0x45f5c0]
test eax, eax
je 0x408fa5
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x45f5b8]
pop edi
pop esi
pop ebx
leave
ret