joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10078952
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1007898a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.10076a09
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.100769e1
jmp 0x10078996
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x1007a045
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x1007a087
call fcn.1007fb16
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1007a087
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x1007a07e
xor eax, eax
jmp 0x1007a08f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1007a095
pop edi
pop esi
pop ebx
ret 4
Function at 0x40239e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov dword [ebp - 0x12c], ecx
push 0x104
lea eax, [ebp - 0x120]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x402427
push 0x4444c4
mov edx, dword [ebp + 8]
and edx, 0xffff
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40241d
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40241d
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0xc], 1
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0042bd5d
add esp, 4
mov dword [ebp - 0x124], eax
mov edx, dword [ebp - 0x124]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0041a500
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x12c]
call fcn.00402309
mov byte [ebp - 0xc], al
mov eax, dword [ebp - 4]
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x128]
push ecx
call fcn.0042bd86
add esp, 4
mov al, byte [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8
Function at 0x4024a6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov dword [ebp - 0x138], ecx
push 0x104
lea eax, [ebp - 0x12c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40252f
push 0x4444c8
mov edx, dword [ebp + 8]
and edx, 0xffff
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x402525
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x402525
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0042bd5d
add esp, 4
mov dword [ebp - 0x130], eax
mov edx, dword [ebp - 0x130]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0041a500
add esp, 0xc
mov eax, dword [ebp - 0x20]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0041a500
add esp, 0xc
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov byte [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 1
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4025eb
push 0
mov edx, dword [ebp - 0x14]
push edx
call fcn.00403bc0
add esp, 8
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [eax + 8]
mov byte [ebp - 0x10], 1
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x134]
push ecx
call fcn.0042bd86
add esp, 4
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8
Function at 0x405cfd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov dword [ebp - 0x15c], ecx
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x44
push 0
lea ecx, [ebp - 0x158]
push ecx
call fcn.0041a4a0
add esp, 0xc
mov dword [ebp - 0x158], 0x44
push 0x10
push 0
lea edx, [ebp - 0x10]
push edx
call fcn.0041a4a0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x158]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x114]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esp, ebp
pop ebp
ret

Function at 0x405fbf
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43498a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
call dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x406109
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042bd5d
add esp, 4
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 0
call dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
mov byte [ebp - 0x24], 0
mov edx, dword [ebp - 0x24]
and edx, 0xff
test edx, edx
jne 0x4060cc
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
test eax, eax
je 0x406080
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
jmp 0x4060ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x7a
je 0x406091
jmp 0x4060c6
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042bd86
add esp, 4
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042bd5d
add esp, 4
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
jmp 0x4060ca
mov byte [ebp - 0x24], 1
jmp 0x40604e
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
jmp 0x4060f0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.0042bd86
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b5a6
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x40b6b3
lea eax, [ebp - 8]
push eax
push 0x43b3f8
push 1
push 0
push 0x43b408
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x40b6ad
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
jne 0x40b602
mov dword [ebp - 0x24], 0
jmp 0x40b638
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
shl eax, 1
add eax, 3
and al, 0xfc
call fcn.0041b040
mov dword [ebp - 0x28], esp
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0040bc00
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
call dword [eax + 0x50]
cmp dword [ebp + 0x10], 0
je 0x40b666
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
call dword [ecx + 0x44]
lea eax, [ebp - 0x14]
push eax
push 0x43b478
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
push eax
call dword [edx]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x40b6a1
push 0
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [eax + 0x18]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
lea esp, [ebp - 0x28]
mov esp, ebp
pop ebp
ret
Function at 0x40b6bc
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
cmp dword [ebp + 8], 0
je 0x40b6d1
cmp dword [ebp + 0xc], 0
jne 0x40b6d8
xor al, al
jmp 0x40b79e
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x350]
push ecx
call fcn.0041a3b0
add esp, 8
push str..lnk
lea edx, [ebp - 0x350]
push edx
call fcn.0041a3c0
add esp, 8
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x350]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0xffffffff
jne 0x40b726
xor al, al
jmp 0x40b79e
mov dword [ebp - 4], 0
lea edx, [ebp - 0x248]
push edx
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40b79c
push 0x104
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x21c]
push edx
call fcn.0040b7a2
add esp, 0xc
and eax, 0xff
test eax, eax
je 0x40b784
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.0041afb0
add esp, 8
test eax, eax
jne 0x40b784
mov al, 1
jmp 0x40b79e
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x3e8
jle 0x40b79a
xor al, al
jmp 0x40b79e
jmp 0x40b72d
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x429eb9
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x429ef1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0042d442
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0042d41a
jmp 0x429efd
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x42b65f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x42b6a1
call fcn.004315cf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42b6a1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42b698
xor eax, eax
jmp 0x42b6a9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042b6af
pop edi
pop esi
pop ebx
ret 4

Function at 0x42c774
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x42c796
cmp dword [edi + 0x3c], 0
jne 0x42c796
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004315cf
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0042c7c3
pop edi
pop esi
pop ebx
ret 8
Function at 0x432041
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x43206f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43208d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00431fa7
jmp 0x43208d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43208d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00431fa7
test edi, edi
mov eax, edi
jne 0x432077
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401270
Capabilities:
Create process on windows
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43781b
mov eax, dword fs:[0]
push eax
sub esp, 0x8a8
mov eax, dword [0x4487e8]
xor eax, esp
mov dword [esp + 0x8a0], eax
push ebx
push esi
push edi
mov eax, dword [0x4487e8]
xor eax, esp
push eax
lea eax, [esp + 0x8b8]
mov dword fs:[0], eax
push 0x401140
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.00407bfc
push 0
call fcn.00408e61
add esp, 4
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x6ae]
push edx
mov word [esp + 0x6b0], cx
call fcn.00425160
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x4a6]
push ecx
mov word [esp + 0x4a8], ax
call fcn.00425160
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x29e]
push eax
mov word [esp + 0x2a0], dx
call fcn.00425160
add esp, 0xc
lea ecx, [esp + 0x6a4]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 0x6a4]
push edx
lea eax, [esp + 0x4a0]
push 0x104
push eax
call fcn.00423922
add esp, 0xc
lea ecx, [esp + 0x6a4]
push ecx
lea edx, [esp + 0x298]
push 0x104
push edx
call fcn.00423922
add esp, 0xc
push 0x43dd40
lea eax, [esp + 0x4a0]
push 0x104
push eax
call fcn.00423991
add esp, 0xc
push str.Zt60293.exe
lea ecx, [esp + 0x298]
push 0x104
push ecx
call fcn.00423991
lea edx, [esp + 0x4a8]
add esp, 0xc
test edx, edx
je 0x4014f5
mov eax, edx
call fcn.00401520
test eax, eax
je 0x4014f5
lea eax, [esp + 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebx
mov edi, eax
test esi, esi
jne 0x401431
cmp edi, 2
je 0x401431
lea ecx, [esp + 0x294]
push ecx
call fcn.004015b0
add esp, 4
lea edx, [esp + 0x294]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401431
call ebx
mov edi, eax
cmp edi, 5
je 0x401494
mov eax, dword [0x44c5c0]
mov edx, dword [eax + 0xc]
mov ecx, 0x44c5c0
call edx
add eax, 0x10
mov dword [esp + 0x28c], eax
mov eax, dword [0x44c5c0]
mov edx, dword [eax + 0xc]
mov ecx, 0x44c5c0
call edx
add eax, 0x10
mov dword [esp + 0x290], eax
lea eax, [esp + 0x49c]
push eax
lea edx, [esp + 0x298]
lea ecx, [esp + 0x58]
mov dword [esp + 0x8c4], 0
call fcn.00401b00
lea esi, [esp + 0x54]
call fcn.00401ab0
push 0x38
lea ecx, [esp + 0x20]
push 0
push ecx
mov dword [esp + 0x24], 0x3c
call fcn.00425160
add esp, 0xc
lea eax, [esp + 0x18]
lea edx, [esp + 0x294]
push eax
mov dword [esp + 0x28], str.open
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push 0
lea ecx, [esp + 0x29c]
push ecx
call esi
push 4
push 0
lea edx, [esp + 0x4a4]
push edx
call esi
xor eax, eax
mov ecx, dword [esp + 0x8b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8a0]
xor ecx, esp
call fcn.004238c2
mov esp, ebp
pop ebp
ret
Function at 0x403310
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x40332c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4a0008], 0x8088405
inc edx
mov dword [ebx + 0x4a0008], edx
fld qword [ebx + 0x4a006c]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x4039d8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4a0024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403a70
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403a50
xor eax, eax
push ebp
push 0x403a49
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 0x403a8c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403a50
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4a0024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4a0024], ax
mov esp, ebp
pop ebp
ret

Function at 0x40476c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a3048], 0
je 0x4047cd
cmp word [0x4a321c], 0xd7b2
jne 0x404795
cmp dword [0x4a3224], 0
jbe 0x404795
mov eax, 0x4a3218
call dword [0x4a3234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a0084
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 0x4047f4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a0034], 0
jne 0x4047e9
push 0
push 0x4a007c
push 0x4a0084
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404928
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402aa8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4a3049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4048f0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406c04
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 0x406c6a
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.00404be4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403354
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406c54
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c71
lea eax, [ebp - 0x10]
call fcn.00404974
ret

Function at 0x40c3c4
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_1
test eax, eax
jle 0x40c3fd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404a64
jmp 0x40c406
mov eax, ebx
mov edx, esi
call fcn.004049c8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c410
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_1
test eax, eax
jle 0x40c431
mov al, byte [esp]
jmp 0x40c433
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40cac8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c930
mov eax, dword [0x4a2404]
cmp byte [eax], 0
je 0x40cb44
mov eax, dword [0x4a2108]
call fcn.00403134
call fcn.00402c34
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004098fc
push eax
lea eax, [esp + 0x50]
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 0x40cb8c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cb7a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4a2090]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4a3664]
call fcn.00406070
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret