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

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov eax, dword [esi + 4]
call fcn.00406a28
mov ebx, eax
mov eax, dword [edi + 4]
call fcn.00406a28
cmp ebx, eax
jne 0x52a847
mov eax, dword [esi + 4]
call fcn.00406a28
mov edx, eax
dec edx
test edx, edx
jl 0x52a847
inc edx
xor eax, eax
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + eax*4]
mov ebx, dword [esi + 4]
xor dword [ebx + eax*4], ecx
inc eax
dec edx
jne 0x52a837
pop edi
pop esi
pop ebx
ret

Function at 0x530c5c
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, dword [ebx + 0x398]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [ebx + 0x394]
test eax, eax
je 0x530c87
call fcn.00533564
mov eax, dword [ebx + 0x394]
call fcn.00404340
mov eax, dword [0x552918]
mov eax, dword [eax]
call fcn.0047116c
pop ebx
ret
Function at 0x533564
Capabilities:
Terminate thread

Disassembly:
cmp byte [eax + 0x24], 0
jne 0x53356e
mov byte [eax + 0x24], 1
push 0
mov eax, dword [eax + 0x28]
push eax
call sub.kernel32.dll_TerminateThread
ret

Function at 0x5337b4
Capabilities:
Create thread

Disassembly:
push ebx
push ecx
mov ebx, eax
push esp
push 0
push ebx
push 0x533628
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [ebx + 0x28], eax
pop edx
pop ebx
ret

Function at 0x533b70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405724
xor eax, eax
push ebp
push 0x533c7c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, 1
call fcn.00403338
cmp dword [ebp - 0x14], 0
je 0x533c59
mov byte [ebp - 5], 0
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
push 0xffffffffffffffff
push 0x533c90
call sub.kernel32.dll_WaitNamedPipeA
test eax, eax
je 0x533bed
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push 0x533c90
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x533c59
xor eax, eax
push ebp
push 0x533c52
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405734
mov esi, eax
lea eax, [ebp - 0x18]
mov edx, esi
call fcn.0040549c
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x533c21
sub ebx, 4
mov ebx, dword [ebx]
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x533c59
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x533c83
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004052c8
lea eax, [ebp - 4]
call fcn.004052a4
ret

Function at 0x53423c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405724
xor eax, eax
push ebp
push 0x534296
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x534280
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405734
push eax
push 0
mov eax, dword [0x552918]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53429d
lea eax, [ebp - 4]
call fcn.004052a4
ret
Function at 0x5366ec
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x108], edx
mov edi, eax
xor eax, eax
push ebp
push 0x5368df
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
cmp dword [edi + 0x38], 0
jne 0x5368c6
mov eax, dword [edi + 0x30]
test eax, eax
je 0x53672a
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x53674a
mov eax, dword [edi + 0x34]
test eax, eax
je 0x53673a
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x53674a
mov eax, edi
call fcn.00536980
jmp 0x5368c6
cmp dword [edi + 0xa0], 0
jne 0x536781
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0x30]
call fcn.0040b6e0
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x5ba100]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xa0], eax
cmp dword [edi + 0xa4], 0
jne 0x5367b8
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0x34]
call fcn.0040b6e0
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x5ba100]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xa4], eax
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
mov eax, edi
call fcn.005369c0
mov ebx, eax
test bl, bl
jne 0x53687b
mov eax, dword [edi + 0x30]
test eax, eax
je 0x5367e1
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x5367fb
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x5367f4
sub eax, 4
mov eax, dword [eax]
test eax, eax
sete al
jmp 0x5367fd
xor eax, eax
test al, al
jne 0x53687b
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x536810
sub eax, 4
mov eax, dword [eax]
test eax, eax
je 0x536827
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0xc0]
call fcn.0040b6e0
jmp 0x536853
push dword [edi + 0x30]
push 0x5368fc
push dword [edi + 0x34]
lea eax, [ebp - 0x108]
mov edx, 3
call fcn.00405638
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 0x101]
call fcn.0040b6e0
push 7
lea eax, [ebp - 0x101]
push eax
call sub.kernel32.dll_WinExec
cmp eax, 0x20
jb 0x53687b
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
mov eax, edi
call fcn.005369c0
mov ebx, eax
test bl, bl
jne 0x536888
mov eax, edi
call fcn.00536980
jmp 0x5368c6
mov eax, dword [edi + 0x58]
test eax, eax
je 0x536897
mov dword [edi + 0xa8], eax
jmp 0x5368a1
mov dword [edi + 0xa8], 1
mov eax, edi
call fcn.00536a38
test al, al
je 0x5368c6
mov eax, edi
mov si, 0xffee
call fcn.0040453c
xor ecx, ecx
xor edx, edx
mov eax, edi
call fcn.00536ae8
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5368e6
lea eax, [ebp - 0x108]
call fcn.004052a4
ret
Function at 0x53917c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x539184
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5393aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004052a4
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4d3574]
call fcn.004b219c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x539348
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x1388
mov eax, dword [ebp - 0xc]
call fcn.004bf0ac
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x120], 1
xor eax, eax
push ebp
push 0x539328
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x552ae4]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
mov eax, dword [0x552a54]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x28]
mov ecx, 1
mov eax, 0x5393c0
call fcn.0040c114
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebx + 8]
lea eax, [ebp - 0x14]
call fcn.004055bc
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004d3de4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004078a8
mov eax, dword [ebp - 0xc]
call fcn.004c4c50
cmp dword [ebp - 4], 0
je 0x53931e
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 4]
call fcn.00405c7c
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 8]
call fcn.004d7abc
lea ecx, [ebp - 0x30]
mov edx, 0x5393f8
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x24]
mov eax, dword [ebp - 0x30]
mov edx, 0x539408
mov ecx, dword [eax]
call dword [ecx + 0x34]
cmp edx, 0
jne 0x53931e
cmp eax, 0
jne 0x53931e
lea ecx, [ebp - 0x38]
mov edx, 0x539418
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x24]
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
mov edx, 0x539428
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x34]
lea eax, [ebx + 0x28]
call fcn.0040552c
lea ecx, [ebp - 0x40]
mov edx, 0x539418
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x24]
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x3c]
mov edx, 0x539434
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x3c]
mov eax, esi
call fcn.0040552c
lea eax, [ebx + 0x24]
mov edx, dword [esi]
call fcn.004052f8
push 1
push 0
push 0
mov eax, dword [ebx + 0x24]
call fcn.00405734
push eax
push 0x53944c
mov eax, dword [0x552918]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x539332
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53934f
mov eax, dword [ebp - 0xc]
call fcn.00404340
ret
Function at 0x53cdfc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x134], edx
mov esi, eax
xor eax, eax
push ebp
push 0x53ceea
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
xor edx, edx
mov eax, 2
call fcn.004731fc
mov dword [ebp - 8], eax
mov dword [ebp - 0x130], 0x128
lea edx, [ebp - 0x130]
mov eax, dword [ebp - 8]
call fcn.0047321c
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x53cec4
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
je 0x53cec8
mov eax, dword [ebp - 0x128]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x134]
call fcn.0040ab34
mov edx, dword [ebp - 0x134]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov edi, eax
test edi, edi
jl 0x53ceb0
push 0
mov eax, dword [ebp - 0x128]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
mov edx, edi
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x48]
lea edx, [ebp - 0x130]
mov eax, dword [ebp - 8]
call fcn.0047323c
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x53ce53
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53cef1
lea eax, [ebp - 0x134]
call fcn.004052a4
ret
Function at 0x4012ea
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x40fff1
call fcn.00406b34
sub esp, 0x19c
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x18], esi
lea ecx, [esi + 4]
call fcn.00401022
xor ebx, ebx
lea ecx, [esi + 0x2c]
mov dword [ebp - 4], ebx
call fcn.00401022
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 1
call fcn.00401022
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 2
call fcn.00401022
lea eax, [ebp - 0x1a8]
mov dword [esi], 0x411540
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
or dword [esi + 0xa8], 0xffffffff
mov dword [esi + 0xac], eax
lea eax, [ebp - 0x14]
push 5
push eax
lea eax, [esi + 0xb0]
push eax
mov byte [esi + 0xb5], bl
mov byte [ebp - 0x14], 0x76
mov byte [ebp - 0x13], 0x32
mov byte [ebp - 0x12], 0x30
mov byte [ebp - 0x11], 0x31
mov byte [ebp - 0x10], 0x30
call sub.MSVCRT.dll_memcpy
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov eax, esi
mov dword fs:[0], ecx
pop esi
pop ebx
leave
ret

Function at 0x401455
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
call fcn.00401b03
push dword [esi + 0xac]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor ebx, ebx
mov byte [esi + 0xb5], bl
mov eax, dword [0x41744c]
cmp eax, ebx
je 0x401490
cmp eax, 4
je 0x401490
cmp eax, 5
jne 0x401524
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0xa8], eax
je 0x401524
cmp dword [0x41744c], ebx
je 0x4014b6
push 0x417450
jmp 0x4014b9
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
cmp edi, ebx
je 0x401524
cmp dword [0x41744c], ebx
mov word [ebp - 0x10], 2
je 0x4014dc
mov ax, word [0x41512c]
push eax
jmp 0x4014df
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
mov eax, dword [edi + 0xc]
push 0x10
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0xa8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x401524
cmp dword [0x41744c], 5
jne 0x401528
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.00401552
test al, al
jne 0x401528
xor al, al
jmp 0x40154b
push 1
push ebx
push ebx
push esi
push 0x401807
push ebx
push ebx
mov byte [esi + 0xb5], 1
call fcn.004066f1
mov dword [esi + 0xa4], eax
add esp, 0x1c
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x401ff6
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411560
push 0x406bbe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x40213a
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x40209e
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x40209e
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x402079
cmp al, 0x5c
je 0x402079
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x402061
cmp byte [esi], 0
je 0x402082
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x402097
cmp al, 0x5c
je 0x402097
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x40207f
cmp byte [esi], 0
je 0x4020bd
jmp 0x4020b9
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x4020bd
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x4020bd
cmp al, 0x5c
jne 0x4020bd
inc esi
mov dword [ebp - 0x1c], esi
or ebx, 0xffffffff
mov al, byte [esi]
test al, al
je 0x40211a
cmp al, 0x5c
jne 0x40210c
and byte [esi], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x4020f5
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x402109
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jmp 0x4020fa
and eax, 0x10
cmp al, 0x10
je 0x402109
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov dword [ebp - 4], ebx
jmp 0x40213e
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x4020c0
mov dword [ebp - 4], ebx
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov al, 1
jmp 0x402140
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402151
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
push ebx
push esi
push edi
mov esi, 0x104
xor edi, edi
push esi
lea eax, [ebp - 0x160]
push edi
push eax
mov dword [ebp - 8], esi
call sub.MSVCRT.dll_memset
push 0x2e
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x14
cmp eax, edi
je 0x4022de
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push edi
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4022de
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x160]
push eax
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
call edi
push dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
push 0x1f4
lea eax, [ebp - 0x354]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x354]
push str._s_shellopencommand
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 0xf003f
lea eax, [ebp - 0x354]
push 0
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4022de
push esi
push eax
lea eax, [ebp - 0x160]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
xor esi, esi
push eax
lea eax, [ebp - 0x160]
push eax
push esi
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call ebx
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
lea eax, [ebp - 0x160]
push 0x4151a0
push eax
call edi
pop ecx
cmp eax, esi
pop ecx
jne 0x40229b
lea eax, [ebp - 0x160]
push 0x41519c
push eax
call edi
pop ecx
cmp eax, esi
pop ecx
jne 0x40229b
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x160]
push 0x415198
push eax
call edi
push dword [ebp + 8]
lea eax, [ebp - 0x160]
push eax
call edi
jmp 0x4022a5
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10
xor eax, eax
cmp dword [ebp + 0xc], esi
pop ecx
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x5c], 0x44
je 0x4022c2
mov dword [ebp - 0x54], str.WinSta0Default
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x160]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
xor al, al
pop ebx
leave
ret 8

Function at 0x4022e7
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
xor esi, esi
push 0x44
lea eax, [ebp - 0x54]
push esi
push eax
call sub.MSVCRT.dll_memset
mov ax, word [ebp + 0xc]
add esp, 0xc
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
mov dword [ebp - 0x28], 0x101
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor al, al
pop esi
leave
ret 8
Function at 0x40232e
Capabilities:
Get disk information
Get disk size
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x784
push ebx
push esi
lea eax, [ebp - 0x224]
push edi
push eax
mov dword [ebp - 0x20], ecx
push 0x100
mov byte [ebp - 0x784], 0x67
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
xor ebx, ebx
push 1
cmp byte [ebp - 0x224], bl
lea edi, [ebp - 0x224]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
pop esi
je 0x4024c7
jmp 0x402383
xor ebx, ebx
push 0x104
lea eax, [ebp - 0x124]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x124]
push 0x104
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x410
lea eax, [ebp - 0x384]
push 0x160
push eax
push 0x80
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
lea eax, [ebp - 0x124]
push eax
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp - 0xc], eax
mov al, byte [edi]
cmp al, 0x41
je 0x402431
cmp al, 0x42
je 0x402431
lea eax, [ebp - 0x14]
push 0
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x402431
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
push 0x14
pop ecx
call fcn.00406bd0
mov edx, dword [ebp - 0x18]
push 0x14
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
pop ecx
call fcn.00406bd0
mov dword [ebp - 4], eax
jmp 0x402439
and dword [ebp - 8], 0
and dword [ebp - 4], 0
mov al, byte [edi]
push edi
mov byte [ebp + esi - 0x784], al
call dword [0x417754]
mov byte [ebp + esi - 0x783], al
lea eax, [ebp - 8]
push 4
push eax
lea eax, [ebp + esi - 0x782]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 4]
push 4
push eax
lea eax, [ebp + esi - 0x77e]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x274]
push ebx
push eax
lea eax, [ebp + esi - 0x77a]
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp - 0xc]
lea eax, [ebp - 0x124]
push eax
lea eax, [ebx + esi]
lea eax, [ebp + eax - 0x77a]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0xc]
add esp, 0x30
add eax, ebx
push edi
lea esi, [esi + eax + 0xa]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [edi + eax + 1], 0
lea edi, [edi + eax + 1]
jne 0x402381
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x784]
push esi
push eax
call fcn.004065e8
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4024dc
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push esi
mov eax, 0x2800
push edi
mov esi, ecx
push eax
push 0x40
and dword [esi + 0x1c], 0
mov dword [ebp - 8], esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp + 8]
mov edi, eax
lea eax, [ebp - 0x24c]
push str._s.
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x40254d
lea eax, [ebp + 0xb]
push 1
push eax
mov ecx, esi
mov byte [ebp + 0xb], 0x68
call fcn.004065e8
jmp 0x402650
push ebx
push 1
mov byte [edi], 0x68
pop esi
mov eax, dword [ebp - 4]
add eax, 0xfffffdf8
cmp esi, eax
jbe 0x402575
add dword [ebp - 4], 0x208
push 0x42
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edi, eax
lea eax, [ebp - 0x11c]
push 0x4151c0
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x402619
lea eax, [ebp - 0x11c]
push 0x4151bc
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x402619
mov al, byte [ebp - 0x148]
and al, 0x10
mov byte [esi + edi], al
lea eax, [ebp - 0x11c]
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
lea eax, [ebp - 0x11c]
push ebx
push eax
lea eax, [esi + edi]
push eax
call sub.MSVCRT.dll_memcpy
add esi, ebx
lea eax, [ebp - 0x12c]
push 4
push eax
and byte [esi + edi], 0
inc esi
lea ebx, [esi + edi]
push ebx
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x128]
push 4
add ebx, 4
push eax
push ebx
call sub.MSVCRT.dll_memcpy
add esi, 8
lea eax, [ebp - 0x134]
push 8
push eax
lea eax, [esi + edi]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x30
add esi, 8
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402554
mov ecx, dword [ebp - 8]
push esi
push edi
call fcn.004065e8
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret 4