joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4368b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x4368d0
mov ecx, eax
sar ecx, 1
and eax, 8
xor ecx, 4
lea ebx, [ecx + eax]
add eax, ecx
inc eax
test eax, eax
jns 0x4368f6
mov eax, 0xffffffff
jmp 0x4368fd
lea eax, [ebx*2 + 2]
push eax
call fcn.00409600
add esp, 4
mov dword [eax], 0x3f005c
mov dword [eax + 4], 0x5c003f
mov word [eax + 8], 0
mov ecx, eax
add ecx, 8
movzx edx, word [esi]
test dx, dx
je 0x436941
add esi, 2
nop
nop
nop
nop
nop
nop
nop
mov word [ecx], dx
add ecx, 2
movzx edx, word [esi]
add esi, 2
test dx, dx
jne 0x436930
mov word [ecx], 0
lea ecx, [ebx + ebx]
mov word [esp + 4], cx
lea ecx, [ebx*2 + 2]
mov word [esp + 6], cx
mov dword [esp + 8], eax
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0x40
lea ecx, [esp + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0x3a393837
mov word [esp + 0x2c], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 5
ja 0x4369e0
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x28]
add ecx, 0x770d8c27
xor ecx, edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
add cl, 0xef
mov edx, dword [esp]
mov byte [esp + edx + 0x28], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 6
jb 0x4369b0
mov esi, dword [esp + 0x28]
mov edx, dword [0x441e1c]
mov ecx, dword [edx]
mov edx, dword [edx + 4]
cmp ecx, edx
je 0x436a39
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ecx], 0x8896be63
je 0x436a11
add ecx, 8
cmp ecx, edx
jne 0x436a00
jmp 0x436a39
mov ecx, dword [ecx + 4]
cmp ecx, esi
je 0x436a39
lea edx, [esp + 0x28]
lea esi, [esp + 0x10]
push edx
push esi
push 2
push dword [0x441e20]
push ecx
mov ebx, eax
call fcn.00434480
add esp, 0x14
mov esi, eax
mov eax, ebx
push eax
call fcn.00409610
add esp, 4
test edi, edi
je 0x436a4c
mov eax, dword [esp + 0x48]
mov dword [edi], eax
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x436a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov dword [esp + 0x10], 0x3a393837
mov word [esp + 0x14], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x436ac3
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x10]
add eax, 0x770d8c27
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0xef
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 6
jb 0x436a90
mov esi, dword [ebp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x441e1c]
mov edx, dword [ecx]
mov edi, dword [ecx + 4]
cmp edx, edi
je 0x436b18
mov ecx, dword [ebp + 8]
nop
nop
nop
nop
cmp dword [edx], 0x77a9e0c4
je 0x436af1
add edx, 8
cmp edx, edi
jne 0x436ae0
jmp 0x436b18
mov edx, dword [edx + 4]
cmp edx, eax
je 0x436b18
lea eax, [esp + 0x10]
lea edi, [esp + 8]
push 5
push 0x18
push eax
push edi
push ecx
push 5
push dword [0x441e20]
push edx
call fcn.00434480
add esp, 0x20
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x436b25
mov edx, dword [esp + 0x18]
mov dword [esi], edx
test ecx, ecx
je 0x436b31
cmp byte [esp + 0x25], 0
setne byte [ecx]
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x436b40
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
mov dword [esp + 8], 0x3a393837
mov word [esp + 0xc], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 5
ja 0x436b9e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
add eax, 0x770d8c27
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0xef
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 6
jb 0x436b70
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 8]
mov edx, dword [0x441e1c]
mov ecx, dword [edx]
mov ebx, dword [edx + 4]
cmp ecx, ebx
je 0x436bfb
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
nop
nop
nop
cmp dword [ecx], 0x72e9dc72
je 0x436bd1
add ecx, 8
cmp ecx, ebx
jne 0x436bc0
jmp 0x436bfb
mov ecx, dword [ecx + 4]
cmp ecx, eax
je 0x436bfb
lea eax, [esp + 0x10]
push 0
push 0
push edi
push edx
push eax
push 0
push 0
push 0
push esi
push 9
push dword [0x441e20]
push ecx
call fcn.00434480
add esp, 0x30
mov edi, dword [esp + 0x34]
cmp eax, 0x103
jne 0x436cb6
mov dword [esp + 8], 0x3a393837
mov word [esp + 0xc], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x436c61
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 8]
add eax, 0x770d8c27
xor eax, ecx
mov dword [esp], eax
mov eax, dword [esp]
add al, 0xef
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 6
jb 0x436c30
mov eax, dword [esp + 8]
mov edx, dword [0x441e1c]
mov ecx, dword [edx]
mov edx, dword [edx + 4]
cmp ecx, edx
je 0x436cae
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ecx], 0x7e28bda7
je 0x436c91
add ecx, 8
cmp ecx, edx
jne 0x436c80
jmp 0x436cae
mov ecx, dword [ecx + 4]
cmp ecx, eax
je 0x436cae
push 0
push 0
push esi
push 3
push dword [0x441e20]
push ecx
call fcn.00434480
add esp, 0x18
test eax, eax
js 0x436cb6
mov eax, dword [esp + 0x10]
test edi, edi
je 0x436cc9
xor ecx, ecx
cmp eax, 0xc0000011
je 0x436cc7
mov ecx, dword [esp + 0x14]
mov dword [edi], ecx
add esp, 0x18
pop esi
pop edi
pop ebx
ret
Function at 0x436cd0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
mov dword [esp + 8], 0x3a393837
mov word [esp + 0xc], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 5
ja 0x436d2e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
add eax, 0x770d8c27
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0xef
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 6
jb 0x436d00
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 8]
mov edx, dword [0x441e1c]
mov ecx, dword [edx]
mov ebx, dword [edx + 4]
cmp ecx, ebx
je 0x436d8b
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
nop
nop
nop
cmp dword [ecx], 0xe6919031
je 0x436d61
add ecx, 8
cmp ecx, ebx
jne 0x436d50
jmp 0x436d8b
mov ecx, dword [ecx + 4]
cmp ecx, eax
je 0x436d8b
lea eax, [esp + 0x10]
push 0
push 0
push edi
push edx
push eax
push 0
push 0
push 0
push esi
push 9
push dword [0x441e20]
push ecx
call fcn.00434480
add esp, 0x30
mov edi, dword [esp + 0x34]
cmp eax, 0x103
jne 0x436e46
mov dword [esp + 8], 0x3a393837
mov word [esp + 0xc], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x436df1
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 8]
add eax, 0x770d8c27
xor eax, ecx
mov dword [esp], eax
mov eax, dword [esp]
add al, 0xef
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 6
jb 0x436dc0
mov eax, dword [esp + 8]
mov edx, dword [0x441e1c]
mov ecx, dword [edx]
mov edx, dword [edx + 4]
cmp ecx, edx
je 0x436e3e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ecx], 0x7e28bda7
je 0x436e21
add ecx, 8
cmp ecx, edx
jne 0x436e10
jmp 0x436e3e
mov ecx, dword [ecx + 4]
cmp ecx, eax
je 0x436e3e
push 0
push 0
push esi
push 3
push dword [0x441e20]
push ecx
call fcn.00434480
add esp, 0x18
test eax, eax
js 0x436e46
mov eax, dword [esp + 0x10]
test edi, edi
je 0x436e50
mov ecx, dword [esp + 0x14]
mov dword [edi], ecx
add esp, 0x18
pop esi
pop edi
pop ebx
ret
Function at 0x436e60
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x44]
mov ebx, 0xfffffffe
nop
nop
nop
nop
cmp word [edi + ebx + 2], 0
lea ebx, [ebx + 2]
jne 0x436e80
sar ebx, 1
mov ebp, ebx
and ebp, 2
mov ecx, ebx
or ebx, 2
imul ebx, ebp
xor ebp, 2
and ecx, 0xfffd
imul ecx, ebp
add ebx, ecx
mov word [esp + 0xc], bx
mov ecx, ebx
and ecx, 2
xor ebx, 2
lea ecx, [ebx + ecx*2]
mov word [esp + 0xe], cx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], 0x18
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], 0x40
lea eax, [esp + 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 4], 0x3a393837
mov word [esp + 8], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 5
ja 0x436f3e
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 4]
add eax, 0x770d8c27
xor eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
add al, 0xef
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 6
jb 0x436f10
mov eax, dword [esp + 4]
mov ecx, dword [0x441e1c]
mov edi, dword [ecx]
mov ebx, dword [ecx + 4]
cmp edi, ebx
je 0x436f94
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi], 0x81105f7a
je 0x436f71
add edi, 8
cmp edi, ebx
jne 0x436f60
jmp 0x436f94
mov edi, dword [edi + 4]
cmp edi, eax
je 0x436f94
lea eax, [esp + 0x18]
push esi
push eax
push edx
push dword [esp + 0x54]
push 4
push dword [0x441e20]
push edi
call fcn.00434480
add esp, 0x1c
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40332c
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.00404bd0
test esi, esi
jne 0x403362
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.00404cc0
jmp 0x403380
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031d0
mov edi, eax
test esi, esi
je 0x403380
cmp dword [ebx], 0
je 0x403380
dec esi
jmp 0x403369
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403acc
Capabilities:
Query or enumerate registry value

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

Function at 0x40499c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47404c], 0
je 0x4049fd
cmp word [0x474220], 0xd7b2
jne 0x4049c5
cmp dword [0x474228], 0
jbe 0x4049c5
mov eax, 0x47421c
call dword [0x474238]
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 0x404a24
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47102c], 0
jne 0x404a19
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404b54
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x471030], 0
je 0x404b7a
mov edx, esi
mov eax, ebx
call dword [0x471030]
jmp 0x404b89
mov eax, 8
call fcn.00402ee0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x47404d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404b1c
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x406318
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 0x406548
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40639b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406548
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40639b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406564
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406424
xor eax, eax
push ebp
push 0x40641d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406154
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 0x406402
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406584
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406402
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 0x406424
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 0x40653e
cmp byte [ebp - 0xd], 0
jne 0x40646b
cmp byte [ebp - 0x12], 0
je 0x40653e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406484
dec ebx
cmp byte [ebx], 0x2e
je 0x406493
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406483
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40653e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4064d0
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 0x40653e
cmp byte [ebp - 0xd], 0
je 0x40653e
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 0x40653e
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 0x406424
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 0x406548
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40639b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406548
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40639b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406564
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406424
xor eax, eax
push ebp
push 0x40641d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406154
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 0x406402
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406584
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406402
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 0x406424
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 0x40653e
cmp byte [ebp - 0xd], 0
jne 0x40646b
cmp byte [ebp - 0x12], 0
je 0x40653e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406484
dec ebx
cmp byte [ebx], 0x2e
je 0x406493
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406483
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40653e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4064d0
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 0x40653e
cmp byte [ebp - 0xd], 0
je 0x40653e
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 0x40653e
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 0x408c2c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408c7e
test eax, edx
je 0x408c81
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408c41
movzx eax, byte [eax]
sub eax, ecx
ret
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]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x408c67
add ecx, 4
js 0x408c57
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408c64
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x408c8d
test edx, edx
jne 0x408c34
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40c144
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 0x40c17d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404cc0
jmp 0x40c186
mov eax, ebx
mov edx, esi
call fcn.00404c24
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c844
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c6bc
mov eax, dword [0x473010]
cmp byte [eax], 0
je 0x40c8c0
mov eax, dword [0x472da4]
call fcn.00403444
call fcn.0040303c
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.004096e0
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 0x40c908
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c8f6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x472d3c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4767f8]
call fcn.004060fc
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 0x40d1c8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d29e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404c68
lea eax, [ebp - 4]
call fcn.004050b8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405060
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d288
mov eax, ebx
call fcn.00402ee0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d281
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405060
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d26b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d2b0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d26b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d288
mov eax, dword [ebp - 0x10]
call fcn.00402efc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d2a5
lea eax, [ebp - 4]
call fcn.00404bd0
ret

Function at 0x4222fc
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x42234a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00422038
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x422363
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x42236c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00422038
dec esi
jne 0x42238e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret