joyce8/EMBER2024-capa huggingface dataset:
Function at 0x63a11c
Capabilities:
Check os version
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov edx, dword [0x6766f4]
cmp dword [edx], 2
je 0x63a138
mov byte [ebp - 1], 1
jmp 0x63a306
mov byte [ebp - 1], 0
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0x20
push 2
push 0x675558
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
je 0x63a306
xor eax, eax
push ebp
push 0x63a2ff
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 5
jb 0x63a19a
push 0x63a310
push 0x63a33c
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00411f08
mov ebx, eax
test ebx, ebx
je 0x63a1c1
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call ebx
test eax, eax
je 0x63a2e8
cmp dword [ebp - 0xc], 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
jmp 0x63a2e8
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
test eax, eax
jne 0x63a212
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x3f0
je 0x63a1f3
call fcn.00408d5c
jmp 0x63a306
lea eax, [ebp - 0x10]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x63a212
call fcn.00408d5c
jmp 0x63a306
xor eax, eax
push ebp
push 0x63a2e1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x63a255
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x7a
je 0x63a255
call fcn.00408d5c
call fcn.00408d5c
jmp 0x63a306
mov eax, dword [ebp - 0x14]
call fcn.004067ec
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x63a287
call fcn.00408d5c
call fcn.00408d5c
jmp 0x63a306
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
dec esi
test esi, esi
jl 0x63a2c2
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x63a2be
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 8]
and eax, 0x14
cmp eax, 4
jne 0x63a2be
mov byte [ebp - 1], 1
jmp 0x63a2c2
inc ebx
dec esi
jne 0x63a294
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63a2e8
mov eax, dword [ebp - 0x18]
call fcn.00406808
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63a306
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_FreeSid
ret
movzx eax, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x63dcdc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x63dd4d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x675560]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x63dd37
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0063dcc4
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x63d4b8]
call fcn.0063e4b8
mov dword [0x6755c4], eax
mov eax, dword [ebp - 4]
call fcn.0063dc70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63dd54
lea eax, [ebp - 8]
call fcn.0040cca4
ret

Function at 0x63dd7c
Capabilities:
Get file system object information

Disassembly:
push esi
add esp, 0xfffffd4c
mov esi, 0x4008
test cl, cl
je 0x63dd8f
or esi, 2
test dl, dl
je 0x63dd98
or esi, 0
jmp 0x63dd9b
or esi, 1
push esi
push 0x2b4
lea edx, [esp + 8]
push edx
push 0
push eax
call sub.shell32.dll_SHGetFileInfoW
mov eax, dword [esp + 4]
add esp, 0x2b4
pop esi
ret

Function at 0x640780
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040956c
push esp
push esi
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x6407ba
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
mov edx, ebx
lea eax, [esp + 4]
call fcn.004250d4
add esp, 0x210
pop esi
pop ebx
ret
Function at 0x643e9c
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffe8
push 0
push 2
call sub.user32.dll_ExitWindowsEx
test eax, eax
jne 0x643f06
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x643f06
lea eax, [esp + 0xc]
push eax
push 0x643f0c
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
lea eax, [esp + 4]
push eax
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
test eax, eax
je 0x643f06
push 0
push 2
call sub.user32.dll_ExitWindowsEx
add esp, 0x18
ret

Function at 0x6490ac
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00409650
mov eax, dword [ebp - 8]
call fcn.00409650
xor eax, eax
push ebp
push 0x6491e6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x3c
call fcn.0040720c
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x40], esi
test bl, bl
je 0x649108
mov dword [ebp - 0x44], 0x540
jmp 0x64910f
mov dword [ebp - 0x44], 0x500
cmp byte [ebp + 8], 0
je 0x64911d
mov eax, 0x6491f8
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
call fcn.0040a13c
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
call fcn.0040a13c
mov dword [ebp - 0x34], eax
movzx eax, word [ebp + 0x10]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x48]
push eax
call sub.shell32.dll_ShellExecuteExW
test eax, eax
je 0x6491c1
test bl, bl
je 0x649194
push 0x64
call sub.kernel32.dll_Sleep_2
mov eax, dword [0x67644c]
mov eax, dword [eax]
call fcn.00615e70
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [ebp - 0xc], 0x103
jne 0x649189
mov eax, dword [0x67644c]
mov eax, dword [eax]
cmp byte [eax + 0xbc], 0
je 0x649150
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x6491a1
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov bl, 1
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4c]
call fcn.004235bc
mov edx, dword [ebp - 0x4c]
mov eax, 0x67c900
call fcn.0040994c
jmp 0x6491c3
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6491ed
lea eax, [ebp - 0x4c]
call fcn.0040956c
lea eax, [ebp - 8]
mov edx, 2
call fcn.004095cc
ret
Function at 0x64a244
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x64a32f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, ebx
call fcn.004241d0
test al, al
jne 0x64a2c6
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, 0x64a348
call fcn.0040a390
mov eax, dword [ebp - 4]
call fcn.0064324c
cmp byte [0x67c8e2], 0
jne 0x64a2bd
push 0x10
push 0x64a384
lea ecx, [ebp - 8]
mov edx, ebx
mov eax, 0x64a39c
call fcn.006432a4
mov eax, dword [ebp - 8]
call fcn.0040a13c
push eax
mov eax, dword [0x67644c]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
push eax
call sub.user32.dll_MessageBoxW
mov byte [0x67c8e8], 1
jmp 0x64a314
push 1
push 0
lea eax, [ebp - 0xc]
mov ecx, ebx
mov edx, 0x64a3d4
call fcn.0040a390
mov eax, dword [ebp - 0xc]
call fcn.0040a13c
push eax
push 0x64a410
push 0x64a42c
mov eax, dword [0x67644c]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
push eax
call sub.shell32.dll_ShellExecuteW
cmp byte [0x67c8e1], 0
je 0x64a314
mov edx, ebx
mov eax, 0x64a444
call fcn.00643f34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64a336
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004095cc
ret
Function at 0x6573e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409650
xor eax, eax
push ebp
push 0x65747e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.0040956c
mov eax, dword [ebp - 4]
test eax, eax
je 0x657423
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
test ebx, ebx
jle 0x657450
mov esi, 1
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
movzx edx, word [edx + esi*2 - 2]
xor dx, di
call fcn.0040a164
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
call fcn.0040a338
inc esi
dec ebx
jne 0x65742e
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.0040994c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x657485
lea eax, [ebp - 0x10]
call fcn.0040956c
lea eax, [ebp - 8]
mov edx, 2
call fcn.004095cc
ret
Function at 0x658d90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x658d99
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
mov byte [ebp - 0xe], cl
mov byte [ebp - 0xd], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409650
xor eax, eax
push ebp
push 0x658faf
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00409994
lea eax, [ebp - 0xc]
call fcn.0040956c
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x658fcc
call fcn.0040a710
test eax, eax
jle 0x658e68
lea eax, [ebp - 8]
push eax
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x658fe0
call fcn.0040a710
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040a500
movzx eax, byte [0x658fe8]
push eax
lea eax, [ebp - 0x14]
push eax
xor ecx, ecx
mov edx, 0x658ff8
mov eax, dword [ebp - 8]
call fcn.0042b7e4
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 8]
call fcn.00409994
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x659008
call fcn.0040a710
mov ecx, eax
lea eax, [ebp - 4]
mov edx, 1
call fcn.0040a548
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00409994
cmp byte [ebp - 0xd], 0
je 0x658e96
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.004241d0
test al, al
je 0x658e96
push 1
push 1
push 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
xor eax, eax
call fcn.006490ac
mov ebx, eax
jmp 0x658f77
cmp byte [ebp - 0xe], 0
je 0x658ef7
push 0x30
lea edx, [ebp - 0x18]
mov eax, dword [0x67c8a4]
call fcn.005418f8
mov eax, dword [ebp - 0x18]
call fcn.0040a13c
push eax
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x65901c
mov edx, 0x65902c
mov eax, dword [0x67c8d8]
mov esi, dword [eax]
call dword [esi + 4]
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
xor edx, edx
call fcn.006432a4
mov eax, dword [ebp - 0x1c]
call fcn.0040a13c
push eax
mov eax, dword [0x67644c]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
push eax
call sub.user32.dll_MessageBoxW
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, 0x65904c
call fcn.0040a710
test eax, eax
jne 0x658f5c
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.004241d0
test al, al
je 0x658f5c
push 1
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.004249e8
mov eax, dword [ebp - 0x24]
call fcn.0040a13c
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040a13c
push eax
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.00424b30
mov eax, dword [ebp - 0x28]
call fcn.0040a13c
push eax
push 0x659054
push 0
call sub.shell32.dll_ShellExecuteW
jmp 0x658f77
push 1
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040a13c
push eax
push 0x659054
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x658fb6
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.004095cc
lea eax, [ebp - 0x18]
call fcn.0040956c
lea eax, [ebp - 0x14]
call fcn.0040956c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004095cc
ret
Function at 0x414de4
Capabilities:
Encode data using xor

Disassembly:
xor dword [esi], edi
add esi, 4
add ecx, edx
mov edx, 0x71b06aa2
cmp esi, ebx
jne fcn.00414de4
sub eax, ecx
ret

Function at 0x40225f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push edi
mov byte [ebp - 0x104], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 4], 0
mov eax, 0x4021cb
sub eax, 0x401cf5
mov dword [ebp - 4], eax
push 8
push 0x408008
lea ecx, [ebp - 0x104]
push ecx
call fcn.00406350
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
push 0x401cf5
lea eax, [ebp - 0x104]
push eax
call fcn.00406464
add esp, 0xc
push 0x100
push 0
lea ecx, [ebp - 0x104]
push ecx
call fcn.00406890
add esp, 0xc
call fcn.00401d3d
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x406464
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x40648a
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 0x10]
jge 0x40654c
mov edx, dword [ebp - 0xc]
add edx, 1
and edx, 0x800000ff
jns 0x4064ac
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax]
mov edx, dword [ebp - 0x10]
add edx, ecx
and edx, 0x800000ff
jns 0x4064ce
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov byte [ebp - 4], cl
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
mov al, byte [ebp - 4]
mov byte [edx], al
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x40651d
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 4], al
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp - 4]
and eax, 0xff
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
mov byte [ecx], dl
jmp 0x406481
mov esp, ebp
pop ebp
ret
Function at 0x10005e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x1001d994], 0
jne 0x1000610a
push esi
push str.0:db0:lk0:hs1:ld0:ll0:hb0:pj8_.1_.4202:zb0.1:bb
mov byte [0x1001d994], 1
call fcn.1000765f
push 0x12a0
push 0
push 0x1001c6e0
call fcn.1000c8f0
push 0
push 0x1001c6fe
push 0x100175cc
call fcn.10005d60
push 0
push 0x1001c8fc
push 0x100175d4
call fcn.10005d60
push 0x1001c938
push 0
push 0x100175dc
call fcn.10005d60
push 0
push 0x1001c93c
push 0x100175e4
call fcn.10005d60
add esp, 0x40
push 0
push 0x1001cb3a
push 0x100175ec
call fcn.10005d60
push 0x1001cb78
push 0
push 0x100175f4
call fcn.10005d60
push 0
push 0x1001cb7c
push 0x100175fc
call fcn.10005d60
push 0
push 0x1001cd7a
push 0x10017604
call fcn.10005d60
push 0x1001cdb8
push 0
push 0x1001760c
call fcn.10005d60
push 0
push 0x1001cdbc
push 0x10017614
call fcn.10005d60
add esp, 0x48
push 0
push 0x1001cdf8
push 0x1001761c
call fcn.10005d60
push 0
push 0x1001ce34
push 0x10017624
call fcn.10005d60
push 0
push 0x1001ce98
push 0x1001762c
call fcn.10005d60
push 0
push 0x1001cefc
push 0x10017634
call fcn.10005d60
push 0x1001cf60
push 0
push 0x1001763c
call fcn.10005d60
push 0x1001cf64
push 0
push 0x10017644
call fcn.10005d60
add esp, 0x48
push 0x1001cf68
push 0
push 0x1001764c
call fcn.10005d60
push 0x1001cf6c
push 0
push 0x10017654
call fcn.10005d60
push 0x1001cf70
push 0
push 0x1001765c
call fcn.10005d60
push 0x1001cf74
push 0
push 0x10017664
call fcn.10005d60
push 0x1001cf78
push 0
push 0x1001766c
call fcn.10005d60
push 0x1001cf7c
push 0
push 0x10017674
call fcn.10005d60
add esp, 0x48
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push str.Console
push connect
mov dword [ebp - 8], 3
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10006032
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
push 0
lea edx, [ebp - 8]
push edx
push 0
push str.IpDate
push eax
call esi
cmp dword [ebp - 4], 0xa
jbe 0x10006109
push 0x7d0
push 0
push str.0:db0:lk0:hs1:ld0:ll0:hb0:pj8_.1_.4202:zb0.1:bb
call fcn.1000c8f0
mov eax, dword [ebp - 0xc]
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push str.0:db0:lk0:hs1:ld0:ll0:hb0:pj8_.1_.4202:zb0.1:bb
lea edx, [ebp - 8]
push edx
push 0
push str.IpDate
push eax
call esi
push 0
push 0x1001c6fe
push 0x100175cc
call fcn.10005d60
push 0
push 0x1001c8fc
push 0x100175d4
call fcn.10005d60
push 0x1001c938
push 0
push 0x100175dc
call fcn.10005d60
push 0
push 0x1001c93c
push 0x100175e4
call fcn.10005d60
push 0
push 0x1001cb3a
push 0x100175ec
call fcn.10005d60
push 0x1001cb78
push 0
push 0x100175f4
call fcn.10005d60
add esp, 0x48
push 0
push 0x1001cb7c
push 0x100175fc
call fcn.10005d60
push 0
push 0x1001cd7a
push 0x10017604
call fcn.10005d60
push 0x1001cdb8
push 0
push 0x1001760c
call fcn.10005d60
add esp, 0x24
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10006380
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
dec eax
jne 0x100063d2
cmp dword [0x1001d980], eax
jne 0x100063d2
push str.0:db0:lk0:hs1:ld0:ll0:hb0:pj8_.1_.4202:zb0.1:bb
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x1e
jle 0x100063d2
call fcn.10005e30
cmp dword [0x1001cf70], 0
je 0x100063d2
push 0
push 0
push 0
push 0x10006110
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [0x1001d980], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
pop ebp
ret 0xc

Function at 0x10006420
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x1001d980], 0
jne 0x10006480
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push esi
push str.0:db0:lk0:hs1:ld0:ll0:hb0:pj8_.1_.4202:zb0.1:bb
call fcn.1000c970
add esp, 0xc
call fcn.10005e30
push 0
push 0
push 0
push 0x10006110
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [0x1001d980], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x1001d980]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret

Function at 0x10006490
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x10006110
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [0x1001d980], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
ret

Function at 0x100068f5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100191b0]
jne 0x100068ff
repz ret
jmp fcn.10007962
Function at 0x402938
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 0x402967
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403e28
jmp 0x402985
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004028c0
mov edi, eax
test ebx, ebx
je 0x402985
cmp dword [esi], 0
je 0x402985
dec ebx
jmp 0x40296e
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x402e5c
Capabilities:
Query or enumerate registry value

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

Function at 0x403cf4
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.0040273c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x5c2049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403cbc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405774
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 0xf003f
push 0
push 0x405930
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4057d5
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x40594c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405847
xor eax, eax
push ebp
push 0x405840
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]
call fcn.004055cc
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405829
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40596c
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 0x405847
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_lstrcpy
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 0x405928
cmp byte [ebp - 0xd], 0
jne 0x405889
cmp byte [ebp - 0x12], 0
je 0x405928
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlen
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4058a2
dec ebx
cmp byte [ebx], 0x2e
je 0x4058b1
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4058a1
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405928
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4058de
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpy
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405928
cmp byte [ebp - 0xd], 0
je 0x405928
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpy
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405928
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpy
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 0x408c48
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404184
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret