joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405816
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00415a10
push ebx
push esi
push edi
mov ebx, ecx
mov edx, 0x426da0
push 0x32
lea ecx, [ebp - 0x18]
call fcn.004034d9
cmp dword [eax + 0x14], 8
jb 0x40583f
mov eax, dword [eax]
sub esp, 0x18
mov esi, ebx
push 6
pop ecx
mov edi, esp
push eax
lea eax, [ebp - 0x1018]
push 0x7ff
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004034bd
add esp, 0x24
lea ecx, [ebp - 0x18]
xor esi, esi
xor edi, edi
inc edi
push esi
push edi
call fcn.00401720
xor eax, eax
mov dword [ebp - 4], 7
mov word [ebp - 0x18], ax
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x1018]
mov dword [ebp - 8], esi
push eax
call fcn.00401601
lea ecx, [ebp - 0x18]
call fcn.0040576e
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.00401720
push 9
mov edx, 0x46a580
lea ecx, [ebp - 0x18]
call fcn.004034d9
cmp dword [eax + 0x14], 8
jb 0x4058b7
mov eax, dword [eax]
cmp dword [ebx + 0x14], 8
jb 0x4058bf
mov ebx, dword [ebx]
push 0x40040
push eax
push ebx
push esi
call dword [0x47e3d0]
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.00401720
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x405ff3
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x406039
sub ebx, 0x41fc90
mov ax, word [ebx + edi*2 + 0x41fc90]
mov ecx, esi
xor ax, word [edi*2 + 0x41fc90]
movzx eax, ax
push eax
call fcn.00401fd0
inc edi
cmp edi, dword [esp + 0x10]
jl 0x406017
pop edi
mov eax, esi
pop esi
pop ebx
ret 4
Function at 0x406d19
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x4a8
push ebx
push ebp
push esi
mov esi, ecx
mov edx, 0x4471ac
push 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], esi
call fcn.00405ff3
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x4c0]
push ecx
push ecx
mov ecx, eax
call fcn.00405ba4
push eax
lea ecx, [esp + 0x2c]
call fcn.00401f8b
push 0
push 1
lea ecx, [esp + 0x14]
call fcn.00401720
cmp dword [esp + 0x3c], 8
lea ecx, [esp + 0x58]
lea eax, [esp + 0x28]
cmovae eax, dword [esp + 0x28]
push ecx
push eax
call dword [0x47e374]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x406d8b
xor bl, bl
jmp 0x406f42
test byte [esp + 0x58], 0x10
je 0x406e26
lea eax, [esp + 0x84]
mov edx, 0x440604
push eax
push 1
lea ecx, [esp + 0x14]
call fcn.00405ff3
mov ecx, eax
call fcn.00407051
test eax, eax
lea ecx, [esp + 0xc]
push 0
push 1
setne bl
call fcn.00401720
test bl, bl
je 0x406ee5
lea eax, [esp + 0x84]
mov edx, 0x43afac
push eax
push 2
lea ecx, [esp + 0x14]
call fcn.00405ff3
mov ecx, eax
call fcn.00407051
test eax, eax
lea ecx, [esp + 0xc]
push 0
push 1
setne bl
call fcn.00401720
test bl, bl
je 0x406ee5
sub esp, 0x18
lea eax, [esp + 0x9c]
mov ecx, esp
push eax
call fcn.004014ac
mov ecx, esi
call fcn.00406d19
jmp 0x406ee5
cmp dword [esp + 0x4cc], 8
lea esi, [esp + 0x4b8]
push 5
cmovae esi, dword [esp + 0x4bc]
lea ecx, [esp + 0x44]
mov edx, 0x4426bc
call fcn.00405ff3
cmp dword [eax + 0x14], 8
jb 0x406e55
mov eax, dword [eax]
lea ecx, [esp + 0x84]
push ecx
push esi
push eax
lea eax, [esp + 0x2b4]
push 0x103
push eax
call fcn.004034bd
add esp, 0x14
lea ecx, [esp + 0x40]
push 0
push 1
call fcn.00401720
and dword [esp + 0x1c], 0
lea ecx, [esp + 0xc]
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
lea eax, [esp + 0x2a8]
push eax
call fcn.00401601
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [0x47e358]
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
push 4
cmovae eax, dword [esp + 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0
push 1
lea ecx, [esp + 0x14]
call fcn.00401720
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x58]
push eax
push ebp
call dword [0x47e378]
test eax, eax
jne 0x406d8b
push ebp
call dword [0x47e34c]
cmp dword [esp + 0x4cc], 8
lea eax, [esp + 0x4b8]
cmovae eax, dword [esp + 0x4b8]
push eax
call dword [0x47e388]
cmp dword [esp + 0x4cc], 8
lea eax, [esp + 0x4b8]
push 4
cmovae eax, dword [esp + 0x4bc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov bl, 1
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.00401720
push 0
push 1
lea ecx, [esp + 0x4c0]
call fcn.00401720
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x4a8
ret 0x18
Function at 0x408a26
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test edx, edx
jne 0x408a31
xor eax, eax
jmp 0x408b09
push ebx
push esi
mov esi, dword [esp + 0xc]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x408aea
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x420df0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x420df0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x420df0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x420df0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x420df0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x420df0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x420df0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x420df0]
dec edi
jne 0x408a4d
pop edi
test esi, esi
je 0x408b03
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x420df0]
inc edx
dec esi
jne 0x408aee
not ecx
pop esi
mov eax, ecx
pop ebx
ret 4

Function at 0x408b0c
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov edx, 0xff
mov esi, dword [edi]
xor eax, esi
and eax, edx
shr esi, 8
mov eax, dword [eax*4 + 0x420df0]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edi + 8]
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, edx
xor eax, dword [ecx*4 + 0x420df0]
mov dword [edi + 8], eax
pop edi
pop esi
ret
Function at 0x414b14
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x423be4]
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.00411174
mov dword [ebp - 0x14], eax
cmp dword [0x47e2d8], esi
jne 0x414c07
push 0x800
push esi
push 0x41deb4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x414b94
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x414ce7
push esi
push esi
push 0x41deb4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x414ce7
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x414ce7
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x47e2d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x47e2dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x47e2e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47e2e8], eax
test eax, eax
je 0x414c04
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47e2e4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x414c2c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x414c1f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x414c41
push 4
pop eax
jmp 0x414ce9
cmp dword [ebp - 0x14], esi
je 0x414c41
push dword [0x47e2d8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x414c26
mov eax, dword [0x47e2e4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x414c9f
cmp dword [0x47e2e8], edi
je 0x414c9f
push eax
call ebx
push dword [0x47e2e8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x414c9f
test eax, eax
je 0x414c9f
call ecx
test eax, eax
je 0x414c94
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 0x414c94
test byte [ebp - 8], 1
jne 0x414c9f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x414ccf
mov eax, dword [0x47e2dc]
cmp eax, edi
je 0x414ccc
push eax
call ebx
test eax, eax
je 0x414ccc
call eax
mov esi, eax
test esi, esi
je 0x414ccc
mov eax, dword [0x47e2e0]
cmp eax, edi
je 0x414ccc
push eax
call ebx
test eax, eax
je 0x414ccc
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x47e2d8]
call ebx
test eax, eax
je 0x414ce7
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x414ce9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411ee7
mov esp, ebp
pop ebp
ret
Function at 0x40262c
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 0x402669
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 0x402689
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004038c4
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402bbc
Capabilities:
Query or enumerate registry value

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

Function at 0x403500
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x409044], 0
je 0x403561
cmp word [0x409218], 0xd7b2
jne 0x403529
cmp dword [0x409220], 0
jbe 0x403529
mov eax, 0x409214
call dword [0x409230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40805c
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 0x403588
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x408020], 0
jne 0x40357d
push 0
push 0x408054
push 0x40805c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x403e90
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 0x4040c0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403f13
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4040c0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403f13
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4040dc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403f9c
xor eax, eax
push ebp
push 0x403f95
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00403cd8
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 0x403f7a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4040fc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x403f7a
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 0x403f9c
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 0x4040b6
cmp byte [ebp - 0xd], 0
jne 0x403fe3
cmp byte [ebp - 0x12], 0
je 0x4040b6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x403ffc
dec ebx
cmp byte [ebx], 0x2e
je 0x40400b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x403ffb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4040b6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404048
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 0x4040b6
cmp byte [ebp - 0xd], 0
je 0x4040b6
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 0x4040b6
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
Function at 0x403f9c
Capabilities:
Get geographical location

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 0x4040c0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403f13
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4040c0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403f13
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4040dc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403f9c
xor eax, eax
push ebp
push 0x403f95
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00403cd8
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 0x403f7a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4040fc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x403f7a
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 0x403f9c
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 0x4040b6
cmp byte [ebp - 0xd], 0
jne 0x403fe3
cmp byte [ebp - 0x12], 0
je 0x4040b6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x403ffc
dec ebx
cmp byte [ebx], 0x2e
je 0x40400b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x403ffb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4040b6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404048
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 0x4040b6
cmp byte [ebp - 0xd], 0
je 0x4040b6
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 0x4040b6
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
Function at 0x40424c
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 0x4042b2
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.004038c4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004027b0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40429c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4042b9
lea eax, [ebp - 0x10]
call fcn.0040367c
ret

Function at 0x40605c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406095
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040376c
jmp 0x40609e
mov eax, ebx
mov edx, esi
call fcn.004036d0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4060a8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4060c9
mov al, byte [esp]
jmp 0x4060cb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406750
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x4065c8
mov eax, dword [0x4083a4]
cmp byte [eax], 0
je 0x4067cc
mov eax, dword [0x408300]
call fcn.0040274c
call fcn.004025fc
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00405550
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x406814
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x406802
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4082e0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x409660]
call fcn.00403c9c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x4071c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x407224
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004038c4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405418
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40722b
lea eax, [ebp - 0xc]
call fcn.0040367c
ret

Function at 0x407dac
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, 0x407d64
call fcn.004044ac
xor eax, eax
push ebp
push 0x407e41
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
call fcn.00405544
mov edx, dword [ebp - 0x14]
mov eax, 0x40979c
call fcn.004036d0
push 0x64
call sub.kernel32.dll_Sleep
push 6
push 0
mov eax, dword [0x40979c]
call fcn.004039c8
mov ebx, eax
push ebx
push 0x407e50
push 0x407e5c
push 0
call sub.shell32.dll_ShellExecuteA
push 0x64
call sub.kernel32.dll_Sleep
push 6
push 0
push ebx
push 0x407e64
push 0x407e5c
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e48
lea eax, [ebp - 0x14]
call fcn.0040367c
ret
Function at 0x401ce6
Capabilities:
Create thread

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
cmp dword [esi + 0x14], edi
jne 0x401d14
lea eax, [esp + 0x10]
push eax
push edi
push esi
push 0x401bb2
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x14], eax
jne 0x401d1e
push 0xfffffffffffffffc
pop eax
jmp 0x401d64
lea eax, [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esi + 0x48], edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jne 0x401d32
push edi
call ebx
cmp dword [esi + 0x48], edi
je 0x401d2a
lea ebp, [esi + 0x28]
mov dword [esi + 0x44], edi
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0x44], 1
cmp dword [esi + 0x48], edi
je 0x401d50
push edi
call ebx
jmp 0x401d46
cmp dword [esi + 0x4c], edi
pop ebx
je 0x401d62
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x50]
jmp 0x401d64
xor eax, eax
pop edi
pop esi
pop ebp
ret 4

Function at 0x401f11
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x40951c], esi
push edi
jne 0x401f4b
mov ecx, 0x409518
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x401f27
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x409918
jl 0x401f22
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x401f80
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x409518]
xor eax, esi
inc ecx
dec edx
jne 0x401f63
pop edi
pop esi
not eax
ret 0xc