joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403530
Capabilities:
Enumerate services

Disassembly:
mov eax, 0x23e8
call fcn.00404fc0
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x2404]
push ecx
lea edx, [esp + 0x24]
push 0x23dc
push edx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
je 0x40363b
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], 0
test eax, eax
jbe 0x40362b
mov ebp, dword [esp + 0x23fc]
lea ebx, [esp + 0x28]
mov ecx, dword [ebx - 0xc]
push 0xf01ff
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov eax, dword [esp + 0x2400]
test eax, eax
je 0x40363b
mov edx, dword [esp + 0x2404]
push edx
push esi
push ebp
call fcn.00403530
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebx]
cmp eax, 2
je 0x4035d4
cmp eax, 4
je 0x4035d4
cmp eax, 5
jne 0x403613
mov eax, dword [0x41e1c0]
mov edi, dword [ebx - 0xc]
and eax, 0xffff
mov ecx, eax
shl ecx, 6
add ecx, eax
xor eax, eax
lea edx, [ecx*4 + 0x40dda4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
inc word [0x41e1c0]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc eax
add ebx, 0x24
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x403589
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x23e8
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x23e8
ret

Function at 0x403650
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
jne 0x403671
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ebx, 0x40dda4
push 0xf01ff
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x4036f8
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x403709
cmp dword [esp + 0x14], 4
je 0x4036d1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
xor edi, edi
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0x14], 4
je 0x4036d1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x1e
jb 0x4036ad
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call edi
push esi
call edi
add ebx, 0x104
cmp ebx, 0x41e1a4
jb 0x403676
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call edi
push esi
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
Function at 0x403720
Capabilities:
Enumerate services

Disassembly:
mov eax, 0x23e8
call fcn.00404fc0
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x2404]
push ecx
lea edx, [esp + 0x24]
push 0x23dc
push edx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
je 0x4037db
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], 0
test eax, eax
jbe 0x4037cb
mov ebp, dword [esp + 0x2404]
mov edi, dword [esp + 0x23fc]
lea ebx, [esp + 0x1c]
mov ecx, dword [ebx]
push 0xf01ff
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov eax, dword [esp + 0x2400]
test eax, eax
je 0x4037db
push ebp
push esi
push edi
call fcn.00403720
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebx]
push ebp
push edx
push edi
call fcn.004037f0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
inc eax
add ebx, 0x24
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x40377c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x23e8
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x23e8
ret

Function at 0x4037f0
Capabilities:
Query service status

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push edi
push 0xf01ff
push eax
push ecx
mov dword [esp + 0x10], 1
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x40381c
pop edi
add esp, 0x20
ret
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
xor esi, esi
test ebx, ebx
jbe 0x40389f
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x14]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x403880
mov ecx, dword [esp + 0x18]
mov eax, 1
cmp ecx, eax
je 0x40389b
test esi, esi
jne 0x403861
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x403880
push 0x3e8
call ebp
inc esi
cmp esi, ebx
jb 0x40382f
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x20
ret
push edi
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x20
ret
mov dword [esp + 0x10], eax
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x20
ret
Function at 0x4038c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x41e1b0]
sub esp, 0x14
cmp eax, 5
jl 0x4038ee
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push 0x40d454
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, 1
add esp, 0x14
ret
push ebx
push ebp
lea edx, [esp + 8]
push esi
xor ebx, ebx
push edx
push 0xf003f
push ebx
push str.SYSTEMCurrentControlSetControlProductOptions
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4039fa
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ebx
push ecx
push ebx
push str.ProductSuite
push edx
call esi
test eax, eax
jne 0x4039fa
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4039fa
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x18], ebp
je 0x4039fa
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edi
push eax
lea ecx, [esp + 0x1c]
push ebp
push ecx
push ebx
push str.ProductSuite
push edx
call esi
test eax, eax
jne 0x4039f2
cmp dword [esp + 0x18], 7
jne 0x4039f2
cmp byte [ebp], bl
je 0x4039f2
mov esi, str.Terminal_Server
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4039c3
cmp cl, bl
je 0x4039bf
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4039c3
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40399f
xor eax, eax
jmp 0x4039c8
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4039e6
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [ecx + ebp + 1]
lea ebp, [ecx + ebp + 1]
cmp al, bl
jne 0x403998
jmp 0x4039ee
mov dword [esp + 0x20], 1
mov ebp, dword [esp + 0x1c]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x403a0d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
cmp eax, ebx
pop ebx
je 0x403a3e
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push str.Global_
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, 1
add esp, 0x14
ret
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push 0x40d454
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, 1
add esp, 0x14
ret
Function at 0x4078a9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d600
cmp edx, dword [eax]
je 0x4078cb
add eax, 8
inc ecx
cmp eax, 0x40d690
jl 0x4078bc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d600]
jne 0x4079f9
mov eax, dword [0x41e1e4]
cmp eax, 1
je 0x4079d3
test eax, eax
jne 0x4078fc
cmp dword [0x40d524], 1
je 0x4079d3
cmp edx, 0xfc
je 0x4079f9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407933
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408540
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405a20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407976
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405a20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b5dc
push edi
call fcn.00409520
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408540
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408550
lea eax, [ebp - 0xa0]
push 0x40b5bc
push eax
call fcn.00408550
push dword [esi + 0x40d604]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408550
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00409497
add esp, 0x2c
pop edi
jmp 0x4079f9
lea eax, [ebp + 8]
lea esi, [esi + 0x40d604]
push 0
push eax
push dword [esi]
call fcn.00405a20
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x405868
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.004086d0
test esi, esi
jne 0x40589e
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.00408858
jmp 0x4058bc
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040574c
mov edi, eax
test esi, esi
je 0x4058bc
cmp dword [ebx], 0
je 0x4058bc
dec esi
jmp 0x4058a5
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4072a0
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.00407760
mov byte [esp], al
cmp byte [esp], 0
jne 0x407429
test edi, edi
je 0x407429
mov byte [esp + 1], 0
test ebp, ebp
jle 0x407369
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x407344
cmp edi, 0xffffffff
je 0x407305
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407305
mov byte [esp], 0
jmp 0x407429
cmp dword [esi], 1
jg 0x407344
cmp dword [esi], 0
jne 0x407336
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x407336
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x407429
lea eax, [esp + 0xc]
call fcn.00406f80
dec ebp
test ebp, ebp
jg 0x4072ea
cmp edi, 0xffffffff
je 0x407369
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407367
mov byte [esp], 0
jmp 0x407429
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4072ae
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407369
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004074a4
mov edx, eax
mov ebx, dword [0x4ed8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4073cd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4073cb
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4073cd
xor edi, edi
cmp byte [esp], 0
je 0x4073f3
mov ebx, dword [esi]
test bl, 1
jne 0x407409
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4073d3
mov byte [esp + 1], 1
jmp 0x407409
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4073f3
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x407380
cmp byte [esp], 0
je 0x407429
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 0x4080b4
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x4efb98
cmp dword [ebp + 0xc], 2
jl 0x4080c8
mov ebx, 0x4efbc8
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x408100
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x40372c
mov dword [0x4ed01c], eax
mov eax, 0x403734
mov dword [0x4ed020], eax
mov eax, ebx
call fcn.00407f98
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x408135
cmp al, 3
jge 0x408135
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x408146
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x408151
call dword [ecx + eax*4]
cmp dword [0x4ed040], 0
jne 0x408167
mov byte [0x4ed048], 1
fnstcw word [0x4e0028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00408400
call fcn.00408048
ret 4

Function at 0x408368
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ed058], 0
je 0x4083cf
cmp word [0x4ed344], 0xd7b2
jne 0x408391
cmp dword [0x4ed34c], 0
jbe 0x408391
mov eax, 0x4ed340
call dword [0x4ed35c]
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, 0x4083fc
call fcn.00408fc0
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4e0032], 0
jne 0x4083eb
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x408590
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 [0x4e0034], 0
je 0x4085bb
mov edx, edi
mov eax, esi
call dword [0x4e0034]
mov ebx, eax
jmp 0x4085cc
mov eax, 8
call fcn.00405484
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4ed059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x408558
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 0x4085fc
mov eax, ebx
call fcn.004054a0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40bbe0
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 0x40bd45
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004086d0
cmp si, word [0x4e0a10]
jb 0x40bc78
cmp si, word [0x4e0c10]
ja 0x40bc78
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40bc78
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4e0a10]
jae 0x40bc52
mov edi, ebx
dec edi
jmp 0x40bc73
cmp si, word [ebx*8 + 0x4e0a10]
jbe 0x40bc62
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40bc73
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4e0a14]
call fcn.0040bb00
jmp 0x40bc78
cmp edi, dword [ebp - 8]
jae 0x40bc3c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40bd27
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bd27
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.004092b0
push dword [ebp - 0x160]
push 0x40bd60
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004092b0
push dword [ebp - 0x164]
push 0x40bd70
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004092b0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004094e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bd4c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00408730
ret
Function at 0x40bef8
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 0x40bffc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4efc10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4efc28]
jne 0x40bf44
mov eax, esi
mov edx, 0x4efc2a
mov ecx, 0x55
call fcn.004092b0
push 0x4efc10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40bfe6
push 0x4efc10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004086d0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bfb3
cmp byte [0x4efc0c], 0
je 0x40bf78
mov edx, esi
mov eax, ebx
call fcn.0040bddc
jmp 0x40bfb3
mov edx, esi
mov eax, ebx
call fcn.0040bbe0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40bfb3
cmp dword [esi], 0
je 0x40bf9c
mov eax, esi
mov edx, 0x40c014
call fcn.00409408
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040bbe0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00409408
push 0x4efc10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4efc28], bx
mov eax, dword [esi]
call fcn.00409210
mov ecx, eax
mov eax, 0x4efc2a
mov edx, 0xaa
call fcn.0040ba60
push 0x4efc10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c003
lea eax, [ebp - 4]
call fcn.004086d0
ret
Function at 0x40c22c
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.004087b4
xor eax, eax
push ebp
push 0x40c451
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c26c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c286
mov eax, dword [ebp - 4]
call fcn.00409210
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040ba60
cmp word [ebp - 0x21a], 0
je 0x40c43b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c460
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c355
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c460
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c355
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c49c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c355
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c49c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c355
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c4d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c355
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c504
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c43b
xor eax, eax
push ebp
push 0x40c434
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c03c
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
test eax, eax
jne 0x40c3c4
mov eax, dword [ebp - 0x10]
call fcn.00405484
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
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409274
jmp 0x40c40f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c544
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c40f
mov eax, dword [ebp - 0x10]
call fcn.00405484
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c544
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409274
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c43b
cmp dword [ebp - 8], 0
je 0x40c42a
mov eax, dword [ebp - 8]
call fcn.004054a0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c458
lea eax, [ebp - 4]
call fcn.004086d0
ret
Function at 0x40c758
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004087b4
xor eax, eax
push ebp
push 0x40c818
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004092b0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409460
mov eax, dword [ebx]
call fcn.0040c608
test al, al
jne 0x40c7f5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004092b0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409460
mov eax, dword [ebx]
call fcn.0040c608
test al, al
jne 0x40c7f5
mov eax, ebx
call fcn.004086d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c81f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00408730
lea eax, [ebp - 4]
call fcn.004086d0
ret

Function at 0x40e0e0
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x41b00c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41b065
test eax, edx
je 0x41b068
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41b023
movzx eax, word [eax]
sub eax, ecx
jmp 0x41b04a
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41b04b
add ecx, 4
js 0x41b03b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41b048
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41b04a
xor eax, eax
ret
test eax, eax
je 0x41b074
test edx, edx
jne 0x41b014
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41c02c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x41c059
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4