joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4030ec
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x417008], 0x8088405
inc edx
mov dword [ebx + 0x417008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4036fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x417024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403794
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403774
xor eax, eax
push ebp
push 0x40376d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4037cc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403774
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x417024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x417024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4045dc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41804c], 0
je 0x40463d
cmp word [0x418328], 0xd7b2
jne 0x404605
cmp dword [0x418330], 0
jbe 0x404605
mov eax, 0x418324
call dword [0x418340]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404668
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x417030], 0
jne 0x404659
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40b7a4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40b7dd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00404f30
jmp 0x40b7e6
mov eax, ebx
mov edx, esi
call fcn.00404df4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b7f0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40b812
movzx eax, word [esp]
jmp 0x40b814
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bf78
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.0040bdb0
mov eax, dword [0x417d28]
cmp byte [eax], 0
je 0x40c00a
mov eax, dword [0x417c4c]
call fcn.00403184
call fcn.00402f74
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call sub.user32.dll_CharToOemW
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x88c]
call fcn.004087f8
push eax
lea eax, [esp + 0x890]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c058
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c043
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x417c2c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41ab18]
call fcn.00405ca0
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call sub.user32.dll_MessageBoxW
add esp, 0x1084
ret

Function at 0x40d8d3
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004049e8
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x40d8f6
mov eax, edi
add eax, eax
call fcn.00402e0c
mov esi, eax
jmp 0x40d8f8
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x40d931
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x40d91b
mov eax, esp
cmp esi, eax
je 0x40d93e
mov eax, esi
call fcn.00402e28
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x40d978
cmp bl, 0
je 0x40d974
cmp bl, 0x41
jl 0x40d96f
cmp bl, 0x5a
jg 0x40d96f
or bl, 0x20
xor al, bl
inc esi
jmp 0x40d953
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x40d8b8
Function at 0x40e848
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e88e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040e760
mov eax, dword [ebp - 4]
call fcn.00404e80
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e895
lea eax, [ebp - 4]
call fcn.00404de4
ret

Function at 0x40eaac
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40eb43
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x40eaf7
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW_1
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.00404f30
jmp 0x40eb2d
call sub.kernel32.dll_GetCommandLineW_1
mov ebx, eax
cmp word [ebx], 0
jne 0x40eb10
lea eax, [ebp - 4]
xor edx, edx
call fcn.00404e48
jmp 0x40eb23
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040e96c
mov ebx, eax
test esi, esi
je 0x40eb23
dec esi
jmp 0x40eafe
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00404df4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eb4a
lea eax, [ebp - 4]
call fcn.00404de4
ret

Function at 0x40eb54
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00408a88
add esp, 0x208
pop ebx
ret
Function at 0x40ecd4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x40ee11
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x40edfb
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40ed31
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40edfb
cmp dword [ebp - 0x14], 0
jne 0x40ed48
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00404df4
mov bl, 1
jmp 0x40edfb
cmp dword [ebp - 0x14], 0x70000000
jb 0x40ed56
call fcn.0040c080
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00404f30
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.00405570
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
cmp eax, 0xea
je 0x40ecfa
test eax, eax
jne 0x40edfb
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40eda4
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40edfb
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x40edac
dec esi
test esi, esi
je 0x40edc0
lea eax, [ebp - 4]
call fcn.004048f0
cmp word [eax + esi*2 - 2], 0
je 0x40edab
cmp dword [ebp - 0x10], 7
jne 0x40edcb
test esi, esi
je 0x40edcb
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.0040505c
cmp dword [ebp - 0x10], 7
jne 0x40edee
test esi, esi
je 0x40edee
lea eax, [ebp - 4]
call fcn.00405570
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404df4
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ee18
lea eax, [ebp - 4]
call fcn.00404de4
ret

Function at 0x40f854
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x41cd64
mov eax, esi
mov edx, 8
test al, 1
je 0x40f870
shr eax, 1
xor eax, 0xedb88320
jmp 0x40f872
shr eax, 1
dec edx
jne 0x40f863
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40f85c
pop esi
ret

Function at 0x40f888
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x41cd60], 0
jne 0x40f8ab
call fcn.0040f854
push 1
push 0x41cd60
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x40f8d6
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x41cd64]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x40f8b1
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4112e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00411294
test al, al
jne 0x411301
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x41134d
xor eax, eax
push ebp
push 0x41133d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404e80
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411344
lea eax, [ebp - 0xc]
call fcn.004112d0
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41158c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x411594
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x411681
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0040eb80
mov edx, dword [ebp - 8]
mov ecx, 0x41169c
xor eax, eax
call fcn.00411470
push 0
mov eax, dword [ebp - 4]
call fcn.00404e80
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x41164f
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x4115ae
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.00411098
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.0040833c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0040f128
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x60
call fcn.00411068
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x406dd0]
call fcn.0040c08c
call fcn.00404078
jmp 0x4115ae
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404df4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411688
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404dec
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404dec
ret

Function at 0x4116b0
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x417d90]
cmp dword [eax], 2
jne 0x411718
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x4116d3
xor eax, eax
jmp 0x411727
lea eax, [esp + 8]
push eax
push 0x41172c
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x411718
xor eax, eax
jmp 0x411727
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret
Function at 0x411754
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4117ae
inc esi
xor edi, edi
cmp edi, 1
jne 0x41177a
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep_1
jmp 0x411788
cmp edi, 1
jle 0x411788
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004112e0
test eax, eax
jne 0x4117ae
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x4117ae
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x4117ae
inc edi
dec esi
jne 0x41176a
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x414f20
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x414ff5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x415010
push ebx
push 0x415020
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00405244
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403258
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404e80
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x414fa0
mov al, 0x62
call fcn.00414afc
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00414ef4
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x414fa9
call fcn.00414ef4
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414ffc
lea eax, [ebp - 4]
call fcn.00404de4
ret
Function at 0x415110
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x4151db
jmp 0x4151cf
cmp dword [esi + 0x10], 0x1000
jne 0x4151bb
test byte [esi + 0x15], 1
jne 0x4151bb
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x41516c
cmp ebp, 2
je 0x41516c
cmp ebp, 0x10
je 0x41516c
cmp ebp, 0x20
jne 0x415188
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x415188
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x415199
mov eax, dword [esi]
add eax, ebx
call fcn.00415108
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x41518c
cmp byte [esp + 4], 0
je 0x4151bb
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x4151db
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x415141
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x84], 0
call fcn.004019a4
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, edi
or al, 0x40
push eax
lea eax, [0x4046d1]
lea edx, [fcn.00401a14]
sub eax, edx
push eax
push fcn.00401a14
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x40132e
push edi
call fcn.00401894
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.004018e3
mov eax, edi
add eax, 0x1e200
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov esi, dword [ebp - 0x88]
mov ecx, esi
mov ebx, edi
sar ebx, cl
sub esi, ebx
push esi
lea esi, [0x4060e4]
xor esi, edi
push esi
call fcn.00401a14
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4019a4
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
and dword [ebp - 0x120], 0
xor edi, edi
mov dword [ebp - 0x11c], 0x14
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringW
push 0
push 0
call sub.SHLWAPI.DLL_PathAppendA
movzx eax, word [ebp - 0x118]
mov edi, eax
sub edi, 0x41
mov eax, edi
pop edi
leave
ret

Function at 0x60b034
Capabilities:
Packed with generic packer

Disassembly:
stc
jb 0x60b03b
sbb eax, 0x60ed5250
pushal
clc
jmp 0x60b042
call 0x60b04f
lodsb al, byte [esi]
add eax, 0x9b05279c
cmp ebx, dword [edi + 0x5b]
jmp 0x60b059
add ebx, 0xffffffb9
jmp 0x60b066
cmp dword [ebx], 0
clc
jmp 0x60b071
je 0x60b0ed
jae 0x60b07d
sub eax, ecx
adc al, 0xcc
mov edi, ebx
jae 0x60b086
outsd dx, dword [esi]
inc ebp
invalid
add ebx, 4
jmp 0x60b091
mov eax, dword [ebx]
jmp 0x60b09b
add eax, ebx
stc
jmp 0x60b0a1
mov edx, dword [ebx + 4]
jmp 0x60b0ad
sub dword [eax], 0xc411622c
jmp 0x60b0b8
add eax, 4
jmp 0x60b0bf
sub edx, 1
stc
jb 0x60b0c6
or eax, 0xffd8850f
invalid
jne 0x60b0a4
jb 0x60b0d0
and eax, edx
add ebx, 8
jmp 0x60b0d7
sub dword [edi], 1
clc
jmp 0x60b0de
jne 0x60b089
stc
jb 0x60b0e8
out dx, al
call fcn.0060b0fb
jmp 0x60b0f1
popal
stc
jb 0x60b0f6
dec esi
jmp 0x60a02c
Function at 0x40cb60
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x479f4b
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.0046cc1a
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40cbe2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046a500
mov eax, dword [eax]
push 0x549220
push eax
call fcn.0045c894
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046cea5
test bl, bl
je 0x40cbe2
push 0x549220
lea ecx, [esp + 0xc]
call fcn.0046d281
push 0x54cd8c
lea ecx, [esp + 0xc]
call fcn.0046d281
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 0x40cc1e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046cea5
jmp 0x40cce9
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 0x40cca2
lea edx, [esp + 0x7c]
push 0x54cd88
push edx
call fcn.0045c894
add esp, 8
test eax, eax
je 0x40cca2
lea eax, [esp + 0x7c]
push 0x54cd84
push eax
call fcn.0045c894
add esp, 8
test eax, eax
je 0x40cca2
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 0x40cc32
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.0046cea5
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 0x40df40
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 0x40dfa2
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 0x40dfb0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47a0ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x553e28]
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 0x40e0e8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40e016
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046cea5
xor eax, eax
jmp 0x40e15f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046d02e
push esi
lea ecx, [esp + 0xc]
call fcn.0046d2bd
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40e13d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040df40
test eax, eax
jne 0x40e13d
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.0040df40
test eax, eax
jne 0x40e13d
lea eax, [esp + 0x14]
push 0x54cda0
push eax
call fcn.0045d970
mov esi, eax
add esp, 8
test esi, esi
jne 0x40e11c
lea ecx, [esp + 0x14]
push 0x54cd9c
push ecx
call fcn.0045d8f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40e11c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40e11f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046cfde
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40e02e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046cea5
xor eax, eax
jmp 0x40e15f
mov byte [esi], 0
push 0x54cd98
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.0046cea5
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