joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418380
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x48dd78]
xor eax, esp
mov dword [esp + 0x220], eax
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea esi, [esp + 0x14]
push esi
xor edi, edi
or eax, 0x2001f
push eax
push edi
push edx
push ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
cmp esi, edi
jne 0x4183f6
xor eax, eax
cmp ecx, edi
je 0x4183e4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], edi
mov esi, eax
mov dword [esp + 0xc], ecx
cmp eax, edi
je 0x418404
cmp ecx, edi
je 0x4184a2
push ecx
jmp 0x41849c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push edi
push edi
push edi
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
jne 0x41846c
lea esp, [esp]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x10]
call fcn.00418380
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x4184bb
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x10]
push edi
push edi
push edi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edi
push edx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
je 0x418430
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x41847f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx]
push eax
push ecx
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x4184a2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0043e9e1
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0xc]
cmp ecx, edi
je 0x4184a4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043e9e1
mov esp, ebp
pop ebp
ret 4
Function at 0x418830
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472e80
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x48dd78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0
push 0
push 0
push 0
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1_
mov dword [ebp - 4], 0
call dword [sym.imp.WININET.dll_InternetOpenW]
push 0
push 0x84000000
push 0
mov ebx, eax
mov eax, dword [ebp + 8]
push 0
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
push 0x400
mov edi, eax
call fcn.0043e181
add esp, 4
lea ecx, [ebp - 0x14]
push ecx
push 0x400
mov esi, eax
push esi
push edi
mov dword [ebp - 0x14], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push ebx
call edi
test esi, esi
je 0x4188cf
push esi
call fcn.0043f1b9
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b060
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x54]
mov ecx, eax
and ecx, 0xc
push edi
mov bl, 1
cmp cl, 0xc
jne 0x41b0bd
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [esp + 0x10], eax
call edi
mov edx, dword [esi + 4]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0xfffffffe
call edi
mov edi, eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [esp + 0xc]
push ecx
push edi
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret
shr eax, 2
test al, 1
je 0x41b0f7
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esi + 4]
push ecx
movzx edx, di
push edx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret
mov eax, dword [esi + 0x28]
push 1
push 0
push 0
push eax
push 0x477380
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta bl
test bl, bl
je 0x41b12a
mov ecx, dword [esi + 4]
or byte [esi + 0x58], 2
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret
Function at 0x41b6f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4730b0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x48dd78]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov edi, dword [ebp + 0x414]
mov ebx, dword [ebp + 0x418]
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x41b772
call fcn.00417690
mov edi, eax
jmp 0x41b854
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x41b78b
call fcn.00417690
jmp 0x41b84b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x41b7a6
call fcn.00417690
jmp 0x41b84b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x18], edi
cmp eax, edi
jae 0x41b7dc
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x41b7ca
lea ecx, [ebp]
call fcn.00418290
lea ecx, [ebp - 0x20]
call fcn.004180b0
mov eax, 0x8007000e
jmp 0x41b866
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.004190b0
mov dword [ebp - 4], 1
jmp 0x41b808
mov eax, dword [ebp]
test eax, eax
jne 0x41b816
mov edi, 0x8007000e
jmp 0x41b84d
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x41b82f
call fcn.00417690
jmp 0x41b84b
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.0041a4d0
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x41b864
lea ecx, [ebp]
call fcn.00418290
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0043e9e1
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41fa60
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, ecx
test ebx, ebx
jne 0x41fa7d
push ebx
push ebx
push ebx
push 2
call fcn.00422b50
pop ebp
xor al, al
pop ebx
ret 8
push edi
call fcn.0041f6e0
push 2
or eax, 0xffffffff
push 0
push ebx
mov dword [ebp + 8], eax
mov dword [ebp + 4], eax
call fcn.00441da7
push ebx
call fcn.00441caf
push 0
push 0
push ebx
mov edi, eax
call fcn.00441da7
add esp, 0x1c
test edi, edi
jg 0x41fac6
push 0
push 0
push 0
push 0xc
mov ecx, ebp
call fcn.00422b50
pop edi
pop ebp
xor al, al
pop ebx
ret 8
lea eax, [edi + 1]
push esi
push eax
call fcn.00428d90
push ebx
push 1
mov esi, eax
push edi
push esi
mov byte [esi], 0
call fcn.00441af5
add esp, 0x14
cmp eax, 1
je 0x41fb08
push esi
call fcn.00428dc0
add esp, 4
push 0
push 0
push 0
push 2
mov ecx, ebp
call fcn.00422b50
pop esi
pop edi
pop ebp
xor al, al
pop ebx
ret 8
mov byte [esi + edi], 0
cmp byte [esi], 0
mov eax, esi
mov ecx, esi
je 0x41fb31
mov dl, byte [eax]
cmp dl, 0xd
jne 0x41fb28
mov byte [ecx], 0xa
inc eax
inc ecx
cmp byte [eax], 0xa
jne 0x41fb2c
jmp 0x41fb2b
mov byte [ecx], dl
inc ecx
inc eax
cmp byte [eax], 0
jne 0x41fb15
mov eax, dword [esp + 0x18]
push eax
mov byte [ecx], 0
mov edx, dword [ebp]
mov edx, dword [edx + 8]
push 0
push esi
mov ecx, ebp
call edx
push esi
call fcn.00428dc0
add esp, 4
pop esi
xor eax, eax
cmp byte [ebp + 0x2c], al
pop edi
pop ebp
sete al
pop ebx
ret 8

Function at 0x4248b0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x424930
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push esi
call fcn.004248b0
add esp, 8
test al, al
jne 0x424946
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop esi
ret

Function at 0x424c50
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 8], 0x105
push edi
jg 0x424c6b
push 0x105
mov ecx, esi
call fcn.0040e960
mov eax, dword [esi]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edi, dword [esi]
xor ecx, ecx
cmp word [edi], cx
je 0x424c8e
mov edx, edi
add edx, 2
inc ecx
cmp word [edx], 0
jne 0x424c84
xor edx, edx
mov word [edi + ecx*2], dx
mov dword [esi + 4], ecx
dec eax
mov ecx, 0x103
cmp ecx, eax
sbb eax, eax
pop edi
inc eax
pop esi
ret

Function at 0x424f30
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 8], 0x105
push edi
jg 0x424f4b
push 0x105
mov ecx, esi
call fcn.0040e960
mov eax, dword [esi]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, dword [esi]
xor ecx, ecx
cmp word [edi], cx
je 0x424f6e
mov edx, edi
add edx, 2
inc ecx
cmp word [edx], 0
jne 0x424f64
xor edx, edx
mov word [edi + ecx*2], dx
mov dword [esi + 4], ecx
dec eax
mov ecx, 0x103
cmp ecx, eax
sbb eax, eax
pop edi
inc eax
pop esi
ret
Function at 0x424f90
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 0x10]
cmp dword [esi + 8], 0x105
push edi
jg 0x424fab
push 0x105
mov ecx, esi
call fcn.0040e960
mov eax, dword [esi]
mov ecx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, dword [esi]
xor ecx, ecx
cmp word [edi], cx
je 0x424fda
mov edx, edi
jmp 0x424fd0
add edx, 2
inc ecx
cmp word [edx], 0
jne 0x424fd0
xor edx, edx
mov word [edi + ecx*2], dx
pop edi
mov dword [esi + 4], ecx
pop esi
ret
Function at 0x427770
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x107c
call fcn.00440680
mov eax, dword [0x48dd78]
xor eax, esp
mov dword [esp + 0x1078], eax
mov eax, dword [esp + 0x1080]
mov ecx, dword [esp + 0x1084]
push ebp
push esi
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push 7
push SysReAllocString
push eax
mov dword [esp + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4277d8
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x4277f1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1078]
xor ecx, esp
call fcn.0043e9e1
add esp, 0x107c
ret
push ebx
push edi
lea eax, [esp + 0x20]
push ebp
push eax
mov dword [esp + 0x18], ebp
call fcn.00428380
add esp, 8
cmp dword [esp + 0x18], ebp
ja 0x427819
cmp dword [esp + 0x14], 0x200000
jbe 0x4278eb
cmp dword [esp + 0x1098], ebp
jne 0x4278eb
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
xor edi, edi
lea ebp, [edi + 1]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x1000
lea edx, [esp + 0x94]
push edx
push esi
call ebx
test eax, eax
je 0x4278e7
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4278e7
push eax
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.004283d0
add edi, dword [esp + 0x1c]
add esp, 0xc
cmp edi, 0x100000
jb 0x427831
push 2
push 0
push 0xfff00000
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x42794f
xor edi, edi
lea esp, [esp]
push 0
lea edx, [esp + 0x14]
push edx
push 0x1000
lea eax, [esp + 0x94]
push eax
push esi
call ebx
test eax, eax
je 0x4278e7
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4278e7
push eax
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.004283d0
add edi, dword [esp + 0x1c]
add esp, 0xc
cmp edi, 0x100000
jb 0x4278a0
jmp 0x42794f
xor ebp, ebp
jmp 0x42794f
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
lea eax, [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x94]
push ecx
push esi
call edi
test eax, eax
je 0x42794f
jmp 0x427910
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x42794a
push eax
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.004283d0
add esp, 0xc
push ebp
lea ecx, [esp + 0x14]
push ecx
push 0x1000
lea edx, [esp + 0x94]
push edx
push esi
call edi
test eax, eax
jne 0x427910
jmp 0x42794f
mov ebp, 1
lea eax, [esp + 0x20]
push eax
call fcn.004284f0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
test ebp, ebp
je 0x4277d8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [eax], ecx
mov ecx, dword [esp + 0x78]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x7c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x1080]
pop esi
pop ebp
mov dword [eax + 0xc], edx
xor ecx, esp
mov eax, 1
call fcn.0043e9e1
add esp, 0x107c
ret
Function at 0x42b9dc
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x48f868], 0
push esi
jne 0x42b94a
call fcn.0042b85e
test eax, eax
je 0x42b98d
mov eax, dword [0x48f868]
cmp eax, 1
jne 0x42b96b
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42b98d
pop esi
ret
push eax
call dword [0x48f870]
test eax, eax
jne 0x42b9d5
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x42b991
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x48f868]
call dword [0x48f870]
mov edi, eax
test edi, edi
je 0x42b9b6
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x42b9d2
mov edi, esi
add esi, 0xff0
push edi
push dword [0x48f868]
call dword [0x48f86c]
add edi, 0x10
cmp edi, esi
jb 0x42b9be
mov eax, edi
pop edi
pop esi
ret
jmp 0x42b937
Function at 0x42cb28
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
xor eax, eax
push esi
mov esi, ecx
mov byte [esp + 8], 0
mov word [esp + 9], ax
test ebp, ebp
jne 0x42cb3f
pop esi
pop ebp
pop ecx
ret 0x10
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ebx
push edi
push ecx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x42cc43
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x42cc43
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
push ebp
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x42cba2
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
pop ecx
ret 0x10
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x42cc31
test ebx, ebx
je 0x42cc31
push ebp
push eax
push ebx
call fcn.0043ea70
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea edx, [esi + 0x24]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 0x1c]
push ecx
lea edx, [esi + 8]
push edx
lea eax, [esi + 4]
push eax
lea ecx, [esi + 0x10]
push ecx
push ebp
push ebx
call fcn.0042c310
movzx ecx, byte [esp + 0x11]
mov edx, dword [esp + 0x24]
mov ebx, eax
movzx eax, byte [esp + 0x12]
shl eax, 8
mov dword [esi + 0x18], edx
movzx edx, byte [esp + 0x10]
or eax, ecx
shl eax, 8
or eax, edx
push edi
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
pop ecx
ret 0x10
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
pop ecx
ret 0x10
Function at 0x43e9e1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48dd78]
jne 0x43e9eb
repz ret
jmp fcn.0044bb74

Function at 0x45da26
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00449a0e
and dword [ebp - 4], 0
cmp dword [0x49044c], 0
mov ebx, eax
jne 0x45dad7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x45db88
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x45db88
push eax
call fcn.0044999c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x49044c], eax
call esi
push eax
call fcn.0044999c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x490450], eax
call esi
push eax
call fcn.0044999c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x490454], eax
call esi
push eax
call fcn.0044999c
pop ecx
mov dword [0x49045c], eax
test eax, eax
je 0x45dad7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044999c
pop ecx
mov dword [0x490458], eax
mov eax, dword [0x490458]
cmp eax, ebx
je 0x45db2f
cmp dword [0x49045c], ebx
je 0x45db2f
push eax
call fcn.00449a17
push dword [0x49045c]
mov esi, eax
call fcn.00449a17
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x45db2f
test edi, edi
je 0x45db2f
call esi
test eax, eax
je 0x45db26
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45db26
test byte [ebp - 0xc], 1
jne 0x45db2f
or dword [ebp + 0x10], 0x200000
jmp 0x45db68
mov eax, dword [0x490450]
cmp eax, ebx
je 0x45db68
push eax
call fcn.00449a17
pop ecx
test eax, eax
je 0x45db68
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x45db68
mov eax, dword [0x490454]
cmp eax, ebx
je 0x45db68
push eax
call fcn.00449a17
pop ecx
test eax, eax
je 0x45db68
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49044c]
call fcn.00449a17
pop ecx
test eax, eax
je 0x45db88
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45db8a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4027d4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x402803
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004036c0
jmp 0x402821
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402708
mov edi, eax
test ebx, ebx
je 0x402821
cmp dword [esi], 0
je 0x402821
dec ebx
jmp 0x40280a
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
imul edx, dword [0x43c03c], 0x8088405
inc edx
mov dword [0x43c03c], edx
mul edx
mov eax, edx
ret

Function at 0x402b50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402be8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402bc8
xor eax, eax
push ebp
push 0x402bc1
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 0x402c04
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 0x402bc8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x4046f8
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 0xf003f
push 0
push 0x404894
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4047a8
xor eax, eax
push ebp
push 0x4047a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
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 0x40478a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4048b4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4047a8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404889
cmp byte [ebp - 0xd], 0
jne 0x4047ea
cmp byte [ebp - 0x12], 0
je 0x404889
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404803
dec ebx
cmp byte [ebx], 0x2e
je 0x404812
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404802
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404889
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40483f
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404889
cmp byte [ebp - 0xd], 0
je 0x404889
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404889
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
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 0x406c58
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403a1c
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
pop ebx
ret

Function at 0x406c6c
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.00403a1c
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x406c8e
call sub.KERNEL32.DLL_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x407148
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004036c0
add esp, 0x104
pop ebx
ret