joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ff95
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x44003f
lea eax, [ebp + 0x28]
mov dword [ebp - 8], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x440008
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x43fff2
push 0x2176
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x440006
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x440006
push 0
call fcn.00440bbd
pop ecx
jmp 0x44003d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push 0x37fb
push 0
push dword [ebp - 0x30]
call fcn.0042a62b
add esp, 0x1c
jmp 0x440080
lea eax, [ebp + 0x20]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax]
push eax
push dword [ebp - 0x38]
push 1
push 0x5d7f
push 0x22bd
push 0x3453
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.0043389a
add esp, 0x20
mov esp, ebp
pop ebp
ret
Function at 0x4403d4
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
movzx eax, byte [ebp + 0x28]
test eax, eax
je 0x440413
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 4]
push 0x7d65
push 1
push 0x7681
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
push eax
push 1
call fcn.004404b1
add esp, 0x18
jmp 0x4404ad
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x440468
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
push 1
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.0043a8e8
add esp, 0x10
jmp 0x4404ad
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x4404a5
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
test eax, eax
je 0x4404a3
push 0xa83
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x4404ad
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esp, ebp
pop ebp
ret

Function at 0x440bd5
Capabilities:
Get file system object information
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 8]
test eax, eax
je 0x440c03
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
push eax
push 1
push 0x38fb
push 1
call fcn.00440c81
add esp, 0x10
jmp 0x440c7d
lea eax, [ebp + 0x14]
mov dword [ebp - 8], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x440c54
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x440c39
push 0
call dword [sym.imp.KERNEL32.dll_InitializeSListHead]
jmp 0x440c52
push 0xd16
push 0x1637
push 0
push 0x462
push 0
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
jmp 0x440c7d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x440c77
push 0xaa1
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x440c7d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esp, ebp
pop ebp
ret
Function at 0x46b4c2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 0xc], 0x2b99
mov dword [ebp - 0x18], 0xfffffffe
mov dword [ebp - 0x34], 0xfd47030f
mov dword [ebp - 0x14], 0
jmp 0x46b4ed
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jge 0x46b500
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 8], 0x1713b910
jmp 0x46b4e6
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 8], 0xffffffe7
jmp 0x46b525
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 8]
dec eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 8], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 8], 0xffffffe6
je 0x46b667
mov dword [ebp - 0x10], 0xfffffff8
mov dword [ebp - 0x20], 0xde6bc044
mov dword [ebp - 0x3c], 0x71639956
mov dword [ebp - 0x4c], 0xffffffff
push 4
pop eax
imul eax, eax, 0
push 4
pop ecx
imul ecx, ecx, 0
mov ecx, dword [ebp + ecx - 8]
cmp dword [ebp + eax - 8], ecx
jg 0x46b571
mov dword [ebp - 0x48], 1
jmp 0x46b575
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
lea eax, [eax + ecx + 6]
sub eax, dword [ebp - 0xc]
jns 0x46b593
mov dword [ebp - 0x1c], 1
jmp 0x46b597
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add eax, 0x40ca228b
cmp dword [ebp - 0x20], eax
jle 0x46b5b9
mov dword [ebp - 0x24], 1
jmp 0x46b5bd
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x24], eax
jle 0x46b5ce
mov dword [ebp - 0x28], 1
jmp 0x46b5d2
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x10]
jge 0x46b5e6
mov dword [ebp - 0x2c], 1
jmp 0x46b5ea
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x2c], eax
jg 0x46b5fb
mov dword [ebp - 0x30], 1
jmp 0x46b5ff
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 3
jbe 0x46b614
mov dword [ebp - 0x38], 1
jmp 0x46b618
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x46b62d
mov eax, 0xed69
test eax, eax
jne 0x46b634
push 0xfffffffffffffff8
pop eax
test eax, eax
je 0x46b643
cmp dword [ebp - 0x18], 0
je 0x46b643
mov dword [ebp - 0x40], 1
jmp 0x46b647
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x40]
je 0x46b658
mov dword [ebp - 0x44], 1
jmp 0x46b65c
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
jmp 0x46b510
call section..yZhm
mov dword [ebp - 0x54], 0xffffffff
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x46b685
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov byte [ebp - 2], 0
movzx eax, byte [ebp - 2]
test eax, eax
je 0x46b6a1
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x47087d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x47e98f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x491484]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0046e724
mov dword [ebp - 0x14], eax
cmp dword [0xa8ad10], esi
jne 0x47ea82
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x47ea0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x47eb62
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x47eb62
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47eb62
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0xa8ad10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0xa8ad14], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0xa8ad18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xa8ad20], eax
test eax, eax
je 0x47ea7f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xa8ad1c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x47eaa7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x47ea9a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x47eabc
push 4
pop eax
jmp 0x47eb64
cmp dword [ebp - 0x14], esi
je 0x47eabc
push dword [0xa8ad10]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x47eaa1
mov eax, dword [0xa8ad1c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x47eb1a
cmp dword [0xa8ad20], edi
je 0x47eb1a
push eax
call ebx
push dword [0xa8ad20]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x47eb1a
test eax, eax
je 0x47eb1a
call ecx
test eax, eax
je 0x47eb0f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x47eb0f
test byte [ebp - 8], 1
jne 0x47eb1a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x47eb4a
mov eax, dword [0xa8ad14]
cmp eax, edi
je 0x47eb47
push eax
call ebx
test eax, eax
je 0x47eb47
call eax
mov esi, eax
test esi, esi
je 0x47eb47
mov eax, dword [0xa8ad18]
cmp eax, edi
je 0x47eb47
push eax
call ebx
test eax, eax
je 0x47eb47
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0xa8ad10]
call ebx
test eax, eax
je 0x47eb62
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x47eb64
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046dbcb
mov esp, ebp
pop ebp
ret
Function at 0x6400b120
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2f34
call fcn.64017df0
mov eax, dword [0x6402c09c]
xor eax, esp
mov dword [esp + 0x2f30], eax
push ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push edi
push 0x64027f5c
push 0x12
push 0x64027f80
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov byte [esp + 0x37], 0
call fcn.64006b80
add esp, 0xc
push eax
call fcn.6400df80
call eax
mov esi, eax
cmp esi, 0xffffffff
jne 0x6400b19b
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2f30]
xor ecx, esp
call fcn.6401257c
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x2710
lea edx, [esp + 0x82c]
push edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call fcn.64012c00
add esp, 0xc
push edi
lea eax, [esp + 0x18]
push eax
push 0x2710
lea ecx, [esp + 0x834]
push ecx
push 0xc
lea edx, [esp + 0x38]
push edx
push 0x2d1400
push esi
call fcn.6400e2b0
call eax
test eax, eax
je 0x6400b254
mov eax, dword [esp + 0x838]
push edi
lea edi, [esp + 0x444]
lea ecx, [esp + 0x82c]
call fcn.6400afb0
mov eax, dword [esp + 0x844]
add esp, 4
push 1
lea edi, [esp + 0x5c]
lea ecx, [esp + 0x82c]
call fcn.6400afb0
mov ecx, dword [esp + 0x1c]
add esp, 4
mov eax, edi
push eax
call fcn.64002810
lea ecx, [esp + 0x440]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.64002810
mov byte [esp + 0x13], 1
xor edi, edi
xor eax, eax
push edi
lea edx, [esp + 0x24]
push edx
push 0x28
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x3c]
push eax
push edi
push edi
push 0x700a0
push esi
mov dword [esp + 0x50], edi
mov dword [ebx], edi
mov dword [ebx + 4], edi
call fcn.6400e2b0
call eax
test eax, eax
je 0x6400b2b0
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [ebx], ecx
mov dword [ebx + 4], edx
push esi
call dword [0x64024040]
mov ecx, dword [esp + 0x2f3c]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.6401257c
mov esp, ebp
pop ebp
ret
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x5fe163c8
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, str._gx
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x676f2dc8
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4025d4
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402611
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402631
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004034b0
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4027f8
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.00403344
test esi, esi
jne 0x40282e
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.00403434
jmp 0x40284c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004026ac
mov edi, eax
test esi, esi
je 0x40284c
cmp dword [ebx], 0
je 0x40284c
dec esi
jmp 0x402835
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x402a6c
Capabilities:
Query or enumerate registry value

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

Function at 0x40314c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x408034], 0
je 0x4031ad
cmp word [0x408208], 0xd7b2
jne 0x403175
cmp dword [0x408210], 0
jbe 0x403175
mov eax, 0x408204
call dword [0x408220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x407058
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 0x4031d4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40701c], 0
jne 0x4031c9
push 0
push 0x407050
push 0x407058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x403300
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.00402478
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x408035], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4032c8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x403940
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4039a6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004034b0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402960
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403990
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4039ad
lea eax, [ebp - 0x10]
call fcn.00403344
ret
Function at 0x404b94
Capabilities:
Connect network resource
Enumerate network shares
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x404d9a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push ebx
push 0
push 0
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x404d7c
xor edx, edx
push ebp
push 0x404d75
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 8], 0x760
mov eax, dword [ebp - 8]
call fcn.00402478
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x404d57
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0xea
jne 0x404c35
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.004024b8
jmp 0x404bf9
test eax, eax
je 0x404c48
call fcn.00402e20
call fcn.00402e20
jmp 0x404d7c
mov eax, dword [ebp - 0x14]
dec eax
test eax, eax
jl 0x404bf9
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
shl eax, 2
mov edx, dword [ebp - 0x10]
lea ebx, [edx + eax*8]
mov edx, dword [ebx + 0xc]
and edx, 2
cmp edx, 2
jne 0x404c7d
mov edx, dword [ebp - 0x10]
lea eax, [edx + eax*8]
call fcn.00404b94
cmp dword [ebx + 8], 3
jne 0x404d2d
xor eax, eax
push ebp
push 0x404d26
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
mov edx, dword [ebx + 0x14]
call fcn.00403474
push 0
push 0
mov eax, dword [ebp - 0x1c]
call fcn.004036c8
push eax
call sub.mpr.dll_WNetAddConnectionA
lea eax, [ebp - 0x24]
mov ecx, 0x404db0
mov edx, dword [ebp - 0x1c]
call fcn.00403514
mov eax, dword [ebp - 0x24]
call fcn.004036c8
push eax
call sub.kernel32.dll_SetCurrentDirectoryA_1
call fcn.00404748
cmp word [0x4107e0], 0x7d9
jne 0x404cf4
cmp word [0x4107de], 0xc
jne 0x404cff
cmp word [0x4107dc], 0x1c
jbe 0x404cff
xor edx, edx
mov al, 1
call fcn.00404778
jmp 0x404d08
xor edx, edx
xor eax, eax
call fcn.00404778
push 0xffffffffffffffff
mov eax, dword [ebp - 0x1c]
call fcn.004036c8
push eax
call sub.mpr.dll_WNetCancelConnectionA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404d2d
ret
inc dword [ebp - 0x18]
dec dword [ebp - 0x20]
jne 0x404c5b
jmp 0x404bf9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404da1
lea eax, [ebp - 0x24]
call fcn.00403344
lea eax, [ebp - 0x1c]
call fcn.00403344
ret
Function at 0x404db4
Capabilities:
Get disk information
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 3], cl
mov byte [ebp - 2], dl
mov byte [ebp - 1], al
mov edi, 0x4107d8
xor eax, eax
push ebp
push 0x404eca
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 0x5a
lea eax, [ebp - 8]
mov ebx, esi
mov edx, ebx
call fcn.00403464
mov edx, dword [ebp - 8]
mov eax, 0x4107bc
mov ecx, 0x404ee0
call fcn.00403514
mov byte [0x4107e4], bl
mov eax, dword [0x4107bc]
call fcn.004036c8
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [edi], eax
cmp dword [edi], 2
sete al
and al, byte [ebp - 1]
jne 0x404e3a
cmp dword [edi], 4
sete al
and al, byte [ebp - 2]
jne 0x404e3a
cmp dword [edi], 3
sete al
and al, byte [ebp - 3]
je 0x404eaa
mov al, byte [0x4107e4]
call fcn.0040404c
test al, al
je 0x404eaa
cmp dword [edi], 2
jne 0x404e51
mov bl, 1
jmp 0x404e53
xor ebx, ebx
mov eax, dword [0x4107bc]
call fcn.004036c8
push eax
call sub.kernel32.dll_SetCurrentDirectoryA_1
call fcn.00404748
cmp word [0x4107e0], 0x7d9
jne 0x404e87
cmp word [0x4107de], 0xc
jne 0x404e92
cmp word [0x4107dc], 0x1c
jbe 0x404e92
mov edx, ebx
mov al, 1
call fcn.00404778
jmp 0x404e9b
mov edx, ebx
xor eax, eax
call fcn.00404778
cmp dword [edi], 2
jne 0x404eaa
push 0x927c0
call sub.kernel32.dll_Sleep
dec esi
cmp esi, 0x42
jne 0x404de3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404ed1
lea eax, [ebp - 8]
call fcn.00403344
ret