joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402620
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x2c
mov dword [ebp - 0x1c], edx
mov esi, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x18f
mov eax, dword [eax]
mov dword [esp], eax
call esi
mov ebx, eax
mov eax, dword [edi]
sub esp, 0x10
mov dword [esp + 4], 0
add ebx, 1
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_ShowWindow]
mov dword [ebp - 0x20], eax
call eax
sub esp, 8
jmp 0x4026a1
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx + 0x14]
cmp dword [eax + 0x14], ecx
jle 0x4026c7
mov eax, dword [edi]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x182
mov dword [esp], eax
call esi
sub esp, 0x10
mov eax, dword [edi]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x199
mov dword [esp], eax
call esi
lea ecx, [eax + 1]
sub esp, 0x10
cmp ecx, 1
ja 0x402678
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0xc], 0
mov eax, dword [edi]
mov dword [esp + 4], 5
mov dword [esp], eax
mov eax, dword [ebp - 0x20]
call eax
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4026f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x2c
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_ShowWindow]
mov dword [ebp - 0x20], eax
call eax
sub esp, 8
test ebx, ebx
je 0x402802
mov eax, dword [ebp + 8]
and eax, 1
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
and eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x18]
mov edx, dword [esi + 0x84]
and eax, 0x10
test edx, edx
je 0x402828
test eax, eax
je 0x4027f8
cmp word [ebx + 0x44], 0x2e
je 0x4028a0
test edi, edi
je 0x402770
lea eax, [ebx + 0x44]
mov edx, edi
call dbg.pattern_imatch
test eax, eax
je 0x4027f8
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jne 0x40277d
test byte [ebx + 0x18], 6
jne 0x4027f8
mov eax, dword [ebp + 8]
and eax, 0xe
cmp eax, 0xe
je 0x4027b0
lea eax, [ebx + 0x44]
call dbg.get_file_type
cmp eax, 1
je 0x402890
cmp eax, 2
je 0x402850
test byte [ebp + 8], 8
je 0x4027f8
lea esi, [esi]
nop
cmp dword [ebp + 0xc], 0xffffffff
mov eax, 0xffffffff
je 0x4027c2
add dword [ebp + 0xc], 1
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [esi]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0x181
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
mov edx, dword [esi + 0x84]
sub esp, 0x10
test edx, edx
je 0x4027f8
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x402860
lea esi, [esi]
mov ebx, dword [ebx]
test ebx, ebx
jne 0x402733
mov eax, dword [esi]
mov dword [esp + 4], 5
mov dword [esp], eax
mov eax, dword [ebp - 0x20]
call eax
mov eax, dword [ebp + 0xc]
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
je 0x40275a
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40275a
mov ebx, dword [ebx]
test ebx, ebx
jne 0x402733
jmp 0x402802
test byte [ebp + 8], 4
jne 0x4027b0
jmp 0x4027f8
mov edx, dword [ebx + 4]
test edx, edx
je 0x4027f8
mov eax, dword [ebp + 0xc]
mov ecx, edi
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, esi
call sym._insert_entries.part.0
mov ebx, dword [ebx]
mov dword [ebp + 0xc], eax
test ebx, ebx
jne 0x402733
jmp 0x402802
test byte [ebp + 8], 2
jne 0x4027b0
jmp 0x4027f8
movzx eax, word [ebx + 0x46]
test ax, ax
je 0x4027f8
cmp ax, 0x2e
jne 0x40275a
cmp word [ebx + 0x48], 0
jne 0x40275a
jmp 0x4027f8
Function at 0x4028d0
Capabilities:
Get graphical window text

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
mov eax, 0x1028
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
call fcn.0040b8e8
sub esp, eax
mov eax, dword [ecx + 8]
mov ebx, dword [ecx]
cmp eax, 2
je 0x402920
cmp eax, 0xfe
je 0x4029a0
cmp eax, 1
je 0x402940
lea esp, [ebp - 0x10]
mov eax, 1
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 4], 2
mov dword [esp], ebx
call dword [sym.imp.user32.dll_EndDialog]
sub esp, 8
jmp 0x402907
mov dword [esp + 4], 0xffffffeb
mov dword [esp], ebx
call dword [sym.imp.user32.dll_GetWindowLongW]
sub esp, 8
mov esi, eax
mov dword [esp + 4], 0xc9
mov dword [esp], ebx
call dword [sym.imp.user32.dll_GetDlgItem]
sub esp, 8
mov dword [esp + 8], 0x104
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowTextW]
sub esp, 0xc
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.user32.dll_EndDialog]
sub esp, 8
jmp 0x402907
mov edx, dword [sym.imp.user32.dll_LoadStringW]
mov eax, dword [0x417020]
lea edi, [ebp - 0x818]
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], edi
lea esi, [ebp - 0x1018]
mov dword [ebp - 0x101c], edx
mov dword [esp + 4], 0x4b0
mov dword [esp], eax
call edx
mov eax, dword [0x417020]
mov edx, dword [ebp - 0x101c]
sub esp, 0x10
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], esi
mov dword [esp + 4], 0x4b7
mov dword [esp], eax
call edx
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.user32.dll_MessageBoxW]
sub esp, 0x10
jmp 0x402907
Function at 0x403210
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
mov esi, eax
push ebx
mov ebx, ecx
sub esp, 0x64c
mov eax, dword [eax + 0x90]
mov dword [ebp - 0x62c], edx
lea edx, [ebp - 0x220]
call dbg.get_path
lea eax, [ebp - 0x220]
mov dword [esp + 0xc], sym._DestinationDlgProc_16
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov dword [esp + 4], 0x68
mov dword [esp + 8], eax
mov eax, dword [0x417020]
mov dword [esp], eax
call dword [sym.imp.user32.dll_DialogBoxParamW]
sub esp, 0x14
cmp eax, 1
je 0x403280
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp - 0x62c]
mov edi, eax
mov eax, dword [esi + 0x90]
call dbg.get_path
movzx edx, word [ebp - 0x220]
cmp dx, 0x2f
je 0x4032ae
cmp word [ebp - 0x21e], 0x3a
jne 0x403350
xor eax, eax
jmp 0x4032c0
movzx edx, word [ebp + eax - 0x220]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x4032b8
lea eax, [ebp - 0x220]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x40326f
test al, 0x10
je 0x40326f
lea eax, [ebp - 0x420]
lea esi, [ebp - 0x620]
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x62c]
mov dword [esp + 0xc], esi
mov dword [esp], eax
mov dword [esp + 4], 0
call dword [sym.imp.ucrtbase.dll__wsplitpath]
lea eax, [ebp - 0x420]
mov dword [esp], ebx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x220]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], global_sAppend
call dword [sym.imp.user32.dll_wsprintfW]
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0x90]
mov edx, ebx
mov eax, dword [eax + 8]
call dbg.get_path
cmp word [ebx], 0
mov eax, ebx
je 0x4033c1
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x403370
mov edx, eax
sub edx, ebx
lea esi, [edx - 2]
sar edx, 1
movzx esi, word [ebx + esi]
cmp si, 0x5c
je 0x40339d
cmp si, 0x2f
je 0x40339d
mov ecx, 0x2f
add edx, 1
mov word [eax], cx
lea esi, [ebx + edx*2]
xor eax, eax
lea esi, [esi]
movzx edx, word [ebp + eax - 0x220]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x4033a8
jmp 0x4032cc
xor edx, edx
mov esi, 0xfffffffe
jmp 0x403382
Function at 0x407330
Capabilities:
Set current directory

Disassembly:
test edx, edx
je 0x407410
push ebp
mov ebp, esp
push esi
mov esi, edx
push ebx
mov ebx, eax
xor eax, eax
sub esp, 0x220
mov dword [ebx + 0x94], edx
mov word [ebp - 0x210], ax
mov eax, dword [edx + 4]
mov dword [ebx + 0x128], edx
test eax, eax
cmove eax, edx
mov dword [ebx + 0x124], eax
mov edx, dword [edx + 0x10]
test edx, edx
je 0x4073d8
mov eax, ebx
call dbg.refresh_right_pane
mov eax, esi
lea edx, [ebp - 0x210]
call dbg.get_path
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [ebp + eax - 0x210]
mov word [ebx + eax + 0x164], dx
add eax, 2
test dx, dx
jne 0x407390
mov eax, dword [ebx]
test eax, eax
je 0x4073c4
lea ecx, [ebp - 0x210]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [sym.imp.user32.dll_SetWindowTextW]
sub esp, 8
cmp word [ebp - 0x210], 0
jne 0x4073f0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
mov edx, esi
mov dword [esp], eax
mov eax, ebx
call dbg.scan_entry
jmp 0x407378
lea eax, [ebp - 0x210]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
sub esp, 4
test eax, eax
je 0x4073ce
call dbg.set_space_status
jmp 0x4073ce
ret
Function at 0x40b710
Capabilities:
Accept command line arguments
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit

Function at 0x40b780
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40b81b
cmp ax, 9
je 0x40b808
cmp ax, 0x20
je 0x40b808
mov dword [ebp - 0x6c], 0
xor esi, esi
lea esi, [esi]
cmp ax, 0x5c
je 0x40b870
cmp ax, 0x22
je 0x40b880
mov dword [ebp - 0x6c], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40b81b
cmp ax, 9
sete dl
cmp ax, 0x20
sete cl
or dl, cl
je 0x40b7c0
test esi, 1
jne 0x40b7c0
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x40b808
cmp ax, 0x20
je 0x40b808
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x40b898
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.wWinMain@16
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
add dword [ebp - 0x6c], 1
jmp 0x40b7db
and dword [ebp - 0x6c], 1
jne 0x40b7d4
xor esi, 1
jmp 0x40b7db
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x40b834
Function at 0x40db80
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4143d8], 0
jne 0x40dc01
cmp dword [0x4143f8], 0
jne 0x40dbb0
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4143f8], eax
test eax, eax
jne 0x40dbb0
push str.GetEnvironmentStrings_failed
call fcn.0040cbf0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4143f8]
jmp 0x40dbc4
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00406b08
pop ecx
mov edi, eax
test eax, eax
jne 0x40dbbc
lea edi, [ebp + 1]
push edi
call fcn.00405c3c
pop ecx
mov ebx, eax
mov dword [0x4143dc], ebx
test ebx, ebx
jne 0x40dbee
xor eax, eax
jmp 0x40dcc4
push edi
mov edx, dword [0x4143f8]
push edx
push ebx
call fcn.004069b8
add esp, 0xc
jmp 0x40dc21
xor esi, esi
mov ebx, dword [0x4143d8]
jmp 0x40dc1b
push eax
call fcn.00406b08
pop ecx
test eax, eax
jne 0x40dc17
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40dc0b
lea ebx, [esi + 4]
push 4
mov dword [0x4143e0], ebx
inc ebx
push ebx
call fcn.00405a3c
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x40dc44
xor eax, eax
jmp 0x40dcc4
cmp dword [0x4143d8], 0
jne 0x40dc75
xor esi, esi
mov ebx, dword [0x4143dc]
mov eax, dword [esp]
mov ebp, eax
jmp 0x40dc66
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00406b08
pop ecx
mov edi, eax
test eax, eax
jne 0x40dc5c
jmp 0x40dca6
xor esi, esi
mov ebx, dword [0x4143d8]
mov eax, dword [esp]
mov edi, eax
jmp 0x40dca0
push eax
call fcn.00406b08
pop ecx
test eax, eax
je 0x40dc95
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40dc99
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40dc84
mov eax, dword [0x4143d8]
test eax, eax
je 0x40dcb6
push eax
call fcn.00405c4c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4143d8], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x79e25482
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x4310d2
nop
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x64497fb7
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408953
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop edx
call fcn.00408978
inc ecx
mov ecx, eax
xor dword [ebx], edx
add eax, 0x2e8c77a2
add ebx, 1
sub ecx, ecx
sub eax, eax
cmp ebx, esi
jne fcn.00408953
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x5a7534da
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x13ab5b42
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401d98
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.00401e00
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
mov eax, dword [ebp - 8]
leave
ret 4
Function at 0x405350
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x41f16b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x404234
call fcn.00405b81
push 4
mov dword [esp + 0x18], 0
call fcn.00406b00
mov edi, eax
add esp, 4
test edi, edi
je 0x4053c4
push ebx
call fcn.00405fbd
mov dword [edi], eax
call fcn.00405d3d
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00405ac2
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4053b8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00405aea
pop ebx
jmp 0x4053c6
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4071a4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4225a8]
jne 0x4071ae
repz ret
jmp fcn.0040dc9c
Function at 0x41aafa
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4225a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040c3bc
and dword [ebp - 0x14], 0
cmp dword [0x439b98], 0
mov dword [ebp - 0x18], eax
jne 0x41abad
push 0x403df0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41ac55
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403de4
push ebx
call edi
test eax, eax
je 0x41ac55
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403dd4
push ebx
mov dword [0x439b98], eax
call edi
push eax
call esi
push 0x403dc0
push ebx
mov dword [0x439b9c], eax
call edi
push eax
call esi
push 0x403da4
push ebx
mov dword [0x439ba0], eax
call edi
push eax
call esi
mov dword [0x439ba8], eax
test eax, eax
je 0x41abad
push 0x403d8c
push ebx
call edi
push eax
call esi
mov dword [0x439ba4], eax
mov eax, dword [0x439ba4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41ac06
cmp dword [0x439ba8], ecx
je 0x41ac06
push eax
call esi
push dword [0x439ba8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41ac06
test ebx, ebx
je 0x41ac06
call edi
test eax, eax
je 0x41abfd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41abfd
test byte [ebp - 8], 1
jne 0x41ac06
or dword [ebp + 0x10], 0x200000
jmp 0x41ac39
mov eax, dword [0x439b9c]
cmp eax, dword [ebp - 0x18]
je 0x41ac39
push eax
call esi
test eax, eax
je 0x41ac39
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41ac39
mov eax, dword [0x439ba0]
cmp eax, dword [ebp - 0x18]
je 0x41ac39
push eax
call esi
test eax, eax
je 0x41ac39
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x439b98]
call esi
test eax, eax
je 0x41ac55
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41ac57
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004071a4
leave
ret

Function at 0x41e4f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, 0x6b
mov edx, 0x72
mov word [0x8e4008], ax
mov word [0x8e400c], dx
mov ecx, 0x6e
mov edx, 0x65
xor eax, eax
push 0x8e4008
mov dword [0x8e4014], 0x320033
mov dword [0x8e401c], 0x6c006c
mov word [0x8e400e], cx
mov dword [0x8e4010], 0x6c0065
mov dword [0x8e4018], 0x64002e
mov word [0x8e400a], dx
mov word [0x8e4020], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [0x8e4004]
lea ecx, [esp]
push ecx
push 0x40
mov dword [0x8e4000], eax
mov eax, dword [0x8e27f0]
push edx
push eax
mov byte [0x439bc3], 0x65
mov dword [0x439bb9], 0x75747269
mov word [0x439bbd], 0x6c61
mov byte [0x439bb8], 0x56
mov word [0x439bc4], 0x7463
mov byte [0x439bc6], 0
mov dword [0x439bbf], 0x746f7250
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret