joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bbb88
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4bbd35
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4bbd16
mov dl, 1
mov eax, dword [0x42a4cc]
call fcn.00436310
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
xor edx, edx
call fcn.004068f0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4bbd05
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0049e1f4
test al, al
je 0x4bbcf8
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4bbd44
lea eax, [ebp - 0x394]
call fcn.00413248
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4bbcf8
xor eax, eax
push ebp
push 0x4bbcf1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4bbdb4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4bbcda
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406ad8
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x40]
jne 0x4bbcda
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406ad8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bbcf8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4bbbfb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.0043624c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bbd3c
lea eax, [ebp - 0x3a0]
call fcn.004068e0
ret

Function at 0x4bc894
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4e9288]
cmp byte [eax + 0xad], 0
jne 0x4bc906
cmp dword [0x4e92a0], 0
jne 0x4bc8c6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x4e2fbc]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4e92a0], eax
cmp dword [0x4e929c], 0
jne 0x4bc8e1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x4e929c], eax
cmp dword [0x4e92a4], 0
jne 0x4bc906
push esp
push 0
push 0
mov eax, dword [0x4e2fb8]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4e92a4], eax
pop edx
ret
Function at 0x4bcc2c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4bcc43
add esp, 0xfffffff0
call fcn.0040532c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0043e898
mov eax, dword [0x4e39d0]
cmp byte [eax], 0
jne 0x4bcc70
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x4e3c88]
cmp word [eax + 2], 0
jne 0x4bcc8a
mov eax, dword [0x4e3c88]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004bed24
mov eax, dword [0x4e3d8c]
cmp word [eax + 2], 0
jne 0x4bcca4
mov eax, dword [0x4e3d8c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004bef34
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x44923c]
call fcn.0044f510
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4bf4e4
mov dl, 1
mov eax, dword [0x427f04]
call fcn.00404dc8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x427f04]
call fcn.00404dc8
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x44d6d4]
call fcn.004589e8
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4bce84
mov eax, dword [0x4e3b60]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00458e7c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4bf7cc
mov dl, 1
mov eax, dword [0x427f04]
call fcn.00404dc8
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x4e3b60]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00413094
test eax, eax
je 0x4bcdb5
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00412e78
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00413078
test eax, eax
je 0x4bcdcd
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00406ad8
push ebx
push 0x4be6f4
call fcn.004b2880
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x4e39d0]
cmp byte [eax], 0
jne 0x4bce1e
mov eax, ebx
call fcn.004bcff8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004bf9f8
mov eax, ebx
call fcn.004c062c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4bce7b
call fcn.00405384
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bd2cc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4bd36e
cmp dword [ebx + 0x94], 0
jne 0x4bd368
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4bd218
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4bd368
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_GetWindowLongW
test al, 8
je 0x4bd32e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4bd368
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.00432cd4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4bd33d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4bd58c
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4e9288]
cmp dword [eax + 0x170], 0
je 0x4bd6f1
test bl, bl
jne 0x4bd63f
cmp dword [esi + 0x9c], 0
jne 0x4bd634
mov eax, esi
call fcn.004c047c
push eax
push 0x4bd498
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4bd605
mov eax, dword [0x4e9288]
cmp byte [eax + 0xd3], 0
je 0x4bd605
mov eax, dword [esi + 0xd8]
call fcn.00407efc
mov edi, eax
cmp edi, 0
jl 0x4bd605
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4bd5ee
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4bd634
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00432cd4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4bd614
inc dword [esi + 0x9c]
jmp 0x4bd6f1
cmp dword [esi + 0x9c], 0
jle 0x4bd6f1
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4bd6f1
cmp dword [esi + 0x44], 0
je 0x4bd69c
mov eax, dword [0x4e9288]
cmp byte [eax + 0xd3], 0
je 0x4bd69c
mov eax, dword [esi + 0xd8]
call fcn.00407efc
mov edi, eax
cmp edi, 0
jl 0x4bd69c
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4bd685
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4bd6cb
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00432cd4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4bd6ab
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x4b0758]
call fcn.004080bc
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4be340
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4be3ab
cmp byte [ebx + 0xd3], 0
jne 0x4be3ab
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406a2c
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4be398
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4be3b8
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004068f0
jmp 0x4be3b8
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004068f0
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4bfbe0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4bfc4e
mov eax, esi
call fcn.00498170
test al, al
je 0x4bfc4e
mov eax, dword [ebx + 0x84]
call fcn.00497dc4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4bfc4e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4bfc42
push 0
mov eax, dword [ebx + 0x84]
call fcn.00497dc4
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0048ed9c
jmp 0x4bfc4e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004bfa18
pop esi
pop ebx
ret
Function at 0x4c4218
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4c4246
mov eax, ebx
call fcn.004c4ccc
cmp dword [ebx + 0x40], 0
je 0x4c423f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4c42b7
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4c42a9
cmp dword [ebx + 8], 0
je 0x4c4268
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4c427a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4c42a9
cmp dword [ebx + 8], 0
je 0x4c425b
cmp eax, 3
je 0x4c428d
dec eax
jne 0x4c425b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4c425b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4c425b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4c42d5
cmp dword [ebx + 0x14], 0xcc
je 0x4c42d5
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004c42e0
pop ebx
ret
Function at 0x40ec61
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40eca0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40eca0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40eca0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40eca0
cmp dword [ecx + 0x74], 0xe
jbe 0x40eca0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4113e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41140d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41140d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x407400
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40750c
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
test bl, bl
je 0x407480
movzx eax, bl
add ax, 0x41
dec eax
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0
lea eax, [ebp - 0x420]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov edi, eax
cmp edi, 0x104
jbe 0x407477
mov edx, edi
dec edx
lea eax, [ebp - 4]
call fcn.0040c4c4
mov eax, dword [ebp - 4]
call fcn.0040c338
push eax
push edi
call sub.kernel32.dll_GetCurrentDirectoryW
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
cmp esi, 0x104
ja 0x4074b0
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x218]
mov ecx, 0x104
call fcn.0040c3ec
jmp 0x4074cc
mov edx, esi
dec edx
mov eax, dword [ebp - 8]
call fcn.0040c4c4
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040c338
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x4074f4
cmp edi, 0x104
jbe 0x4074e8
mov eax, dword [ebp - 4]
call fcn.0040c338
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
jmp 0x4074f4
lea eax, [ebp - 0x420]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407513
lea eax, [ebp - 4]
call fcn.0040b4bc
pop eax
jmp eax

Function at 0x407ae8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040b4bc
test esi, esi
jne 0x407b1e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040b654
jmp 0x407b3c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004079c8
mov edi, eax
test esi, esi
je 0x407b3c
cmp dword [ebx], 0
je 0x407b3c
dec esi
jmp 0x407b25
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x409fc4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.0040a484
mov byte [esp], al
cmp byte [esp], 0
jne 0x40a14d
test edi, edi
je 0x40a14d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40a08d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40a068
cmp edi, 0xffffffff
je 0x40a029
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40a029
mov byte [esp], 0
jmp 0x40a14d
cmp dword [esi], 1
jg 0x40a068
cmp dword [esi], 0
jne 0x40a05a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40a05a
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40a14d
lea eax, [esp + 0xc]
call fcn.00409c78
dec ebp
test ebp, ebp
jg 0x40a00e
cmp edi, 0xffffffff
je 0x40a08d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40a08b
mov byte [esp], 0
jmp 0x40a14d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x409fd2
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a08d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040a1c8
mov edx, eax
mov ebx, dword [0x7398fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40a0f1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40a0ef
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40a0f1
xor edi, edi
cmp byte [esp], 0
je 0x40a117
mov ebx, dword [esi]
test bl, 1
jne 0x40a12d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a0f7
mov byte [esp + 1], 1
jmp 0x40a12d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a117
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40a0a4
cmp byte [esp], 0
je 0x40a14d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40b118
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x73905c], 0
je 0x40b17f
cmp word [0x739348], 0xd7b2
jne 0x40b141
cmp dword [0x739350], 0
jbe 0x40b141
mov eax, 0x739344
call dword [0x739360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x40b1ac
call fcn.0040bebc
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x72a036], 0
jne 0x40b19b
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40b37c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x72a038], 0
je 0x40b3a7
mov edx, edi
mov eax, esi
call dword [0x72a038]
mov ebx, eax
jmp 0x40b3b8
mov eax, 8
call fcn.0040725c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x73905d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40b344
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40b3e8
mov eax, ebx
call fcn.00407278
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40f698
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40f7ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040b4bc
cmp si, word [0x72aa18]
jb 0x40f730
cmp si, word [0x72ac18]
ja 0x40f730
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40f730
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x72aa18]
jae 0x40f70a
mov edi, ebx
dec edi
jmp 0x40f72b
cmp si, word [ebx*8 + 0x72aa18]
jbe 0x40f71a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40f72b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x72aa1c]
call fcn.0040f5b4
jmp 0x40f730
cmp edi, dword [ebp - 8]
jae 0x40f6f4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40f7df
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40f7df
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040c3ec
push dword [ebp - 0x160]
push 0x40f81c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040c3ec
push dword [ebp - 0x164]
push 0x40f82c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040c3ec
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040c624
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f806
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040b51c
pop eax
jmp eax
Function at 0x40f9b4
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40faba
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x73bc18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x73bc30]
jne 0x40fa00
mov eax, esi
mov edx, 0x73bc32
mov ecx, 0x55
call fcn.0040c3ec
push 0x73bc18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40faa2
push 0x73bc18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040b4bc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40fa6f
cmp byte [0x73bc14], 0
je 0x40fa34
mov edx, esi
mov eax, ebx
call fcn.0040f898
jmp 0x40fa6f
mov edx, esi
mov eax, ebx
call fcn.0040f698
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40fa6f
cmp dword [esi], 0
je 0x40fa58
mov eax, esi
mov edx, 0x40fad4
call fcn.0040c544
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040f698
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040c544
push 0x73bc18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x73bc30], bx
mov eax, dword [esi]
call fcn.0040c338
mov ecx, eax
mov eax, 0x73bc32
mov edx, 0xaa
call fcn.0040f514
push 0x73bc18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fac1
lea eax, [ebp - 4]
call fcn.0040b4bc
pop eax
jmp eax