joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5bc716
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472754
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a2008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
push 1
movups xmmword [esi], xmm0
push 0x48f868
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.005efc06
mov dword [ebp - 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov byte [ebp - 4], 5
mov ecx, dword [0x4a2a48]
mov eax, dword [0x4a2a4c]
add ecx, 1
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
adc eax, 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [0x4a2a4c], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ecx
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x18]
sar eax, 3
mov dword [0x4a2a48], ecx
cmp eax, 0x64
jae 0x5bc839
push ecx
lea ecx, [esi + 0x18]
call fcn.005dbf36
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x24]
sar eax, 3
cmp eax, 0x14
jae 0x5bc850
push ecx
lea ecx, [esi + 0x24]
call fcn.005dbe46
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x605da6
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472754
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a2008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
push 1
movups xmmword [esi], xmm0
push 0x48f868
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00639296
mov dword [ebp - 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov byte [ebp - 4], 5
mov ecx, dword [0x4a2a48]
mov eax, dword [0x4a2a4c]
add ecx, 1
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
adc eax, 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [0x4a2a4c], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ecx
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x18]
sar eax, 3
mov dword [0x4a2a48], ecx
cmp eax, 0x64
jae 0x605ec9
push ecx
lea ecx, [esi + 0x18]
call int.006255c6
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x24]
sar eax, 3
cmp eax, 0x14
jae 0x605ee0
push ecx
lea ecx, [esi + 0x24]
call fcn.006254d6
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x638c76
Capabilities:
Encode data using xor

Disassembly:
loope 0x638cdd
sub cl, byte [esi + 0x1934da03]
sub esi, dword [esi - 0x229d6423]
cmpsb byte [esi], byte es:[edi]
invalid
cmp dh, al
invalid
Function at 0x64cd5d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x654390
cmp edx, dword [eax]
je 0x64cd7f
add eax, 8
inc ecx
cmp eax, 0x654420
jl 0x64cd70
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x654390]
jne 0x64cead
mov eax, dword [0xa57cf4]
cmp eax, 1
je 0x64ce87
add byte [eax], al
invalid
test eax, eax
jne 0x64cdb0
cmp dword [0x6542b8], 1
je 0x64ce87
cmp edx, 0xfc
je 0x64cead
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x64cde7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0064d740
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0064dbd0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x64ce2a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0064dbd0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x652524
push edi
call fcn.0064faa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0064d740
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0064d750
lea eax, [ebp - 0xa0]
push 0x652504
push eax
call fcn.0064d750
push dword [esi + 0x654394]
lea eax, [ebp - 0xa0]
push eax
call fcn.0064d750
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0064fa14
add esp, 0x2c
pop edi
jmp 0x64cead
lea eax, [ebp + 8]
lea esi, [esi + 0x654394]
push 0
push eax
push dword [esi]
call fcn.0064dbd0
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 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401b26
Capabilities:
Access peb ldr_data

Disassembly:
pop esi
repne movsb byte es:[edi], byte [esi]
call 0x401b26
mov ebx, 0xa2a1de0
push 0x9dbd95a6
call ebp
cmp al, 6
jl 0x401b21
cmp bl, 0xe0
jne 0x401b21
mov ebx, 0x6f721347
push 0
push ebx
call ebp
xor eax, eax
push eax
push eax
push eax
push ebx
push eax
push eax
push 0x160d6838
call ebp
pop eax
pop eax
popal
jmp 0x401c39
fldpi
wait
fnstenv [esp - 0xc]
xor edx, edx
mov dl, 0x77
xor ecx, ecx
mov esi, dword fs:[ecx + 0x30]
mov esi, dword [esi + 0xc]
mov esi, dword [esi + 0x1c]
mov eax, dword [esi + 8]
mov edi, dword [esi + 0x20]
mov esi, dword [esi]
cmp byte [edi + 0x18], cl
jne 0x401c50
pop ecx
add ecx, edx
jmp ecx

Function at 0x401b3d
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
call fcn.00401aff
and sp, 0xfffc
xor esi, esi
mov esi, dword fs:[esi + 0x30]
mov esi, dword [esi + 0xc]
mov esi, dword [esi + 0x1c]
push esi
mov si, 0x1aaa
pop edi
mov ebp, dword [edi + 8]
push dword [edi]
mov ebx, dword [ebp + 0x3c]
mov ebx, dword [ebp + ebx + 0x78]
add ebx, ebp
mov ecx, dword [ebx + 0x18]
jcxz 0x401b58
mov edi, dword [ebx + 0x20]
add edi, ebp
mov edi, dword [edi + ecx*4 - 4]
add edi, ebp
xor eax, eax
cdq
xor dl, byte [edi]
ror dx, 1
scasb al, byte es:[edi]
jne 0x401b7b
dec ecx
cmp dx, si
je 0x401b92
jcxz 0x401b58
jmp 0x401b6d
mov esi, dword [ebx + 0x24]
add esi, ebp
movzx esi, word [esi + ecx*2]
mov eax, dword [ebx + 0x1c]
add eax, ebp
mov edi, dword [eax + esi*4]
add edi, ebp
xor esi, esi
cmp dx, 0xf0da
je 0x401bc9
cmp dx, 0x2769
je 0x401bd5
push 0x32
push 0x33656c6f
push esp
call edi
xchg ebp, eax
mov si, 0xf0da
jmp 0x401b5e
push esi
call edi
mov si, 0x2769
jmp 0x401b5e
push 0xd422046e
push 0x99efeca1
push 0x499272b9
push 0x6c44df74
mov eax, esp
push 0x9673794f
push 0xc001e39e
dec dword [esp + 2]
push 0x11d23391
push 0x96749377
mov ebx, esp
push esi
push esp
push eax
push 0x17
push esi
push ebx
call edi
pop ebx
push 0x5520676f
push 0x7420706f
push 0x686e6421
xchg esi, eax
mov esi, esp
push eax
lodsb al, byte [esi]
push ax
cmp al, 0x55
jne 0x401c22
mov ecx, esp
xor eax, eax
push eax
push eax
push ecx
push ebx
mov edx, dword [ebx]
mov ecx, dword [edx + 0x50]
call ecx
int3
Function at 0x10001016
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10001020
repz ret
jmp fcn.10001474

Function at 0x10004626
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10002a7c
and dword [ebp - 4], 0
cmp dword [0x1000b5b4], 0
mov ebx, eax
jne 0x100046d7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10004788
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10004788
push eax
call fcn.10002a0a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1000b5b4], eax
call esi
push eax
call fcn.10002a0a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1000b5b8], eax
call esi
push eax
call fcn.10002a0a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1000b5bc], eax
call esi
push eax
call fcn.10002a0a
pop ecx
mov dword [0x1000b5c4], eax
test eax, eax
je 0x100046d7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10002a0a
pop ecx
mov dword [0x1000b5c0], eax
mov eax, dword [0x1000b5c0]
cmp eax, ebx
je 0x1000472f
cmp dword [0x1000b5c4], ebx
je 0x1000472f
push eax
call fcn.10002a85
push dword [0x1000b5c4]
mov esi, eax
call fcn.10002a85
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000472f
test edi, edi
je 0x1000472f
call esi
test eax, eax
je 0x10004726
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10004726
test byte [ebp - 0xc], 1
jne 0x1000472f
or dword [ebp + 0x10], 0x200000
jmp 0x10004768
mov eax, dword [0x1000b5b8]
cmp eax, ebx
je 0x10004768
push eax
call fcn.10002a85
pop ecx
test eax, eax
je 0x10004768
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10004768
mov eax, dword [0x1000b5bc]
cmp eax, ebx
je 0x10004768
push eax
call fcn.10002a85
pop ecx
test eax, eax
je 0x10004768
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1000b5b4]
call fcn.10002a85
pop ecx
test eax, eax
je 0x10004788
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000478a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10007940
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x100079af
push 0xf01ff
push str.WINIO
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x24], 0
je 0x100079a9
lea edx, [ebp - 0x1c]
push edx
push 1
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
setne cl
mov byte [ebp - 0x25], cl
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x100079ad
xor al, al
jmp 0x100079b6
jmp 0x100079b3
xor al, al
jmp 0x100079b6
mov al, byte [ebp - 0x25]
mov esp, ebp
pop ebp
ret
Function at 0x100079c0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10007a4c
push 0xf01ff
push 0x10009364
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 8], 0
je 0x10007a46
push 0
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x10007a2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x10007a2d
mov dword [ebp - 0x10], 0
jmp 0x10007a34
mov dword [ebp - 0x10], 1
mov al, byte [ebp - 0x10]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10007a4a
xor al, al
jmp 0x10007a53
jmp 0x10007a50
xor al, al
jmp 0x10007a53
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x10007a60
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call fcn.10007940
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10007a8a
xor al, al
jmp 0x10007b5b
push 0xf01ff
push 0x10009358
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0xc], 0
jne 0x10007ab8
xor al, al
jmp 0x10007b5b
lea edx, [ebp - 0x18]
push edx
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
setne cl
mov byte [ebp - 0x11], cl
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10007b4e
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.10001102
add esp, 4
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
setne dl
mov byte [ebp - 0x11], dl
movzx eax, byte [ebp - 0x11]
test eax, eax
jne 0x10007b33
mov ecx, dword [ebp - 4]
push ecx
call fcn.10001025
add esp, 4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [ebp - 0x11]
jmp 0x10007b5b
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 3
jne 0x10007b4e
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
setne dl
mov byte [ebp - 0x11], dl
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [ebp - 0x11]
mov esp, ebp
pop ebp
ret
Function at 0x10007b60
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sym.WinIo32.dll_RemoveWinIoDriver
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10007bd9
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 1
movzx ecx, byte [ebp + 0xc]
sub ecx, 1
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffe
add ecx, 3
push ecx
push 1
push 0xf01ff
push 0x10009340
push 0x1000934c
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 8], 0
jne 0x10007bd7
xor al, al
jmp 0x10007be9
jmp 0x10007bdd
xor al, al
jmp 0x10007be9
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x401ab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push eax
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.ucrtbase.dll_strlen]
add esp, 4
test eax, eax
je 0x401b02
mov esi, eax
xor eax, eax
cmp byte [esi + edi - 1], 0xa
je 0x401ae1
mov eax, dword fs:[0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
xchg dword [0x4040cc], eax
push 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
push eax
push esi
push 1
push edi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
jmp 0x401b04
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebp
ret
Function at 0x4022e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push 1
call sym.__configure_wide_argv
add esp, 4
call sym.__initialize_wide_environment
call sym.___p___argc
mov edi, dword [eax]
call sym.___p___wargv
mov ebx, dword [eax]
call sym.__get_initial_wide_environment
mov esi, eax
call sym._get_nt_header
xor ecx, ecx
cmp word [eax + 0x5c], 2
sete cl
inc ecx
push ecx
call sym.__set_app_type
add esp, 4
push esi
push ebx
push edi
call sym._wmain
add esp, 0xc
push eax
call sym._exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4012b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52dfb0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x57ddc8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0
call fcn.00405f00
test ebx, ebx
je 0x4013ab
cmp dword [ebp + 0xc], 0
je 0x4013ab
mov eax, dword [ebp + 8]
mov edi, dword [eax + 8]
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x401
or eax, ecx
jge 0x40132c
push 0x401
mov ecx, esi
call fcn.00406070
mov eax, dword [esi]
mov ecx, dword [ebp + 0xc]
push edi
push 0x400
push eax
push 0x55b970
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x40134c
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x401363
push ecx
push eax
call fcn.0050bb66
add esp, 8
test eax, eax
js 0x40138c
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40138c
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00406140
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
call fcn.0040ccff
mov eax, 0x401375
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x405b80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405b9b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405bd2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x405bce
jmp 0x405bc0
cmp esi, eax
jae 0x405bd2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x405bc0
cmp esi, eax
jb 0x405bd9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x409410
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 4
mov esi, ecx
push esi
push 0x408180
push 0
push 0
mov dword [esi + 0x368], 1
mov dword [ebp - 4], 0
call fcn.0050c7f8
add esp, 0x18
mov dword [esi + 0x364], eax
test eax, eax
je 0x409456
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 1
je 0x409470
push 0
push 0x585998
mov ecx, 0x1006
call fcn.00407ab0
push 0x67
mov ecx, esi
call fcn.0041215c
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x409480
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 4
mov esi, ecx
push esi
push 0x408180
push 0
push 0
mov dword [esi + 0x368], 0
mov dword [ebp - 4], 0
call fcn.0050c7f8
add esp, 0x18
mov dword [esi + 0x364], eax
test eax, eax
je 0x4094c6
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 1
je 0x4094e0
push 0
push 0x585998
mov ecx, 0x100b
call fcn.00407ab0
push 0x67
mov ecx, esi
call fcn.0041215c
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40f4a2
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x57ddc8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x40f4e7
push 0x5324c8
push 4
push eax
call fcn.0050c898
push eax
call fcn.00405c30
add esp, 0x10
jmp 0x40f4fd
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40f57d
push edi
call fcn.0050baab
mov edi, dword [eax]
call fcn.0050baab
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0050d009
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.0050baab
cmp dword [eax], 0
je 0x40f551
call fcn.0050baab
push dword [eax]
call fcn.0040c6b7
pop ecx
jmp 0x40f558
call fcn.0050baab
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x40f57d
cmp dword [ebp - 0x234], esi
jae 0x40f57d
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x40f57f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0050b7d0
leave
ret
Function at 0x40fb6a
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x57ddc8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.0040faa7
pop ecx
cmp eax, esi
je 0x40fc54
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x40fc54
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.0050d1b0
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x40fc54
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x40fc54
cmp esi, 0x14
jge 0x40fc54
push 0x10
push 0
push edi
call fcn.0050c378
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40fc43
call fcn.0050baab
cmp dword [eax], 0x22
je 0x40fc43
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.0050c9c9
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x40fc19
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x57f640], 0
jne 0x40fcdf
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x40fd08
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.0040f4a2
pop ecx
pop ecx
test eax, eax
jne 0x40fd0a
inc edi
cmp edi, esi
jl 0x40fce5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050b7d0
leave
ret 8