joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b824
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45b83b
add esp, 0xfffffff0
call fcn.0040377c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422e70
mov eax, dword [0x496190]
cmp word [eax + 2], 0
jne 0x45b863
mov eax, dword [0x496190]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045cefc
mov eax, dword [0x4962c4]
cmp word [eax + 2], 0
jne 0x45b87d
mov eax, dword [0x4962c4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045d0f4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41a730]
call fcn.00403440
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41a730]
call fcn.00403440
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x425064]
call fcn.0042acac
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45ba04
mov eax, dword [0x496014]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042b07c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45d6a4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x496014]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d534
test eax, eax
je 0x45b972
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004091b4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d55c
test eax, eax
je 0x45b986
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004044f8
mov eax, dword [0x495e0c]
cmp byte [eax], 0
jne 0x45b9ba
mov eax, ebx
call fcn.0045bb2c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045d880
mov eax, ebx
call fcn.0045e244
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45b9fa
call fcn.004037d4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45bdac
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x497bb4]
cmp dword [eax + 0x30], 0
je 0x45be56
cmp dword [ebx + 0x94], 0
jne 0x45be50
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45bd3c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45be50
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 0x45be16
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45be50
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.0041cce0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45be25
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45c9b8
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 0x45c9ed
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.00404378
jmp 0x45c9fa
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042dc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45da5c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45da9d
mov eax, esi
call fcn.004441f8
test al, al
je 0x45da9d
mov eax, dword [ebx + 0x84]
call fcn.00443ef4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45da9d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00443ef4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x47aa50
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x47aa75
cmp dword [esp + 4], 5
jb 0x47aa75
mov al, 1
jmp 0x47aa77
xor eax, eax
add esp, 0x94
ret
Function at 0x402cc8
Capabilities:
Query or enumerate registry value

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

Function at 0x40373c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41b04c], 0
je 0x40379d
cmp word [0x41b220], 0xd7b2
jne 0x403765
cmp dword [0x41b228], 0
jbe 0x403765
mov eax, 0x41b21c
call dword [0x41b238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41a068
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 0x4037c4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41a02c], 0
jne 0x4037b9
push 0
push 0x41a060
push 0x41a068
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404cfc
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 0x404f2c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404d7f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404f2c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404d7f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404f48
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404e08
xor eax, eax
push ebp
push 0x404e01
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404b44
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 0x404de6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404f68
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404de6
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 0x404e08
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 0x404f22
cmp byte [ebp - 0xd], 0
jne 0x404e4f
cmp byte [ebp - 0x12], 0
je 0x404f22
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404e68
dec ebx
cmp byte [ebx], 0x2e
je 0x404e77
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404e67
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404f22
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404eb4
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 0x404f22
cmp byte [ebp - 0xd], 0
je 0x404f22
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 0x404f22
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 0x404e08
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 0x404f2c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404d7f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404f2c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404d7f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404f48
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404e08
xor eax, eax
push ebp
push 0x404e01
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404b44
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 0x404de6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404f68
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404de6
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 0x404e08
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 0x404f22
cmp byte [ebp - 0xd], 0
jne 0x404e4f
cmp byte [ebp - 0x12], 0
je 0x404f22
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404e68
dec ebx
cmp byte [ebx], 0x2e
je 0x404e77
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404e67
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404f22
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404eb4
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 0x404f22
cmp byte [ebp - 0xd], 0
je 0x404f22
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 0x404f22
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 0x405164
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 0x4051ca
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.00403b48
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040285c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4051b4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4051d1
lea eax, [ebp - 0x10]
call fcn.004038d8
ret

Function at 0x405d30
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x405e3a
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x405d83
push 0x105
lea eax, [ebp - 0x109]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_1
mov ecx, eax
lea edx, [ebp - 0x109]
mov eax, dword [ebp - 4]
call fcn.004039c8
jmp 0x405e21
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
mov eax, ebx
call fcn.00405ce4
mov ebx, eax
mov edi, ebx
mov eax, ebx
call fcn.00405d04
mov ebx, eax
test esi, esi
je 0x405dab
dec esi
test esi, esi
jl 0x405dab
cmp edi, ebx
jne 0x405d8a
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
mov edx, edi
call fcn.00403ad0
mov eax, dword [ebp - 0x110]
mov ecx, ebx
sub ecx, edi
mov edx, 1
call fcn.00403dcc
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403b74
cmp eax, 2
jl 0x405e21
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x405e21
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403b74
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x405e21
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403b74
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 2
call fcn.00403dcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e41
lea eax, [ebp - 0x110]
call fcn.004038d8
ret

Function at 0x405fd4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40603e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.00403ad0
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00405f58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406045
lea eax, [ebp - 0x10c]
call fcn.004038d8
ret
Function at 0x40604c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4060b6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.00403ad0
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00405f58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4060bd
lea eax, [ebp - 0x10c]
call fcn.004038d8
ret

Function at 0x4062dc
Capabilities:
Create thread

Disassembly:
push ebx
mov eax, dword [0x41a604]
mov byte [eax], 1
mov edx, dword [0x4058dc]
xor eax, eax
call fcn.00406c38
mov ebx, eax
mov byte [ebx + 0x18], 1
lea eax, [ebx + 0x1e]
push eax
push 4
push ebx
push 0x4062cc
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [ebx + 0x1a], eax
mov eax, ebx
pop ebx
ret

Function at 0x4063a0
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0x18], 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jbe 0x4063bb
mov byte [ebx + 0x18], 1
pop ebx
ret
cmp word [ebx + 0x2c], 0
je 0x4063ca
mov edx, ebx
mov eax, dword [ebx + 0x2e]
call dword [ebx + 0x2a]
pop ebx
ret

Function at 0x406410
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_TerminateThread
mov byte [ebx + 0x19], 1
pop ebx
ret

Function at 0x407284
Capabilities:
Get file attributes

Disassembly:
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x407293
dec eax
and al, 0x10
setne al
ret
Function at 0x407504
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
call fcn.004081b4
xchg ecx, eax
jecxz 0x407520
mov edx, ebx
xor edx, dword [ecx + 0x171]
jne 0x407520
mov dword [ecx + 0x171], edx
mov ecx, dword [ebx + 0x28]
jecxz 0x40752d
push 0
push ecx
call sub.user32.dll_ShowWindow
mov eax, ebx
call fcn.004059bc
xor ecx, ecx
cmp byte [ebx + 0x9a], cl
jne 0x407620
inc byte [ebx + 0x9a]
xor eax, eax
xchg dword [ebx + 0x124], eax
call fcn.00406c54
mov eax, dword [ebx + 0x598]
call fcn.00406c54
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x40759b
mov ecx, dword [ebx + 0x41]
jecxz 0x40757c
inc ecx
je 0x40757c
cmp byte [ebx + 0x45], 0
jne 0x40757c
dec ecx
push ecx
call sub.user32.dll_DestroyIcon
push dword [ebx + 0x28]
call sub.user32.dll_IsWindow
test eax, eax
je 0x407596
cmp byte [ebx + 0x4c], 0
jne 0x407596
push dword [ebx + 0x28]
call sub.user32.dll_DestroyWindow
xor eax, eax
mov dword [ebx + 0x28], eax
push 0
movzx ecx, byte [ebx + 0x109]
jecxz 0x4075ac
push dword [ebx + 0x104]
lea esi, [ebx + 0x590]
mov dl, 2
lodsd eax, dword [esi]
xchg ecx, eax
jecxz 0x4075b9
push ecx
dec dl
jne 0x4075b4
pop ecx
jecxz 0x4075c8
xchg ecx, eax
call fcn.00402560
jmp 0x4075bd
xor ecx, ecx
xchg dword [ebx + 0x89], ecx
jecxz 0x4075d8
push ecx
call sub.gdi32.dll_DeleteObject
mov ecx, dword [ebx + 0x4d]
jecxz 0x407600
cmp dword [ecx + 0x171], ebx
jne 0x4075ed
xor eax, eax
mov dword [ecx + 0x171], eax
push ecx
mov eax, dword [ecx + 0x68]
mov edx, ebx
call fcn.00405a28
pop eax
mov edx, ebx
call fcn.00406c9c
lea esi, [ebx + 0x64]
lodsd eax, dword [esi]
call fcn.00406c54
lodsd eax, dword [esi]
call fcn.00406c54
lea eax, [ebx + 0x58c]
call fcn.004038d8
xchg ebx, eax
call fcn.00406c60
pop esi
pop ebx
ret
Function at 0x407908
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
xchg esi, eax
mov edi, edx
xor eax, eax
cmp eax, dword [edx]
je 0x40791e
cmp eax, dword [esi + 0x28]
jne 0x40791e
mov eax, dword [edx]
mov dword [esi + 0x28], eax
xor eax, eax
cmp byte [0x41b684], 0
je 0x40793a
mov ecx, dword [0x41b688]
jecxz 0x40793a
cmp ecx, esi
je 0x40793a
call fcn.004079af
mov ecx, esi
call fcn.004079af
mov ebx, dword [esi + 0xf4]
mov eax, esi
call fcn.004079bb
mov eax, esi
mov edx, edi
push 0
mov ecx, esp
call dword [esi + 0x10a]
test al, al
pop eax
jne 0x407b86
movzx eax, word [edi + 4]
cmp eax, 0x10
jne 0x407991
cmp esi, dword [0x41b688]
je 0x407985
mov eax, esi
call fcn.00407f28
test al, al
je 0x407b7a
push 0
call sub.user32.dll_PostQuitMessage
jmp 0x407b7a
cmp ax, 2
jne 0x4079a2
mov byte [esi + 0x9b], al
jmp 0x407b7a
cmp ax, 0x82
jne 0x4079d3
xor eax, eax
jmp 0x407ba2
cmp ax, 5
jne 0x407a07
mov edx, edi
mov eax, esi
call fcn.00407e98
push eax
mov ecx, dword [edi + 8]
mov byte [esi + 0x47], cl
cmp byte [esi + 0xbd], 0
jne 0x4079fb
mov eax, dword [esi + 0x4d]
call dword [0x41a0fc]
xchg esi, eax
call dword [0x41a0fc]
jmp 0x407ba1
cmp ax, 0x112
jne 0x407a56
mov eax, dword [edi + 8]
and al, 0xf0
cmp ax, 0xf020
jne 0x407b7a
mov eax, esi
call fcn.00407f28
test al, al
je 0x407b7a
cmp esi, dword [0x41b688]
je 0x407b7a
push 0
push 0xf020
push 0x112
mov eax, dword [0x41b688]
push dword [eax + 0x28]
call sub.user32.dll_PostMessageA
jmp 0x407b84
cmp ax, 7
jne 0x407a85
mov eax, esi
call fcn.00407ee4
test al, al
je 0x407b84
inc byte [esi + 0x18c]
mov eax, esi
mov edx, edi
call fcn.00407e98
dec byte [esi + 0x18c]
jmp 0x407ba2
mov edx, eax
sub dx, 0x132
cmp dx, 6
ja 0x407aaa
push dword [edi + 0xc]
push dword [edi + 8]
add ax, 0xbc00
push eax
push dword [edi + 0xc]
call sub.user32.dll_SendMessageA
jmp 0x407b86
cmp ax, 0x111
jne 0x407ada
push 0xffffffffffffffeb
push dword [edi + 0xc]
call sub.user32.dll_GetWindowLongA
test eax, eax
je 0x407b7a
push dword [edi + 0xc]
push dword [edi + 8]
push 0xb005
push dword [edi + 0xc]
call sub.user32.dll_SendMessageA
jmp 0x407b86
mov edx, eax
sub dx, 0x100
cmp dx, 8
ja 0x407b7a
call sub.user32.dll_GetFocus
cmp eax, dword [esi + 0x2c]
je 0x407af8
cmp eax, dword [esi + 0x28]
push eax
mov ecx, esp
mov edx, edi
mov eax, esi
call dword [0x41a114]
test al, al
jne 0x407b17
mov ecx, esp
mov edx, edi
mov eax, esi
call dword [esi + 0xf8]
test al, al
pop eax
jne 0x407b86
push 0x11
call sub.user32.dll_GetKeyState
xchg ebx, eax
push 0x12
call sub.user32.dll_GetKeyState
or eax, ebx
js 0x407b7a
cmp word [edi + 4], 0x102
jne 0x407b3d
cmp byte [edi + 8], 9
je 0x407b73
jmp 0x407b7a
mov eax, esi
call fcn.004081b4
test eax, eax
je 0x407b7a
mov ecx, dword [eax + 0x10e]
jecxz 0x407b7a
mov ebx, ecx
cmp dword [edi + 4], 0x100
setne cl
cmp dword [edi + 4], 0x104
setne ch
and cl, ch
mov edx, dword [edi + 8]
mov eax, esi
call ebx
test al, al
je 0x407b7a
xor eax, eax
mov dword [edi + 8], eax
jmp 0x407b86
xchg esi, eax
mov edx, edi
call fcn.00407e98
jmp 0x407ba2
xor eax, eax
Function at 0x40cc38
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 0x40cc71
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004039c8
jmp 0x40cc7a
mov eax, ebx
mov edx, esi
call fcn.0040392c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40d32c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d1a4
mov eax, dword [0x41a714]
cmp byte [eax], 0
je 0x40d3a8
mov eax, dword [0x41a634]
call fcn.004027d8
call fcn.00402688
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.0040a5f8
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 0x40d3f0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d3de
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41a60c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41b668]
call fcn.00404b08
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 0x40e08c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40e0f0
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403b48
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040a2f0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e0f7
lea eax, [ebp - 0xc]
call fcn.004038d8
ret