joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ed00
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x38
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0x308]
push 0x147
push eax
call edi
mov edx, dword [esi + 0x308]
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x32
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esi + 0x348], eax
call ebx
lea eax, [esp + 0xc]
push eax
call fcn.00419671
mov ecx, dword [esi + 0x338]
add esp, 4
push 0
push 0
push 0x147
push ecx
mov dword [esi + 0x34c], eax
call edi
push 0x32
lea edx, [esp + 0x10]
mov dword [esi + 0x350], eax
mov eax, dword [esi + 0x338]
push edx
push eax
call ebx
lea ecx, [esp + 0xc]
push ecx
call fcn.00419671
mov edi, dword [esp + 0x54]
mov edx, dword [esi + 0x308]
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
add esp, 4
push edi
push edx
mov dword [esi + 0x354], eax
call ebx
mov eax, dword [esi + 0x338]
push edi
push eax
call ebx
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041869b
add esp, 0x38
ret 0xc
Function at 0x40edf0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x11c
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x130]
push edi
push 0x104
lea eax, [esp + 0x28]
mov edi, ecx
mov ecx, dword [esi + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [edi + 0x4c]
mov ebx, eax
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x18]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 0x18]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.GDI32.dll_SetBkMode]
lea ebp, [esi + 0x1c]
push ebp
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x20]
push 0xfffffffffffffffc
push 0xfffffffffffffffc
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_InflateRect]
mov edx, dword [esi + 4]
push edx
mov ecx, edi
call fcn.0040edd0
cmp dword [eax + 0x2c], 1
mov edi, dword [sym.imp.GDI32.dll_CreateSolidBrush]
jne 0x40ee97
push 0xff
jmp 0x40ee9c
push 0xffffff
call edi
mov ecx, dword [esi + 0x18]
push eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0
call edi
mov ecx, dword [esi + 0x18]
mov edi, eax
push edi
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_FrameRect]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
test ebx, ebx
jle 0x40ef0a
push ebp
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x20]
push 0x24
lea ecx, [esp + 0x18]
push ecx
inc eax
push ebx
lea edx, [esp + 0x30]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x18]
push edx
push eax
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041869b
add esp, 0x11c
ret 8
Function at 0x40f9d0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x11c
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x130]
xor eax, eax
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0x104
lea eax, [esp + 0x28]
mov ebx, ecx
mov ecx, dword [esi + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [esi + 0x18]
push 0xffffffffffffffff
mov ebp, eax
push edx
mov dword [esp + 0x28], ebp
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [ebx + 0x4c]
mov ecx, dword [esi + 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi + 0x14]
lea edi, [esi + 0x1c]
push edi
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [esi + 4], 0x418
jne 0x40fb0d
push edi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esi + 4]
mov eax, 4
sub dword [esp + 0x1c], eax
push ecx
mov ecx, ebx
mov dword [esp + 0x14], 2
mov dword [esp + 0x1c], 0x12
mov dword [esp + 0x18], eax
call fcn.0040f700
cmp dword [eax + 0x2c], 0
mov ebx, dword [sym.imp.GDI32.dll_CreateSolidBrush]
je 0x40faa7
push 0xff
call ebx
mov ebp, eax
mov eax, dword [esi + 0x18]
push ebp
lea edx, [esp + 0x14]
push edx
push eax
jmp 0x40faba
push 0xffffff
call ebx
mov edx, dword [esi + 0x18]
mov ebp, eax
push ebp
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
push ebp
mov ebp, dword [sym.imp.GDI32.dll_DeleteObject]
call ebp
push 0
call ebx
mov ecx, dword [esi + 0x18]
mov ebx, eax
push ebx
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_FrameRect]
push ebx
call ebp
push edi
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esp + 0x20]
push 0x24
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 0x18]
push ecx
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x20], 0x14
push eax
jmp 0x40fb68
mov eax, dword [esi + 0x10]
test al, 1
je 0x40fb1b
push 0xc8c8c8
jmp 0x40fb40
test al, 0x10
je 0x40fb26
push 0x96fa96
jmp 0x40fb40
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x40fb3b
push 0x323232
jmp 0x40fb40
push 0xc8c800
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edx, dword [esi + 0x18]
mov ebx, eax
push ebx
push edi
push edx
call dword [sym.imp.USER32.dll_FillRect]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esi + 0x18]
push 0x25
push edi
push ebp
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041869b
add esp, 0x11c
ret 8
Function at 0x410420
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x68
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0x78]
mov eax, ecx
movzx ecx, cx
shr eax, 0x10
push edi
mov edi, dword [esp + 0x80]
cmp ecx, 0x417
jne 0x4104bc
cmp eax, 9
jne 0x4104bc
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push 0
push 0
push 0x147
push edi
call ebx
mov ebp, eax
lea eax, [esp + 0x10]
push eax
push ebp
push 0x148
push edi
call ebx
lea eax, [esp + 0x10]
lea edx, [esi + 8]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x410481
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [esi + 0x44]
mov eax, dword [edx]
push esi
push ebp
push 0x5ff
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0041869b
add esp, 0x68
ret 0xc
test eax, eax
jne 0x41057e
cmp ecx, 0x418
jne 0x4104e8
push edi
mov ecx, esi
call fcn.0040fc90
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0041869b
add esp, 0x68
ret 0xc
cmp ecx, 0x416
jne 0x41056f
push 0x417
mov ecx, esi
call fcn.0040f700
mov edx, dword [eax + 0x20]
push 0x3c
lea ebx, [eax + 0x20]
lea ecx, [esi + 8]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, 2
jge 0x410536
mov eax, dword [ebx]
push 0x42652d
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0041869b
add esp, 0x68
ret 0xc
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [esi + 0x44]
mov eax, dword [edx]
movzx ecx, di
push esi
or ecx, 0x3e90000
push ecx
push 0x416
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0041869b
add esp, 0x68
ret 0xc
cmp ecx, 0x419
jne 0x41057e
mov ecx, esi
call fcn.0040f4a0
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041869b
add esp, 0x68
ret 0xc

Function at 0x410bf0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x10]
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0xdc], eax
mov dword [esi + 0x1b8], edx
mov dword [esi + 0x1b0], ecx
mov eax, ecx
mov dword [esi + 0x20], eax
mov ecx, dword [esi + 0x1b0]
mov dword [esi + 0x4c], ecx
mov edx, dword [esi + 0x1b0]
mov dword [esi + 0x78], edx
mov eax, dword [esi + 0x1b0]
lea edx, [esi + 0x210]
push edx
push 0
push esi
push 0x410bd0
mov dword [esi + 0xa4], eax
mov ecx, dword [esi + 0x1b0]
push 0
push 0
mov dword [esi + 0xd0], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x214], eax
pop esi
ret 0x10

Function at 0x411020
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
mov dword [esi + 0xc], eax
jne 0x411049
lea ecx, [esi + 4]
push ecx
push 0
push esi
push 0x411000
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
mov dword [esi + 0x24], 0
pop esi
ret 4
Function at 0x4111a0
Capabilities:
Log keystrokes

Disassembly:
mov eax, dword [esp + 4]
push 0
push 2
push 0
cmp al, 0x11
jne 0x4111c2
push 0x11
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push 0x11
call dword [sym.imp.USER32.dll_keybd_event]
ret 4
push eax
call dword [sym.imp.USER32.dll_keybd_event]
ret 4

Function at 0x411340
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov esi, dword [esp + 0x18]
push edi
push 0
lea eax, [esp + 0x14]
push eax
push 4
push esi
push ebx
mov dword [esp + 0x24], 0
call ebp
push 0
lea ecx, [esp + 0x14]
push ecx
push 4
lea edi, [esi + 4]
push edi
push ebx
call ebp
mov eax, dword [edi]
test eax, eax
je 0x4113be
push eax
call fcn.0041842a
mov edx, dword [edi]
push edx
push 0
push eax
mov dword [esi + 8], eax
call fcn.00418570
mov ecx, dword [edi]
mov edx, dword [esi + 8]
add esp, 0x10
push 0
lea eax, [esp + 0x14]
push eax
dec ecx
push ecx
push edx
push ebx
call ebp
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea ecx, [esi + 0xc]
push ecx
push ebx
call ebp
mov ecx, esi
call fcn.004110b0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8

Function at 0x411410
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
push 0
lea eax, [esp + 0x10]
push eax
push 1
push esi
push edi
mov dword [esp + 0x20], 0
call ebx
push 0
lea ecx, [esp + 0x10]
push ecx
push 1
lea edx, [esi + 4]
push edx
push edi
call ebx
push 0
lea eax, [esp + 0x10]
push eax
push 1
lea ecx, [esi + 8]
push ecx
push edi
call ebx
push 0
lea edx, [esp + 0x10]
push edx
push 1
lea eax, [esi + 0xc]
push eax
push edi
call ebx
push 0
lea ecx, [esp + 0x10]
push ecx
push 1
lea edx, [esi + 0x10]
push edx
push edi
call ebx
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esi + 0x14]
push ecx
push edi
call ebx
push 0
lea edx, [esp + 0x10]
push edx
push 4
add esi, 0x18
push esi
push edi
call ebx
pop edi
pop esi
pop ebx
pop ecx
ret 8
Function at 0x4119b0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x18]
xor ebp, ebp
push ebp
lea eax, [esp + 0x14]
push eax
push 4
push esi
push edi
mov dword [esp + 0x24], ebp
call ebx
push ebp
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esi + 4]
push edx
push edi
call ebx
push ebp
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esi + 8]
push ecx
push edi
call ebx
push ebp
lea edx, [esp + 0x14]
push edx
push 4
lea eax, [esi + 0xc]
push eax
push edi
call ebx
push ebp
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esi + 0x10]
push edx
push edi
call ebx
push ebp
lea eax, [esp + 0x14]
push eax
push 1
lea ecx, [esi + 0x14]
push ecx
push edi
call ebx
push ebp
lea edx, [esp + 0x14]
push edx
push 1
lea eax, [esi + 0x18]
push eax
push edi
call ebx
push ebp
lea ecx, [esp + 0x14]
push ecx
push 1
lea edx, [esi + 0x1c]
push edx
push edi
call ebx
push ebp
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esi + 0x20]
push ecx
push edi
call ebx
cmp dword [esi], ebp
jle 0x411a92
mov ecx, esi
call fcn.00411740
cmp dword [esi], ebp
jle 0x411a92
lea esp, [esp]
mov ecx, dword [esi + 0x24]
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [ebp*8]
push 4
add ecx, eax
push ecx
push edi
call ebx
mov eax, dword [esi + 0x24]
push 0
lea edx, [esp + 0x14]
push edx
push 4
lea ecx, [eax + ebp*8 + 4]
push ecx
push edi
call ebx
inc ebp
cmp ebp, dword [esi]
jl 0x411a60
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x412040
Capabilities:
Get file size
Print debug messages

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push esi
push closesocket
mov edi, ecx
push ebx
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4120b9
mov eax, ebx
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x412073
mov ecx, dword [str.__open_false]
mov dword [eax], ecx
mov edx, dword [0x427184]
mov dword [eax + 4], edx
mov ecx, dword [0x427188]
mov dword [eax + 8], ecx
mov dl, byte [0x42718c]
push ebx
mov byte [eax + 0xc], dl
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
cmp eax, 5
jae 0x4120dd
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
push 1
push esi
push esi
push ebp
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [esp + 0x14]
jae 0x4121bd
mov ebx, dword [esp + 0x20]
jmp 0x412106
mov edi, dword [esp + 0x18]
xor esi, esi
push 0x1c
call fcn.00418c04
add esp, 4
cmp eax, esi
je 0x41212a
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0x18], esi
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], esi
mov dword [eax + 0xc], esi
mov dword [eax], esi
mov esi, eax
push esi
push ebp
mov ecx, edi
mov dword [esp + 0x28], esi
call fcn.00411340
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4121ed
cmp eax, 1
jne 0x412153
mov eax, dword [esi + 0x10]
push eax
push ebp
mov ecx, edi
call fcn.004113d0
cmp dword [esi + 0xc], 2
jne 0x412165
mov ecx, dword [esi + 0x14]
push ecx
push ebp
mov ecx, edi
call fcn.00411410
cmp dword [esi + 0xc], 3
jne 0x412177
mov edx, dword [esi + 0x18]
push edx
push ebp
mov ecx, edi
call fcn.004119b0
mov esi, dword [ebx + 0x14]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x20]
push eax
push ecx
push esi
mov ecx, ebx
call fcn.0040d180
push 1
mov ecx, ebx
mov edi, eax
call fcn.0040d5a0
inc dword [esp + 0x10]
push 1
push 0
mov dword [esi + 4], edi
mov edx, dword [edi + 4]
push 0
push ebp
mov dword [edx], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [esp + 0x14]
jb 0x412100
mov ebx, dword [esp + 0x24]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
push eax
push 0x42716c
push ebx
call fcn.0041861e
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 8
mov ecx, esi
call fcn.0040b9f0
push esi
call fcn.00418b82
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.00411bb0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
Function at 0x412220
Capabilities:
Get file size
Print debug messages
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, dword [esp + 0x24]
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push closesocket
push esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x412299
mov eax, esi
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x412254
mov ecx, dword [str.__open_false]
mov dword [eax], ecx
mov edx, dword [0x427184]
mov dword [eax + 4], edx
mov ecx, dword [0x427188]
mov dword [eax + 8], ecx
mov dl, byte [0x42718c]
push esi
mov byte [eax + 0xc], dl
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 0xc
push ebp
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
mov dword [esp + 0x1c], ebp
cmp ebp, 5
jb 0x412387
push 1
push edi
push edi
push ebx
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, ebp
jae 0x4123c3
mov ebp, dword [esp + 0x28]
lea esp, [esp]
push 0x10
call fcn.00418c04
add esp, 4
cmp eax, edi
je 0x4122ed
mov dword [eax + 8], edi
mov dword [eax + 4], edi
mov dword [eax], edi
mov dword [eax + 0xc], edi
mov esi, eax
jmp 0x4122ef
xor esi, esi
push edi
lea eax, [esp + 0x18]
push eax
push 0x10
push esi
push ebx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x28], 0x10
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x14], edi
je 0x41237a
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov dword [esi], ecx
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x18]
push eax
push edx
call fcn.00411f30
cmp eax, edi
je 0x41239a
mov dword [esi + 0xc], eax
mov eax, dword [eax]
mov dword [esi + 4], eax
mov esi, dword [ebp + 0x14]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x28]
push ecx
push edx
push esi
mov ecx, ebp
call fcn.0040d180
push 1
mov ecx, ebp
mov edi, eax
call fcn.0040d5a0
inc dword [esp + 0x10]
push 1
push 0
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
push 0
push ebx
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [esp + 0x1c]
jae 0x4123bf
xor edi, edi
jmp 0x4122d0
cmp esi, edi
je 0x412387
push esi
call fcn.00418b82
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 0xc
push esi
call fcn.00418b82
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
call fcn.00411bb0
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 0xc
mov esi, dword [esp + 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
push ecx
push 0x427190
push esi
call fcn.0041861e
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret 0xc
Function at 0x412400
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
test edi, edi
jne 0x412413
pop edi
xor eax, eax
pop esi
ret 8
push ebx
mov ebx, dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41242c
pop ebx
pop edi
xor eax, eax
pop esi
ret 8
push ebx
push edi
mov ecx, esi
call fcn.00412040
pop ebx
pop edi
pop esi
ret 8

Function at 0x4124b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
test edi, edi
jne 0x4124c3
pop edi
xor eax, eax
pop esi
ret 0xc
push ebx
mov ebx, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4124dc
pop ebx
pop edi
xor eax, eax
pop esi
ret 0xc
mov eax, dword [esp + 0x10]
push ebx
push edi
push eax
mov ecx, esi
call fcn.00412220
pop ebx
pop edi
pop esi
ret 0xc
Function at 0x412c00
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi + 0x160], eax
cmp eax, 1
jne 0x412c5b
cmp dword [esi + 0x28], 0
jne 0x412c38
call fcn.004124f0
test eax, eax
jne 0x412c38
push esi
push 0xfb8
mov ecx, esi
mov dword [esi + 0x160], eax
call fcn.004114a0
pop esi
ret 4
cmp dword [esi + 0x180], 0xffffffff
jne 0x412c5b
push 0
push 0
push esi
push 0x412be0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x180], eax
pop esi
ret 4

Function at 0x412df0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov esi, ecx
cmp dword [esi + 0x17c], 0
lea eax, [esi + 0x10]
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], eax
mov ecx, dword [eax + 0x14]
mov ecx, dword [ecx]
mov eax, dword [eax]
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], ecx
jne 0x412f59
push edi
cmp dword [esi + 0x178], 0
jne 0x412e40
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x412f4b
mov dword [esi + 0x68], ecx
jmp 0x412e40
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x64]
mov edi, dword [eax + 0x14]
mov eax, dword [eax]
test ecx, ecx
je 0x412e53
cmp ecx, eax
je 0x412e58
call fcn.00418b72
cmp dword [esi + 0x68], edi
je 0x412f2d
cmp dword [esi + 0x178], 0
je 0x412f2d
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x412e81
call fcn.00418b72
mov eax, dword [esi + 0x64]
test eax, eax
je 0x412e85
mov eax, dword [eax]
jmp 0x412e87
xor eax, eax
mov edx, dword [esi + 0x68]
cmp edx, dword [eax + 0x14]
jne 0x412e94
call fcn.00418b72
mov eax, dword [esi + 0x68]
mov eax, dword [eax + 8]
push eax
mov ecx, esi
mov dword [esi + 0x5c], eax
call fcn.00412d20
test eax, eax
jne 0x412ee4
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
mov ecx, dword [ecx]
push edx
mov edx, dword [eax]
push ecx
push edx
lea edi, [esi + 0x74]
push str.Gjdg_Run:__d__Code:__d__s_n
push edi
call fcn.0041861e
add esp, 0x14
push edi
call ebp
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x412ee0
call fcn.00418b72
mov eax, dword [esi + 0x64]
test eax, eax
je 0x412f14
mov eax, dword [eax]
jmp 0x412f16
cmp eax, 0xff
je 0x412f2d
cmp eax, 5
jne 0x412f02
mov eax, dword [esi + 0x60]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax]
mov ecx, dword [ecx]
mov dword [esi + 0x64], eax
jmp 0x412e38
cmp eax, 1
jne 0x412ecd
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x412e40
xor eax, eax
mov edx, dword [esi + 0x68]
cmp edx, dword [eax + 0x14]
jne 0x412f23
call fcn.00418b72
mov eax, dword [esi + 0x68]
mov ecx, dword [eax]
jmp 0x412e38
push str.End_Gjdg
call ebp
push esi
push 0xfba
mov ecx, esi
mov dword [esi + 0x178], 0
call fcn.004114a0
cmp dword [esi + 0x17c], 0
je 0x412e22
pop edi
push str.End_Gjdg_Thread
call ebp
pop esi
pop ebp
ret
Function at 0x412f90
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi + 0x178], eax
cmp eax, 1
jne 0x412ff9
cmp dword [esi + 0x28], 0
jne 0x412fc8
call fcn.004124f0
test eax, eax
jne 0x412fc8
push esi
push 0xfb8
mov ecx, esi
mov dword [esi + 0x178], eax
call fcn.004114a0
pop esi
ret 4
cmp dword [esi + 0x180], 0xffffffff
jne 0x412feb
push 0
push 0
push esi
push 0x412f70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x180], eax
mov eax, dword [esi + 0x24]
mov eax, dword [eax]
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], eax
pop esi
ret 4