joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490ef0
Capabilities:
Get geographical location

Disassembly:
mov edx, dword [ecx + 0xc94]
test edx, edx
js 0x490f22
mov eax, dword [ecx + 0xcb0]
sub eax, dword [ecx + 0xcac]
sar eax, 2
cmp edx, eax
jge 0x490f22
mov eax, dword [ecx + 0xcac]
mov eax, dword [eax + edx*4]
add dword [eax + 0x2a4], 5
jmp fcn.004934c0
ret

Function at 0x490f30
Capabilities:
Get geographical location

Disassembly:
mov edx, dword [ecx + 0xc94]
test edx, edx
js 0x490f62
mov eax, dword [ecx + 0xcb0]
sub eax, dword [ecx + 0xcac]
sar eax, 2
cmp edx, eax
jge 0x490f62
mov eax, dword [ecx + 0xcac]
mov eax, dword [eax + edx*4]
add dword [eax + 0x2a0], 0x28
jmp fcn.004934c0
ret

Function at 0x4913e0
Capabilities:
Create directory
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e11d6
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x515de0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x49144f
xor ecx, ecx
jmp 0x49146f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
jmp 0x491460
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x491460
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00448950
cmp dword [ebp - 0x220], 0
mov dword [ebp - 4], 0
jne 0x491551
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
mov eax, dword [0x51a3b0]
lea edx, [ebp - 0x260]
push edx
lea edx, [ebp - 0x248]
mov byte [ebp - 4], 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x68]
mov edi, eax
cmp esi, edi
je 0x491501
cmp dword [esi + 0x14], 8
jb 0x4914e6
push dword [esi]
call fcn.004c3c8b
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.004481e0
cmp dword [ebp - 0x234], 8
jb 0x491518
push dword [ebp - 0x248]
call fcn.004c3c8b
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
cmp dword [ebp - 0x24c], 8
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
mov byte [ebp - 4], al
jb 0x49158a
push dword [ebp - 0x260]
call fcn.004c3c8b
add esp, 4
jmp 0x49158a
lea eax, [ebp - 0x230]
cmp esi, eax
je 0x491567
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00448830
push 0xc
push 0x4e40b4
mov ecx, esi
call fcn.00448750
cmp dword [esi + 0x14], 8
jb 0x49157f
mov eax, dword [esi]
jmp 0x491581
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0xd
push 0x4ea9d0
mov ecx, esi
call fcn.00448750
cmp dword [ebp - 0x21c], 8
jb 0x4915af
push dword [ebp - 0x230]
call fcn.004c3c8b
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c4554
mov esp, ebp
pop ebp
ret 4
Function at 0x497890
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1678
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x515de0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
xor eax, eax
mov dword [ebp - 0x14], 7
push 0x4eace8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00448950
mov eax, dword [0x51a3b0]
lea edx, [ebp - 0x28]
push edx
lea edx, [ebp - 0x40]
mov dword [ebp - 4], 0
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x68]
cmp dword [eax + 0x14], 8
jb 0x497900
mov eax, dword [eax]
push 0
push 0x10000080
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [ebp - 0x2c], 8
mov dword [esi], eax
jb 0x49792c
push dword [ebp - 0x40]
call fcn.004c3c8b
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 0xffffffff
jb 0x497958
push dword [ebp - 0x28]
call fcn.004c3c8b
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [esi]
mov dword [ebp - 0x18], 0
cmp eax, 0xffffffff
jne 0x497977
xor al, al
jmp 0x4979c4
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 4], eax
test eax, eax
je 0x497973
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 0
push 0
push 4
push dword [esi + 4]
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
test eax, eax
je 0x497973
mov ecx, esi
call fcn.004979e0
test al, al
je 0x497973
mov byte [esi + 0x10], 1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c4554
mov esp, ebp
pop ebp
ret
Function at 0x497c30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
mov ecx, edi
shr ecx, 2
lea ecx, [eax + ecx*4]
mov ebx, ecx
sub ebx, eax
add ebx, 3
shr ebx, 2
cmp eax, ecx
cmova ebx, edx
mov edx, dword [ebp + 8]
test ebx, ebx
je 0x497cd5
cmp ebx, 8
jb 0x497cb7
lea ecx, [eax - 4]
lea ecx, [ecx + ebx*4]
cmp edx, ecx
ja 0x497c77
lea ecx, [edx - 4]
lea ecx, [ecx + ebx*4]
cmp ecx, eax
jae 0x497cb7
movdqa xmm1, xmmword [0x4e5200]
mov ecx, ebx
and ecx, 7
mov dword [ebp + 0x10], ebx
sub dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0x10]
lea ecx, [ecx]
movdqu xmm0, xmmword [eax]
add esi, 8
pxor xmm0, xmm1
movdqu xmmword [edx], xmm0
movdqu xmm0, xmmword [eax + 0x10]
add eax, 0x20
pxor xmm0, xmm1
movdqu xmmword [edx + 0x10], xmm0
add edx, 0x20
cmp esi, ecx
jb 0x497c90
cmp esi, ebx
jae 0x497cd5
jmp 0x497cc0
mov ecx, dword [eax]
inc esi
xor ecx, 0xc2c2c2c2
add eax, 4
mov dword [edx], ecx
add edx, 4
cmp esi, ebx
jb 0x497cc0
and edi, 3
je 0x497cef
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
lea eax, [eax + 1]
xor cl, 0xc2
mov byte [edx + eax - 1], cl
dec edi
jne 0x497ce0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4a2e70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0xa0], 0
jne 0x4a2e87
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi], 0
jne 0x4a2e80
mov eax, dword [esi + 0x7c]
sub eax, dword [esi + 0x78]
test eax, 0xfffffffc
je 0x4a2e80
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x4a31c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 1
push eax
mov dword [esi + 0x6c], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a6050
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1e19
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x515de0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x51db9c
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x2c]
mov dword [esi], vtable.TiXmlDeclaration.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x51db9c
mov dword [esi + 0x30], 0x51db9c
mov dword [esi + 0x34], 0x51db9c
mov edi, dword [ebp + 8]
mov edx, edi
mov byte [ebp - 4], 3
lea ebx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4a60f1
sub edx, ebx
push edx
push edi
call fcn.004a5d30
mov edi, dword [ebp + 0xc]
mov edx, edi
lea ecx, [edx + 1]
lea esp, [esp]
mov al, byte [edx]
inc edx
test al, al
jne 0x4a6110
sub edx, ecx
lea ecx, [esi + 0x30]
push edx
push edi
call fcn.004a5d30
mov edi, dword [ebp + 0x10]
mov edx, edi
lea ecx, [edx + 1]
jmp 0x4a6130
mov al, byte [edx]
inc edx
test al, al
jne 0x4a6130
sub edx, ecx
lea ecx, [esi + 0x34]
push edx
push edi
call fcn.004a5d30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4a62d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1e83
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x515de0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x51db9c
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x51db9c
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x4e46f8
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.004a5d30
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b8370
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4b837c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.004b8390

Function at 0x4b9030
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x2c]
lea ecx, [ecx]
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, esi
sub edx, dword [edi + 0x6c]
mov dword [ebp + 8], edx
cmp dword [edi + 0x6c], eax
jb 0x4b90bc
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.004c4b90
mov edx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
mov edi, edi
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x4b908f
sub eax, esi
jmp 0x4b9091
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x4b9080
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x4b90af
sub eax, esi
jmp 0x4b90b1
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x4b90a0
mov edx, dword [ebp + 8]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x4b9171
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
jne 0x4b90e9
xor eax, eax
jmp 0x4b9135
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x4b9106
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call fcn.004b75f0
jmp 0x4b9116
cmp eax, 2
jne 0x4b911f
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call fcn.004b8370
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [ebx + 0x30], eax
push ecx
push dword [ebx]
push dword [ebp - 4]
call fcn.004c4b90
mov eax, dword [ebp + 8]
add esp, 0xc
add dword [ebx], eax
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x4b915d
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x4b9171
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x4b9040
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c28e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2d7e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x515de0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004bb8c0
lea eax, [esi + 0x10]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ebx, dword [ebp + 0x14]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CBaseReferenceClock.1.0
mov dword [esi + 0xc], vtable.CBaseReferenceClock.0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
test ebx, ebx
je 0x4c2968
mov eax, ebx
jmp 0x4c299d
push 0x78
call fcn.004c3c3a
mov edi, eax
add esp, 4
mov dword [ebp + 0xc], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x4c2997
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
mov ecx, edi
call fcn.004c2ef0
jmp 0x4c2999
xor eax, eax
mov byte [ebp - 4], 1
mov dword [esi + 0x54], eax
test eax, eax
jne 0x4c29b2
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x8007000e
jmp 0x4c2a34
push 8
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.WINMM.dll_timeGetDevCaps]
test eax, eax
mov ecx, 1
cmove ecx, dword [ebp - 0x18]
push ecx
mov dword [esi + 0x48], ecx
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, 0x2710
mov dword [esi + 0x30], eax
mul ecx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
test ebx, ebx
jne 0x4c2a34
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
push 0x4c2c60
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x50], eax
test eax, eax
je 0x4c2a12
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
jmp 0x4c2a34
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x80004005
mov eax, dword [esi + 0x54]
push dword [eax + 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x4c2a34
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4d6946
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x515de0]
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.004cffa0
mov dword [ebp - 0x14], eax
cmp dword [0x51ee74], esi
jne 0x4d6a39
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4d69c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4d6b19
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4d6b19
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4d6b19
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x51ee74], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x51ee78], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x51ee7c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x51ee84], eax
test eax, eax
je 0x4d6a36
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x51ee80], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4d6a5e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4d6a51
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4d6a73
push 4
pop eax
jmp 0x4d6b1b
cmp dword [ebp - 0x14], esi
je 0x4d6a73
push dword [0x51ee74]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4d6a58
mov eax, dword [0x51ee80]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4d6ad1
cmp dword [0x51ee84], edi
je 0x4d6ad1
push eax
call ebx
push dword [0x51ee84]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4d6ad1
test eax, eax
je 0x4d6ad1
call ecx
test eax, eax
je 0x4d6ac6
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 0x4d6ac6
test byte [ebp - 8], 1
jne 0x4d6ad1
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4d6b01
mov eax, dword [0x51ee78]
cmp eax, edi
je 0x4d6afe
push eax
call ebx
test eax, eax
je 0x4d6afe
call eax
mov esi, eax
test esi, esi
je 0x4d6afe
mov eax, dword [0x51ee7c]
cmp eax, edi
je 0x4d6afe
push eax
call ebx
test eax, eax
je 0x4d6afe
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x51ee74]
call ebx
test eax, eax
je 0x4d6b19
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4d6b1b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c4554
mov esp, ebp
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x402c54
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.0040434c
test esi, esi
jne 0x402c8a
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.0040443c
jmp 0x402ca8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402b08
mov edi, eax
test esi, esi
je 0x402ca8
cmp dword [ebx], 0
je 0x402ca8
dec esi
jmp 0x402c91
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40339c
Capabilities:
Query or enumerate registry value

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

Function at 0x4041d0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ce04c], 0
je 0x404231
cmp word [0x4ce220], 0xd7b2
jne 0x4041f9
cmp dword [0x4ce228], 0
jbe 0x4041f9
mov eax, 0x4ce21c
call dword [0x4ce238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4cb06c
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 0x404258
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4cb030], 0
jne 0x40424d
push 0
push 0x4cb064
push 0x4cb06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40662c
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 0x406692
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.004045bc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f3c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40667c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406699
lea eax, [ebp - 0x10]
call fcn.0040434c
ret

Function at 0x40bca4
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 0x40bcdd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040443c
jmp 0x40bce6
mov eax, ebx
mov edx, esi
call fcn.004043a0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bcf0
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 0x40bd11
mov al, byte [esp]
jmp 0x40bd13
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c398
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c210
mov eax, dword [0x4cd3c8]
cmp byte [eax], 0
je 0x40c414
mov eax, dword [0x4cd0b8]
call fcn.00402d6c
call fcn.00402a34
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.00409464
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 0x40c45c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c44a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4cd02c]
mov eax, dword [eax + 4]
push eax