joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5685c0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x64e12c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x5685d3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x568614
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x64e1d4]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x568646
mov bl, byte [esp + ecx + 0x4c]
jmp 0x56864a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x56863b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x568668
mov bl, byte [esp + ecx + 0x4c]
jmp 0x56866c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x56865d
xor ecx, ecx
mov eax, 0x64e13c
xor ebx, ebx
mov bl, byte [ecx + 0x64e1e4]
cmp byte [esp + ebx + 0x14], 0
je 0x568697
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x64e1fc]
cmp byte [esp + ebx + 0x14], 0
je 0x5686ae
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x56867e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x568607
lea edx, [esp + 0x84]
push edx
call fcn.005686f0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x56d998
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b76d9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.00570450
lea edi, [esi + 0x108]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
lea ecx, [edi + 0xc]
mov dword [edi], fcn.004fd670
call fcn.005a2f58
lea ecx, [edi + 0x14]
mov byte [esp + 0x18], 1
call fcn.005a2f58
lea ecx, [edi + 0x1c]
mov byte [esp + 0x18], 2
call fcn.00570070
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 3
call fcn.00570070
lea ecx, [edi + 0x50]
mov byte [esp + 0x18], 4
call fcn.005a2f58
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 5
call fcn.005a2f58
lea ecx, [edi + 0x60]
mov byte [esp + 0x18], 6
call fcn.00570070
lea ecx, [edi + 0x74]
mov byte [esp + 0x18], 7
call fcn.00570070
mov dword [edi], 0x625f08
lea ecx, [esi + 0x264]
mov byte [esp + 0x18], 8
call fcn.00570450
lea ecx, [esi + 0x360]
mov byte [esp + 0x18], 9
call fcn.00570450
lea ecx, [esi + 0x45c]
mov byte [esp + 0x18], 0xa
call fcn.00570450
lea ecx, [esi + 0x558]
mov byte [esp + 0x18], 0xb
call fcn.00570450
lea ecx, [esi + 0x654]
mov byte [esp + 0x18], 0xc
call fcn.00570450
mov ecx, esi
mov byte [esp + 0x18], 0xd
mov dword [esi], method.CWnd.virtual_0
call fcn.0056dcc0
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x56db80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b77eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], method.CWnd.virtual_0
lea ecx, [esi + 0x654]
mov dword [esp + 0x18], 5
call fcn.00570620
lea ecx, [esi + 0x558]
mov byte [esp + 0x18], 4
call fcn.00570620
lea ecx, [esi + 0x45c]
mov byte [esp + 0x18], 3
call fcn.00570620
lea ecx, [esi + 0x360]
mov byte [esp + 0x18], 2
call fcn.00570620
lea ecx, [esi + 0x264]
mov byte [esp + 0x18], 1
call fcn.00570620
lea edi, [esi + 0x108]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x74]
mov byte [esp + 0x18], 0xc
mov dword [ecx], 0x625f18
call fcn.00570270
lea ecx, [edi + 0x60]
mov byte [esp + 0x18], 0xb
mov dword [ecx], 0x625f18
call fcn.00570270
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 0xa
call fcn.005a2f81
lea ecx, [edi + 0x50]
mov byte [esp + 0x18], 9
call fcn.005a2f81
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 8
mov dword [ecx], 0x625f18
call fcn.00570270
lea ecx, [edi + 0x1c]
mov byte [esp + 0x18], 7
mov dword [ecx], 0x625f18
call fcn.00570270
lea ecx, [edi + 0x14]
mov byte [esp + 0x18], 6
call fcn.005a2f81
lea ecx, [edi + 0xc]
mov byte [esp + 0x18], 0
call fcn.005a2f81
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00570620
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x5751c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x575226
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x575226
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x575207
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x5755b0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x5755e8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x5762b0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x5762f9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x576770
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b7cf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00576320
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.005763a0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.005763a0
lea ecx, [esi + 0xc]
call fcn.005a4d07
lea ecx, [esi + 0x10]
call fcn.005a4d07
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00577930
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00577930
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00577930
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.005a4d7c
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.005a4d7c
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x57a970
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x6a8468]
xor edx, edx
cmp eax, edx
jne 0x57a996
xor eax, eax
mov byte [eax + 0x6a8368], al
inc eax
cmp eax, 0x100
jl 0x57a97e
mov dword [0x6a8468], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x6a8368
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x57aa27
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x57a9fa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x57a9c8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x57aa30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x57aa83
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x57aa6a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x581400
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b80ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00581d20
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x626414
call fcn.005a4abd
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x581493
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005a4abd
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x58148c
push 0
mov ecx, eax
call fcn.005785a0
mov dword [esi + 0xc], eax
jmp 0x581495
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x581495
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x5a715c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5a7194
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.005a51d7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005a51af
jmp 0x5a71a0
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5a8953
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 0x5a8995
call fcn.005af516
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5a8995
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5a898c
xor eax, eax
jmp 0x5a899d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005a89a3
pop edi
pop esi
pop ebx
ret 4

Function at 0x5afa46
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 0x5afa74
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5afa92
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005af9ac
jmp 0x5afa92
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5afa92
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005af9ac
test edi, edi
mov eax, edi
jne 0x5afa7c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404650
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.0040708c
test esi, esi
jne 0x404688
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.004071c8
jmp 0x4046a6
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404534
mov edi, eax
test esi, esi
je 0x4046a6
cmp dword [ebx], 0
je 0x4046a6
dec esi
jmp 0x40468f
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4046d8
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x406200
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x6a2054], 0
je 0x406261
cmp word [0x6a2330], 0xd7b2
jne 0x406229
cmp dword [0x6a2338], 0
jbe 0x406229
mov eax, 0x6a232c
call dword [0x6a2348]
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
push 0x40628c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x68c030], 0
jne 0x40627d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40640c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x68c034], 0
je 0x406432
mov edx, esi
mov eax, ebx
call dword [0x68c034]
jmp 0x406441
mov eax, 8
call fcn.00404218
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x6a2055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4063d4
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc

Function at 0x407b40
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x407b82
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryW
push esp
call sub.KERNEL32.DLL_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryW
test bl, bl
je 0x407ba2
lea eax, [esp + 0x212]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040729c
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x4090e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x409247
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040708c
cmp si, word [0x68c7dc]
jb 0x40917a
cmp si, word [0x68c9dc]
ja 0x40917a
mov edi, pe_nt_image_headers32
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40917a
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x68c7dc]
jae 0x409154
mov edi, ebx
dec edi
jmp 0x409175
cmp si, word [ebx*8 + 0x68c7dc]
jbe 0x409164
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x409175
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x68c7e0]
call fcn.00408ff0
jmp 0x40917a
cmp edi, dword [ebp - 0xc]
jae 0x40913e
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x409229
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x409229
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.0040729c
push dword [ebp - 0x164]
push 0x409264
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.0040729c
push dword [ebp - 0x168]
push 0x409274
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.0040729c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407654
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40924e
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00407084
ret
Function at 0x409400
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 0x409505
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x6a4b5c
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x6a4b74]
jne 0x40944c
mov eax, esi
mov edx, 0x6a4b78
mov ecx, 0x55
call fcn.0040729c
push 0x6a4b5c
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x4094ef
push 0x6a4b5c
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.0040708c
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x4094bd
cmp byte [0x6a4b58], 0
je 0x409482
mov edx, esi
mov eax, ebx
call fcn.004092e0
jmp 0x4094bd
mov edx, esi
mov eax, ebx
call fcn.004090e0
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4094bd
cmp dword [esi], 0
je 0x4094a6
mov eax, esi
mov edx, 0x409520
call fcn.004074b0
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004090e0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004074b0
push 0x6a4b5c
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x6a4b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407118
push eax
push 0x6a4b78
call sub.KERNEL32.DLL_lstrcpynW
push 0x6a4b5c
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40950c
lea eax, [ebp - 4]
call fcn.0040707c
ret
Function at 0x409744
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407074
xor eax, eax
push ebp
push 0x409929
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409784
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x40979e
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407118
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409913
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409938
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x40982d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409938
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x40982d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40996c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x40982d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4099a0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x409913
xor eax, eax
push ebp
push 0x40990c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409548
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x40989c
mov eax, dword [ebp - 0x10]
call fcn.00404218
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407248
jmp 0x4098e7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4099e0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4098e7
mov eax, dword [ebp - 0x10]
call fcn.00404218
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4099e0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407248
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409913
cmp dword [ebp - 8], 0
je 0x409902
mov eax, dword [ebp - 8]
call fcn.00404234
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409930
lea eax, [ebp - 4]
call fcn.0040707c
ret
Function at 0x409bf4
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00407074
mov eax, dword [ebp - 0x21c]
call fcn.00407074
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409d93
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.0040708c
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00407118
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.KERNEL32.DLL_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x409c94
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409ca6
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409c91
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409d5f
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x409ccf
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00409744
cmp dword [ebp - 0x220], 0
je 0x409d07
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409ae8
pop ecx
mov ebx, eax
jmp 0x409d5f
push ebp
call sub.KERNEL32.DLL_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00409400
mov eax, dword [ebp - 0x224]
call fcn.00409ae8
pop ecx
mov ebx, eax
test bl, bl
jne 0x409d52
cmp byte [0x6a4b58], 0
jne 0x409d52
push ebp
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00409400
mov eax, dword [ebp - 0x228]
call fcn.00409ae8
pop ecx
mov ebx, eax
test bl, bl
jne 0x409d5f
push ebp
call fcn.00409b98
pop ecx
mov ebx, eax
test bl, bl
je 0x409d75
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.0040729c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409d9a
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00407084
ret

Function at 0x40e62c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x6a4c5c
push 0xa
push 0x40e6c0
mov eax, dword [0x6a4c40]
push eax
call sub.KERNEL32.DLL_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40e650
call fcn.0041ca50
push ebx
mov eax, dword [0x6a4c40]
push eax
call sub.KERNEL32.DLL_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40e667
call fcn.0041ca50
push ebx
call sub.KERNEL32.DLL_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40e679
call fcn.0041ca50
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x6a4c60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x6a4c64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x6a4c68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x6a4c6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x6a4c70], ecx
add edx, dword [eax + 0x14]
mov dword [0x6a4c74], edx
pop esi
pop ebx
ret