joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d680
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x44f1f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x130], ecx
mov ecx, 0x450dbc
push edi
mov edi, 1
call fcn.0040edd0
mov esi, eax
mov eax, dword [ebp + 8]
push 0xf0
movzx eax, ax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40d803
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40d803
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40d803
mov edx, 0x1234
push ebx
mov edi, edi
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x40d7ee
mov ebx, dword [esi + 4]
mov ecx, 0x403
mov dword [ebp - 0x134], eax
movzx eax, word [esi + 2]
add esi, 8
cmp cx, ax
jne 0x40d774
push 0x104
lea ecx, [ebp - 0x108]
call fcn.00420370
push esi
lea ecx, [ebp - 0x108]
call fcn.00404910
lea ecx, [ebp - 0x108]
call fcn.00407ac0
mov ecx, dword [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x134]
push 0
push 0x143
movzx eax, ax
lea ecx, [ecx + 4]
push eax
call fcn.00417bf0
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
lea ecx, [ebp - 0x108]
call fcn.00406a00
jmp 0x40d7df
cmp dx, ax
jne 0x40d7e4
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x128], 0xffffffff
call fcn.00404910
mov ecx, eax
call fcn.00407ac0
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x124], eax
call fcn.00406a00
mov ecx, dword [ebp - 0x130]
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x134]
push 0
push 0x40b
movzx eax, ax
lea ecx, [ecx + 4]
push eax
call fcn.00417bf0
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
mov edx, 0x1234
add esi, ebx
test edi, edi
jne 0x40d6f0
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004258e7
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004258e7
mov esp, ebp
pop ebp
ret 4
Function at 0x412710
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x44f1f0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00425d50
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004258e7
mov esp, ebp
pop ebp
ret

Function at 0x4132a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440598
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x44f1f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 0x650050
mov dword [ebp - 0x2c], 0x6f006b
mov dword [ebp - 0x28], 0x69006d
mov dword [ebp - 0x24], 0x79
call fcn.0040e670
mov dword [ebx + 0x464], eax
test eax, eax
je 0x41332f
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x72617453
push ecx
push eax
mov dword [ebp - 0x1c], 0x6e695774
mov dword [ebp - 0x18], 0x6b6f6f48
mov byte [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41332f
push dword [ebx + 4]
call eax
mov ecx, ebx
call fcn.0040eee0
lea esi, [ebx + 0x418]
mov ecx, esi
call fcn.00405dc0
push eax
push 0x443d38
push 0xc9
lea ecx, [ebx + 4]
call fcn.0040e2d0
lea edi, [ebx + 0x47c]
mov ecx, edi
call fcn.0041bc70
test al, al
je 0x413373
push str.about:blank
mov ecx, edi
call fcn.00407790
mov ecx, esi
call fcn.00407ac0
test eax, eax
je 0x41343a
mov ecx, esi
call fcn.00407ac0
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + pe_nt_image_headers32]
mov ecx, esi
call fcn.00407ac0
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc4]
mov ecx, esi
call fcn.00407ac0
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0xac]
push 3
push 0xe
lea ecx, [ebp - 0x40]
call fcn.00406070
push 4
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.00420370
push edi
lea eax, [ebp - 0x60]
mov ecx, ebx
push eax
call fcn.0040bb40
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0041b310
push eax
lea ecx, [ebp - 0x44]
call fcn.00406030
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.00407030
mov ecx, esi
call fcn.00407ac0
push 0
mov esi, eax
lea ecx, [ebp - 0x44]
push 0
push 0
lea eax, [ebp - 0x40]
mov edi, dword [esi]
push eax
call fcn.00407ac0
push eax
push esi
call dword [edi + 0x2c]
lea ecx, [ebp - 0x44]
call fcn.004071f0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.00407200
mov esi, dword [ebp - 0x48]
mov ecx, ebx
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00413270
mov dword [esi], 1
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004258e7
mov esp, ebp
pop ebp
ret 0x10
Function at 0x414310
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440630
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x44f1f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x84], ecx
mov eax, dword [ebp + 0x14]
lea esi, [ecx + 0x418]
mov dword [ecx + 0x40c], 1
mov ecx, esi
mov dword [eax], 1
call fcn.00407ac0
test eax, eax
je 0x4143e2
mov ecx, esi
call fcn.00407ac0
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + pe_nt_image_headers32]
mov ecx, esi
call fcn.00407ac0
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc4]
mov ecx, esi
call fcn.00407ac0
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0xac]
push 3
push 0xe
lea ecx, [ebp - 0x34]
call fcn.00406070
push 3
push 3
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.00406070
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00407ac0
lea edx, [ebp - 0x24]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea ecx, [ebp - 0x24]
call fcn.00407200
lea ecx, [ebp - 0x34]
call fcn.00407200
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
lea eax, [ebp - 0x80]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x20
call esi
push 0x20
mov dword [ebp - 0x8c], eax
call esi
push 2
mov ebx, eax
call esi
push 3
mov dword [ebp - 0x88], eax
call esi
mov esi, eax
mov dword [ebp - 0x70], 0x3c
lea eax, [ebp - 0x70]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowInfo]
mov eax, dword [ebp - 0x84]
push 0x40
mov ecx, dword [eax + 0x43c]
lea edi, [eax + 4]
mov edx, dword [eax + 0x438]
mov eax, dword [ebp - 0x50]
sub eax, ecx
push ecx
sub eax, esi
mov ecx, edi
sub eax, ebx
push edx
push eax
mov eax, dword [ebp - 0x54]
sub eax, edx
sub eax, dword [ebp - 0x88]
sub eax, dword [ebp - 0x8c]
push eax
push 0xffffffffffffffff
call fcn.00417f10
mov ecx, edi
call fcn.00418c70
mov esi, dword [ebp - 0x84]
cmp dword [esi + 0x440], 0
jne 0x414489
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x41b4d0
push 0
push 0
call fcn.004284b1
add esp, 0x18
mov dword [esi + 0x440], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004258e7
mov esp, ebp
pop ebp
ret 0x10
Function at 0x415a10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x44f1f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415a9b
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x415a5d
cmp eax, 2
jne 0x415a79
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x415a95
test ecx, ecx
je 0x415a90
test cl, 1
jne 0x415a79
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x415a95
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004258e7
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004258e7
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415ab0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440736
mov eax, dword fs:[0]
push eax
mov eax, 0x10198
call fcn.00428880
mov eax, dword [0x44f1f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
call fcn.00412710
push 0xb0
test eax, eax
je 0x415c03
lea ecx, [ebp - 0x10170]
call fcn.00420370
push 1
push 3
lea ecx, [ebp - 0x10170]
call fcn.00405ba0
lea eax, [ebp - 0x10160]
mov dword [ebp - 4], 0
push esi
push eax
call fcn.00402d80
add esp, 8
lea eax, [ebp - 0x101a4]
lea ecx, [ebp - 0x10170]
push eax
call fcn.0041eb00
push 0
push 0x80
push 3
push 0
push 3
push 0xc0120089
mov ecx, eax
call fcn.0041b310
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x101a4]
mov esi, eax
call fcn.00407030
cmp esi, 0xffffffff
je 0x415bf2
push 0
push 0
push 0
push esi
mov dword [ebp - 0x10174], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x10174]
push eax
push 0x10000
lea eax, [ebp - 0x10010]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x415bd9
mov eax, dword [ebp - 0x10174]
test eax, eax
je 0x415bd9
push eax
lea eax, [ebp - 0x10010]
push eax
lea ecx, [ebp - 0x1018c]
call fcn.004059c0
push eax
mov ecx, edi
call fcn.004076e0
lea ecx, [ebp - 0x1018c]
call fcn.00407020
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10170]
call fcn.00407e90
xor eax, eax
jmp 0x415d18
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x10170]
jmp 0x415d0f
lea ecx, [ebp - 0x100c0]
call fcn.00420370
push 1
push 3
lea ecx, [ebp - 0x100c0]
call fcn.00405ba0
push esi
lea eax, [ebp - 0x100b0]
mov dword [ebp - 4], 1
push 0x44347c
push eax
call fcn.00402850
add esp, 8
push eax
call fcn.00402d80
add esp, 8
lea eax, [ebp - 0x1018c]
lea ecx, [ebp - 0x100c0]
push eax
call fcn.0041eb00
push 0
push 0x80
push 3
push 0
push 3
push 0xc0120089
mov ecx, eax
call fcn.0041b310
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x1018c]
mov esi, eax
call fcn.00407030
cmp esi, 0xffffffff
je 0x415d03
push 0
push 0
push 0
push esi
mov dword [ebp - 0x10174], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x10174]
push eax
push 0x10000
lea eax, [ebp - 0x10010]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x415ced
mov eax, dword [ebp - 0x10174]
test eax, eax
je 0x415ced
push eax
lea eax, [ebp - 0x10010]
push eax
lea ecx, [ebp - 0x101a4]
call fcn.004059c0
push eax
mov ecx, edi
call fcn.004076e0
lea ecx, [ebp - 0x101a4]
call fcn.00407020
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x100c0]
call fcn.00407e90
xor eax, eax
jmp 0x415d18
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x100c0]
mov esi, eax
call fcn.00407e90
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004258e7
mov esp, ebp
pop ebp
ret 8
Function at 0x416b60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4407b6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x44f1f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x42c]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x10]
push 4
mov dword [ebp - 0x424], eax
call fcn.00420370
lea ecx, [ebp - 0x42c]
call fcn.00404d10
push 8
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.00420370
push esi
lea ecx, [ebp - 0x1c]
call fcn.004061a0
push 0x404
lea ecx, [ebp - 0x420]
call fcn.00420370
lea ecx, [ebp - 0x420]
call fcn.00404d10
push 0x400
push edi
mov byte [ebp - 4], 1
call fcn.004044a0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
add esp, 8
mov edi, eax
push 0x60
push 0
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x430], esi
test esi, esi
jne 0x416c40
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x430], eax
test esi, esi
jne 0x416c40
call fcn.0040a9a0
mov edi, eax
jmp 0x416d3d
push dword [ebp - 0x424]
push dword [ebp - 0x428]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x416c63
call fcn.0040a9a0
jmp 0x416d30
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x428], ebx
test ebx, ebx
jne 0x416c81
call fcn.0040a9a0
jmp 0x416d30
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x424], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x416ca2
mov edi, 0x8007000e
jmp 0x416d32
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 2
call fcn.00409630
jmp 0x416ccc
lea ecx, [ebp - 0x420]
mov dword [ebp - 4], 1
call fcn.00407ac0
test eax, eax
jne 0x416ce9
mov edi, 0x8007000e
jmp 0x416d32
push edi
push eax
push edi
push ebx
push 0
call fcn.00419040
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jne 0x416d08
call fcn.0040a9a0
jmp 0x416d30
lea ecx, [ebp - 0x420]
call fcn.00407ac0
push dword [ebp + 0x14]
xor ecx, ecx
mov word [eax + edi*2], cx
lea ecx, [ebp - 0x420]
call fcn.00407ac0
push eax
lea ecx, [ebp - 0x1c]
call fcn.00416940
mov edi, eax
test esi, esi
je 0x416d3d
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x420]
call fcn.00406d90
lea ecx, [ebp - 0x42c]
call fcn.00406a60
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004258e7
mov esp, ebp
pop ebp
ret 0x10
Function at 0x417d30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x417d49
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417d55
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x417d50
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x417e40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x417e55
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x417e60
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417e60
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4183b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x44f1f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x4183e7
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004258e7
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x412ad0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x418410
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004258e7
mov esp, ebp
pop ebp
ret
Function at 0x4195c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4408f8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x44f1f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x419713
cmp byte [edi + 0x45], 0
je 0x419713
call fcn.0041bcc0
mov edx, dword [edi]
mov esi, eax
push esi
mov ecx, edi
call dword [edx + 0xc]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], esi
push eax
call fcn.0041bd40
add esp, 8
test al, al
je 0x419631
xor al, al
jmp 0x419715
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00405940
mov dword [ebp - 4], 0
lea ebx, [edi + 0x48]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041b2d0
mov ecx, eax
call fcn.00407ae0
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0041ce80
add esi, eax
lea ecx, [ebp - 0x28]
push esi
lea eax, [ebp - 0x34]
push eax
call fcn.0041b2d0
mov ecx, eax
call fcn.00407ae0
mov ecx, dword [edi + 0x40]
push eax
push ebx
call fcn.0041f010
sub eax, 0
je 0x4196a3
dec eax
je 0x4196a7
sub eax, 2
je 0x419705
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.00407020
mov al, bl
jmp 0x419715
mov byte [edi + 0x45], 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041b2d0
mov ecx, eax
call fcn.00407ae0
mov esi, dword [ebp - 0x2c]
sub esi, eax
je 0x4196e7
push dword [edi + 0x50]
lea eax, [ebp - 0x3c]
push esi
push 1
push eax
lea ecx, [ebp - 0x28]
call fcn.0041b2d0
mov ecx, eax
call fcn.00407ae0
push eax
call fcn.00428063
add esp, 0x10
cmp esi, eax
jne 0x419695
cmp byte [edi + 0x45], 0
je 0x419705
test esi, esi
jne 0x419647
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0041ae80
jmp 0x419647
lea ecx, [ebp - 0x28]
mov bl, 1
call fcn.00407020
mov al, bl
jmp 0x419715
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004258e7
mov esp, ebp
pop ebp
ret
Function at 0x438b04
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44f1f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0042f2a1
mov dword [ebp - 0x14], eax
cmp dword [0x451cc8], esi
jne 0x438bf7
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x438b84
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x438cd7
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x438cd7
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x438cd7
push eax
call ebx
push 0x449208
push edi
mov dword [0x451cc8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x451ccc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x451cd0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x451cd8], eax
test eax, eax
je 0x438bf4
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x451cd4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x438c1c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x438c0f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x438c31
push 4
pop eax
jmp 0x438cd9
cmp dword [ebp - 0x14], esi
je 0x438c31
push dword [0x451cc8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x438c16
mov eax, dword [0x451cd4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x438c8f
cmp dword [0x451cd8], edi
je 0x438c8f
push eax
call ebx
push dword [0x451cd8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x438c8f
test eax, eax
je 0x438c8f
call ecx
test eax, eax
je 0x438c84
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x438c84
test byte [ebp - 8], 1
jne 0x438c8f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x438cbf
mov eax, dword [0x451ccc]
cmp eax, edi
je 0x438cbc
push eax
call ebx
test eax, eax
je 0x438cbc
call eax
mov esi, eax
test esi, esi
je 0x438cbc
mov eax, dword [0x451cd0]
cmp eax, edi
je 0x438cbc
push eax
call ebx
test eax, eax
je 0x438cbc
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x451cc8]
call ebx
test eax, eax
je 0x438cd7
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x438cd9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004258e7
mov esp, ebp
pop ebp
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x42d098], 1
mov dword [0x42d094], 1
mov dword [0x42d090], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x42d00c], eax
mov eax, dword [0x42d0a4]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x42d0b8]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x42d0a0]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x422554], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056