joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5075e5
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x94
push ebx
xor ebx, ebx
push esi
push ebx
push 0x80
push 3
push ebx
push 3
push connect
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, ebx
mov dword [ebp + 0x64], esi
je 0x5076e9
cmp esi, 0xffffffff
je 0x5076e9
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push ebx
push ebx
push ebx
push 2
push ebx
push esi
mov dword [ebp + 0x68], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp + 0x60], eax
je 0x5076e4
cmp eax, 0xffffffff
je 0x5076e4
push edi
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov edi, eax
cmp edi, ebx
jne 0x507667
push 3
pop ebx
jmp 0x5076cd
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x60]
cmp eax, ebx
jbe 0x5076c6
mov dword [ebp + 0x70], ecx
mov dword [ebp + 0x6c], eax
mov esi, dword [ebp + 0x70]
push 0x80
lea eax, [ebp - 0x20]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp + 0x68]
add esp, 0xc
xor eax, eax
cmp esi, ecx
jae 0x5076bd
cmp eax, 0x44
jae 0x5076ad
mov dl, byte [esi + edi]
mov byte [ebp + eax - 0x20], dl
cmp byte [esi + edi], bl
je 0x5076ad
inc eax
inc esi
inc esi
cmp esi, ecx
jb 0x507695
cmp eax, ebx
jbe 0x5076bd
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.00506b9f
pop ecx
pop ecx
add dword [ebp + 0x70], 0x44
dec dword [ebp + 0x6c]
jne 0x507677
push edi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, ebx
jmp 0x5076ec
push 2
pop ebx
jmp 0x5076d7
xor eax, eax
inc eax
pop esi
pop ebx
add ebp, 0x74
leave
ret

Function at 0x509317
Capabilities:
Encode data using xor

Disassembly:
lahf
push edi
sbb al, 0xa1
call 0x54585257
push 0xffffffffffffffcc
lodsd eax, dword [esi]
stc
dec esp
shl dword [edx - 4], 0x7a
jecxz 0x5092d6
loopne 0x5092b8
and dword [ecx], eax
sbb esi, ebx
insb byte es:[edi], dx
shl byte [ebp - 0x7d], cl

Function at 0x50954a
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
cmp dword [ebp + 0x10], 0
je 0x50958d
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x400]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.USER32.dll_wvsprintfA]
lea eax, [ebp - 0x400]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
lea eax, [ebp - 0x400]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
push esi
mov esi, 0x400
jmp 0x5095c8
lea ecx, [ebp - 0x400]
xor eax, eax
mov dl, byte [ecx]
cmp dl, 0x20
je 0x5095a9
cmp dl, 9
jne 0x5095bc
inc ecx
jmp 0x50959d
cmp dl, 0x39
jg 0x5095c3
movsx edx, dl
lea eax, [eax + eax*4]
inc ecx
lea eax, [edx + eax*2 - 0x30]
mov dl, byte [ecx]
cmp dl, 0x30
jge 0x5095ac
cmp byte [ecx], 0x2d
jne 0x5095e4
push dword [ebp + 0xc]
lea eax, [ebp - 0x400]
push esi
push eax
push dword [ebp + 8]
call fcn.00509279
add esp, 0x10
test eax, eax
jg 0x509595
xor eax, eax
pop esi
leave
ret
Function at 0x44a410
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
mov dword [esp + 8], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test esi, esi
mov edi, eax
je 0x44a44b
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test edi, edi
pop edi
pop esi
je 0x44a463
mov edx, dword [0x64fcf4]
push 0x64fa28
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, dword [esp]
add esp, 8
ret

Function at 0x450f9d
Capabilities:
Encode data using xor

Disassembly:
cmp eax, dword [edx + 0xc]
je 0x450f56
xor eax, eax
ret
mov al, 1
ret
pop es
xchg dword [ebx + 0x71], esp
mov ch, 0xf6
xor esi, eax
std
mov bl, 0x41
and byte [ebx - 0x63db0dd7], dl
adc al, 0x2c
out 0xb6, eax
pop esi
lodsd eax, dword [esi]
push es
jb 0x450f4e
mov al, byte [0x49bc5932]
mov esp, fs
mov ah, 0x72
adc al, 0x36
xchg ebx, eax
cmp dword [ecx - 0x2d18f80e], 0x16abc93c
leave
stosd dword es:[edi], eax
push ss
mov bl, 0xc1
in al, dx
mov ecx, 0xc3d171b7
fsubr st(1), st(0)
cmp al, cl
test eax, 0x2850f2a
jae 0x451057
adc dl, al
xchg ebx, eax
imul esi
push edi
xchg ebx, eax
push edx
leave
sub byte [ebp + 0x76faa123], al
out 0x23, al
mov dh, bl
jl 0x450fcb
mov al, 2
in al, 0x15
lcall 0x1189, 0x2b521c57
push ebx
mov bl, 0x47
jb 0x451039
mov bh, 0xe4
jge 0x45107b
xlatb
imul ebx, eax, 0xffffff87
lea esi, [ebx + 0x66]
push eax
daa
mov dh, 0xab
mov bh, 2
cmc
mov dh, 0xe5
mov eax, dword [0x5f75c7d7]
ret
add ebx, dword [edi + 0x60]
out 0x6c, al
aam 0x21
das
invalid
bound esp, qword [edi]
inc edi
popal
push edi
xchg edx, eax
xor bh, byte [ebx + 0x62877772]
xchg edi, eax
push edx
adc dh, byte [edi - 0x7e]
pop esi
add al, 0xec
ret 0xf286
push edi
test byte [eax], dl
inc ebx
jno 0x4510f8
xchg di, ax
mov al, 0x31
adc cl, byte [ebx + 0x39]
mov bh, 4
invalid
xchg dword [edx - 0x26], esi
inc ecx
push 0xf1015dc
mov cl, 0x44
xchg edx, eax
push esi
jecxz 0x451169
adc dword [ebx], esi
mov esp, 0xac70a26f
mov al, 0xf7
inc eax
cli
mov dh, 0xe6
popal
idiv byte [edx - 0x21c2f4ef]
xchg edi, eax
and bl, byte [eax + 0x4c87606c]
invalid
inc ebx
pop eax
sahf
insb byte es:[edi], dx
out 0x67, eax
invalid

Function at 0x4d89cd
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [edi + 0x2f463761]
mov dword [0xb5c7022b], eax
add al, bh
mov ch, 0xc7
Function at 0x408654
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408ae0
mov byte [esp], al
cmp byte [esp], 0
jne 0x4087dd
test edi, edi
je 0x4087dd
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40871d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4086f8
cmp edi, 0xffffffff
je 0x4086b9
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4086b9
mov byte [esp], 0
jmp 0x4087dd
cmp dword [esi], 1
jg 0x4086f8
cmp dword [esi], 0
jne 0x4086ea
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4086ea
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4087dd
lea eax, [esp + 0xc]
call fcn.00408310
dec ebp
test ebp, ebp
jg 0x40869e
cmp edi, 0xffffffff
je 0x40871d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40871b
mov byte [esp], 0
jmp 0x4087dd
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408662
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40871d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040884c
mov edx, eax
mov ebx, dword [0x4d88f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408781
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40877f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408781
xor edi, edi
cmp byte [esp], 0
je 0x4087a7
mov ebx, dword [esi]
test bl, 1
jne 0x4087bd
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408787
mov byte [esp + 1], 1
jmp 0x4087bd
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4087a7
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408734
cmp byte [esp], 0
je 0x4087dd
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409420
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x4dab98
cmp dword [ebp + 0xc], 2
jl 0x409434
mov ebx, 0x4dabc8
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x40946c
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x4050cc
mov dword [0x4d801c], eax
mov eax, 0x4050d4
mov dword [0x4d8020], eax
mov eax, ebx
call fcn.00409304
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x4094a1
cmp al, 3
jge 0x4094a1
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4094b2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x4094bd
call dword [ecx + eax*4]
cmp dword [0x4d8040], 0
jne 0x4094d3
mov byte [0x4d8048], 1
fnstcw word [0x4d4024]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.0040976c
call fcn.004093b4
ret 4

Function at 0x4096d4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d8058], 0
je 0x40973b
cmp word [0x4d8344], 0xd7b2
jne 0x4096fd
cmp dword [0x4d834c], 0
jbe 0x4096fd
mov eax, 0x4d8340
call dword [0x4d835c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x409768
call fcn.0040a1c0
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d402e], 0
jne 0x409757
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4098fc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4d4030], 0
je 0x409927
mov edx, edi
mov eax, esi
call dword [0x4d4030]
mov ebx, eax
jmp 0x409938
mov eax, 8
call fcn.00406e04
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4d8059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4098c4
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x409968
mov eax, ebx
call fcn.00406e20
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c3c4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40c529
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409a3c
cmp si, word [0x4d4a00]
jb 0x40c45c
cmp si, word [0x4d4c00]
ja 0x40c45c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c45c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4d4a00]
jae 0x40c436
mov edi, ebx
dec edi
jmp 0x40c457
cmp si, word [ebx*8 + 0x4d4a00]
jbe 0x40c446
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c457
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4d4a04]
call fcn.0040c2e4
jmp 0x40c45c
cmp edi, dword [ebp - 8]
jae 0x40c420
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c50b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c50b
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a560
push dword [ebp - 0x160]
push 0x40c544
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a560
push dword [ebp - 0x164]
push 0x40c554
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a560
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a798
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c530
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409a9c
ret
Function at 0x40c6dc
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c7e0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4dac10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4dac28]
jne 0x40c728
mov eax, esi
mov edx, 0x4dac2a
mov ecx, 0x55
call fcn.0040a560
push 0x4dac10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c7ca
push 0x4dac10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409a3c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c797
cmp byte [0x4dac0c], 0
je 0x40c75c
mov edx, esi
mov eax, ebx
call fcn.0040c5c0
jmp 0x40c797
mov edx, esi
mov eax, ebx
call fcn.0040c3c4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c797
cmp dword [esi], 0
je 0x40c780
mov eax, esi
mov edx, 0x40c7f8
call fcn.0040a6b8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c3c4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a6b8
push 0x4dac10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4dac28], bx
mov eax, dword [esi]
call fcn.0040a4bc
mov ecx, eax
mov eax, 0x4dac2a
mov edx, 0xaa
call fcn.0040c244
push 0x4dac10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c7e7
lea eax, [ebp - 4]
call fcn.00409a3c
ret
Function at 0x40ca10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409b20
xor eax, eax
push ebp
push 0x40cc35
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40ca50
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40ca6a
mov eax, dword [ebp - 4]
call fcn.0040a4bc
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c244
cmp word [ebp - 0x21a], 0
je 0x40cc1f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cc44
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cb39
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cc44
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cb39
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cc80
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cb39
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cc80
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cb39
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ccb4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cb39
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cce8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40cc1f
xor eax, eax
push ebp
push 0x40cc18
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c820
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40cba8
mov eax, dword [ebp - 0x10]
call fcn.00406e04
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a524
jmp 0x40cbf3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40cd28
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40cbf3
mov eax, dword [ebp - 0x10]
call fcn.00406e04
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40cd28
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a524
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc1f
cmp dword [ebp - 8], 0
je 0x40cc0e
mov eax, dword [ebp - 8]
call fcn.00406e20
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc3c
lea eax, [ebp - 4]
call fcn.00409a3c
ret
Function at 0x40cf24
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409b20
xor eax, eax
push ebp
push 0x40cfe4
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a560
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a710
mov eax, dword [ebx]
call fcn.0040cdec
test al, al
jne 0x40cfc1
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a560
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a710
mov eax, dword [ebx]
call fcn.0040cdec
test al, al
jne 0x40cfc1
mov eax, ebx
call fcn.00409a3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cfeb
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409a9c
lea eax, [ebp - 4]
call fcn.00409a3c
ret

Function at 0x40ea64
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x41dbec
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41dc45
test eax, edx
je 0x41dc48
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41dc03
movzx eax, word [eax]
sub eax, ecx
jmp 0x41dc2a
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41dc2b
add ecx, 4
js 0x41dc1b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41dc28
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41dc2a
xor eax, eax
ret
test eax, eax
je 0x41dc54
test edx, edx
jne 0x41dbf4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41eb8c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x41ebb9
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x4225e8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x422621
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409bc4
jmp 0x42262a
mov eax, ebx
mov edx, esi
call fcn.00409e1c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x422634
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x422656
movzx eax, word [esp]
jmp 0x422658
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x423954
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x423a79
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042375c
mov esi, eax
mov eax, dword [0x4d7958]
cmp byte [eax], 0
je 0x423a21
mov eax, dword [0x4d77b0]
call fcn.00407540
call fcn.00406f58
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x423924]
call fcn.0040baf8
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x423a94
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x423a5d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4d7778]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4db624]
call fcn.0040bee8
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423a80
lea eax, [ebp - 4]
mov edx, dword [0x423924]
call fcn.0040bc1c
ret