joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4435c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 2
push 0x104
mov esi, ecx
call fcn.00473fa9
mov edi, eax
add esp, 8
test edi, edi
je 0x443606
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [ebp + 8]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push edi
mov esi, eax
call fcn.00473fbf
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0x444780
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, dword [0x4b00bc]
mov dword [ebp - 8], ecx
xor ecx, ecx
mov dword [ebp - 4], edx
test edi, edi
jne 0x4447a0
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
cmp edx, 0x100
jne 0x4447f7
cmp dword [ebp + 8], 9
jne 0x44485c
cmp dword [edi + 0x518], ecx
jle 0x44485c
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [0x4b00bc]
test ax, ax
js 0x4447da
call fcn.00452a50
jmp 0x4447df
call fcn.00452c10
test eax, eax
je 0x4447ef
pop esi
pop ebx
mov eax, 4
pop edi
mov esp, ebp
pop ebp
ret
mov edi, dword [0x4b00bc]
jmp 0x444857
cmp edx, 5
jne 0x44485c
mov eax, dword [0x4b00b4]
test byte [eax + 0x14], 0x10
je 0x44485c
cmp byte [edi + 0x4c8], cl
je 0x44485c
mov esi, dword [edi + 0x1278]
xor ebx, ebx
cmp dword [edi + 0x3c], ecx
jle 0x44485c
nop dword [eax]
mov eax, dword [esi]
test eax, eax
jne 0x444830
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x444826
test byte [eax + 0x7c], 4
jne 0x44484e
test dword [eax + 0x78], 0x2b0
je 0x44484e
push eax
mov eax, dword [eax + 0x8c]
call eax
mov edi, dword [0x4b00bc]
inc ebx
add esi, 8
cmp ebx, dword [edi + 0x3c]
jl 0x444820
mov edx, dword [ebp - 4]
xor ecx, ecx
movsx eax, word [edi + 0x1d8]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x444899
xor esi, esi
test eax, eax
jle 0x444899
lea ebx, [edi + 0x1dc]
push dword [ebp + 0xc]
mov eax, dword [ebx]
push dword [ebp + 8]
push edx
push dword [ebp - 8]
push edi
call eax
movsx ecx, ax
test cl, 0x5c
jne 0x444899
mov edx, dword [ebp - 4]
inc esi
add ebx, 4
cmp esi, dword [ebp - 0xc]
jl 0x444876
pop esi
pop ebx
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x444990
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [0x4b0090]
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov dword [ebp - 4], eax
test eax, eax
je 0x4449b7
push 0
push dword [0x4b0090]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push esi
push edi
push 0x304
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, dword [sym.imp.USER32.dll_RedrawWindow]
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
push 0
push dword [0x4b0090]
call ebx
mov esi, eax
test esi, esi
je 0x444a07
nop dword [eax + eax]
push 0x100
push 0
push 0
push esi
call edi
push 2
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x4449f0
mov eax, dword [0x4b00b4]
cmp dword [eax + 0x1fc], 0
jne 0x444a5e
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
lea eax, [ebp - 0x20]
push 1
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x444a5e
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
nop dword [eax]
lea eax, [ebp - 0x20]
push eax
call edi
lea eax, [ebp - 0x20]
push eax
call ebx
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
jne 0x444a40
push dword [0x4b008c]
call dword [sym.imp.MMFS2.dll_Ordinal_35]
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x444a81
push 5
push dword [0x4b0090]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret
Function at 0x44aa50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, edx
push edi
push 0
mov edi, ecx
movzx eax, word [esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push edi
call ebx
test eax, eax
jne 0x44aa85
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx eax, word [ebp - 4]
sub eax, 0
je 0x44aacf
sub eax, 2
jne 0x44aa7c
mov eax, dword [esi]
sub eax, 0
je 0x44aaab
sub eax, 2
je 0x44aaa4
xorps xmm0, xmm0
jmp 0x44aab4
movsd xmm0, qword [esi + 8]
jmp 0x44aab4
movd xmm0, dword [esi + 8]
cvtdq2pd xmm0, xmm0
push 0
lea eax, [ebp - 8]
movsd qword [ebp - 0x18], xmm0
push eax
push 8
lea eax, [ebp - 0x18]
push eax
push edi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
sub eax, 0
je 0x44aae6
sub eax, 2
je 0x44aadf
xor eax, eax
jmp 0x44aae9
cvttsd2si eax, qword [esi + 8]
jmp 0x44aae9
mov eax, dword [esi + 8]
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44c980
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push edi
push 0
push eax
push 2
lea eax, [ebp - 4]
mov edi, ecx
push eax
push edi
mov esi, edx
call ebx
test eax, eax
je 0x44ca1a
cmp dword [ebp - 8], 2
jb 0x44ca1a
movsx eax, word [ebp - 4]
mov dword [esi], eax
sub eax, 0
je 0x44c9ef
sub eax, 1
je 0x44ca1a
sub eax, 1
jne 0x44ca1a
push eax
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x18]
push eax
push edi
call ebx
test eax, eax
je 0x44ca1a
cmp dword [ebp - 8], 8
jb 0x44ca1a
movsd xmm0, qword [ebp - 0x18]
mov eax, 1
movsd qword [esi + 8], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call ebx
test eax, eax
je 0x44ca1a
cmp dword [ebp - 8], 4
jb 0x44ca1a
mov eax, dword [ebp - 0xc]
mov dword [esi + 8], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44f240
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push ebx
push esi
push edi
push 0
push eax
push edx
mov ebx, ecx
call dword [0x4b01f4]
mov edi, eax
cmp edi, 0xffffffff
je 0x44f2b0
mov eax, dword [ebp - 4]
test eax, eax
je 0x44f2b0
push eax
call fcn.00473f9e
mov esi, eax
add esp, 4
test esi, esi
je 0x44f2a9
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
jne 0x44f2a0
push edi
mov dword [ebx], eax
call dword [0x4b01c4]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.00473fbf
add esp, 4
push edi
call dword [0x4b01c4]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453db0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, edx
push edi
xor edi, edi
mov dword [ebp - 4], ecx
test esi, esi
je 0x453e88
mov eax, dword [ebp + 8]
nop dword [eax]
cmp ax, word [esi + 2]
jne 0x453e22
test byte [esi], 0x10
je 0x453de1
test ebx, ebx
jne 0x453de5
jmp 0x453e22
test ebx, ebx
jne 0x453e22
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test byte [esi], 8
cwde
je 0x453df9
test eax, eax
jns 0x453e1f
jmp 0x453dfd
test eax, eax
js 0x453e1f
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [esi]
cwde
test cl, 4
je 0x453e13
test eax, eax
jns 0x453e1b
jmp 0x453e17
test eax, eax
js 0x453e1b
movzx edi, word [esi + 4]
test edi, edi
jne 0x453e2c
mov eax, dword [ebp + 8]
cmp byte [esi], 0
jl 0x453e88
add esi, 8
jmp 0x453dd0
test cl, 0x40
je 0x453e5f
cmp edi, 0x7d0
jl 0x453e67
mov esi, dword [ebp - 4]
push 0
movzx eax, di
or eax, 0x10000
push eax
push 0x111
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0x7d0
jl 0x453e39
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
je 0x453e88
push 0
push edi
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x453e88
test al, 1
je 0x453e3c
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x453fe0
Capabilities:
Log keystrokes

Disassembly:
push ebx
push edi
mov ebx, ecx
mov edi, edx
xor eax, eax
mov word [ebx], ax
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x45402b
push esi
push 2
push 0x40
call fcn.00473fa9
add esp, 8
mov esi, eax
push 0x3f
push esi
push 0x65
push dword [0x4b0080]
call dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [edi - 0x60]
push ecx
push esi
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
call fcn.00473fbf
add esp, 0x10
pop esi
jmp 0x454077
lea eax, [edi - 0x70]
cmp eax, 0x17
ja 0x454048
lea eax, [edi - 0x6f]
push eax
push 0x49d728
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x454077
xor eax, eax
nop word [eax + eax]
cmp dword [eax*8 + str._bf_tg_fh_ri], edi
je 0x454061
inc eax
cmp eax, 0x14
jl 0x454050
jmp 0x454077
push 0x3f
push ebx
push dword [eax*8 + 0x49d1f4]
push dword [0x4b0080]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebx], 0
jne 0x45408f
push 2
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov word [ebx], ax
xor eax, eax
mov word [ebx + 2], ax
pop edi
pop ebx
ret
Function at 0x4540a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, ecx
push edi
push 0
push 0x78
mov edi, edx
push ebx
mov dword [ebp - 4], edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x79
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor esi, esi
movsx eax, word [edi + 0x12]
cmp esi, eax
jne 0x454118
push 2
push 0x80
call fcn.00473fa9
mov edi, eax
add esp, 8
mov eax, dword [ebp - 4]
mov ecx, edi
movsx edx, word [eax + esi*2]
call fcn.00453fe0
push edi
lea ecx, [esi + 0x6e]
push ecx
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
call fcn.00473fbf
mov edi, dword [ebp - 4]
add esp, 4
push 1
lea eax, [esi + 0x6e]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
inc esi
cmp esi, 8
jl 0x4540d2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x464540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, edx
push 0
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], eax
push ecx
cmp dword [esi + 0x2a4], 0
lea ecx, [ebp - 1]
push 1
push ecx
push eax
setne byte [ebp - 1]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46461e
cmp byte [ebp - 1], 0
push edi
je 0x464611
mov esi, dword [esi + 0x2a4]
mov edi, dword [0x4b00b4]
cmp edi, esi
je 0x4645f8
test esi, esi
jne 0x464597
xor ecx, ecx
jmp 0x46459d
mov ecx, dword [esi + 0x1d8]
cmp dword [0x4b00b8], ecx
je 0x4645c1
mov dword [0x4b00bc], 0
test ecx, ecx
je 0x4645bb
mov eax, dword [ecx + 0x7c]
mov dword [0x4b00bc], eax
mov dword [0x4b00b8], ecx
mov dword [0x4b00b4], esi
test esi, esi
je 0x4645de
mov eax, dword [esi + 0x1d0]
mov dword [0x4b0094], eax
mov eax, dword [esi + 0x1d4]
jmp 0x4645ea
mov dword [0x4b0094], 0
xor eax, eax
push eax
mov dword [0x4b008c], eax
call dword [sym.imp.MMFS2.dll_Ordinal_831]
mov esi, edi
mov ecx, dword [ebp - 8]
call fcn.0044add0
mov ecx, esi
mov edi, eax
call fcn.00402b70
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, 1
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x464630
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
mov byte [ebp - 1], 0
xor edi, edi
lea ecx, [ebp - 0x10]
push edi
push ecx
push 1
lea ecx, [ebp - 1]
mov eax, edx
push ecx
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4646b9
cmp byte [ebp - 1], 0
je 0x4646b4
push dword [ebx + 0x2ac]
mov edx, dword [ebx + 0x44]
mov ecx, ebx
push edi
call fcn.00463a00
mov ecx, dword [ebx + 0x2a4]
add esp, 8
test ecx, ecx
je 0x4646b9
call fcn.00402b70
mov ecx, dword [ebx + 0x2a4]
xor edx, edx
mov esi, eax
call fcn.00406540
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 8]
mov dword [ebp - 8], edi
call fcn.0044ca30
mov ecx, esi
mov edi, eax
call fcn.00402b70
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x465840
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4acca0]
xor eax, ebp
mov dword [ebp - 4], eax
push 6
lea eax, [ebp - 0xc]
push eax
movzx eax, word [ebp + 8]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x465888
push 0xa
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.0047e575
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004704c7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004704c7
mov esp, ebp
pop ebp
ret
Function at 0x46bfc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4af350]
push edi
test eax, eax
je 0x46c039
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x46c039
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x46c039
push esi
mov esi, dword [ebp + 0xc]
push 5
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x46c021
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46c021
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x46c021
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
pop esi
pop edi
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [edi + 0x54]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0x18
xor eax, eax
pop edi
pop ebp
ret 0x18

Function at 0x46c040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4af350]
push edi
test eax, eax
je 0x46c0b9
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x46c0b9
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x46c0b9
push esi
mov esi, dword [ebp + 0xc]
push 5
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46c0a1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46c0a1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x46c0a1
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
pop esi
pop edi
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [edi + 0x58]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0x18
xor eax, eax
pop edi
pop ebp
ret 0x18

Function at 0x46c0c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4af350]
push edi
test eax, eax
je 0x46c139
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x46c139
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x46c139
push esi
mov esi, dword [ebp + 0xc]
push 5
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x46c121
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46c121
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x46c121
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
pop esi
pop edi
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [edi + 0x4c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0x18
xor eax, eax
pop edi
pop ebp
ret 0x18
Function at 0x46c140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4af350]
push edi
test eax, eax
je 0x46c1b9
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x46c1b9
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x46c1b9
push esi
mov esi, dword [ebp + 0xc]
push 5
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46c1a1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46c1a1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x46c1a1
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
pop esi
pop edi
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [edi + 0x50]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0x18
xor eax, eax
pop edi
pop ebp
ret 0x18

Function at 0x46c440
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4af350]
push edi
test eax, eax
je 0x46c4a4
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x46c4a4
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x46c4a4
push esi
mov esi, dword [ebp + 0xc]
push 4
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x46c495
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46c495
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x46c495
push eax
call dword [sym.imp.USER32.dll_LoadMenuIndirectW]
test eax, eax
jne 0x46c49e
push dword [ebp + 0x10]
mov eax, dword [edi + 0x3c]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0xc
xor eax, eax
pop edi
pop ebp
ret 0xc

Function at 0x46c4b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4af350]
push edi
test eax, eax
je 0x46c514
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x46c514
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x46c514
push esi
mov esi, dword [ebp + 0xc]
push 4
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46c505
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46c505
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x46c505
push eax
call dword [sym.imp.USER32.dll_LoadMenuIndirectW]
test eax, eax
jne 0x46c50e
push dword [ebp + 0x10]
mov eax, dword [edi + 0x40]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0xc
xor eax, eax
pop edi
pop ebp
ret 0xc

Function at 0x4779d7
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00477872
Function at 0x401dd0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407048
call sym._EnterCriticalSection_4
mov ebx, dword [0x407040]
sub esp, 4
test ebx, ebx
je 0x401e1b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401e14
test esi, esi
je 0x401e14
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401df0
mov dword [esp], 0x407048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402000
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402050
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402128
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40208e
cmp eax, 4
jne 0x4020b0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40209e
cmp edx, 4
je 0x40209e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402000

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x100029e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 3
ja case.0x100029eb.2
jmp dword [eax*4 + 0x10002a2c]
cmp dword [ebp + 8], 0
je case.0x100029eb.2
push 0
push 0
push 0
push 0x100020d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
ret 0xc
xor eax, eax
cmp dword [ebp + 0x10], eax
setne al
pop ebp
ret 0xc