joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000138b
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10026b72
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10030040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 0x30]
test edi, edi
je 0x100013c6
mov ecx, edi
call fcn.100010ca
mov ecx, edi
call fcn.10004c26
mov edi, dword [esi + 0x34]
test edi, edi
je 0x100013db
mov ecx, edi
call fcn.100010ca
mov ecx, edi
call fcn.10004c26
and dword [ebp - 4], 0
lea eax, [esi + 0x64]
push 0x10011dec
push 2
push 0xc
push eax
call fcn.10025911
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
leave
ret

Function at 0x10002b45
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
mov edx, dword [esp + 8]
push edi
mov edi, ecx
not edx
movzx eax, byte [edi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x10029100]
inc edi
sub esi, 1
jne 0x10002b51
pop edi
not edx
pop esi
mov eax, edx
ret

Function at 0x10002b70
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov edx, ebx
test edi, edi
je 0x10002bd2
mov al, byte [esi]
dec edi
inc esi
cmp al, 0x23
jne 0x10002b9a
cmp edi, 2
jb 0x10002b9a
cmp byte [esi], al
jne 0x10002b9a
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x10029100]
test edi, edi
jne 0x10002b83
jmp 0x10002bd9
cmp al, 0x23
jne 0x10002bc0
cmp byte [esi], al
jne 0x10002bc0
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x10029100]
mov al, byte [esi]
inc esi
test al, al
jne 0x10002bb2
pop edi
not edx
pop esi
mov eax, edx
pop ebx
ret

Function at 0x10002cfa
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x10002d09
and dword [edi], 0
mov edx, 0x10028d50
call fcn.10002be1
mov esi, eax
test esi, esi
je 0x10002d6c
mov ecx, esi
call fcn.10002ca4
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10002d65
mov ecx, ebx
call fcn.10004c0e
mov ebp, eax
test ebp, ebp
je 0x10002d65
push esi
push ebx
push 1
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov ecx, esi
cmp eax, ebx
je 0x10002d56
call fcn.10002c95
mov ecx, ebp
call fcn.10004c26
jmp 0x10002d6c
call fcn.10002c95
test edi, edi
je 0x10002d61
mov dword [edi], ebx
mov eax, ebp
jmp 0x10002d6e
mov ecx, esi
call fcn.10002c95
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10010b0e
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
cmp dword [esi + 0x5a58], 0
lea edi, [esi + 0x5a5c]
mov ecx, edi
je 0x10010b69
push 0
call fcn.100125f1
push dword [esp + 0x10]
mov ecx, edi
push ebx
call fcn.10002ff7
mov edx, dword [edi]
mov ecx, 0x10030624
push dword [esi + 0x5a58]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x5a64]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
jmp 0x10010b73
push dword [esp + 0x10]
push ebx
call fcn.10002ff7
pop edi
pop esi
pop ebx
ret

Function at 0x10011209
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x10030628]
push esi
mov esi, ecx
push edi
and dword [eax + 0x59f0], 0
test esi, esi
je 0x10011258
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
call fcn.1001125c
mov edx, 0x10028d54
mov ecx, esi
mov edi, eax
call fcn.10002be1
mov esi, eax
test esi, esi
je 0x10011258
push esi
push dword [ebp - 4]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov ecx, esi
call fcn.10002c95
pop edi
pop esi
leave
ret
Function at 0x1001fb3b
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
mov eax, dword [0x10030628]
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
lea edi, [eax + 8]
call esi
shr eax, 0xf
mov ecx, edi
and al, 1
movzx eax, al
push eax
push 0x1000
call fcn.10002888
push 0x10
call esi
shr eax, 0xf
mov ecx, edi
and al, 1
movzx eax, al
push eax
push 0x2000
call fcn.10002888
push 0x12
call esi
shr eax, 0xf
mov ecx, edi
and al, 1
movzx eax, al
push eax
push 0x4000
call fcn.10002888
push 0x5d
call esi
shr eax, 0xf
mov ecx, edi
and al, 1
movzx eax, al
push eax
push 0x8000
call fcn.10002888
pop edi
pop esi
pop ecx
ret
Function at 0x1002372b
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x100306fc]
push esi
xor esi, esi
jmp 0x1002373d
cmp dword [edx + 4], esi
jne 0x10023791
mov edx, dword [edx]
test edx, edx
jne 0x10023736
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x1002378d
push edi
push 0x20
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop edi
mov dword [ecx], esi
mov eax, ecx
mov dword [edx + 4], ecx
add edi, 0x20
add ecx, 0x20
mov esi, eax
cmp edi, 0xfe0
jbe 0x10023764
mov eax, dword [0x100306fc]
mov dword [edx], eax
mov dword [0x100306fc], edx
pop edi
test edx, edx
jne 0x10023791
xor eax, eax
pop esi
ret
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret

Function at 0x1002403b
Capabilities:
Enumerate threads

Disassembly:
sub esp, 0x20
mov eax, dword [0x10030040]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10024148
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x1c
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10024141
inc edi
push ebx
cmp dword [esp + 0x10], 0x10
jb 0x10024102
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x1c], eax
jne 0x10024102
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esp + 0x18], eax
je 0x10024102
mov edx, dword [esi]
test edx, edx
jne 0x100240cd
push 0x200
push edx
push dword [0x10030634]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10024129
lea ebx, [esi + 8]
jmp 0x100240f7
mov eax, dword [esi + 4]
lea ebx, [esi + 8]
cmp dword [ebx], eax
jb 0x100240f7
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x10030634]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10024129
mov dword [esi], edx
mov ecx, dword [ebx]
mov eax, dword [esp + 0x18]
mov dword [edx + ecx*4], eax
inc dword [ebx]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x1c
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10024082
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10024140
xor edi, edi
cmp dword [esi], edi
je 0x10024140
push dword [esi]
push edi
push dword [0x10030634]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi], edi
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x28]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.100257e1
add esp, 0x20
ret
Function at 0x1002415c
Capabilities:
Suspend thread

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov dword [esp + 8], edx
xor esi, esi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.1002403b
test eax, eax
jne 0x1002417d
push 9
pop esi
jmp 0x100241c4
cmp dword [edi], esi
je 0x100241c4
push ebx
mov ebx, esi
cmp dword [edi + 8], esi
jbe 0x100241c3
push ebp
mov eax, dword [edi]
push dword [eax + ebx*4]
push esi
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebp, eax
test ebp, ebp
je 0x100241bc
push ebp
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, ebp
call fcn.10023eea
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [edi + 8]
jb 0x1002418a
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
pop ecx
ret

Function at 0x100241ca
Capabilities:
Resume thread

Disassembly:
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp dword [esi], ebp
je 0x10024216
push edi
mov edi, ebp
cmp dword [esi + 8], ebp
jbe 0x10024206
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push ebp
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x100241ff
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x100241dd
pop ebx
push dword [esi]
push ebp
push dword [0x10030634]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
ret
Function at 0x10024219
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x10
mov eax, dword [0x10030040]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push ebp
imul ebp, ecx, 0x2c
push esi
push edi
mov esi, edx
mov dword [esp + 0x14], esi
add ebp, dword [0x100306f0]
mov eax, dword [ebp]
mov cl, byte [ebp + 0x14]
and cl, 1
lea ebx, [eax - 5]
cmove ebx, eax
movzx eax, cl
lea edi, [eax*2 + 5]
lea eax, [esp + 0x18]
mov dword [esp + 0x10], edi
push eax
push 0x40
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10024272
push 0xa
pop eax
jmp 0x100242f4
test esi, esi
je 0x10024294
mov byte [ebx], 0xe9
mov eax, dword [ebp + 4]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
test byte [ebp + 0x14], 1
je 0x100242b4
mov eax, dword [ebp]
mov word [eax], 0xf9eb
jmp 0x100242b4
test byte [ebp + 0x14], 1
je 0x100242a9
mov edi, ebx
lea esi, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
jmp 0x100242b4
mov eax, dword [ebp + 0xc]
mov dword [ebx], eax
mov al, byte [ebp + 0x10]
mov byte [ebx + 4], al
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [esp + 0x14]
mov cl, dl
add cl, cl
shl dl, 2
xor cl, byte [ebp + 0x14]
and cl, 2
xor cl, byte [ebp + 0x14]
xor dl, cl
and dl, 4
xor dl, cl
xor eax, eax
mov byte [ebp + 0x14], dl
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100257e1
add esp, 0x10
ret

Function at 0x100249aa
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x100249e7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
mov dword [0x100306b0], 3
push eax
push eax
push dword [ebp + 8]
push 0x10024a04
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x100249fd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100249fd
cmp dword [ebp + 0xc], 0
jne 0x100249fd
cmp dword [ebp + 0x10], 0
jne 0x100249fd
call fcn.10025346
call fcn.10024416
xor eax, eax
inc eax
pop ebp
ret 0xc
Function at 0x100255bb
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x1c
mov eax, dword [0x10030040]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
mov bl, byte [0x10030625]
push ebp
push edi
push str.darksiders1.exe
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esp + 0x14], 0x86110ff3
mov dword [esp + 0x18], 0x100
mov dword [esp + 0xc], 0x86110ff3
lea edi, [eax + 0x553eb5]
mov dword [esp + 0x10], 0x100
lea ebp, [eax + 0x86337a]
lea eax, [esp + 0x20]
push eax
push 0x40
push 8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 0x20]
push eax
push 0x40
push 8
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test bl, bl
je 0x1002563f
mov eax, 0x90909090
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [ebp], eax
mov dword [ebp + 4], eax
jmp 0x1002565a
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [edi], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov ecx, dword [esp + 0x24]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.100257e1
add esp, 0x1c
ret

Function at 0x1002566c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10030040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push str.darksiders1.exe
mov bl, cl
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x10], 0xfac595e8
xor bh, bh
lea esi, [eax + 0x83816]
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test bl, bl
je 0x100256b9
mov dword [esi], 0x90909090
mov byte [esi + 4], 0x90
jmp 0x100256c1
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
mov byte [esi + 4], bh
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100257e1
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
mov ecx, 0x35966e8f
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x318f7cfa
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4012f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4021bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
push esi
mov esi, ecx
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x100
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
push 0x405050
push ecx
lea edx, [esp + 0x10]
push str._sDownloaded_Program_Files_s
push edx
mov dword [esp + 0x124], 0
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x18]
add esp, 0x10
mov ecx, esi
push eax
push 0x40502c
push 0x82
call fcn.00401400
test eax, eax
je 0x4013c7
mov ecx, dword [esp + 8]
push ecx
mov ecx, esi
call fcn.00401690
mov edx, dword [esp + 8]
push edx
call fcn.00401b00
add esp, 4
lea ecx, [esp + 8]
mov dword [esp + 0x114], 0xffffffff
call fcn.00401e96
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
mov dword fs:[0], ecx
add esp, 0x110
ret
lea ecx, [esp + 8]
mov dword [esp + 0x114], 0xffffffff
call fcn.00401e96
mov ecx, dword [esp + 0x10c]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x110
ret

Function at 0x401400
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebx
push esi
push edi
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + 8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40148c
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40148c
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [esp + 0x18]
push 0x40505c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x40148c
push esi
push ebx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4014a0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov eax, dword [0x4051cc]
test eax, eax
je 0x401577
test bl, 2
je 0x4014d9
mov eax, dword [0x4051d0]
test eax, eax
jne 0x4014d9
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x1c
test bl, 1
je 0x4014f2
mov eax, dword [0x4051d8]
test eax, eax
jne 0x4014f2
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x1c
test bl, 4
je 0x40150b
mov eax, dword [0x4051d4]
test eax, eax
jne 0x40150b
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x1c
test bh, 8
je 0x401524
mov eax, dword [0x4051dc]
test eax, eax
jne 0x401524
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x1c
test bl, 0x40
je 0x40153d
mov eax, dword [0x4051e0]
test eax, eax
jne 0x40153d
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x1c
push 0x80
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x2000000
push 3
push 0
push 3
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4015c7
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0x1c
test bl, 2
je 0x401587
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x1c
test bl, 1
je 0x401597
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x1c
test bl, 4
je 0x4015a7
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x1c
test bh, 8
je 0x4015b7
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x1c
test bl, 0x40
je 0x401549
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x1c
lea eax, [esp + 0x24]
push esi
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
jne 0x40165d
push 0x400
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0
lea eax, [esp + 0x14]
push 0
push eax
push 0x400
push esi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push esi
push ecx
push edx
push str.Unable_to_set_date_to__n___s__n_nReason:_s__nError_No:_d
push ebp
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0x24]
add esp, 0x14
push 0x10
push 0x405060
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4051cc]
test eax, eax
je 0x401675
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
neg eax
sbb eax, eax
pop edi
and al, 0xfe
pop ebp
add eax, 2
pop ebx
add esp, 8
ret 0x1c
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x4c6acc], 1
mov dword [0x4c6ad0], 1
mov dword [0x4c6ad4], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40134f
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret