joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435dc0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45bb24]
cmp dword [eax + 0x30], 0
je 0x435e6a
cmp dword [ebx + 0x94], 0
jne 0x435e64
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x435d50
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x435e64
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x435e2a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x435e64
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00416d04
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x435e39
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4369cc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x436a01
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404040
jmp 0x436a0e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403fa4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4378f4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x437935
mov eax, esi
call fcn.0044b824
test al, al
je 0x437935
mov eax, dword [ebx + 0x84]
call fcn.0044b5c4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x437935
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044b5c4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x43a850
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403f50
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43a89f
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004041c0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442a18
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x45bba4], 0
je 0x442b67
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x45ac68]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x442b67
mov eax, dword [0x45bba8]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x45bba4]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x442b36
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x45bba4]
call fcn.00416d04
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x442b2e
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x442b2e
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x442b2e
mov eax, dword [ebp - 0x14]
call fcn.0044b5c4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x442b2e
push ebp
call fcn.004429d4
pop ecx
test al, al
jne 0x442b2e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x442aea
mov eax, dword [ebp - 0x14]
call fcn.0044a0f4
dec eax
jle 0x442b2e
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.00403308
cmp byte [ebp - 1], 0
je 0x442b2e
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x442b2e
mov edx, dword [ebp - 0x14]
mov eax, dword [0x45bba8]
call fcn.004421a0
inc edi
dec ebx
jne 0x442a7d
mov eax, dword [0x45bba8]
cmp dword [eax + 8], 0
jle 0x442b4e
mov eax, dword [0x45bba8]
call fcn.00442230
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x442b67
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0044283c
pop ecx
test al, al
jne 0x442b67
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x446100
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x44614c
mov eax, esi
call fcn.0042e0dc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x44614c
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x44614c
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x44628b
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x44618c
cmp eax, 0x108
ja 0x44618c
mov eax, esi
call fcn.0042e0dc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x446282
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x44628b
jmp 0x446282
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x44626b
cmp eax, 0x20a
ja 0x44626b
test byte [esi + 0x50], 0x80
jne 0x4461be
sub eax, 0x203
je 0x4461bb
sub eax, 3
je 0x4461bb
sub eax, 3
jne 0x4461be
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x4461d2
dec eax
je 0x4461e7
dec eax
je 0x446204
dec eax
je 0x4461e7
jmp 0x44620b
mov ecx, ebx
mov eax, dword [0x45ac68]
mov eax, dword [eax]
mov edx, esi
call fcn.004377ac
jmp 0x446282
cmp byte [esi + 0x5d], 1
jne 0x4461fd
mov eax, esi
mov si, 0xffed
call fcn.00403308
jmp 0x44628b
or word [esi + 0x54], 1
jmp 0x446282
and word [esi + 0x54], 0xfffe
jmp 0x446282
mov eax, dword [0x45bb60]
cmp byte [eax + 0x20], 0
je 0x446282
mov eax, dword [0x45bb60]
cmp dword [eax + 0x1c], 0
je 0x446282
mov eax, dword [ebx]
mov edx, dword [0x45bb60]
cmp eax, dword [edx + 0x1c]
jne 0x446282
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0042e020
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00403308
jmp 0x44628b
cmp eax, 0xb00b
jne 0x446282
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00444a68
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x449754
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x449770
cmp dword [esi + 4], 0
je 0x44979d
test byte [ebx + 0x55], 1
jne 0x44978f
mov eax, ebx
call fcn.00448360
test eax, eax
jne 0x44978f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4498ad
mov edx, esi
mov eax, ebx
call fcn.00449278
jmp 0x4498ad
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4498a6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0044b5c4
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00446034
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00449754
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0044b5c4
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4498ad
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44fcbc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45aebc]
cmp byte [eax + 0xc], 0
je 0x44fe29
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44fe22
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45bbb4], 0
jne 0x44fd10
push 0x44fe30
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x44fe38
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x45bbb4], eax
cmp dword [0x459d44], 0
jne 0x44fe0b
push 0x44fe48
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x459d44], eax
cmp dword [0x459d44], 0
je 0x44fe0b
push 0x44fe54
mov eax, dword [0x459d44]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x45bbb8], eax
push 0x44fe64
mov eax, dword [0x459d44]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x45bbbc], eax
push 0x44fe78
mov eax, dword [0x459d44]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x45bbc0], eax
push 0x44fe90
mov eax, dword [0x459d44]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x45bbc4], eax
push 0x44fea8
mov eax, dword [0x459d44]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x45bbc8], eax
push 0x44febc
mov eax, dword [0x459d44]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x45bbcc], eax
push 0x44fed4
mov eax, dword [0x459d44]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x45bbd0], eax
push 0x44feec
mov eax, dword [0x459d44]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x45bbd4], eax
push 0x44ff08
mov eax, dword [0x459d44]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x45bbd8], eax
push 0x44ff14
mov eax, dword [0x459d44]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x45bbdc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44fe29
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x455c30
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x455db0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x24
call fcn.00402b20
lea eax, [ebp - 0x28]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov eax, dword [ebp - 0x14]
mov dword [0x45a76c], eax
mov eax, dword [ebp - 0xc]
mov dword [0x45a770], eax
mov eax, dword [ebp - 0x24]
mov dword [0x45a774], eax
mov eax, dword [0x45aeac]
cmp dword [eax], 2
sete byte [0x45a5c0]
push 0x455dbc
call sub.KERNEL32.DLL_GetModuleHandleA
lea edx, [ebp - 4]
call fcn.0045607c
cmp byte [0x45a5c0], 0
jne 0x455cbc
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.004560ac
test al, al
je 0x455cbc
mov eax, dword [ebp - 0x4c]
mov dword [0x45be7c], eax
jmp 0x455cc3
xor eax, eax
mov dword [0x45be7c], eax
call fcn.00455ac8
and eax, 0x7f
cmp eax, 0xc
ja case.0x455cd4.0
jmp dword [eax*4 + 0x455cdb]
mov byte [0x45a5ac], 1
jmp case.0x455cd4.0
mov byte [0x45a5b0], 1
jmp case.0x455cd4.0
mov byte [0x45a5b4], 1
jmp case.0x455cd4.0
mov byte [0x45a5b8], 1
jmp case.0x455cd4.0
mov byte [0x45a5bc], 1
jmp case.0x455cd4.0
mov byte [0x45a5c4], 1
mov byte [0x45a5c8], 1
jmp case.0x455cd4.0
mov byte [0x45a5c4], 1
mov byte [0x45a5cc], 1
jmp case.0x455cd4.0
mov byte [0x45a5c4], 1
mov byte [0x45a5cc], 1
mov byte [0x45a5d0], 1
jmp case.0x455cd4.0
mov byte [0x45a5d4], 1
jmp case.0x455cd4.0
mov byte [0x45a5d8], 1
jmp case.0x455cd4.0
mov byte [0x45a5dc], 1
jmp case.0x455cd4.0
mov byte [0x45a5e0], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455db7
lea eax, [ebp - 4]
call fcn.00403f50
ret

Function at 0x4560ac
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x456153
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404410
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x45613d
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.0040459c
mov eax, dword [ebp - 0x10]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404410
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x45613d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x456164
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x45613d
cmp dword [ebp - 8], 0x34
jne 0x45613d
mov bl, 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45615a
lea eax, [ebp - 0x10]
call fcn.00403f50
ret
Function at 0x4021d0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40220f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40220f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40220f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40220f
cmp dword [ecx + 0x74], 0xe
jbe 0x40220f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40310c
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.00404918
test esi, esi
jne 0x403142
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.00404a08
jmp 0x403160
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402fb0
mov edi, eax
test esi, esi
je 0x403160
cmp dword [ebx], 0
je 0x403160
dec esi
jmp 0x403149
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4038c8
Capabilities:
Query or enumerate registry value

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

Function at 0x404798
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49e04c], 0
je 0x4047f9
cmp word [0x49e220], 0xd7b2
jne 0x4047c1
cmp dword [0x49e228], 0
jbe 0x4047c1
mov eax, 0x49e21c
call dword [0x49e238]
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 0x404820
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49b02c], 0
jne 0x404815
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405f68
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 0x406198
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405feb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406198
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405feb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4061b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406074
xor eax, eax
push ebp
push 0x40606d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405da4
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 0x406052
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4061d4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406052
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 0x406074
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 0x40618e
cmp byte [ebp - 0xd], 0
jne 0x4060bb
cmp byte [ebp - 0x12], 0
je 0x40618e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4060d4
dec ebx
cmp byte [ebx], 0x2e
je 0x4060e3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4060d3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40618e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406120
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 0x40618e
cmp byte [ebp - 0xd], 0
je 0x40618e
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 0x40618e
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 0x408744
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4087d4
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4087d4
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408787
test edx, 3
jne 0x408776
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408781
jmp 0x408787
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408787
cmp dword [ecx - 8], 1
je 0x408791
mov edx, ebx
or edx, 3
call fcn.00405064
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 0x4087a3
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404918

Function at 0x4087e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408870
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408870
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408823
test edx, 3
jne 0x408812
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40881d
jmp 0x408823
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408823
cmp dword [ecx - 8], 1
je 0x40882d
mov edx, ebx
or edx, 3
call fcn.00405064
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 0x40883f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404918

Function at 0x4092c8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404ddc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4092e1
test al, 0x10
je 0x4092e5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40be80
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 0x40beb9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404a08
jmp 0x40bec2
mov eax, ebx
mov edx, esi
call fcn.0040496c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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