joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441410
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x441443
push esi
call fcn.00444500
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44143c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4414c9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4414b2
mov eax, dword [esi + 8]
test eax, eax
je 0x441467
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4414ae
cmp eax, 2
je 0x4414b2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44145a
cmp eax, 3
je 0x44148d
cmp eax, 1
jne 0x44145a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44145a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44145a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004414f0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4414d8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004414f0
add esp, 4
pop esi
ret

Function at 0x45fd02
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45fd3a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045ddb9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045dd91
jmp 0x45fd46
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4613f7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x461439
call fcn.00466ea7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x461439
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x461430
xor eax, eax
jmp 0x461441
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00461447
pop edi
pop esi
pop ebx
ret 4

Function at 0x4673d7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x467405
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x467423
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046733d
jmp 0x467423
mov eax, dword [esi + 0x14]
test eax, eax
je 0x467423
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046733d
test edi, edi
mov eax, edi
jne 0x46740d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x406190
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 2
call sub.MFC42.DLL_operatornew
push 0x100
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_operatornew
add esp, 8
mov ebx, eax
push 0x100
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4061de
push 0x424220
push ebx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x4061ea
push ebx
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, str._setdz.mdb
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.004062d0
cmp eax, 1
jne 0x40623d
mov esi, dword [esp + 0x10]
push ebx
push 2
push esi
push 0
push 0x424210
push str.Used
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x406241
mov esi, dword [esp + 0x10]
cmp byte [esi], 0x31
jne 0x40627d
push 1
push ebx
mov ecx, ebp
call fcn.00406530
cmp eax, 1
je 0x406263
push 0
push 0
push 0x4241ec
call sub.MFC42.DLL_AfxMessageBox
push esi
call sub.MFC42.DLL_operatordelete
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push ebx
mov ecx, ebp
call fcn.00406530
cmp eax, 1
je 0x40629a
push 0
push 0
push 0x4241e0
call sub.MFC42.DLL_AfxMessageBox
push esi
call sub.MFC42.DLL_operatordelete
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4062d0
Capabilities:
Read .ini file
Set file attributes

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push 0x424354
mov ebx, ecx
push esi
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4063a2
mov ecx, dword [ebx + 0x74]
xor eax, eax
add ecx, 0xc28
xor edx, edx
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
mov dword [ecx], eax
push 0xa
mov dword [ecx + 4], eax
mov word [ecx + 8], ax
mov eax, dword [ebx + 0x74]
add eax, 0xc32
xor ecx, ecx
mov dword [eax], edx
mov dword [eax + 4], edx
mov word [eax + 8], dx
mov edx, dword [ebx + 0x74]
add edx, 0xc3c
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov word [edx + 8], cx
mov eax, dword [ebx + 0x74]
add eax, 0xc28
push eax
push ecx
push str.Name0
push str.Role
call edi
mov ecx, dword [ebx + 0x74]
push esi
add ecx, 0xc32
push 0xa
push ecx
push 0
push str.Name1
push str.Role
call edi
mov edx, dword [ebx + 0x74]
push esi
add edx, 0xc3c
push 0xa
push edx
push 0
push str.Name2
push str.Role
call edi
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push 6
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push esi
push 0x424330
push 0x424210
push str.Used
call edi
push esi
push str.admin
push str.Name0
push str.Role
call edi
push esi
push 0x424320
push str.Name1
push str.Role
call edi
push esi
push str.YaYa
push str.Name2
push str.Role
call edi
push esi
push 0x424330
push str.ManTotal0
push str.Role
call edi
push esi
push str.3000
push str.ManTotal1
push str.Role
call edi
push esi
push str.3000
push str.ManTotal2
push str.Role
call edi
push esi
push 0x424330
push str.victory0
push str.Role
call edi
push esi
push 0x424330
push str.victory1
push str.Role
call edi
push esi
push 0x424330
push str.victory2
push str.Role
call edi
push esi
push 0x424330
push str.fail0
push str.Role
call edi
push esi
push 0x424330
push str.fail1
push str.Role
call edi
push esi
push 0x424330
push str.fail2
push str.Role
call edi
push esi
push 0x4242ac
push str.Mode
push str.PutMode
call edi
push esi
push 0x424330
push 0x424298
push str.TopShow
call edi
push esi
push 0x42428c
push str.Speed
push str.GameSpeed
call edi
push esi
push 0x4242ac
push str.music
push str.MusicMode
call edi
push esi
push 0x4242ac
push str.playListMemory
push str.PLAYSET
call edi
push esi
push 0x4242ac
push str.IFNOTFILE
push str.PLAYERRLOG
call edi
push 6
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push esi
mov ecx, ebx
call fcn.00406530
cmp eax, 1
je 0x406524
push 0
push 0
push 0x424224
call sub.MFC42.DLL_AfxMessageBox
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
Function at 0x407e20
Capabilities:
Capture screenshot

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0040b820
mov eax, dword [esi + 0x668]
mov ecx, dword [esi + 0xc50]
push 0xcc0020
mov ebp, dword [sym.imp.GDI32.dll_BitBlt]
push 0x144
push 0x118
push eax
push 0x12
push 0x9b
push 0x144
push 0x118
push ecx
call ebp
mov edx, dword [esi + 0xc00]
mov edi, dword [sym.imp.USER32.dll_IsWindow]
push edx
call edi
test eax, eax
je 0x407e9b
mov eax, dword [esi + 0xc04]
push eax
call edi
test eax, eax
je 0x407e9b
mov ecx, dword [esi + 0xc04]
push 1
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
jmp 0x407ea9
push 0
push 0
push 0x424ab8
call sub.MFC42.DLL_AfxMessageBox
mov ecx, esi
call fcn.004099f0
mov edx, dword [esi + 0xc60]
mov eax, dword [esi + 0xc50]
push 0xcc0020
push 0
push 0
push edx
push 0x1f4
push 0x2bc
push 0
push 0
push eax
call ebp
mov ecx, dword [esi + 0xc60]
mov edi, dword [esp + 0x18]
push 0xcc0020
push 0
push 0
push ecx
push 0x1f4
push 0x2ad
push 0
push 0
push edi
call ebp
cmp dword [esi + 0x30], 1
jne 0x407f1b
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push 0x40007
push eax
push 0x87
call dword [sym.imp.WINMM.dll_PlaySoundA]
push edi
push 0x86
mov ecx, esi
call fcn.00409020
mov ebx, 0x136
mov edi, 0xc2
mov dword [esp + 0x10], 5
mov edx, dword [esi + 0xc9c]
mov eax, dword [esp + 0x18]
push 0xcc0020
push 0
push 0
push edx
inc edi
push 0x72
add ebx, 2
push 0x52
push edi
push ebx
push eax
call ebp
mov ecx, dword [esi + 0xc9c]
mov edx, dword [esi + 0xc58]
push 0xcc0020
push 0
push 0
push ecx
inc edi
push 0x72
add ebx, 2
push 0x52
push edi
push ebx
push edx
call ebp
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x407f3a
mov ecx, esi
call fcn.00409100
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [esp + 0x18]
mov ecx, esi
push edi
call fcn.00407fc0
mov dword [esi + 0xcc0], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
Function at 0x409890
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_IsWindow]
mov eax, dword [esi + 0xc0c]
push eax
call edi
test eax, eax
je 0x4099d8
mov ecx, dword [esi + 0xc10]
push ecx
call edi
test eax, eax
je 0x4099d8
mov edx, dword [esi + 0xc14]
push edx
call edi
test eax, eax
je 0x4099d8
mov eax, dword [esi + 0xc18]
push eax
call edi
test eax, eax
je 0x4099d8
mov ecx, dword [esi + 0xc0c]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push 0
push 0
push 0x15e
push 0x10e
push 0
push ecx
call edi
mov edx, dword [esi + 0xc10]
push 1
push 0
push 0
push 0x15e
push 0x12c
push 0
push edx
call edi
mov eax, dword [esi + 0xc14]
push 1
push 0
push 0
push 0x15e
push 0x154
push 0
push eax
call edi
mov ecx, dword [esi + 0xc18]
push 1
push 0
push 0
push 0x15e
push 0x190
push 0
push ecx
call edi
mov edx, dword [esi + 0xc0c]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push edx
call edi
mov eax, dword [esi + 0xc10]
push 5
push eax
call edi
mov ecx, dword [esi + 0xc14]
push 5
push ecx
call edi
mov edx, dword [esi + 0xc18]
push 5
push edx
call edi
mov ecx, dword [esi + 0xc08]
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push 0
push ecx
mov dword [esi + 0x66c], eax
call edi
mov edx, dword [esi + 0xc0c]
push 1
push 0
push edx
call edi
mov eax, dword [esi + 0xc10]
push 1
push 0
push eax
call edi
mov ecx, dword [esi + 0xc14]
push 1
push 0
push ecx
call edi
mov edx, dword [esi + 0xc18]
push 1
push 0
push edx
call edi
pop edi
pop esi
ret 4
push 0
push 0
push 0x424b08
call sub.MFC42.DLL_AfxMessageBox
pop edi
pop esi
ret 4
Function at 0x40ace0
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
push eax
mov esi, ecx
push 0x86
mov edi, 0x14c
call fcn.00409020
mov eax, dword [esp + 0x14]
sub eax, 0
je 0x40addb
dec eax
je 0x40ad79
dec eax
jne 0x40ade2
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
mov ebp, 3
mov ecx, dword [esi + 0xc9c]
mov edx, dword [esi + 0xc50]
push 0xcc0020
push 0
push 0
push ecx
add edi, 7
push 0x72
push 0x52
push edi
push 0x258
push edx
call ebx
mov eax, dword [esi + 0xc9c]
mov ecx, dword [esi + 0xc58]
push 0xcc0020
push 0
push 0
push eax
add edi, 7
push 0x72
push 0x52
push edi
push 0x258
push ecx
call ebx
dec ebp
jne 0x40ad1c
mov ecx, esi
call fcn.00409100
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
mov ebp, 3
mov edx, dword [esi + 0xc9c]
mov eax, dword [esi + 0xc50]
push 0xcc0020
push 0
push 0
push edx
add edi, 7
push 0x72
push 0x52
push edi
push 0xa
push eax
call ebx
mov ecx, dword [esi + 0xc9c]
mov edx, dword [esi + 0xc58]
push 0xcc0020
push 0
push 0
push ecx
add edi, 7
push 0x72
push 0x52
push edi
push 0xa
push edx
call ebx
dec ebp
jne 0x40ad84
mov ecx, esi
call fcn.00409100
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov ecx, esi
call fcn.00409100
mov ecx, esi
call fcn.00409100
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x402bd8
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403030
Capabilities:
Query or enumerate registry value

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

Function at 0x403e44
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49f044], 0
je 0x403ea5
cmp word [0x49f218], 0xd7b2
jne 0x403e6d
cmp dword [0x49f220], 0
jbe 0x403e6d
mov eax, 0x49f214
call dword [0x49f230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49d070
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 0x403ecc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49d034], 0
jne 0x403ec1
push 0
push 0x49d068
push 0x49d070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40547c
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 0x4056ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4054ff
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4056ac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4054ff
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4056c8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405588
xor eax, eax
push ebp
push 0x405581
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004052c4
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 0x405566
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4056e8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405566
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 0x405588
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 0x4056a2
cmp byte [ebp - 0xd], 0
jne 0x4055cf
cmp byte [ebp - 0x12], 0
je 0x4056a2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4055e8
dec ebx
cmp byte [ebx], 0x2e
je 0x4055f7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4055e7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4056a2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405634
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 0x4056a2
cmp byte [ebp - 0xd], 0
je 0x4056a2
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 0x4056a2
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 0x405d74
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 0x405dda
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.00404230
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402bf4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405dc4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405de1
lea eax, [ebp - 0x10]
call fcn.00403fc0
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404480
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408761
test al, 0x10
jne 0x408765
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b964
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 0x40b99d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040b0
jmp 0x40b9a6
mov eax, ebx
mov edx, esi
call fcn.00404014
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c058
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bed0
mov eax, dword [0x49e6f8]
cmp byte [eax], 0
je 0x40c0d4
mov eax, dword [0x49e3b4]
call fcn.00402a44
call fcn.0040286c
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.00408b18
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 0x40c11c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c10a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x49e324]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x49f660]
call fcn.00405288
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 0x40c970
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ca46
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404058
lea eax, [ebp - 8]
call fcn.004044d0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404480
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40ca30
mov eax, ebx
call fcn.00402704
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ca29
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 - 8]
call fcn.00404480
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ca13
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ca58
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ca13
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca30
mov eax, dword [ebp - 0x10]
call fcn.00402724
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca4d
lea eax, [ebp - 8]
call fcn.00403fc0
ret

Function at 0x40cf30
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 0x40cf94
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.00404230
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408420
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf9b
lea eax, [ebp - 0xc]
call fcn.00403fc0
ret

Function at 0x42248c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x49f884
cmp dword [edi], 0
jne 0x422508
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x49f880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x49d524
mov ecx, 2
call fcn.00402900
mov edx, 0x422464
lea eax, [esi + 5]
call fcn.00422484
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00422484
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4224dd
mov dword [0x49f880], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x423774
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42377a
ret
Function at 0x425fb8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x426009
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x425ff0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x425fe0
jmp 0x426009
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x425ff1
pop ebx
mov esp, ebp
pop ebp
ret