joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4609ec
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x490ba8]
cmp byte [eax + 0xc], 0
je 0x460b59
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x460b52
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x491b7c], 0
jne 0x460a40
push 0x460b60
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x460b68
push ebx
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x491b7c], eax
cmp dword [0x48cf78], 0
jne 0x460b3b
push 0x460b78
call sub.kernel32.dll_LoadLibraryA
mov dword [0x48cf78], eax
cmp dword [0x48cf78], 0
je 0x460b3b
push 0x460b84
mov eax, dword [0x48cf78]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x491b80], eax
push 0x460b94
mov eax, dword [0x48cf78]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x491b84], eax
push 0x460ba8
mov eax, dword [0x48cf78]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x491b88], eax
push 0x460bc0
mov eax, dword [0x48cf78]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x491b8c], eax
push 0x460bd8
mov eax, dword [0x48cf78]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x491b90], eax
push 0x460bec
mov eax, dword [0x48cf78]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x491b94], eax
push 0x460c04
mov eax, dword [0x48cf78]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x491b98], eax
push 0x460c1c
mov eax, dword [0x48cf78]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x491b9c], eax
push 0x460c38
mov eax, dword [0x48cf78]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x491ba0], eax
push 0x460c44
mov eax, dword [0x48cf78]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x491ba4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460b59
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x463248
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4633b9
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x463394
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00404834
lea eax, [ebp - 0x118]
mov edx, 0x4633d0
call fcn.00404914
mov eax, dword [ebp - 0x118]
call fcn.00404b0c
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x463306
lea eax, [ebp - 0x111]
call fcn.00409bc0
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.0040473c
jmp 0x46330d
mov eax, esi
call fcn.0040464c
cmp bl, 0x61
jae 0x46332e
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040df50
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.004046a0
jmp 0x463348
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040dec4
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.004046a0
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x4633dc
call fcn.0040a2e0
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.004046a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46339b
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x468ec4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404afc
xor eax, eax
push ebp
push 0x468fbd
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [esi + 4]
mov word [ebx + 4], ax
mov ax, word [esi + 6]
mov word [ebx + 6], ax
mov ax, word [esi + 8]
mov word [ebx + 8], ax
mov ax, word [esi + 0xa]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xc]
call fcn.0046a8a4
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
mov ax, word [esi + 0x20]
mov word [ebx + 0x22], ax
mov ax, word [esi + 0x22]
mov word [ebx + 0x24], ax
mov ax, word [esi + 0x24]
mov word [ebx + 0x26], ax
mov eax, dword [esi + 0x26]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2a]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004099f0
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004698b0
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004098d4
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00469924
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468fc4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404670
ret
Function at 0x468fcc
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404afc
xor eax, eax
push ebp
push 0x4690d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
mov ax, word [esi + 4]
mov word [ebx + 6], ax
mov ax, word [esi + 6]
mov word [ebx + 8], ax
mov ax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.0046a8a4
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x12]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x20], ax
mov word [ebx + 0x22], 0
mov word [ebx + 0x24], 0
mov word [ebx + 0x26], 0
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
cmp dword [ebp - 4], 0
je 0x46909b
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004099f0
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004698b0
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004098d4
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00469924
jmp 0x4690ad
xor edx, edx
mov eax, ebx
call fcn.004698b0
xor edx, edx
mov eax, ebx
call fcn.00469924
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4690dc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404670
ret

Function at 0x46ab08
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404afc
xor eax, eax
push ebp
push 0x46ab66
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.0046abe4
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x46ab4e
lea eax, [ebp - 4]
call fcn.0046abe4
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x46ab50
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ab6d
lea eax, [ebp - 4]
call fcn.0040464c
ret

Function at 0x46ab74
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404afc
xor eax, eax
push ebp
push 0x46abd8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xe
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 4]
call fcn.0046abe4
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.00409dc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46abdf
lea eax, [ebp - 4]
call fcn.0040464c
ret
Function at 0x470174
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x170]
mov edx, ebx
mov eax, edi
call fcn.004703a8
mov esi, eax
mov dword [edi + 0x170], esi
and esi, 0xff
add dword [edi + 0x174], esi
imul esi, dword [edi + 0x174], 0x8088405
inc esi
mov dword [edi + 0x174], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x178]
mov eax, edi
call fcn.004703a8
mov dword [edi + 0x178], eax
pop edi
pop esi
pop ebx
ret

Function at 0x4701e8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x47020d
inc esi
mov eax, edi
call fcn.004701cc
xor byte [ebx], al
mov dl, byte [ebx]
mov eax, edi
call fcn.00470174
inc ebx
dec esi
jne 0x4701f7
pop edi
pop esi
pop ebx
ret

Function at 0x47029c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404afc
xor eax, eax
push ebp
push 0x470311
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00470214
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.004701cc
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.00470174
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x4702dc
mov bl, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470318
lea eax, [ebp - 4]
call fcn.0040464c
ret
Function at 0x470ed4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4710b8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x471074
mov eax, dword [ebp - 4]
call fcn.00472830
cmp ebx, eax
jge 0x471074
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
mov edx, ebx
call fcn.004683bc
mov edx, dword [0x468964]
call fcn.00403914
mov esi, eax
mov eax, esi
call fcn.00469844
test al, al
je 0x47106a
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x47105e
xor eax, eax
push ebp
push 0x471057
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0047148c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
call fcn.0041bee0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [esi + 0x34]
push dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx eax, word [ebp - 0x2a]
movzx edx, word [ebp - 0x28]
add eax, edx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.00404c98
mov eax, dword [ebp - 8]
call fcn.00404b64
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
mov al, byte [eax + 0x28]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00471250
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
mov dl, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4710a2
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x471056
mov eax, dword [ebp - 4]
call fcn.00471510
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.00409dc8
jmp 0x4710a2
mov eax, dword [ebp - 8]
call fcn.0040464c
jmp 0x4710a2
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push eax
push 0
lea edx, [ebp - 0x54]
mov eax, 0xb3
call fcn.0040930c
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x4173d4]
call fcn.0040d0e0
call fcn.00403fbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4710bf
lea eax, [ebp - 0x54]
call fcn.0040464c
ret
Function at 0x489c9c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
lea eax, [ebp - 4]
call fcn.004051e0
lea eax, [ebp - 8]
call fcn.004051e0
lea eax, [ebp + 8]
call fcn.004051e0
xor eax, eax
push ebp
push 0x489e59
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 1
xor eax, eax
push ebp
push 0x489e14
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x119]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x119]
mov ecx, 0x105
call fcn.004048bc
lea eax, [ebp - 0x120]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00404b6c
mov edx, dword [ebp - 0x120]
lea eax, [ebp - 0x14]
mov ecx, 0x489e74
call fcn.00404958
mov eax, 0x489e88
call fcn.004094a4
test al, al
jne 0x489d74
mov eax, 0x489ea0
call fcn.00439a88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x489e1e
lea eax, [ebp - 0x124]
mov ecx, 0x489e88
mov edx, dword [ebp - 0x14]
call fcn.00404958
mov eax, dword [ebp - 0x124]
call fcn.00404b0c
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
cmp ebx, 0x20
jae 0x489db3
mov eax, 0x489f04
call fcn.00439a88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x489e1e
push 0x489f2c
push ebx
call sub.kernel32.dll_GetProcAddress_2
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x489dde
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call dword [ebp - 0x10]
add esp, 0x14
jmp 0x489de8
mov eax, 0x489f44
call fcn.00439a88
push ebx
call sub.kernel32.dll_FreeLibrary_1
lea eax, [ebp - 0x128]
mov edx, dword [ebp + 8]
call fcn.004048d4
mov eax, dword [ebp - 0x128]
call fcn.004094a4
mov byte [ebp - 9], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x489e1e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489e60
lea eax, [ebp - 0x128]
mov edx, 3
call fcn.00404670
lea eax, [ebp - 0x14]
call fcn.0040464c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404d70
lea eax, [ebp + 8]
call fcn.00404d58
ret
Function at 0x7f4619
Capabilities:
Encode data using base64

Disassembly:
dec eax
mov dword [esp], 0xe395faad
dec eax
cmp esi, ebx
dec eax
mov dword [esp], 0x6e829328
dec eax
not dword [esp]
dec eax
lea esp, [esp + 8]
ja fcn.00a930f9
dec eax
mov ebx, esp
mov ecx, 0xd0
mov edi, 0x7dac2baa
dec esp
lea eax, [edi*8 + 0xd2d6619]
dec esp
lea eax, [esi + edi - 0x7dac2c2a]
inc edi
dec eax
lea edi, [edi + 0x3f8fab23]
dec eax
sal edi, 0x5f
dec ecx
and eax, 0xfffffff0
dec eax
lea edi, [edi + edi*4 + 0x1f0d9893]
dec esp
sub eax, ecx
dec eax
lea edi, [edi + edi*4 + 0x1bb98a15]
dec ecx
mov esp, eax
jmp 0xa9dd57
bswap edi
push esi
movzx esi, di
not di
pushfd
dec eax
shl esi, 0x5a
not di
inc eax
setne dh
dec eax
mov esi, ebx
or di, di
sar di, 0xa9
dec ecx
mov edi, eax
cld
rep movsb byte es:[edi], byte [esi]
mov esi, 0xa4111eb1
shr si, 0x8a
popfd
jmp 0xaebf65
pop esi
call fcn.009c580b

Function at 0xab1eb8
Capabilities:
Encode data using xor

Disassembly:
and word [esp + 8], 0x1d99
test ebx, ebx
lea esp, [esp + 0x14]
je 0xab1ef6
mov eax, 0x65a65ba4
xor ax, 0x9ead
mov eax, dword [ebp + ebx*4]
push 0xb3077db5
mov dword [esp], eax
push 0xadbf4d08
dec ebx
push 0x713f27b0
lea esp, [esp + 8]
jne 0xab1ecb
mov eax, dword [ebp]
push 0x2910c390
jmp 0xb16724
lea esp, [esp + 4]
call eax
mov ebp, dword [ebp - 4]
mov ebx, 0xd6160281
push ebx
push ebx
mov dword [ebp], eax
movsx edi, bx
not bx
mov edi, ebp
mov word [esp + 5], bx
mov ebx, dword [esp + 8]
mov ebp, 0x869ddb13
mov ebp, dword [esp + 0xc]
push 0xe5947eb0
call fcn.009e3110

Function at 0xb5abe3
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp + 0x18]
jmp fcn.00b257ff
Function at 0x40bca0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a049b
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.00494b23
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40bd22
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0049276e
mov eax, dword [eax]
push 0x4c1ca4
push eax
call fcn.00471984
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00494dae
test bl, bl
je 0x40bd22
push 0x4c1ca4
lea ecx, [esp + 0xc]
call fcn.0049513e
push 0x4c1cb0
lea ecx, [esp + 0xc]
call fcn.0049513e
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 0x40bd5e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00494dae
jmp 0x40be29
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 0x40bde2
lea edx, [esp + 0x7c]
push 0x4c1cac
push edx
call fcn.00471984
add esp, 8
test eax, eax
je 0x40bde2
lea eax, [esp + 0x7c]
push 0x4c1ca8
push eax
call fcn.00471984
add esp, 8
test eax, eax
je 0x40bde2
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 0x40bd72
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.00494dae
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 0x40c620
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 0x40c682
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 0x40c690
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a051b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4cba80]
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 0x40c7c8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40c6f6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00494dae
xor eax, eax
jmp 0x40c83f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00494eeb
push esi
lea ecx, [esp + 0xc]
call fcn.0049517a
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 0x40c81d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.0040c620
test eax, eax
jne 0x40c81d
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 SysReAllocString
mov ecx, edi
call fcn.0040c620
test eax, eax
jne 0x40c81d
lea eax, [esp + 0x14]
push 0x4c1cc0
push eax
call fcn.00472ae0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c7fc
lea ecx, [esp + 0x14]
push 0x4c1cbc
push ecx
call fcn.00472a60
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c7fc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40c7ff
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00494e9b
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40c70e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00494dae
xor eax, eax
jmp 0x40c83f
mov byte [esi], 0
push 0x4c1cb8
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.00494dae
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