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

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x6b8d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x6b8d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x6b8d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x6b8d94
push eax
push esi
call fcn.006bb20b
add esp, 8
pop esi
ret 0x10

Function at 0x6b8da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6b8e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x6b8e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x6d1320
push ecx
mov dword [esp + 0x1c], 4
call fcn.006badff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x6b8dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x6b8e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6b8ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x6b8eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x6d1320
push ecx
mov dword [esp + 0x1c], 4
call fcn.006badff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x6b8eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x6b8e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x6b9000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x6b9131
push esi
call fcn.006bc145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.006ab080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x6b9131
push 0
push ebp
call fcn.006ab3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.006ab260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x6b908b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.006ab2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x6b9121
push 0x6d1918
push edi
call fcn.006ba3f0
push eax
push ebx
push esi
call fcn.006b8f60
push 0x6d18f8
push edi
call fcn.006ba3f0
push eax
push ebx
push esi
call fcn.006b8f60
push 0x6d18d8
push edi
call fcn.006ba3f0
push eax
push ebx
push esi
call fcn.006b8f60
push 0x6d18c0
push edi
call fcn.006ba3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.006b8f60
push 0x6d18a0
push edi
call fcn.006ba3f0
push eax
push ebx
push esi
call fcn.006b8f60
push 0x6d1888
push edi
call fcn.006ba3f0
push eax
push ebx
push esi
call fcn.006b8f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x6ba1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.006ba140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.006ba140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.006ba140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.006ba140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x6babfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6bac50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x6cc87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6bac43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x6bac52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401000
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 0x2003
mov dword [ebp - 0x28], 0x4010fb
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push dword [ebp + 8]
pop dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], str.WinClass32
push 0x1f4
push dword [ebp + 8]
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x18], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassExA
mov eax, 0xc8
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], eax
push 0
push dword [ebp + 8]
push 0
push 0
push dword [ebp - 0x54]
push dword [ebp - 0x50]
push dword [ebp - 0x5c]
push dword [ebp - 0x58]
push 0xcf0000
push str.WinClass32
push str.WinClass32
push 0
call sub.user32.dll_CreateWindowExA
mov dword [0x40300f], eax
push 1
push dword [0x40300f]
call sub.user32.dll_ShowWindow
push dword [0x40300f]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_GetMessageA
cmp eax, 0
je 0x4010f4
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_DispatchMessageA
jmp 0x4010cc
mov eax, dword [ebp - 0x44]
leave
ret 0x10

Function at 0x40119d
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0x30]
cmp byte [eax + 2], 0
je 0x4011ae
jmp 0x401b16
ret

Function at 0x4011af
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov eax, dword fs:[0x30]
test dword [eax + 0x68], 0x70
je 0x4011c3
jmp 0x401b16
ret

Function at 0x4012d9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push ecx
rdtsc
xor eax, ecx
and eax, 0xf
add al, 0x41
stosb byte es:[edi], al
pop ecx
dec ecx
jne 0x4012e3
pop edi
leave
ret 8

Function at 0x4012f7
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [0x4106dc]
push 0xf
push 0x403c60
call fcn.004012d9
push dword [ebp + 8]
call sub.kernel32.dll_lstrlenA
add eax, 1
push eax
push dword [ebp + 8]
push 1
push 0
push 0x403c60
push dword [ebp - 4]
call dword [0x4106e0]
push dword [ebp - 4]
call dword [0x4106e4]
leave
ret 4
Function at 0x401907
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push 0xa
push 0x1001
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x401925
jmp 0x401b16
mov dword [0x403c74], eax
push eax
push 0
call sub.kernel32.dll_SizeofResource
or eax, eax
jne 0x40193b
jmp 0x401b16
mov dword [0x403c78], eax
push dword [0x403c74]
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x401956
jmp 0x401b16
mov dword [0x403c7c], eax
push eax
call sub.kernel32.dll_LockResource
or eax, eax
jne 0x40196a
jmp 0x401b16
mov dword [0x403c80], eax
mov ebx, eax
mov dword [ebp - 8], eax
push 0x10
push ebx
push 0x403450
call sub.kernel32.dll_RtlMoveMemory
add ebx, 0x10
mov eax, dword [0x403c78]
sub eax, 0x10
push eax
push ebx
call fcn.00401a90
mov eax, dword [ebx]
add ebx, 4
mov dword [0x410684], eax
mov eax, dword [ebx]
add ebx, 4
test eax, eax
je 0x401a09
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 8
push dword [0x403c70]
call sub.kernel32.dll_HeapAlloc
mov dword [0x410690], eax
push dword [ebp - 4]
push ebx
push dword [0x410690]
call sub.kernel32.dll_RtlMoveMemory
add ebx, dword [ebp - 4]
mov eax, dword [ebx]
add ebx, 4
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 8
push dword [0x403c70]
call sub.kernel32.dll_HeapAlloc
mov dword [0x410694], eax
push dword [ebp - 4]
push ebx
push dword [0x410694]
call sub.kernel32.dll_RtlMoveMemory
add ebx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [0x410698], eax
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [0x41069c], eax
cmp dword [0x41069c], 2
jne 0x401a43
mov eax, dword [ebx]
add ebx, 4
mov dword [0x4106a8], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [0x4106a0], eax
cmp dword [0x4106a0], 1
jne 0x401a43
mov eax, dword [ebx]
add ebx, 4
mov dword [0x4106a4], eax
mov eax, dword [ebx]
mov dword [0x4106b0], eax
add ebx, 4
mov ecx, ebx
sub ecx, dword [ebp - 8]
mov eax, dword [0x403c78]
sub eax, ecx
mov dword [0x41068c], eax
push dword [0x41068c]
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [0x410688], eax
push dword [0x41068c]
push ebx
push dword [0x410688]
call sub.kernel32.dll_RtlMoveMemory
push dword [0x403c7c]
call sub.kernel32.dll_FreeResource
pop ebx
leave
ret
Function at 0x1029462c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x102c9da0]
jne 0x10294636
repz ret
jmp fcn.102948dd

Function at 0x10295df0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [0x102c9d78], 0x100e
mov dword [ebp - 0x10], 0
jmp 0x10295e68
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2]
cmp eax, 0
je 0x10295e73
jmp 0x10295e75
mov dword [0x102c9d78], 0x1405
mov dword [ebp - 4], 0
jmp 0x10295f59
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x18]
cmp eax, 0x6f
je 0x10295e98
jmp 0x10295f54
cmp dword [ebp - 0x10], 0x104
jl 0x10295e28
jmp 0x10295e84
jmp 0x10295e84
jmp 0x10295e77
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x10295e68
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x1a]
cmp eax, 0x6c
je 0x10295e51
jmp 0x10295e3b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x16]
cmp eax, 0x61
jne 0x10295f52
mov dword [0x102c9d78], 0x305
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x14]
cmp eax, 0x64
jne 0x10295f50
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
shl ecx, 1
add eax, ecx
add eax, 0xffffffee
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax]
cmp ecx, 0x64
jne 0x10295f4e
mov dword [0x102c9d78], 0x1b1e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, 0x6c
jne 0x10295f4c
mov eax, dword [0x102c9d78]
sub eax, 0x1261
mov dword [0x102c9d78], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0xe]
cmp eax, 0x6c
jne 0x10295f4a
mov eax, dword [0x102c9d78]
add eax, 0x85e
mov dword [0x102c9d78], eax
mov dword [ebp - 4], 1
jmp 0x10295f59
jmp 0x10295f4c
jmp 0x10295f4e
jmp 0x10295f50
jmp 0x10295f52
jmp 0x10295f54
jmp 0x10295e3b
mov eax, dword [ebp - 4]
add esp, 0x18
pop ebp
ret
Function at 0x10296630
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [0x102c9d74]
sub eax, 0x245b
mov dword [0x102c9d78], eax
mov dword [0x102c9d7c], 0
mov dword [0x102c9d80], 0
mov dword [0x102c9d8c], 0
mov dword [ebp - 0x20], 0
mov dword [0x102c9d78], 0x1217
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x10]
jae 0x102967e4
mov eax, 0x100
mov dword [0x102c9d78], 0x2215
mov ecx, dword [0x102c9d7c]
add ecx, 1
mov dword [ebp - 0x28], eax
mov eax, ecx
cdq
mov ecx, dword [ebp - 0x28]
idiv ecx
mov dword [0x102c9d7c], edx
mov edx, dword [0x102c9d74]
sub edx, 0x24fc
mov dword [0x102c9d74], edx
mov edx, dword [0x102c9d80]
mov esi, dword [0x102c9d7c]
mov edi, dword [ebp - 0x1c]
movzx esi, byte [edi + esi]
add edx, esi
mov eax, edx
cdq
idiv ecx
mov dword [0x102c9d80], edx
mov edx, dword [0x102c9d7c]
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + edx]
mov byte [0x102c9d84], bl
mov edx, dword [0x102c9d80]
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + edx]
mov edx, dword [0x102c9d7c]
mov esi, dword [ebp - 0x1c]
mov byte [esi + edx], bl
mov dword [0x102c9d74], 0xbb5
mov dword [0x102c9d78], 0xdc7
mov bl, byte [0x102c9d84]
mov edx, dword [0x102c9d80]
mov esi, dword [ebp - 0x1c]
mov byte [esi + edx], bl
mov edx, dword [0x102c9d74]
sub edx, 0xc1
mov dword [0x102c9d78], edx
mov edx, dword [0x102c9d7c]
mov esi, dword [ebp - 0x1c]
movzx edx, byte [esi + edx]
mov esi, dword [0x102c9d80]
mov edi, dword [ebp - 0x1c]
movzx esi, byte [edi + esi]
add edx, esi
mov dword [ebp - 0x20], edx
mov dword [0x102c9d74], 0x18cb
mov edx, dword [ebp - 0x20]
mov eax, edx
cdq
idiv ecx
mov dword [0x102c9d8c], edx
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
mov esi, dword [0x102c9d8c]
mov edi, dword [ebp - 0x1c]
movzx esi, byte [edi + esi]
xor edx, esi
mov bl, dl
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], bl
mov dword [0x102c9d78], 0x1cbf
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x24], eax
jmp 0x1029669d
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x102967f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [fcn.102967f0]
mov ecx, dword [0x102c9d78]
sub ecx, 0x1ff7
mov dword [0x102c9d78], ecx
mov dword [ebp - 8], eax
mov dword [0x102c9d74], 0x224
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x10296844
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 8]
cmp dword [ecx + eax], 0x4550
jne 0x10296842
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x10296878
jmp 0x10296844
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 8], eax
mov eax, dword [0x102c9d78]
sub eax, 0x488
mov dword [0x102c9d74], eax
mov al, 1
test al, 1
jne 0x1029681b
jmp 0x10296871
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add esp, 0xc
pop ebp
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x402b54
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.004042dc
test esi, esi
jne 0x402b8a
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.004043cc
jmp 0x402ba8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a68
mov edi, eax
test esi, esi
je 0x402ba8
cmp dword [ebx], 0
je 0x402ba8
dec esi
jmp 0x402b91
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x40333c
Capabilities:
Query or enumerate registry value

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

Function at 0x4040bc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e404c], 0
je 0x40411d
cmp word [0x4e4220], 0xd7b2
jne 0x4040e5
cmp dword [0x4e4228], 0
jbe 0x4040e5
mov eax, 0x4e421c
call dword [0x4e4238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4de070
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 0x404144
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4de034], 0
jne 0x404139
push 0
push 0x4de068
push 0x4de070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404290
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.00402820
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4e404d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404258
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40596c
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
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405b9c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4059ef
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405b9c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4059ef
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405bb8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405a78
xor eax, eax
push ebp
push 0x405a71
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004057b4
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 0x405a56
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405bd8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405a56
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a78
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
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 0x405b92
cmp byte [ebp - 0xd], 0
jne 0x405abf
cmp byte [ebp - 0x12], 0
je 0x405b92
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405ad8
dec ebx
cmp byte [ebx], 0x2e
je 0x405ae7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405ad7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405b92
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405b24
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405b92
cmp byte [ebp - 0xd], 0
je 0x405b92
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405b92
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
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