joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401976
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
shr esi, 2
mov eax, esi
shr eax, 1
add eax, 3
mov dword [ecx], eax
add ecx, 0x10
xor eax, eax
push edi
mov dword [ebp - 4], 1
test esi, esi
je 0x4019aa
mov edi, dword [edx]
mov dword [ecx + eax*4], edi
inc eax
add edx, 4
cmp eax, esi
jb 0x40199d
mov eax, dword [ecx + esi*4 - 4]
mov edx, esi
imul edx, edx, 0xc
and dword [ebp + 8], 0
lea edx, [edx + ecx + 0x70]
mov dword [ebp - 8], edx
mov edx, 0xff
cmp dword [ebp + 8], 0
jne 0x401a24
mov edi, eax
and edi, edx
movzx edi, byte [edi + str.cw]
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
shl edi, 8
or edi, ebx
mov ebx, eax
shr eax, 8
shr ebx, 0x10
and eax, edx
movzx eax, byte [eax + str.cw]
xor eax, dword [ebp - 4]
shl dword [ebp - 4], 1
and ebx, edx
movzx ebx, byte [ebx + str.cw]
shl edi, 8
or edi, ebx
shl edi, 8
or eax, edi
test dword [ebp - 4], 0x100
je 0x401a1f
mov dword [ebp - 4], 0x1b
mov dword [ebp + 8], esi
jmp 0x401a6f
cmp dword [ebp + 8], 4
jne 0x401a6f
cmp esi, 6
jbe 0x401a6f
mov edi, eax
shr edi, 0x10
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
and edi, edx
movzx edi, byte [edi + str.cw]
shl ebx, 8
or edi, ebx
mov ebx, eax
shr ebx, 8
and ebx, edx
movzx ebx, byte [ebx + str.cw]
shl edi, 8
and eax, edx
movzx eax, byte [eax + str.cw]
or edi, ebx
shl edi, 8
or eax, edi
xor eax, dword [ecx]
dec dword [ebp + 8]
mov dword [ecx + esi*4], eax
add ecx, 4
cmp ecx, dword [ebp - 8]
jne 0x4019c3
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402b35
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x43f160]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402b7e
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402b7e
push 0xc00
call eax
test eax, eax
jne 0x402c12
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402c12
cmp eax, 0x104
ja 0x402c12
cmp word [ebp + eax*2 - 0x2d6], 0x5c
je 0x402bb2
push 0x5c
pop ecx
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x402c11
push edi
lea edi, [ebp + eax*2 - 0x2d4]
mov eax, edi
jmp 0x402bd6
movzx ecx, cl
mov word [eax], cx
add eax, 2
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x402bcd
push 0x2e
pop ecx
push 0x64
mov word [eax], cx
pop ecx
push 0x6c
mov word [eax + 2], cx
pop ecx
mov word [eax + 4], cx
mov word [eax + 6], cx
xor ecx, ecx
push 8
mov word [eax + 8], cx
push ecx
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x402bc9
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bb8b
leave
ret
Function at 0x406e26
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x94], 0xffffffff
xor eax, eax
push edi
xor edi, edi
inc eax
push 0x20
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
pop ecx
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
cmp eax, ecx
jbe 0x406e90
mov eax, ecx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
push ebx
mov dword [esi + 0x58], edi
cmp eax, dword [esi + 0x20]
je 0x406ed1
lea ebx, [esi + 0xc8]
mov dword [ebp + 8], ecx
cmp dword [ebx + 8], edi
je 0x406eb2
push ebx
call fcn.0040620a
add ebx, 0x28
dec dword [ebp + 8]
jne 0x406ea7
mov ecx, dword [esi + 0x5c]
cmp ecx, edi
je 0x406ecc
mov eax, dword [esi + 0x14]
push ecx
push eax
call dword [eax + 4]
mov dword [esi + 0x5c], edi
mov eax, dword [esi]
mov dword [esi + 0x20], eax
push dword [esi + 0x10]
lea eax, [esi + 0x98]
push eax
call fcn.0040613e
mov eax, dword [esi + 0x58]
lea ebx, [eax + 5]
imul ebx, ebx, 0x28
add ebx, esi
inc eax
mov dword [esi + 0x58], eax
mov eax, ebx
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
call fcn.004061eb
cmp eax, edi
jne 0x406f51
lea eax, [ebx + 0x20]
push eax
call fcn.004075d6
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x406f4c
lea eax, [ebx + 0x1c]
push eax
call fcn.004075d6
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x406f4c
push ebx
call fcn.00406b76
mov dword [ebp + 8], eax
cmp eax, edi
je 0x406f4c
mov dword [esi + 0x44], edi
lea ebx, [esi + 0xc8]
mov dword [ebp - 4], 0x20
mov eax, ebx
call fcn.00406235
add ebx, 0x28
dec dword [ebp - 4]
jne 0x406f3d
mov eax, dword [ebp + 8]
cmp eax, edi
pop ebx
jle 0x406f5e
and eax, 0xffff
or eax, 0x80070000
mov ecx, eax
cmp ecx, edi
je 0x406f67
mov dword [esi + 0x40], ecx
cmp dword [esi + 0x38], edi
jne 0x406f79
cmp dword [esi + 0x40], edi
jne 0x406f79
cmp dword [esi + 0x3c], edi
jne 0x406f79
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0x44]
neg eax
sbb eax, eax
not eax
pop edi
and eax, ecx
pop esi
leave
ret 4

Function at 0x406f8a
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 8], 0
and dword [eax + 0xc], 0
mov dword [eax + 0x20], 0x6a09e667
mov dword [eax + 0x24], 0xbb67ae85
mov dword [eax + 0x28], 0x3c6ef372
mov dword [eax + 0x2c], 0xa54ff53a
mov dword [eax + 0x30], 0x510e527f
mov dword [eax + 0x34], 0x9b05688c
mov dword [eax + 0x38], 0x1f83d9ab
mov dword [eax + 0x3c], 0x5be0cd19
pop ebp
ret 4
Function at 0x407585
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x10]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.0042bd41
mov ecx, dword [ebp + 8]
add esp, 0x18
push eax
mov dword [ecx], eax
call fcn.004074f3
pop ebp
ret 0xc

Function at 0x4094a8
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4423f0], 0
jne 0x4094e4
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408413
push dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042bfdf
pop ecx
test esi, esi
pop esi
je 0x4094f4
mov al, 1
jmp 0x4094f6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jmp 0x4094de
xor al, al
leave
ret 8

Function at 0x4094fa
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4423f0], 0
jne 0x409532
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408413
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042bfdf
pop ecx
test esi, esi
pop esi
je 0x40953f
mov al, 1
jmp 0x409541
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jmp 0x40952c
xor al, al
leave
ret 4

Function at 0x409545
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4423f0], 0
jne 0x409580
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408413
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042bfdf
pop ecx
test esi, esi
pop esi
je 0x40958f
mov al, 1
jmp 0x409591
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x40957a
xor al, al
leave
ret 4

Function at 0x40959f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040a371
cmp eax, 0xffffffff
je 0x4095ca
test al, 0x10
jne 0x4095ca
test al, 1
je 0x4095ca
and eax, 0xfffffffe
push eax
push esi
call fcn.004094a8
test al, al
je 0x409602
cmp byte [0x4423f0], 0
push esi
jne 0x4095f8
lea eax, [ebp - 0xc]
push eax
call fcn.00408413
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042bfdf
pop ecx
test esi, esi
je 0x409602
mov al, 1
jmp 0x409604
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jmp 0x4095f2
xor al, al
pop esi
leave
ret 4

Function at 0x409609
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4423f0], 0
jne 0x409640
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408413
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042bfdf
test esi, esi
pop ecx
setne al
pop esi
jmp 0x40964f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
leave
ret 4
Function at 0x4099f5
Capabilities:
Create directory

Disassembly:
push 0x5c
mov eax, 0x4367d4
call fcn.0042c501
mov esi, dword [ebp + 8]
push esi
call fcn.0040a371
cmp eax, 0xffffffff
je 0x409a1a
test al, 0x10
je 0x409a1a
mov al, 1
jmp 0x409bec
push esi
call fcn.0040af70
test al, al
jne 0x409bea
push esi
call fcn.0040b0b3
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp + 8], eax
call fcn.00407f8d
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00408346
test eax, eax
js 0x409a77
mov edx, dword [ebp - 0x14]
lea ecx, [edx - 1]
cmp eax, ecx
jne 0x409a77
cmp edx, 1
jne 0x409a6b
mov bl, dl
push dword [ebp - 0x18]
call fcn.0042bfdf
pop ecx
mov al, bl
jmp 0x409bec
mov edx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x14], ecx
mov word [edx + ecx*2], ax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
call fcn.00408009
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp byte [0x4423f0], 0
mov ebx, dword [ebp - 0x18]
jne 0x409aba
push ebx
lea eax, [ebp - 0x30]
push eax
call fcn.00408413
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x30]
mov edi, eax
call fcn.0042bfdf
pop ecx
test edi, edi
jmp 0x409ac5
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x409bac
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
jne 0x409b21
lea ecx, [ebp - 0x68]
call fcn.00409f19
lea ecx, [ebp - 0x40]
call fcn.00407f69
push 0
push ebx
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.0040a498
push dword [ebp - 0x40]
mov byte [ebp - 4], 1
test al, al
jne 0x409b0c
call fcn.0042bfdf
pop ecx
jmp 0x409b21
mov ebx, dword [ebp - 0x48]
shr ebx, 4
call fcn.0042bfdf
and bl, 1
pop ecx
jne 0x409bac
call edi
cmp eax, 0xb7
je 0x409bc8
lea ecx, [ebp - 0x18]
call fcn.00408346
mov esi, eax
test esi, esi
js 0x409bd8
je 0x409bd8
mov ecx, dword [ebp - 0x18]
cmp esi, 1
jne 0x409b5b
movzx eax, word [ecx]
cmp eax, 0x5c
je 0x409bc8
cmp eax, 0x2f
je 0x409bc8
lea eax, [esi + 1]
cmp dword [ebp + 8], eax
jae 0x409bc8
cmp esi, dword [ebp - 0x14]
jae 0x409a8a
xor eax, eax
mov dword [ebp - 0x14], esi
mov word [ecx + esi*2], ax
jmp 0x409a8a
mov eax, dword [ebp - 0x24]
lea eax, [eax + esi*2 + 2]
push eax
call fcn.0040ad99
test eax, eax
jns 0x409b90
mov esi, dword [ebp - 0x20]
jmp 0x409b94
lea esi, [esi + eax + 1]
push esi
push dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
call fcn.004080fc
push dword [ebp - 0x18]
call fcn.00409545
test al, al
je 0x409bc8
cmp esi, dword [ebp - 0x20]
jl 0x409b7a
push dword [ebp - 0x24]
call fcn.0042bfdf
push dword [ebp - 0x18]
call fcn.0042bfdf
pop ecx
pop ecx
jmp 0x409a13
push dword [ebp - 0x24]
call fcn.0042bfdf
pop ecx
xor bl, bl
jmp 0x409a5b
push dword [ebp - 0x24]
call fcn.0042bfdf
push dword [ebp - 0x18]
call fcn.0042bfdf
pop ecx
pop ecx
xor al, al
call fcn.0042c5d9
ret 4
Function at 0x40a371
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4423f0], 0
jne 0x40a3a5
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408413
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042bfdf
pop ecx
mov eax, esi
pop esi
jmp 0x40a3b5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40a3b5
or eax, eax
leave
ret 4

Function at 0x40a973
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a99d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40a99d
xor al, al
jmp 0x40a9b2
mov edx, dword [ebp - 4]
xor eax, eax
xor ecx, ecx
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x419cc2
Capabilities:
Hide graphical window

Disassembly:
push 0xc
mov eax, 0x436586
call fcn.0042c501
mov esi, ecx
push 0
push dword [ebp + 0xc]
lea ecx, [esi + 0x68]
push dword [ebp + 8]
call fcn.00419c48
push 0xce4
lea eax, [ebp - 0x18]
push eax
call fcn.0041907c
push dword [eax]
and dword [ebp - 4], 0
push dword [esi + 0x6c]
call fcn.0040b98e
push dword [ebp - 0x18]
call fcn.0042bfdf
pop ecx
push 1
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
call fcn.0042c5d9
ret 8

Function at 0x41a834
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41a85f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41a85f
xor al, al
jmp 0x41a874
mov edx, dword [ebp - 4]
xor eax, eax
xor ecx, ecx
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 8

Function at 0x41a879
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x43f160]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.0042bbd0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x210], eax
cmp eax, 0xffffffff
je 0x41a92a
push esi
push eax
call fcn.0041a834
push dword [esi]
mov dword [ebp - 0x214], ebx
call fcn.0042bff5
pop ecx
push ebx
lea ecx, [ebp - 0x214]
push ecx
mov dword [edi], eax
push dword [esi]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bb8b
leave
ret 8
Function at 0x42bb8b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43f160]
jne 0x42bb95
repz ret
jmp fcn.004300e5

Function at 0x432e4c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43f160]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0042fb0e
and dword [ebp - 0x14], 0
cmp dword [0x443058], 0
mov dword [ebp - 0x18], eax
jne 0x432eff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x432fa7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43aac8
push ebx
call edi
test eax, eax
je 0x432fa7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x443058], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44305c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x443060], eax
call edi
push eax
call esi
mov dword [0x443068], eax
test eax, eax
je 0x432eff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x443064], eax
mov eax, dword [0x443064]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x432f58
cmp dword [0x443068], ecx
je 0x432f58
push eax
call esi
push dword [0x443068]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x432f58
test ebx, ebx
je 0x432f58
call edi
test eax, eax
je 0x432f4f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x432f4f
test byte [ebp - 8], 1
jne 0x432f58
or dword [ebp + 0x10], 0x200000
jmp 0x432f8b
mov eax, dword [0x44305c]
cmp eax, dword [ebp - 0x18]
je 0x432f8b
push eax
call esi
test eax, eax
je 0x432f8b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x432f8b
mov eax, dword [0x443060]
cmp eax, dword [ebp - 0x18]
je 0x432f8b
push eax
call esi
test eax, eax
je 0x432f8b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x443058]
call esi
test eax, eax
je 0x432fa7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x432fa9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bb8b
leave
ret
Function at 0x41e1c0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x494b1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0048923e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41e242
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00486f80
mov eax, dword [eax]
push 0xc53d1c
push eax
call fcn.00479994
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004894c9
test bl, bl
je 0x41e242
push 0xc53d1c
lea ecx, [esp + 0xc]
call fcn.00489859
push 0xc53d28
lea ecx, [esp + 0xc]
call fcn.00489859
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41e27e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004894c9
jmp 0x41e349
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x41e302
lea edx, [esp + 0x7c]
push 0xc53d24
push edx
call fcn.00479994
add esp, 8
test eax, eax
je 0x41e302
lea eax, [esp + 0x7c]
push 0xc53d20
push eax
call fcn.00479994
add esp, 8
test eax, eax
je 0x41e302
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41e292
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004894c9
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x41eb40
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41eba2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x41ebb0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x494b9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0xc5d758]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x41ece8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x41ec16
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004894c9
xor eax, eax
jmp 0x41ed5f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00489606
push esi
lea ecx, [esp + 0xc]
call fcn.00489895
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0xc53d5c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x41ed3d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0041eb40
test eax, eax
jne 0x41ed3d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0041eb40
test eax, eax
jne 0x41ed3d
lea eax, [esp + 0x14]
push 0xc53d38
push eax
call fcn.0047aae0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41ed1c
lea ecx, [esp + 0x14]
push 0xc53d34
push ecx
call fcn.0047aa60
mov esi, eax
add esp, 8
test esi, esi
jne 0x41ed1c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41ed1f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004895b6
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41ec2e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004894c9
xor eax, eax
jmp 0x41ed5f
mov byte [esi], 0
push 0xc53d30
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004894c9
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4