joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4057a8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4059d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40582b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4059d8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40582b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4059f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4058b4
xor eax, eax
push ebp
push 0x4058ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004055e4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405892
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405a14
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405892
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4058b4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale_1
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4059ce
cmp byte [ebp - 0xd], 0
jne 0x4058fb
cmp byte [ebp - 0x12], 0
je 0x4059ce
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405914
dec ebx
cmp byte [ebx], 0x2e
je 0x405923
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405913
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4059ce
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405960
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4059ce
cmp byte [ebp - 0xd], 0
je 0x4059ce
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4059ce
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40739c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40742c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40742c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4073df
test edx, 3
jne 0x4073ce
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4073d9
jmp 0x4073df
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4073df
cmp dword [ecx - 8], 1
je 0x4073e9
mov edx, ebx
or edx, 3
call fcn.00404ba8
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4073fb
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004044b8

Function at 0x407438
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4074c8
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4074c8
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40747b
test edx, 3
jne 0x40746a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x407475
jmp 0x40747b
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40747b
cmp dword [ecx - 8], 1
je 0x407485
mov edx, ebx
or edx, 3
call fcn.00404ba8
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x407497
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004044b8

Function at 0x407be4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040497c
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x407bfd
test al, 0x10
je 0x407c01
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x407c08
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040497c
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
pop ebx
ret

Function at 0x407c1c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.0040497c
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x407c3e
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40a694
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x40a6cd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004045a8
jmp 0x40a6d6
mov eax, ebx
mov edx, esi
call fcn.0040450c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40a6e0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x40a702
movzx eax, byte [esp]
jmp 0x40a704
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x413b8c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x413bf2
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404728
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403228
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x413bdc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413bf9
lea eax, [ebp - 0x10]
call fcn.004044b8
ret
Function at 0x4147bc
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x414833
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [esi]
call fcn.00414730
mov ebx, dword [esi]
mov eax, dword [ebp - 4]
call fcn.0040497c
push eax
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
call fcn.0040497c
push eax
call sub.KERNEL32.DLL_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
mov eax, dword [ebp - 4]
call fcn.00407be4
mov ebx, eax
test bl, bl
je 0x41481d
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040450c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41483a
lea eax, [ebp - 4]
call fcn.004044b8
ret

Function at 0x414b14
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x78], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040496c
xor eax, eax
push ebp
push 0x414c7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x20], 0xc
mov dword [ebp - 0x18], 0xffffffff
xor eax, eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 5], 0
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CreatePipe
test eax, eax
je 0x414c5f
mov eax, 0x7d1
call fcn.00402bdc
mov ebx, eax
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, 0x44
call fcn.0040318c
mov dword [ebp - 0x64], 0x44
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], 0x101
mov word [ebp - 0x34], 0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 0x20
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
call fcn.0040497c
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
je 0x414c34
push 0x64
mov eax, dword [ebp - 0x74]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
cmp eax, 0x102
je 0x414bd5
xor eax, eax
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x7d0
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_ReadFile
test esi, esi
je 0x414c27
mov eax, dword [ebp - 0x14]
mov byte [ebx + eax], 0
push ebx
push ebx
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x78]
mov edx, ebx
call fcn.004046b0
mov edx, dword [ebp - 0x78]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp dword [ebp - 0x14], 0x7d0
jae 0x414be7
mov byte [ebp - 5], 1
mov eax, ebx
call fcn.00402c10
mov eax, dword [ebp - 0x74]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x70]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414c84
lea eax, [ebp - 0x78]
call fcn.004044b8
lea eax, [ebp - 4]
call fcn.004044b8
ret
Function at 0x416f94
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x416f9c
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x417161
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x41712f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 4
mov edx, ebx
call fcn.0040450c
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0040497c
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 8], ebx
cmp ebx, 0xffffffff
jne 0x417048
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea edx, [ebp - 0x18]
mov eax, 0x416970
call fcn.0040602c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x1c]
mov eax, 0x416978
call fcn.0040602c
mov eax, dword [ebp - 0x1c]
mov ecx, 1
pop edx
call fcn.0041692c
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.KERNEL32.DLL_GetFileSize
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], ebx
push 0
push ebx
push 0
push 4
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.KERNEL32.DLL_CreateFileMappingA
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], esi
test esi, esi
jne 0x4170c2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea edx, [ebp - 0x20]
mov eax, 0x416958
call fcn.0040602c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x24]
mov eax, 0x416978
call fcn.0040602c
mov eax, dword [ebp - 0x24]
mov ecx, 1
pop edx
call fcn.0041692c
push 0
push 0
push 0
push 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.KERNEL32.DLL_MapViewOfFile
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], ebx
test ebx, ebx
jne 0x417125
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea edx, [ebp - 0x28]
mov eax, 0x416960
call fcn.0040602c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x2c]
mov eax, 0x416978
call fcn.0040602c
mov eax, dword [ebp - 0x2c]
mov ecx, 1
pop edx
call fcn.0041692c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x417146
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417168
lea eax, [ebp - 0x2c]
mov edx, 6
call fcn.004044dc
ret
Function at 0x4172f0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 9], cl
mov esi, edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x417415
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00414898
mov byte [ebp - 0xa], al
cmp byte [ebp - 0xa], 0
jne 0x4173ff
lea eax, [ebp - 4]
mov edx, esi
call fcn.00404550
mov eax, esi
call fcn.00407be4
mov ebx, eax
movzx eax, byte [ebp - 9]
and al, bl
mov byte [ebp - 9], al
test bl, bl
je 0x417368
mov eax, esi
call fcn.00407c08
mov edi, eax
test edi, 1
je 0x417368
mov edx, edi
dec edx
mov eax, esi
call fcn.00407c1c
cmp byte [ebp - 9], 0
je 0x41737e
lea eax, [ebp - 4]
call fcn.004147bc
test al, al
je 0x4173ff
mov eax, esi
call fcn.0040497c
push eax
call sub.KERNEL32.DLL_DeleteFileA
mov eax, esi
call fcn.00407be4
test al, al
jne 0x4173cc
mov eax, esi
call fcn.0040497c
push eax
mov eax, dword [ebp - 8]
call fcn.0040497c
push eax
call sub.KERNEL32.DLL_MoveFileA
mov eax, esi
call fcn.00407be4
test al, al
je 0x4173c3
mov eax, dword [ebp - 8]
call fcn.00407be4
test al, al
je 0x4173c7
xor eax, eax
jmp 0x4173c9
mov al, 1
mov byte [ebp - 0xa], al
test bl, bl
je 0x4173e4
mov eax, esi
call fcn.00407be4
test al, al
je 0x4173e4
mov edx, edi
mov eax, esi
call fcn.00407c1c
test byte [ebp - 9], bl
je 0x4173ff
mov eax, dword [ebp - 4]
call fcn.00407be4
test al, al
je 0x4173ff
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00407c1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41741c
lea eax, [ebp - 4]
call fcn.004044b8
ret
Function at 0x41b4d4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
xor ebx, ebx
push ebp
push 0x41b620
push dword fs:[ebx]
mov dword fs:[ebx], esp
cmp ecx, 0x40
ja 0x41b514
push ebp
lea edx, [ebp - 4]
mov eax, 0x41b304
call fcn.0040602c
mov eax, dword [ebp - 4]
call fcn.0041b458
pop ecx
jmp 0x41b605
mov esi, eax
mov ebx, dword [eax + 0x3c]
add esi, ebx
mov dword [edx], esi
cmp word [eax], 0x5a4d
je 0x41b540
push ebp
lea edx, [ebp - 8]
mov eax, 0x41b324
call fcn.0040602c
mov eax, dword [ebp - 8]
call fcn.0041b458
pop ecx
jmp 0x41b605
add ebx, 0xf8
cmp ecx, ebx
ja 0x41b566
push ebp
lea edx, [ebp - 0xc]
mov eax, 0x41b30c
call fcn.0040602c
mov eax, dword [ebp - 0xc]
call fcn.0041b458
pop ecx
jmp 0x41b605
mov ebx, dword [edx]
cmp dword [ebx], 0x4550
je 0x41b5b4
mov eax, dword [edx]
mov eax, dword [eax]
cmp eax, 0x454e
je 0x41b582
cmp eax, 0x454c
jne 0x41b59b
push ebp
lea edx, [ebp - 0x10]
mov eax, 0x41b314
call fcn.0040602c
mov eax, dword [ebp - 0x10]
call fcn.0041b458
pop ecx
jmp 0x41b605
push ebp
lea edx, [ebp - 0x14]
mov eax, 0x41b30c
call fcn.0040602c
mov eax, dword [ebp - 0x14]
call fcn.0041b458
pop ecx
jmp 0x41b605
mov ebx, dword [edx]
movzx esi, word [ebx + 0x18]
cmp si, 0x10b
je 0x41b5c8
cmp si, 0x20b
jne 0x41b5ee
mov eax, dword [eax + 0x3c]
add eax, 0xf8
mov ebx, dword [edx]
movzx ebx, word [ebx + 6]
add ebx, ebx
add ebx, ebx
add ebx, ebx
lea ebx, [ebx + ebx*4]
add eax, ebx
cmp ecx, eax
jb 0x41b5ee
mov eax, dword [edx]
cmp word [eax + 6], 0
jne 0x41b605
push ebp
lea edx, [ebp - 0x18]
mov eax, 0x41b31c
call fcn.0040602c
mov eax, dword [ebp - 0x18]
call fcn.0041b458
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b627
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004044dc
ret

Function at 0x41c7a4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov ebp, 0x8a11
mov eax, esi
call fcn.0041c600
mov edi, eax
test edi, edi
jl 0x41c801
mov edx, edi
mov eax, esi
call fcn.0041c638
mov ebx, eax
test ebx, ebx
je 0x41c801
mov edx, edi
mov eax, esi
call fcn.0041c530
mov eax, dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jns 0x41c7e0
add ecx, 3
sar ecx, 2
test ecx, ecx
jle 0x41c801
mov esi, 1
mov eax, esi
mov edi, 3
cdq
idiv edi
xor eax, dword [ebx]
add ebp, eax
add ebx, 4
inc esi
dec ecx
jne 0x41c7ec
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40d387
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
or ebx, 0xffffffff
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], ebx
call dword [0x40e0bc]
mov esi, eax
cmp dword [ebp - 4], esi
je 0x40d3c9
lea ecx, [ebp - 4]
call fcn.00408f5f
mov dword [ebp - 4], esi
push edi
push edi
push edi
push 2
push edi
push dword [ebp - 4]
call dword [0x40e100]
mov esi, eax
cmp dword [ebp - 8], esi
je 0x40d3ea
lea ecx, [ebp - 8]
call fcn.0040463a
mov dword [ebp - 8], esi
cmp dword [ebp - 8], edi
jne 0x40d40e
cmp dword [ebp - 4], ebx
je 0x40d4bd
push dword [ebp - 4]
mov esi, dword [0x40e094]
call esi
cmp dword [ebp - 8], edi
mov dword [ebp - 4], ebx
jmp 0x40d4b6
push edi
push edi
push edi
push 4
push dword [ebp - 8]
call dword [0x40e1b0]
mov edi, eax
test edi, edi
jne 0x40d43b
cmp dword [ebp - 4], ebx
mov esi, dword [0x40e094]
je 0x40d4b2
push dword [ebp - 4]
call esi
mov dword [ebp - 4], ebx
jmp 0x40d4b2
cmp word [edi], 0x5a4d
jne 0x40d46b
mov esi, dword [edi + 0x3c]
push 0xf8
add esi, edi
push esi
call dword [0x40e174]
test eax, eax
jne 0x40d498
cmp dword [esi], 0x4550
jne 0x40d498
push esi
push edi
call fcn.0040d341
pop ecx
mov dword [ebp - 0xc], eax
pop ecx
cmp dword [ebp - 4], ebx
mov esi, dword [0x40e094]
je 0x40d47e
push dword [ebp - 4]
call esi
mov dword [ebp - 4], ebx
push edi
call dword [0x40e1a8]
cmp dword [ebp - 8], 0
je 0x40d490
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
mov esi, dword [0x40e094]
je 0x40d4ab
push dword [ebp - 4]
call esi
mov dword [ebp - 4], ebx
push edi
call dword [0x40e1a8]
cmp dword [ebp - 8], 0
je 0x40d4bd
push dword [ebp - 8]
call esi
xor eax, eax
jmp 0x40d493
Function at 0x40e0d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47a2ab
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.0046c6f1
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40e152
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046a0e0
mov eax, dword [eax]
push 0x5cd218
push eax
call fcn.0045c1f4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046c97c
test bl, bl
je 0x40e152
push 0x5cd218
lea ecx, [esp + 0xc]
call fcn.0046cd58
push 0x5d0d94
lea ecx, [esp + 0xc]
call fcn.0046cd58
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 0x40e18e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046c97c
jmp 0x40e259
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 0x40e212
lea edx, [esp + 0x7c]
push 0x5d0d90
push edx
call fcn.0045c1f4
add esp, 8
test eax, eax
je 0x40e212
lea eax, [esp + 0x7c]
push 0x5d0d8c
push eax
call fcn.0045c1f4
add esp, 8
test eax, eax
je 0x40e212
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 0x40e1a2
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.0046c97c
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 0x40ea50
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 0x40eab2
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 0x40eac0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47a32b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5d8018]
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 0x40ebf8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40eb26
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046c97c
xor eax, eax
jmp 0x40ec6f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046cb05
push esi
lea ecx, [esp + 0xc]
call fcn.0046cd94
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x5d0dcc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40ec4d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040ea50
test eax, eax
jne 0x40ec4d
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.0040ea50
test eax, eax
jne 0x40ec4d
lea eax, [esp + 0x14]
push 0x5d0da8
push eax
call fcn.0045d2d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ec2c
lea ecx, [esp + 0x14]
push 0x5d0da4
push ecx
call fcn.0045d250
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ec2c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40ec2f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046cab5
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40eb3e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046c97c
xor eax, eax
jmp 0x40ec6f
mov byte [esi], 0
push 0x5d0da0
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.0046c97c
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