joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4012c0
Capabilities:
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
test eax, eax
jle 0x4014f7
push ebx
push ebp
push esi
mov esi, ecx
add esi, 5
dec eax
shr eax, 3
inc eax
push edi
mov dword [esp + 0x10], eax
lea ecx, [ecx]
movzx eax, byte [esi - 1]
movzx ecx, byte [esi]
movzx edx, byte [esi + 1]
shl eax, 8
add eax, ecx
movzx ecx, byte [esi + 2]
shl eax, 8
add eax, edx
shl eax, 8
add eax, ecx
mov ebx, eax
shr ebx, 0x13
and bl, 0x3f
mov byte [esp + 0x16], bl
mov ebx, eax
shr ebx, 0xf
and bl, 0x3f
mov byte [esp + 0x17], bl
mov ebx, eax
shr ebx, 0xb
and bl, 0x3f
mov byte [esp + 0x18], bl
mov ebx, eax
shr ebx, 7
and bl, 0x3f
mov byte [esp + 0x19], bl
mov ebx, eax
mov cl, al
and cl, 1
shl cl, 5
mov edx, eax
shr ebx, 3
shr edx, 0x1b
add cl, dl
and bl, 0x3f
mov byte [esp + 0x1a], bl
mov ebx, eax
mov edx, eax
shl al, 1
shr edx, 0x17
shr ebx, 0x1f
add bl, al
movzx eax, cl
mov cl, byte [eax + 0x4250e8]
movzx eax, byte [esp + 0x16]
and dl, 0x3f
shl cl, 4
movzx edx, dl
and bl, 0x3f
mov byte [esp + 0x1b], bl
mov bl, byte [edx + 0x425128]
movzx edx, byte [esp + 0x17]
add cl, bl
mov byte [esp + 0x14], cl
mov cl, byte [eax + 0x425168]
mov al, byte [edx + 0x4251a8]
movzx edx, byte [esp + 0x19]
mov bl, byte [edx + 0x425228]
movzx edx, byte [esp + 0x1b]
shl cl, 4
add cl, al
movzx eax, byte [esp + 0x18]
mov byte [esp + 0x15], cl
mov cl, byte [eax + 0x4251e8]
movzx eax, byte [esp + 0x1a]
shl cl, 4
add cl, bl
mov byte [esp + 0x16], cl
mov cl, byte [eax + 0x425268]
mov al, byte [edx + 0x4252a8]
shl cl, 4
add cl, al
xor edx, edx
mov byte [esp + 0x17], cl
mov dword [esp + 0x18], edx
mov ebp, 3
mov edi, 2
mov eax, 1
mov edi, edi
movzx ecx, byte [eax + 0x4250bf]
dec ecx
mov ebx, ecx
and ebx, 7
mov bl, byte [ebx + 0x4250e0]
sar ecx, 3
test byte [esp + ecx + 0x14], bl
je 0x401424
mov ecx, edx
mov ebx, edx
sar ecx, 3
and ebx, 7
mov bl, byte [ebx + 0x4250e0]
or byte [esp + ecx + 0x18], bl
lea ecx, [esp + ecx + 0x18]
movzx ecx, byte [eax + 0x4250c0]
dec ecx
mov ebx, ecx
and ebx, 7
mov bl, byte [ebx + 0x4250e0]
sar ecx, 3
test byte [esp + ecx + 0x14], bl
je 0x401458
mov ecx, eax
mov ebx, eax
sar ecx, 3
and ebx, 7
mov bl, byte [ebx + 0x4250e0]
or byte [esp + ecx + 0x18], bl
lea ecx, [esp + ecx + 0x18]
movzx ecx, byte [edi + 0x4250c0]
dec ecx
mov ebx, ecx
and ebx, 7
mov bl, byte [ebx + 0x4250e0]
sar ecx, 3
test byte [esp + ecx + 0x14], bl
je 0x40148c
mov ecx, edi
mov ebx, edi
sar ecx, 3
and ebx, 7
mov bl, byte [ebx + 0x4250e0]
or byte [esp + ecx + 0x18], bl
lea ecx, [esp + ecx + 0x18]
movzx ecx, byte [ebp + 0x4250c0]
dec ecx
mov ebx, ecx
and ebx, 7
mov bl, byte [ebx + 0x4250e0]
sar ecx, 3
test byte [esp + ecx + 0x14], bl
je 0x4014c0
mov ecx, ebp
mov ebx, ebp
sar ecx, 3
and ebx, 7
mov bl, byte [ebx + 0x4250e0]
or byte [esp + ecx + 0x18], bl
lea ecx, [esp + ecx + 0x18]
add eax, 4
add edx, 4
add edi, 4
add ebp, 4
cmp eax, 0x21
jl 0x4013f0
mov edi, dword [esi - 5]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
xor edi, edx
mov dword [esi - 5], edi
add esi, 8
dec eax
mov dword [esp + 0x10], eax
jne 0x4012e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x401ce0
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x401cf8
mov dword [0x428388], 6
xor eax, eax
pop edi
ret
push esi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401d25
pop esi
mov dword [0x428388], 2
xor eax, eax
pop edi
ret
mov eax, dword [esp + 0x10]
push eax
push edi
call fcn.00401c30
mov edi, eax
add esp, 8
test edi, edi
jne 0x401d4f
push esi
mov dword [0x428388], 2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
ret
mov ecx, dword [edi + 0x10]
push 0
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x401d79
push esi
mov dword [0x428388], 0x19
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
ret
mov edx, dword [edi + 8]
push ebx
add edx, 0x400
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [edi + 8]
push 0
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push esi
jne 0x401dc3
mov dword [0x428388], 0x1e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
xor eax, eax
pop edi
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x401dd6
mov edx, dword [edi + 8]
mov dword [eax], edx
mov eax, ebx
pop ebx
pop esi
mov dword [0x428388], 0
pop edi
ret

Function at 0x401e30
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1000
call fcn.00417fc0
mov ecx, dword [esp + 0x1004]
lea eax, [esp + 0x1008]
push eax
push ecx
lea edx, [esp + 8]
push edx
call fcn.00417f46
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 0x1000
ret

Function at 0x402080
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, dword [esp + 8]
cmp word [ebx], 0
je 0x4020bb
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
push edi
mov esi, ebx
mov edi, ebx
cmp word [esi], 0x5c
jne 0x4020ad
push 0
push ebx
mov word [esi], 0
call ebp
mov word [esi], 0x5c
add edi, 2
cmp word [edi], 0
mov esi, edi
jne 0x402098
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x4032e0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0xffffffff
jne 0x4032fa
mov dword [0x428388], 6
xor eax, eax
pop esi
pop ecx
ret
push ebp
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x403328
pop ebp
mov dword [0x428388], 2
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esp + 0x14]
push ebx
push edi
push eax
call fcn.00401ec0
mov edi, eax
push edi
push esi
call fcn.00401c30
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add esp, 0xc
push edi
push 0
mov esi, eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
jne 0x403371
push ebp
mov dword [0x428388], 2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop ebp
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [esi + 0x10]
push 0
push 0
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40339e
push ebp
mov dword [0x428388], 0x19
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop ebp
xor eax, eax
pop esi
pop ecx
ret
mov edx, dword [esi + 8]
add edx, 0x400
push edx
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x4033d2
push ebp
mov dword [0x428388], 8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop ebp
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [esi + 8]
push 0
lea eax, [esp + 0x14]
push eax
push ecx
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40340d
push edi
push eax
mov dword [0x428388], 0x1e
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop ebp
xor eax, eax
pop esi
pop ecx
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esi + 0x1e]
test al, al
jl 0x403436
xor ecx, ecx
test al, al
sete cl
movsx edx, al
push 0
push edx
mov edx, dword [esi + 8]
push ecx
push edx
push edi
call fcn.00401540
add esp, 0x14
mov eax, dword [esi + 0xc]
add eax, 0x400
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0xc]
add ecx, 0x400
push ecx
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
jne 0x40347a
push edi
push eax
mov dword [0x428388], 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop ebx
pop ebp
xor eax, eax
pop esi
pop ecx
ret
mov edx, dword [esi + 4]
push edx
push edi
lea eax, [esp + 0x20]
push eax
push ebp
call fcn.00401910
add esp, 0x10
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4034a6
mov ecx, dword [esi + 0xc]
mov dword [eax], ecx
pop edi
pop ebx
mov eax, ebp
pop ebp
mov dword [0x428388], 0
pop esi
pop ecx
ret
Function at 0x403d40
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0xa74
push esi
mov esi, dword [esp + 0xa7c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [esp + 0x260]
push eax
call edi
push 0x5c
push esi
call fcn.004181e7
add esp, 8
test eax, eax
je 0x403d8d
push esi
lea ecx, [esp + 0x260]
push ecx
call edi
push 0x421b48
lea edx, [esp + 0x260]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x25c]
push eax
lea ecx, [esp + 0x878]
push ecx
call edi
push 0x421b40
lea edx, [esp + 0x260]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x260]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
je 0x403eef
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
cmp word [esp + 0x3c], 0x2e
jne 0x403e0d
mov ax, word [esp + 0x3e]
test ax, ax
je 0x403ed2
cmp ax, 0x2e
jne 0x403e0d
cmp word [esp + 0x40], 0
je 0x403ed2
test byte [esp + 0x10], 0x10
jne 0x403e99
lea edx, [esp + 0x3c]
push edx
push 0x428390
call edi
lea eax, [esp + eax*2 + 0x87c]
push eax
lea ecx, [esp + 0x470]
push str.data_s_s
push ecx
call esi
mov eax, dword [0x4299ac]
add esp, 0x10
lea edx, [esp + 0x468]
push edx
push 0
push 0x40b
push eax
call ebp
mov eax, dword [0x4299b4]
inc eax
cmp eax, 0x10
mov dword [0x4299b4], eax
jle 0x403e7c
mov ecx, dword [0x4299a8]
push ecx
mov dword [0x4299b4], 0
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [0x4252f8]
lea edx, [esp + 0x468]
push edx
push 0x428390
push eax
call fcn.00402740
add esp, 0xc
jmp 0x403ed2
lea ecx, [esp + 0x878]
push ecx
lea edx, [esp + 0x674]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x674]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 0x670]
push edx
call fcn.00403d40
add esp, 4
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403de5
mov eax, dword [esp + 0xc]
pop ebp
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
add esp, 0xa74
ret
Function at 0x404b70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
mov ecx, dword [0x4252f8]
lea eax, [esp]
push eax
push 0x421b40
push ecx
mov dword [esp + 0x10], 0
call fcn.004034c0
add esp, 0xc
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x404dbf
mov eax, dword [esp]
test eax, eax
je 0x404dbf
mov edx, dword [0x4299a8]
mov eax, dword [0x42a050]
push ebx
push ebp
push esi
push edi
push 0
push 0x403c40
push edx
push 0x8a
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov ecx, dword [0x4299b0]
push str.Unpacking...
push 0
push 0xc
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [0x42a050]
push 0x800
push 0x4287a0
push 0x72
xor eax, eax
mov ecx, 0x200
mov edi, 0x4287a0
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, 0x4287a0
call fcn.00403940
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov eax, dword [esp + 0x10]
add eax, 0x1f
push eax
call fcn.00401e70
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x24]
mov esi, eax
mov eax, dword [edx]
push ecx
push esi
push eax
call fcn.004032e0
add esp, 0x10
test eax, eax
mov dword [esp + 0x18], eax
jne 0x404c5b
push 0x800
push 0x4287a0
push 0x66
jmp 0x404cd3
mov eax, dword [0x4252f8]
mov ecx, dword [eax + 0x640]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
call fcn.00403b10
add esp, 0xc
test eax, eax
jne 0x404d5e
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404d0b
push esi
call fcn.00402080
add esp, 4
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404d0b
push 0x800
push 0x4287a0
push 0x67
xor eax, eax
mov edi, 0x4287a0
mov ecx, 0x200
rep stosd dword es:[edi], eax
mov ecx, dword [0x42a050]
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
mov edx, dword [esp + 0x2c]
push esi
push 0x4287a0
push edx
call fcn.00403cd0
add esp, 0xc
push esi
push 0
call ebp
push eax
call ebx
jmp 0x404d42
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x28]
push eax
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x18]
push eax
push 0
call ebp
push eax
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0
call ebp
push eax
call ebx
inc dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push edx
call fcn.00403670
add esp, 8
test eax, eax
jne 0x404c21
jmp 0x404d66
push esi
push 0
call ebp
push eax
call ebx
mov eax, dword [esp + 0x1c]
push eax
call fcn.00401df0
mov ecx, dword [0x4299b0]
add esp, 4
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edx, dword [0x42a050]
push 0x800
push 0x4287a0
push 0x6b
xor eax, eax
mov ecx, 0x200
mov edi, 0x4287a0
push edx
mov dword [0x4299b0], 0
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, 0x4287a0
call fcn.00403940
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x405760
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push ebp
push esi
xor ebp, ebp
push ebp
push 0x80
push 1
push ebp
push ebp
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40579f
push 0x75
call fcn.00403c90
mov ecx, dword [esp + 0x24]
push eax
push ecx
call fcn.00403cd0
add esp, 0xc
pop esi
pop ebp
add esp, 0x14
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalSize]
push edi
mov word [esp + 0x14], 0x4d42
call ebx
mov edx, dword [edi]
add eax, 0xe
push ebp
mov dword [esp + 0x16], eax
lea eax, [esp + 0x10]
push eax
push 0xe
lea ecx, [esp + 0x1c]
push ecx
mov word [esp + 0x26], bp
mov word [esp + 0x28], bp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
add edx, 0xe
push esi
mov dword [esp + 0x2e], edx
call ebp
push 0
lea edx, [esp + 0x10]
push edx
push edi
call ebx
push eax
push edi
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x406100
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [0x429de4]
xor ecx, ecx
sub esp, 0x14
cmp eax, ecx
jne 0x406124
mov dword [0x429dec], ecx
mov dword [0x429bc8], ecx
mov dword [0x429bcc], ecx
add esp, 0x14
ret
push ebx
mov ebx, dword [eax + 6]
push ebp
mov ebp, dword [eax + 0xa]
push esi
lea eax, [ebx + ebx*2]
push edi
push eax
call fcn.00401520
mov esi, eax
mov ecx, esi
imul ecx, ebp
add esp, 4
push ecx
push 8
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, dword [0x429de4]
add edi, 0xe
test ebp, ebp
mov dword [esp + 0x1c], eax
jbe 0x4061e4
add eax, 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebp
test ebx, ebx
jbe 0x4061cf
mov esi, eax
mov dword [esp + 0x10], ebx
jmp 0x406180
fld dword [edi + 0xc]
fadd dword [edi + 8]
fadd dword [edi + 4]
fadd dword [edi]
fmul dword [0x421f20]
call fcn.00418270
cmp eax, 0xffffff80
jge 0x4061a2
mov eax, 0xffffff80
jmp 0x4061ae
cmp eax, 0x80
jle 0x4061ae
mov eax, 0x80
mov cl, 0x80
sub cl, al
mov eax, dword [esp + 0x10]
mov byte [esi - 2], cl
mov byte [esi - 1], cl
mov byte [esi], cl
add edi, 0x14
add esi, 3
dec eax
mov dword [esp + 0x10], eax
jne 0x406180
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add eax, esi
dec ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
jne 0x406171
push 0x28
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push eax
mov dword [esi], 0x28
mov word [esi + 0xe], 0x18
mov dword [esi + 4], ebx
mov dword [esi + 8], ebp
mov dword [esi + 0x10], eax
mov word [esi + 0xc], 1
mov dword [esi + 0x20], eax
call dword [sym.imp.USER32.dll_GetDC]
push ebp
mov edi, eax
push ebx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edx, dword [esp + 0x1c]
push 0
push esi
push edx
push ebp
push 0
push eax
push edi
mov dword [esp + 0x3c], eax
call dword [sym.imp.GDI32.dll_SetDIBits]
mov eax, dword [esp + 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x20]
push esi
push 0
mov dword [0x429bc8], ebx
mov dword [0x429bcc], ebp
mov dword [0x429dec], ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4063f0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x429ddc]
sub esp, 0x28
test eax, eax
je 0x406419
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x429ddc]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
add esp, 0x28
ret
cmp word [0x429dd8], 0
jne 0x406482
mov edx, dword [0x42a050]
xor ecx, ecx
mov dword [esp], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
push 5
mov dword [esp + 0x28], str.GRFACTORY
mov dword [esp + 0x14], edx
mov dword [esp + 8], 0x406290
call dword [sym.imp.USER32.dll_GetSysColorBrush]
mov dword [esp + 0x1c], eax
lea eax, [esp]
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
mov word [0x429dd8], ax
mov ecx, dword [0x42a050]
push 0
push ecx
push 0
push 0
push 0x40
push 0x40
push 0x80000000
push 0x80000000
push 0xc80000
push str.GRF_Factory_Viewer
push str.GRFACTORY
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x429ddc], eax
add esp, 0x28
ret

Function at 0x4064c0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0x104
push eax
push 0x429bd0
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [0x429de4]
xor edi, edi
cmp eax, edi
je 0x4064f0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, 1
mov dword [0x425374], eax
mov dword [0x425370], eax
mov eax, dword [0x429dec]
cmp eax, edi
push esi
mov esi, dword [esp + 0x1c]
mov dword [0x429de4], ecx
mov dword [0x429de8], edx
mov dword [0x429bc8], edi
mov dword [0x429bcc], edi
mov dword [0x4299b8], esi
je 0x406540
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [0x429dec], edi
cmp esi, 6
ja case.0x406545.0
jmp dword [esi*4 + 0x4065a8]
call fcn.004058b0
jmp case.0x406545.0
call fcn.00405b50
jmp case.0x406545.0
call fcn.00405940
jmp case.0x406545.0
call fcn.00405f20
jmp case.0x406545.0
call fcn.00406100
jmp case.0x406545.0
mov eax, dword [0x429de4]
push 5
push edi
push eax
call dword [sym.imp.WINMM.dll_PlaySoundW]
cmp dword [0x429dec], edi
pop esi
jne 0x40659c
mov ecx, dword [0x429ddc]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x429ddc], edi
pop edi
ret
call fcn.004063f0
pop edi
jmp fcn.00405460
Function at 0x40e170
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x40e1a0
push esi
call fcn.0040fea0
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x40e199
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x40e217
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x40e207
mov eax, dword [esi + 8]
test eax, eax
je 0x40e1c4
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x40e203
cmp eax, 2
je 0x40e207
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40e1b7
cmp eax, 3
je 0x40e1ea
cmp eax, 1
jne 0x40e1b7
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov edx, dword [eax + 4]
cmp edx, dword [eax + 8]
jl 0x40e1b7
mov ecx, dword [esi + 0x11c]
add dword [eax + 8], ecx
jmp 0x40e1b7
xor al, al
pop esi
ret
mov edx, dword [esi + 0x7c]
mov dword [esi + 0x84], edx
call fcn.0040de50
pop esi
ret
cmp eax, 0xcc
je 0x40e237
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
mov ecx, dword [esi]
mov edx, dword [esi + 0x14]
mov dword [ecx + 0x18], edx
mov eax, dword [esi]
push esi
call dword [eax]
add esp, 4
call fcn.0040de50
pop esi
ret
Function at 0x41830a
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x423590
call fcn.0041a73c
mov edi, 0x94
mov eax, edi
call fcn.00417fc0
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 [0x429e10], ecx
mov eax, dword [esi + 4]
mov dword [0x429e1c], eax
mov edx, dword [esi + 8]
mov dword [0x429e20], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x429e14], esi
cmp ecx, 2
je 0x41836a
or esi, 0x8000
mov dword [0x429e14], esi
shl eax, 8
add eax, edx
mov dword [0x429e18], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4183a5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4183a5
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4183bd
cmp eax, 0x20b
je 0x4183aa
mov dword [ebp - 0x1c], esi
jmp 0x4183d1
cmp dword [ecx + 0x84], 0xe
jbe 0x4183a5
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4183cb
cmp dword [ecx + 0x74], 0xe
jbe 0x4183a5
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0041a6e9
pop ecx
test eax, eax
jne 0x4183fd
cmp dword [0x429e00], 1
jne 0x4183ea
call fcn.00419e9e
push 0x1c
call fcn.00419d27
push 0xff
call fcn.004185d8
pop ecx
pop ecx
call fcn.0041a647
mov dword [ebp - 4], esi
call fcn.0041a49c
test eax, eax
jge 0x418416
push 0x1b
call fcn.004182e5
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42b3f4], eax
call fcn.0041a37a
mov dword [0x429df8], eax
call fcn.0041a2d8
test eax, eax
jge 0x41843c
push 8
call fcn.004182e5
pop ecx
call fcn.0041a0a5
test eax, eax
jge 0x41844d
push 9
call fcn.004182e5
pop ecx
push 1
call fcn.00418608
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x418463
push eax
call fcn.004182e5
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041a048
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x418484
movzx eax, word [ebp - 0x40]
jmp 0x418487
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00405410
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4184a5
push edi
call fcn.00418733
call fcn.00418755
jmp 0x4184d7
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041a777
ret