joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413797
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xf4
mov eax, 0x43796d
call fcn.00433ea9
mov ebx, ecx
cmp dword [ebx], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x44], eax
jne 0x4137bd
xor al, al
jmp 0x4138a7
and dword [ebp - 0x48], 0
push 0x802
mov dword [ebp - 0x4c], 0x400
call fcn.00424cd0
mov dword [esp], 0x802
mov edi, eax
push 0
push edi
call dword [sym.imp.MSVCR110.dll_memset]
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4137f1
mov eax, dword [esi]
jmp 0x4137f3
mov eax, esi
lea ecx, [ebp - 0x4c]
push ecx
push edi
lea ecx, [ebp - 0x48]
push ecx
push 0
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cdq
test eax, eax
jne 0x413880
test edx, edx
jne 0x413880
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x48], 4
jne 0x413875
mov esi, dword [edi]
push ecx
push ecx
lea ecx, [ebp - 0x100]
call fcn.00413998
and dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0xf0]
call dword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int_]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x100]
call fcn.00424cd0
mov ecx, dword [ebp - 0x44]
push eax
call fcn.00424cd0
push 0
push ebx
lea ecx, [ebp - 0x28]
call fcn.00424cd0
lea ecx, [ebp - 0x98]
call fcn.00413a16
lea ecx, [ebp - 0x98]
call dword [sym.imp.MSVCP110.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
jmp 0x41389d
mov ecx, dword [ebp - 0x44]
push edi
call fcn.00424cd0
jmp 0x41389d
push esi
mov edx, str.Query_registry_value_with_key:
lea ecx, [ebp - 0x40]
call fcn.00410b18
pop ecx
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00424cd0
xor bl, bl
push edi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
pop ecx
mov al, bl
call fcn.00433e58
ret 8
Function at 0x4184e9
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x438689
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x44c054]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x44c054]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x25], 0
mov esi, dword [ebp + 8]
je 0x418530
mov eax, dword [edi]
call dword [eax + 0x14]
mov edx, esi
lea ecx, [esp + 0x28]
mov byte [edi + 0x25], 1
call fcn.004069bf
and dword [esp + 0x50], 0
mov esi, dword [sym.imp.MSVCR110.dll_wcslen]
and dword [esp + 0x20], 0
xor eax, eax
mov ebx, str.User_Agent:_Adobe_Log_Transport_r_n
push ebx
mov dword [esp + 0x28], 7
mov word [esp + 0x14], ax
call esi
pop ecx
push eax
push ebx
lea ecx, [esp + 0x18]
call fcn.00424cd0
mov ebx, str.Content_Type:_multipart_form_data__boundaryxxxxx_r_n
push ebx
mov byte [esp + 0x54], 1
call esi
pop ecx
push eax
push ebx
lea ecx, [esp + 0x18]
call fcn.00424cd0
mov ebx, str.Content_Length:_0
push ebx
call esi
pop ecx
push eax
push ebx
lea ecx, [esp + 0x18]
call fcn.00424cd0
lea eax, [edi + 0xc]
push eax
lea eax, [edi + 4]
push eax
push 0
push 0
push edi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x40]
push eax
mov ecx, edi
call fcn.00418158
push 0
push 1
lea ecx, [esp + 0x18]
mov bl, al
mov word [edi + 0x24], 1
call fcn.00424cd0
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.00424cd0
mov al, bl
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0041d508
mov esp, ebp
pop ebp
ret 4

Function at 0x418601
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4386c1
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x44c054]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x44c054]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x25], 0
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
je 0x418656
mov eax, dword [esi]
call dword [eax + 0x14]
mov eax, dword [esp + 0x14]
mov edx, eax
lea ecx, [esp + 0x30]
mov byte [esi + 0x25], 1
call fcn.004069bf
and dword [esp + 0x58], 0
and dword [esp + 0x28], 0
xor eax, eax
mov dword [esp + 0x2c], 7
mov word [esp + 0x18], ax
lea eax, [esp + 0x18]
push eax
push ebx
push edi
mov byte [esp + 0x64], 1
call fcn.00418019
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 4]
push eax
push 0
push 0
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x48]
push eax
mov ecx, esi
call fcn.00418158
push 0
push 1
lea ecx, [esp + 0x20]
mov bl, al
mov word [esi + 0x24], 1
call fcn.00424cd0
push 0
push 1
lea ecx, [esp + 0x38]
call fcn.00424cd0
mov al, bl
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0041d508
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41da2d
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x443180
call fcn.0041da80
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov edx, dword [eax + 4]
mov edi, ebx
mov esi, 0x44df58
mov ecx, edx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x41d900
cmp eax, edx
jne 0x41d8e9
xor esi, esi
inc esi
mov edi, esi
jmp 0x41d903
xor esi, esi
inc esi
cmp dword [0x44df5c], esi
jne 0x41d915
push 0x1f
call sub.MSVCR110.dll__amsg_exit
pop ecx
jmp 0x41d94f
cmp dword [0x44df5c], ebx
jne 0x41d949
mov dword [0x44df5c], esi
push 0x43a57c
push 0x43a568
call sub.MSVCR110.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x41d94f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x41da27
mov dword [0x44dd34], esi
cmp dword [0x44df5c], esi
jne 0x41d972
push 0x43a564
push 0x43a4fc
call sub.MSVCR110.dll__initterm
pop ecx
pop ecx
mov dword [0x44df5c], 2
test edi, edi
jne 0x41d97f
xor eax, eax
mov ecx, 0x44df58
xchg dword [ecx], eax
cmp dword [0x44df60], 0
je 0x41d9a1
push 0x44df60
call fcn.00424cd0
pop ecx
test eax, eax
je 0x41d9a1
push ebx
push 2
push ebx
call dword [0x44df60]
mov ecx, dword [0x44dd40]
mov eax, dword [sym.imp.MSVCR110.dll___initenv]
mov dword [eax], ecx
push dword [0x44dd40]
push dword [0x44dd3c]
push dword [0x44dd38]
call fcn.0040f60f
add esp, 0xc
mov dword [0x44dd30], eax
cmp dword [0x44dd48], 0
jne 0x41da0c
push eax
call dword [sym.imp.MSVCR110.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.MSVCR110.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x44dd34], 0
jne 0x41da20
call dword [sym.imp.MSVCR110.dll__cexit]
mov eax, dword [0x44dd30]
mov dword [ebp - 4], 0xfffffffe
call fcn.0041dac5
ret
call fcn.00424cd0
jmp 0x41d8c8
Function at 0x431fe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x435528
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x44c054]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov eax, dword [0x44c054]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi]
mov ebx, dword [esp + 0x3c]
mov eax, dword [ecx + 0x13c]
sub eax, dword [ecx + 0x138]
cmp dword [esi + 0x70], eax
jne 0x43208f
mov eax, dword [esi + 0x7c]
sub eax, dword [esi + 0x78]
test eax, 0xfffffffc
je 0x43208f
mov eax, dword [esi + 0x7c]
cmp dword [eax - 4], ebx
jle 0x43208f
mov eax, dword [ecx + 0x14]
test al, 3
jne 0x43204d
test eax, 0x1000000
je 0x43208f
push str.Cant_terminate_a_sub_expression_with_an_alternation_operator_.
lea ecx, [esp + 0x14]
call fcn.00424cd0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 0x5c]
sub eax, dword [esi + 0x54]
mov ecx, esi
push eax
push 0x11
mov dword [esp + 0x40], 0
call fcn.00429a30
cmp dword [esp + 0x24], 0x10
jb 0x43208b
push dword [esp + 0x10]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
jmp 0x4320fe
mov eax, dword [esi + 0x7c]
sub eax, dword [esi + 0x78]
test eax, 0xfffffffc
je 0x4320fc
lea esp, [esp]
mov eax, dword [esi + 0x7c]
mov edi, dword [eax - 4]
cmp edi, ebx
jle 0x4320fc
cmp dword [esi + 0x78], eax
je 0x4320b5
add eax, 0xfffffffc
mov dword [esi + 0x7c], eax
mov edx, dword [esi]
mov ecx, dword [edx + 0x13c]
sub ecx, dword [edx + 0x138]
add ecx, 3
and ecx, 0xfffffffc
add ecx, dword [edx + 0x138]
mov dword [edx + 0x13c], ecx
mov eax, dword [esi]
mov ecx, dword [eax + 0x13c]
sub ecx, dword [eax + 0x138]
mov eax, dword [eax + 0x138]
sub ecx, edi
mov dword [eax + edi + 8], ecx
mov eax, dword [esi + 0x7c]
sub eax, dword [esi + 0x78]
test eax, 0xfffffffc
jne 0x4320a0
mov al, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0041d508
add esp, 0x28
ret 4
Function at 0x40f3f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
mov eax, 0x1014
call fcn.00413720
mov eax, dword [0x445654]
xor eax, esp
mov dword [esp + 0x1010], eax
push ebx
mov ebx, dword [esp + 0x1024]
push esi
mov esi, dword [esp + 0x1020]
push edi
mov edi, dword [esp + 0x1028]
push esi
push 0x43ef28
call fcn.00414192
add esp, 8
push esi
call sub.WS2_32.dll_gethostbyname
mov esi, eax
test esi, esi
jne 0x40f457
call sub.WS2_32.dll_WSAGetLastError
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1010]
xor ecx, esp
call fcn.00411a73
add esp, 0x1014
ret
push ebp
mov eax, 2
push 0x2b
mov word [esp + 0x14], ax
call sub.WS2_32.dll_htons
mov word [esp + 0x12], ax
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push 0
push 1
push 2
mov dword [esp + 0x20], eax
call sub.WS2_32.dll_socket
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40f4d1
push 0x10
lea ecx, [esp + 0x14]
push ecx
push ebp
call sub.WS2_32.dll_connect
test eax, eax
jne 0x40f4d1
push edi
lea edx, [esp + 0x24]
push 0x43ec2c
push edx
call fcn.00412953
lea eax, [esp + 0x2c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f4b6
push 0
sub eax, edx
push eax
lea eax, [esp + 0x28]
push eax
push ebp
call sub.WS2_32.dll_send
test eax, eax
jne 0x40f4db
call sub.WS2_32.dll_WSAGetLastError
jmp 0x40f562
xor edi, edi
push edi
push 0x1000
lea ecx, [esp + 0x28]
push ecx
push ebp
mov dword [ebx], 0
call sub.WS2_32.dll_recv
mov esi, eax
cmp esi, 0xffffffff
je 0x40f55a
jmp 0x40f500
test esi, esi
je 0x40f55a
mov eax, dword [ebx]
test eax, eax
jne 0x40f518
lea edx, [esi + 1]
push edx
call fcn.00412493
add esp, 4
jmp 0x40f526
lea ecx, [esi + edi + 1]
push ecx
push eax
call fcn.00414386
add esp, 8
push esi
lea edx, [esp + 0x24]
mov dword [ebx], eax
push edx
add eax, edi
push eax
call fcn.00412560
mov ecx, dword [ebx]
add esp, 0xc
push 0
push 0x1000
lea edx, [esp + 0x28]
push edx
add edi, esi
push ebp
mov byte [edi + ecx], 0
call sub.WS2_32.dll_recv
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f500
push ebp
call sub.WS2_32.dll_closesocket
xor eax, eax
mov ecx, dword [esp + 0x1020]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00411a73
add esp, 0x1014
ret
Function at 0x40fb2e
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x445654]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40fc03
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40fbf2
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x40fbdc
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x40fbf2
push eax
push edi
push dword [ebp - 0x110]
call fcn.0040facb
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x40fc05
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00411a73
leave
ret 4

Function at 0x411a73
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x445654]
jne 0x411a7d
repz ret
jmp fcn.004188fc

Function at 0x414aae
Capabilities:
Encode data using xor

Disassembly:
imul edi, ebp, 0xfebf552b
imul esi, edx, 0x32e91fbc
inc ebp
mov edx, esi
cmp ebx, 0x5fad
jb 0x414acf
or ebp, 0xf38c192c
inc dh
mov esi, 0xfff4d8fe
imul ecx, edx, 0xa8115ebc
test ebp, ecx
add esi, 0x7f9
cmp cl, cl
xadd eax, esi
mov cl, dh
add eax, 0xbdf64
xchg dh, al
adc ah, al
movzx edx, si
push 0x96fa97
dec edx
lea edi, [0x2b2fe904]
add cl, bl
dec edi
sbb edx, 0x4fcd0b5f
imul edx, edi
test ch, dl
push 0xa
lea esi, [0x1a08c916]
lea esi, [0x6d873416]
pop edi
imul esi, edi
imul edi, edi, 5
adc ch, dh
inc cl
xchg edi, eax
imul edx, edi
imul ecx, ecx
add eax, 0xcb7
test bh, 0xc1
imul edx, ebp, 0x450f74be
xchg esi, ebp
xor edi, edx
sub eax, 1
mov ecx, edi
test al, ah
movsx ecx, si
mov ecx, 0x4b3b1a3a
test cl, bh
mov edi, 0xf1045f02
xor ch, dh
mov edx, 0x966cfbbe
lea edi, [0x5dd24884]
mov ch, 0x28
cmp eax, 0x5ef
jae 0x414b3b
lea ebp, [0xafe0c0f5]
lea edi, [0xd8e14ea]
dec ebp
inc dh
push ebx
add edx, edi
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 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..rsrc
mov ebx, 0x40de38
nop
mov ecx, 0x63af42bf
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x7581027
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x402f73
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84c
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 4]
xor esi, esi
cmp dword [0x2fa5b20], 0x594
mov dword [ebp - 0xc], eax
jne 0x402fbb
push 0x402d38
push 0x402d48
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov eax, dword [0x80c4c8]
push ebx
mov ebx, dword [0x80c4cc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0x30], 0x9e3779b9
call fcn.00402f6c
mov eax, dword [0x80c4d0]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [0x80c4d4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov eax, dword [ebp - 0x10]
mov ecx, eax
shl ecx, 4
cmp dword [0x2fa5b20], 0xc
mov dword [ebp - 4], ecx
jne 0x403065
push esi
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x84c]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
lea eax, [ebp - 0x38]
push eax
push esi
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x2c]
add dword [ebp - 4], ecx
mov ecx, dword [0x2fa5b20]
cmp ecx, 0xfa9
jne 0x403083
mov dword [0x2fa50bc], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x403091
mov dword [0x2fa4a70], esi
mov ecx, dword [ebp - 8]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x14]
shr eax, cl
mov dword [0x2fa50b8], 0xf4ea3dee
add eax, dword [ebp - 0x24]
mov ecx, eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0x2fa5b20], 0x213
mov dword [ebp - 0x18], ecx
jne 0x4030cc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov eax, dword [ebp - 0x18]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax]
mov ecx, dword [ebp - 0x14]
shr eax, cl
add eax, ebx
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
sub dword [ebp - 8], eax
dec dword [ebp - 0x20]
jne 0x402ffa
cmp dword [0x2fa5b20], 0xa6d
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
pop ebx
jne 0x40312d
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], eax
pop edi
pop esi
leave
ret 4
Function at 0x403207
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows callback function
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040c750
push esi
xor esi, esi
cmp dword [0x2fa5b20], 0x5b1
push edi
jne 0x403293
push esi
lea eax, [ebp - 0x80c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push esi
push esi
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
push 0x402d88
push esi
call fcn.00403bad
push esi
push esi
push esi
push esi
call fcn.00403e64
push esi
call fcn.00403995
push esi
push esi
call fcn.00403f08
push esi
push esi
call fcn.004039a0
add esp, 0x2c
call fcn.00403505
push esi
call fcn.00404516
add dword [0x2fa5b20], 0x1134b
push dword [0x2fa5b20]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 8]
push ecx
push 0x40
push dword [0x2fa5b20]
mov dword [0x2fa4a74], eax
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x2fa5b20]
xor ecx, ecx
cmp eax, esi
jbe 0x4032e8
mov edx, dword [0x2fa5b24]
mov dl, byte [edx + ecx + 0x1134b]
mov edi, dword [0x2fa4a74]
mov byte [edi + ecx], dl
inc ecx
cmp ecx, eax
jb 0x4032cd
xor edi, edi
lea ecx, [eax + edi]
cmp ecx, 0xe
jne 0x40331d
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
call dword [sym.imp.KERNEL32.dll_GetACP]
push esi
push esi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov eax, dword [0x2fa5b20]
inc edi
cmp edi, 0x39621
jl 0x4032ea
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
xor ebx, ebx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommMask]
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, 0x206d47
jg 0x403351
inc ebx
cmp ebx, 0x4f6a4
jl 0x40332f
mov ebx, 0x4e320c
push esi
push esi
call dword [sym.imp.USER32.dll_LoadMenuW]
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_CharToOemBuffW]
call dword [sym.imp.USER32.dll_GetMessagePos]
dec ebx
jne 0x403356
call fcn.00403139
push esi
call edi
cmp ebx, 0x26
jne 0x403382
call fcn.004031ed
inc ebx
cmp ebx, 0x6753f
jl 0x403375
push 0x7b
pop edi
pop ebx
cmp dword [0x2fa5b20], 0x86
jne 0x4033d0
push esi
lea eax, [ebp - 0x40c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push esi
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push esi
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
dec edi
jne 0x40338f
call fcn.00402ef5
pop edi
pop esi
leave
ret
Function at 0x4033dc
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
xor esi, esi
cmp dword [0x2fa5b20], 0x400
push edi
jne 0x403449
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll__hwrite]
push esi
push esi
call fcn.00403740
push esi
push esi
call fcn.00403740
push esi
call fcn.0040390a
push esi
push esi
push esi
call fcn.004041e1
add esp, 0x18
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.00402ed0
fstp st(0)
push esi
call fcn.00404266
push esi
call fcn.00403ff8
push esi
push esi
call fcn.00403634
add esp, 0x10
mov eax, dword [0x80cb54]
mov dword [0x2fa5b20], eax
mov eax, dword [0x80cb2c]
mov dword [0x2fa5b24], eax
call fcn.00403207
mov dword [ebp - 4], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x420]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [ebp - 4], ebx
jle 0x4034ab
cmp dword [ebp - 8], 0x785074d5
jne 0x4034b7
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x1c1b
jl 0x40346a
xor edi, edi
push esi
lea eax, [ebp - 0x420]
push eax
push esi
push 0x402d98
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x402de4
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, ebx
jle 0x4034e7
cmp dword [ebp - 8], 0x785074d5
jne 0x4034f0
inc edi
cmp edi, 0x11915
jl 0x4034b9
mov eax, dword [0x2fa4a74]
mov dword [0x2fa50b4], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10

Function at 0x404bd0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80b0e8]
jne 0x404bda
repz ret
jmp fcn.0040a772