joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002d70
Capabilities:
Get common file path

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x200
xor ebx, ebx
lea eax, [esi + 0x148]
push ebx
push eax
call fcn.1000cf90
push 0x104
lea ebp, [esi + 0x44]
push ebx
push ebp
call fcn.1000cf90
add esp, 0x18
lea ecx, [esi + 0x14]
call fcn.10001c20
push ebp
push 0x104
mov dword [esi + 0x30], ebx
mov dword [esi + 0x348], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, ebp
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x10002dc1
mov cx, word [0x10025498]
add ebp, 0xffffffff
mov word [edi], cx
mov eax, ebp
lea ebx, [ebx]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x10002de0
mov edx, dword [str.dbhome.dat]
mov dword [eax], edx
mov ecx, dword [0x10025490]
mov dword [eax + 4], ecx
mov dx, word [0x10025494]
mov word [eax + 8], dx
mov cl, byte [0x10025496]
mov byte [eax + 0xa], cl
lea ecx, [esi + 0x34c]
call fcn.10001c20
lea ecx, [esi + 0x368]
call fcn.10001c20
lea ecx, [esi + 0x3a8]
mov dword [esi + 0x3a4], ebx
call fcn.10001c20
lea ecx, [esi + 0x384]
call fcn.10001c20
lea ecx, [esi + 0x400]
mov dword [esi + 0x3fc], ebx
call fcn.10001c20
lea ecx, [esi + 0x41c]
call fcn.10001c20
lea ecx, [esi + 0x438]
call fcn.10001c20
lea ecx, [esi + 0x454]
call fcn.10001c20
lea ecx, [esi + 0x470]
call fcn.10001c20
lea ecx, [esi + 0x48c]
call fcn.10001c20
mov ebx, dword [esi + 0x3c]
cmp dword [esi + 0x38], ebx
lea edi, [esi + 0x34]
jbe 0x10002e99
call fcn.1000c829
mov ebp, dword [edi + 4]
cmp ebp, dword [edi + 8]
jbe 0x10002ea6
call fcn.1000c829
push ebx
push edi
push ebp
push edi
lea edx, [esp + 0x20]
push edx
mov ecx, edi
call fcn.10002930
pop edi
mov dword [esi + 0x4ac], 1
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x100039f0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x10003a10
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x10003a26
push 0x80004005
call fcn.10003710
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
mov edx, dword [edi]
add eax, 1
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc

Function at 0x10003a50
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x10003a68
push 0x80004005
call fcn.10003710
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
add esi, eax
add edi, eax
cmp eax, 1
jne 0x10003a75
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x10004250
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x1002c5e8]
xor eax, esp
mov dword [esp + 0x118], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x12c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x100042be
test ecx, ecx
je 0x100042b0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x100042cc
test ecx, ecx
je 0x10004371
push ecx
jmp 0x1000436b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], pe_nt_image_headers32
call esi
test eax, eax
jne 0x1000433e
jmp 0x10004300
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.10004250
mov edi, eax
test edi, edi
jne 0x1000438d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], pe_nt_image_headers32
call esi
test eax, eax
je 0x10004300
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10004355
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10004371
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.1000caf3
add esp, 0x11c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1000439c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x10004373
Function at 0x10009200
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x30
push esi
push edi
push 0x2c
lea eax, [esp + 0x10]
push 0
push eax
mov esi, ecx
mov dword [esp + 0x14], 0
call fcn.1000cf90
mov edi, dword [esp + 0x48]
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.1000e8f6
push 0x10025c64
push edi
mov dword [esi + 8], 0
call fcn.1000ed08
add esp, 0x1c
test eax, eax
mov dword [esi + 0xc], eax
jne 0x10009253
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x30
ret 4
mov eax, dword [esp + 0x1c]
cmp eax, 0x800
jge 0x10009277
push 0x1000
call fcn.1000c4cc
mov dword [esi], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 8], 0x1000
jmp 0x1000928c
lea edx, [eax + eax]
push edx
call fcn.1000c4cc
mov dword [esi], eax
mov eax, dword [esp + 0x20]
lea ecx, [eax + eax]
mov dword [esi + 8], ecx
mov ecx, dword [esi]
add esp, 4
test ecx, ecx
mov dword [esi + 4], eax
jne 0x100092a5
pop edi
mov eax, 0xfffffffd
pop esi
add esp, 0x30
ret 4
mov edx, dword [esi + 0xc]
push edx
push 1
push eax
push ecx
call fcn.1000f067
add esp, 0x10
cmp eax, 1
je 0x100092ef
mov eax, dword [esi + 0xc]
test eax, eax
je 0x100092ca
push eax
call fcn.1000ed8e
add esp, 4
mov eax, dword [esi]
push eax
mov dword [esi + 0xc], 0
call fcn.1000cec9
add esp, 4
pop edi
mov dword [esi], 0
mov eax, 0xfffffffe
pop esi
add esp, 0x30
ret 4
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
push edx
mov ecx, esi
call fcn.10009160
pop edi
xor eax, eax
pop esi
add esp, 0x30
ret 4

Function at 0x10009310
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0xc], edi
je 0x10009362
cmp dword [esi + 0x10], edi
je 0x1000934c
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
mov ecx, esi
call fcn.10009160
mov edx, dword [esi + 0xc]
push edx
call fcn.1000f229
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push eax
push 1
push ecx
push edx
call fcn.1000f19c
add esp, 0x14
mov eax, dword [esi + 0xc]
push eax
call fcn.1000ed8e
add esp, 4
test eax, eax
je 0x10009362
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esi]
cmp eax, edi
je 0x10009371
push eax
call fcn.1000cec9
add esp, 4
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
mov dword [esi + 4], edi
mov dword [esi], edi
pop edi
xor eax, eax
pop esi
ret
Function at 0x10009810
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push pe_nt_image_headers32
push 0
push 0x1002ef00
call fcn.1000cf90
add esp, 0xc
lea eax, [esp]
push eax
push str.SOFTWAREMicrosoftInternet_ExplorerVersion_Vector_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x10009845
xor eax, eax
add esp, 0xc
ret
mov eax, dword [esp]
lea ecx, [esp + 4]
push ecx
push 0x1002ef00
lea edx, [esp + 0x10]
push edx
push 0
push 0x10025c68
push eax
mov dword [esp + 0x1c], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000983f
push ebx
mov bl, byte [0x1002ef00]
push pe_nt_image_headers32
push eax
push 0x1002ef00
call fcn.1000cf90
add esp, 0xc
mov eax, 0x1002ef00
mov byte [0x1002ef00], bl
lea edx, [eax + 1]
pop ebx
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100098a0
sub eax, edx
cmp eax, 3
jae 0x100098b9
mov byte [0x1002ef01], 0x30
jmp 0x100098c5
mov cl, byte [0x1002ef02]
mov byte [0x1002ef01], cl
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
push 0x1002ef00
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1000983f
push 0x1002ef00
mov byte [0x1002ef01], al
call fcn.1000f425
add esp, 4
add esp, 0xc
ret

Function at 0x10009b70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push 0x800
push 0
push 0x1002f000
call fcn.1000cf90
add esp, 0xc
lea eax, [esp + 4]
push eax
push str.CLSID871C5380_42A0_1069_A2EA_08002B30309D_shellOpenHomePageCommand
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10009bc1
mov edx, dword [esp + 4]
lea ecx, [esp]
push ecx
push 0x1002f000
push 0x1002541f
push edx
mov dword [esp + 0x10], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov eax, 0x1002f000
add esp, 8
ret

Function at 0x10009bd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push 0x800
push 0
push 0x1002f800
call fcn.1000cf90
add esp, 0xc
lea eax, [esp + 4]
push eax
push str.SOFTWAREClassesCLSID871C5380_42A0_1069_A2EA_08002B30309D_shellOpenHomePageCommand
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10009c21
mov edx, dword [esp + 4]
lea ecx, [esp]
push ecx
push 0x1002f800
push 0x1002541f
push edx
mov dword [esp + 0x10], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov eax, 0x1002f800
add esp, 8
ret
Function at 0x1000b8a0
Capabilities:
Check if file exists
Create thread
Inject dll
Inject thread

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push ebp
add ebx, 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1000b8c0
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x10]
push esi
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x1000b8f1
push str.InjectDll_hRemoteProcess
push 0x1002d9b8
call fcn.10009130
add esp, 8
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push edi
push 4
push 0x1000
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
jne 0x1000b929
push str.InjectDll_VirtualAllocEx
push 0x1002d9b8
call fcn.10009130
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push ebx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1000b959
push str.InjectDll_WriteProcessMemory
push 0x1002d9b8
call fcn.10009130
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0x100260c0
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1000b994
push str.InjectDll_PTHREAD_START_ROUTINE
push 0x1002d9b8
call fcn.10009130
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push 0
push edi
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, eax
test ebx, ebx
je 0x1000b9db
push str.InjectDll_CreateRemoteThread
push 0x1002d9b8
call fcn.10009130
add esp, 8
push 0xbb8
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1000b9db
push 0x8000
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x1000b9f0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x10023fcb
mov eax, dword fs:[0]
push eax
sub esp, 0x734
mov eax, dword [0x1002c5e8]
xor eax, esp
mov dword [esp + 0x730], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1002c5e8]
xor eax, esp
push eax
lea eax, [esp + 0x748]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x758]
xor ebx, ebx
mov dword [esp + 0x18], ebx
push ebx
push 0x1002541f
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.10001a60
push 0x103
lea eax, [esp + 0x3d]
push ebx
push eax
mov dword [esp + 0x75c], ebx
mov byte [esp + 0x44], bl
call fcn.1000cf90
add esp, 0xc
push ebx
push 0x10
lea ecx, [esp + 0x40]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edi, [esp + 0x38]
add edi, 0xffffffff
jmp 0x1000ba90
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x1000ba90
mov ecx, 5
mov esi, str.Internet_Explorer.lnk
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edx, [esp + 0x38]
push edx
movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1000bb9e
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 0x14]
push edx
push 0x100261b0
push 1
push ebx
push 0x100261c0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x1000bb98
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x10026230
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x1000bb8c
push 0x104
lea ecx, [esp + 0x140]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x44]
push edx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push ebx
lea edx, [esp + 0x140]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
jl 0x1000bb80
push 0x3ff
lea ecx, [esp + 0x349]
push ebx
push ecx
mov byte [esp + 0x350], bl
call fcn.1000cf90
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
mov edx, dword [edx + 0x28]
add esp, 0xc
push 0x3fe
lea ecx, [esp + 0x348]
push ecx
push eax
call edx
test eax, eax
jl 0x1000bb80
lea eax, [esp + 0x344]
push eax
lea ecx, [esp + 0x20]
call fcn.10001e90
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x24]
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], ebx
push eax
mov ecx, ebp
mov byte [ebp + 4], bl
call fcn.100018b0
cmp dword [esp + 0x34], 0x10
jb 0x1000bbce
mov ecx, dword [esp + 0x20]
push ecx
call fcn.1000c624
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x748]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x730]
xor ecx, esp
call fcn.1000caf3
add esp, 0x740
ret
Function at 0x1000c250
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10024080
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x1002c5e8]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1002c5e8]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
xor ebp, ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebp
mov byte [esp + 0x48], 0
push eax
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x74], ebp
call fcn.1000c030
add esp, 8
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 1
call fcn.10001330
cmp dword [esp + 0x40], 0x10
mov eax, dword [esp + 0x2c]
jae 0x1000c2d7
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1000c2e0
sub eax, edx
mov edi, eax
xor esi, esi
cmp edi, ebp
jle 0x1000c39e
cmp dword [esp + 0x40], 0x10
mov eax, dword [esp + 0x2c]
jae 0x1000c306
lea eax, [esp + 0x2c]
mov bl, byte [eax + esi]
movzx ecx, bl
push ecx
mov byte [esp + 0x24], bl
call fcn.1000e238
add esp, 4
test eax, eax
je 0x1000c324
mov edx, dword [esp + 0x20]
push edx
jmp 0x1000c384
cmp bl, 0x20
lea ecx, [esp + 0x44]
jne 0x1000c331
push 0x2b
jmp 0x1000c388
mov al, byte [esp + 0x20]
push 0x25
and al, 0xf
push 1
shr bl, 4
mov byte [esp + 0x1f], al
call fcn.1000bf80
and bl, 0xf
cmp bl, 0xa
jae 0x1000c354
add bl, 0x30
jmp 0x1000c357
add bl, 0x37
mov byte [esp + 0x1c], bl
mov eax, dword [esp + 0x1c]
push eax
push 1
lea ecx, [esp + 0x4c]
call fcn.1000bf80
mov al, byte [esp + 0x17]
and al, 0xf
cmp al, 0xa
jae 0x1000c379
add al, 0x30
jmp 0x1000c37b
add al, 0x37
mov byte [esp + 0x18], al
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x48]
push 1
call fcn.1000bf80
add esi, 1
cmp esi, edi
jl 0x1000c2f7
mov ebx, dword [esp + 0x24]
lea edx, [esp + 0x44]
push edx
push ebx
call fcn.1000c180
mov esi, 0x10
add esp, 8
cmp dword [esp + 0x40], esi
jb 0x1000c3c4
mov eax, dword [esp + 0x2c]
push eax
call fcn.1000c624
add esp, 4
cmp dword [esp + 0x5c], esi
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebp
mov byte [esp + 0x2c], 0
jb 0x1000c3e8
mov ecx, dword [esp + 0x48]
push ecx
call fcn.1000c624
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.1000caf3
add esp, 0x5c
ret

Function at 0x1000caf3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002c5e8]
jne 0x1000cafd
repz ret
jmp fcn.10012527
Function at 0x1001dba4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10011360
xor ebx, ebx
cmp dword [0x10030a0c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1001dc79
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1001dbe4
xor eax, eax
jmp 0x1001dd3d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1001dbdd
push eax
call fcn.100112fd
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10030a0c], eax
call esi
push eax
call fcn.100112fd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10030a10], eax
call esi
push eax
call fcn.100112fd
mov dword [0x10030a14], eax
lea eax, [ebp - 8]
push eax
call fcn.10014643
test eax, eax
pop ecx
pop ecx
je 0x1001dc47
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000c709
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1001dc79
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.100112fd
cmp eax, ebx
pop ecx
mov dword [0x10030a1c], eax
je 0x1001dc79
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100112fd
pop ecx
mov dword [0x10030a18], eax
mov eax, dword [0x10030a18]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1001dcf2
cmp dword [0x10030a1c], esi
je 0x1001dcf2
push eax
call fcn.10011369
pop ecx
call eax
cmp eax, ebx
je 0x1001dcbf
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x10030a1c]
call fcn.10011369
pop ecx
call eax
test eax, eax
je 0x1001dcbf
test byte [ebp - 0x18], 1
jne 0x1001dcf2
lea eax, [ebp - 0xc]
push eax
call fcn.1001467a
test eax, eax
pop ecx
je 0x1001dcda
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000c709
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1001dce9
or dword [ebp + 0x10], 0x200000
jmp 0x1001dd23
or dword [ebp + 0x10], 0x40000
jmp 0x1001dd23
mov eax, dword [0x10030a10]
cmp eax, esi
je 0x1001dd23
push eax
call fcn.10011369
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1001dd23
mov eax, dword [0x10030a14]
cmp eax, esi
je 0x1001dd23
push dword [ebp - 4]
push eax
call fcn.10011369
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x10030a0c]
call fcn.10011369
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0xf67779
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x19ac2dde
cdq
or dword [eax - 0x65], ebp
pop edi
rol dword [edx - 0x30], 0xb7
inc edx
mov ch, 0x46
invalid
mov dword [eax - 0x6d], edi
add dword [ebp + 0x668f7c15], eax
xchg ebp, eax
adc al, byte [eax + 0x51fa12e7]
fisttp dword [ebx + 0x2e]
fisttp qword [edi]
jl 0xf67737
jmp [edi + 0xa]
outsd dx, dword [esi]
or bh, cl
call 0xe9a952d7
invalid
invalid
call fcn.00fb50a6
adc ebx, ebp
insb byte es:[edi], dx
loop 0xf67708
je 0xf67721
invalid
Function at 0x40336c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405128
test esi, esi
jne 0x4033a2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405218
jmp 0x4033c0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403270
mov edi, eax
test esi, esi
je 0x4033c0
cmp dword [ebx], 0
je 0x4033c0
dec esi
jmp 0x4033a9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x404020
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4e2024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4040b8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404098
xor eax, eax
push ebp
push 0x404091
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 0x4040d4
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 0x404098
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4e2024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4e2024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404ed4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4eb04c], 0
je 0x404f35
cmp word [0x4eb220], 0xd7b2
jne 0x404efd
cmp dword [0x4eb228], 0
jbe 0x404efd
mov eax, 0x4eb21c
call dword [0x4eb238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x404f5c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4e2030], 0
jne 0x404f51
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4050ac
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4e2038], 0
je 0x4050d2
mov edx, esi
mov eax, ebx
call dword [0x4e2038]
jmp 0x4050e1
mov eax, 8
call fcn.00402f74
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4eb04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405074
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc