joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bb78
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004090c0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x40bc13
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x415c14]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40bc13
cmp eax, 1
je 0x40bc34
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x40bc13
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40bbe0
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40bc0f
xor eax, eax
inc eax
jmp 0x40bc53
cmp edi, eax
jae 0x40bc17
xor eax, eax
jmp 0x40bc53
cmp eax, esi
jae 0x40bc1e
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov eax, dword [0x415c14]
jmp 0x40bc37
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c0b1
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x415c54], esi
push edi
jne 0x40c0d1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x415c50], esi
mov byte [0x415c4c], al
jne 0x40c137
mov ecx, dword [0x417168]
test ecx, ecx
je 0x40c118
mov eax, dword [0x417164]
sub eax, 4
cmp eax, ecx
jmp 0x40c111
mov eax, dword [eax]
test eax, eax
je 0x40c103
call eax
mov eax, dword [0x417164]
sub eax, 4
cmp eax, dword [0x417168]
mov dword [0x417164], eax
jae 0x40c0fb
mov eax, 0x415030
mov esi, 0x415038
cmp eax, esi
mov edi, eax
jae 0x40c137
mov eax, dword [edi]
test eax, eax
je 0x40c130
call eax
add edi, 4
cmp edi, esi
jb 0x40c128
mov eax, 0x41503c
mov esi, 0x415044
cmp eax, esi
mov edi, eax
jae 0x40c156
mov eax, dword [edi]
test eax, eax
je 0x40c14f
call eax
add edi, 4
cmp edi, esi
jb 0x40c147
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40c170
push dword [ebp + 8]
mov dword [0x415c54], 1
call fcn.0040c017
pop ebp
ret
Function at 0x40cc8e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x415138]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4152d0]
je 0x40ccc3
inc eax
cmp eax, 0x13
jb 0x40ccb4
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4152d0]
jne 0x40cde9
mov eax, dword [0x415b70]
cmp eax, 1
je 0x40cdc1
cmp eax, edx
jne 0x40ccf3
cmp dword [0x415188], 1
je 0x40cdc1
cmp ecx, 0xfc
je 0x40cde9
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x40cd29
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040ba80
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00408070
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40cd5d
mov eax, edi
push eax
call fcn.00408070
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x411dcc
push edi
call fcn.0040d730
add esp, 0x10
push edi
call fcn.00408070
push dword [esi + 0x4152d4]
mov ebx, eax
call fcn.00408070
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004090c0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040ba80
push edi
push ebx
call fcn.0040ba90
push 0x411dc8
push ebx
call fcn.0040ba90
push dword [esi + 0x4152d4]
push ebx
call fcn.0040ba90
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040d636
add esp, 0x2c
jmp 0x40cde9
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4152d4]
push dword [esi]
call fcn.00408070
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00407ea0
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40d636
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x415d88], ebx
push esi
push edi
jne 0x40d6b6
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40d6f1
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x415d88], eax
je 0x40d6f1
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x415d8c], eax
call esi
cmp dword [0x415c14], 2
mov dword [0x415d90], eax
jne 0x40d6b6
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x415d98], eax
je 0x40d6b6
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x415d94], eax
mov eax, dword [0x415d94]
test eax, eax
je 0x40d6fb
call eax
test eax, eax
je 0x40d6e2
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x415d98]
test eax, eax
je 0x40d6e2
test byte [ebp - 8], 1
jne 0x40d6fb
cmp dword [0x415c20], 4
jb 0x40d6f5
or byte [ebp + 0x12], 0x20
jmp 0x40d71a
xor eax, eax
jmp 0x40d72a
or byte [ebp + 0x12], 4
jmp 0x40d71a
mov eax, dword [0x415d8c]
test eax, eax
je 0x40d71a
call eax
mov ebx, eax
test ebx, ebx
je 0x40d71a
mov eax, dword [0x415d90]
test eax, eax
je 0x40d71a
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x415d88]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d948
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x416e04]
mov eax, dword [0x415138]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x40db0e
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x416e20]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x40db0e
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x40d9b2
xor eax, eax
jmp 0x40db22
test al, 0x20
je 0x40d9c3
push 2
push edi
push edi
push ecx
call fcn.0040ed85
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40da98
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x40dadf
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x40da25
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40da16
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x40d9f8
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40da65
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x40da71
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x40d9ec
jmp 0x40da73
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x40db09
cmp dword [ebp + 0x3a4], edi
je 0x40dadf
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x40dad1
mov dword [0x415c0c], eax
jmp 0x40db15
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40dac3
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x40da73
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x40da73
push dword [ebp + 0x3a4]
call fcn.0040ec70
pop ecx
jmp 0x40db1f
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40daf7
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x40d9ab
mov dword [0x415c08], 0x1c
mov dword [0x415c0c], edi
jmp 0x40db1f
sub eax, dword [ebp - 0x7c]
jmp 0x40db22
and dword [0x415c0c], 0
mov dword [0x415c08], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00407ea0
add ebp, 0x39c
leave
ret
Function at 0x10001800
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x18
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test byte [0x10005068], 8
jne 0x10001860
test esi, esi
jne 0x10001890
mov eax, dword [ebp + 0x1c]
add ebx, 0xc
mov dword [esp + 0x14], 5
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], str.open
mov dword [esp], eax
call dword [sym.imp.shell32.dll_ShellExecuteW]
xor eax, eax
sub esp, 0x18
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x1c
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p_____ld__n
mov dword [esp + 8], str.OleObject_DoVerb
mov dword [esp + 4], 0x10005068
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10001817
mov eax, 0x80070057
jmp 0x10001853

Function at 0x100020c0
Capabilities:
Delete file
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 8], 4
pop ebp
jmp sym._OleObject_Release_4

Function at 0x10002430
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
test byte [0x10005068], 8
jne 0x100024a0
mov dword [esp + 8], 0x218
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x1000256f
mov dword [eax], sym._OleObject_QueryInterface_12
mov dword [eax + 4], 0x10005040
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._OleObject_QueryInterface_12
sub esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x10
test ebx, ebx
je 0x10002568
mov eax, ebx
shr eax, 0x10
je 0x10002550
movzx eax, byte [ebx + 0xf]
mov dword [esp + 0x2c], eax
movzx eax, byte [ebx + 0xe]
mov dword [esp + 0x28], eax
movzx eax, byte [ebx + 0xd]
mov dword [esp + 0x24], eax
movzx eax, byte [ebx + 0xc]
mov dword [esp + 0x20], eax
movzx eax, byte [ebx + 0xb]
mov dword [esp + 0x1c], eax
movzx eax, byte [ebx + 0xa]
mov dword [esp + 0x18], eax
movzx eax, byte [ebx + 9]
mov dword [esp + 0x14], eax
movzx eax, byte [ebx + 8]
mov dword [esp + 0x10], eax
movzx eax, word [ebx + 6]
mov dword [esp + 0xc], eax
movzx eax, word [ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp], str._08x__04x__04x__02x_02x__02x_02x_02x_02x_02x_02x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._static_____p___s___p__n
mov dword [esp + 8], str.PackageCF_CreateInstance
mov dword [esp + 4], 0x10005068
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10002447
movzx eax, bx
mov dword [esp], str._guid_0x_04hx_
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf
jmp 0x10002515
mov eax, str._null_
jmp 0x10002515
mov eax, 0x8007000e
jmp 0x10002497
Function at 0x10003520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10003578
cmp byte [esi + ebx - 1], 0xa
je 0x1000354c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x1000a084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10003ba0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10003d78
mov edi, dword [0x1000a084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10003c87
test byte [0x10005088], 8
jne 0x10003d20
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10005098], 8
jne 0x10003ce0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10003c29
cmp esi, 3
jbe 0x10003c98
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x10003c3a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x10007fa8]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10003c29
mov dword [esp], 0x10005098
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10003c00
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10003c00
mov dword [esp], 0x10005088
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10003beb
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10003bf3
mov eax, 0xffffffff
jmp 0x10003c87
Function at 0x10003e40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x214
mov eax, dword [0x1000a0a0]
test eax, eax
je 0x10003ef8
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x10003e80
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x214]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x10003e6c
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x10003f2d
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x1000a0a0], eax
sub esp, 8
test eax, eax
jne 0x10003e5d
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x10003e6e
Function at 0x10003f40
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edx, dword [ebp - 0x10]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
sub esp, 8
test ebx, ebx
je 0x100040d0
mov eax, dword [esi]
test eax, eax
je 0x100040b8
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0x14], 0
mov dword [ebp - 0x1c], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
lea ecx, [eax + 1]
sub esp, 0x18
lea eax, [ecx + ecx]
mov dword [ebp - 0x18], ecx
mov ecx, eax
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov dword [ebp - 0x14], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x100040dc
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
xor edx, edx
sub esp, 0x18
mov word [edi + eax - 2], dx
mov eax, dword [esi]
test ecx, ecx
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
jne 0x100040a8
call dword [edx + 0x28]
mov dword [esi + 8], eax
sub esp, 8
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 8]
sub esp, 0xc
lea esp, [ebp - 0xc]
not eax
pop ebx
pop esi
shr eax, 0x1f
pop edi
pop ebp
ret 0x10
call dword [edx + 0x24]
mov dword [esi + 8], eax
sub esp, 8
jmp 0x1000406c
mov edx, esi
mov eax, edi
call sym._create_registrar
test eax, eax
jne 0x10003fa6
lea esi, [esi]
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esi + 8], 0x8007000e
xor eax, eax
jmp 0x100040d2
Function at 0x4026f3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402732
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402732
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402732
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402732
cmp dword [ecx + 0x74], 0xe
jbe 0x402732
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x406e52
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x406e61
pop dword [ebp - 0x14]
mov eax, 0x406e61
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x36fb5
push 0
mov eax, 0x5cdcc687
add eax, 0xa3641a51
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0xf4410bd3
add ecx, 0xbbf32e7
mov edi, eax
mov edx, 0x413bc4
add edx, dword [ebp - 0x14]
mov esi, 0x11f55f3c
sub esi, 0xb7562f9f
add dword [ebp - 8], 0xfdf64e3d
mov ebx, dword [edx]
xor dword [ebp - 0x10], edi
add ebx, esi
mov dword [ebp - 0x10], 0xfda896a3
mov dword [edi], ebx
sub dword [ebp - 4], 0x7a3dfee8
add edi, 0x70498ac3
add edi, 0x8fb67541
add edx, 0xffddfb51
add edx, 0x2204b3
loop 0x406eb5
add eax, 0x60bbec4c
add eax, 0x9f45016f
xor ebx, ebx
add ebx, eax
add eax, 0x5a53865d
add eax, 0xa5ac79a8
mov ecx, 0x9e1f987b
add ecx, 0x62206785
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, dword [sym.imp.USER32.dll_LoadImageA]
push edi
mov edi, dword [ebp + 8]
push 0x8040
push 0
push 0
push 1
push 0x4031f0
push edi
mov dword [0x405428], edi
mov dword [ebp - 0x4c], 0x30
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0x401180
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], edi
call esi
push 0x8040
push 0
push 0
push 2
push 0x7f00
push 0
mov dword [ebp - 0x34], eax
call esi
push 0
mov dword [ebp - 0x30], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push 0x8040
push 0
push 0
push 1
push 0x4031f0
push edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], str.MYMENU
mov dword [ebp - 0x24], str.memo02
call esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x401175
push 0
push edi
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x405020
push str.memo02
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
je 0x401175
push ebx
push dword [ebp + 0x14]
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push str.MYACCEL
push edi
mov dword [0x40542c], esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
mov dword [ebp + 8], eax
lea eax, [ebp - 0x1c]
push 0
push eax
call ebx
test eax, eax
je 0x401169
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
cmp eax, 0xffffffff
je 0x401169
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
push dword [0x40542c]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x401159
lea eax, [ebp - 0x1c]
push eax
call esi
lea eax, [ebp - 0x1c]
push eax
call edi
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call ebx
test eax, eax
jne 0x401131
mov eax, dword [ebp - 0x14]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10