joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410320
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, edx
mov edx, ecx
and edi, 0x1f
mov dword [ebp - 4], edx
cmp edi, 8
jb 0x410409
mov eax, edi
shr eax, 3
cmp dword [ebp + 0x10], 1
jne 0x4103a8
mov dword [ebp - 8], eax
mov ecx, edx
call fcn.00410230
add dword [ebp - 4], 8
push edx
push eax
push 0
push 0
call fcn.00410250
add esp, 0x10
mov ecx, eax
xor ecx, ebx
xor edx, esi
mov eax, ecx
shld eax, edx, 0x1b
push 0x9e3779b1
shld edx, ecx, 0x1b
push 0x85ebca87
push edx
push eax
call fcn.00419030
mov ebx, eax
mov esi, edx
mov edx, dword [ebp - 4]
add ebx, 0xc2b2ae63
adc esi, 0x85ebca77
sub edi, 8
sub dword [ebp - 8], 1
jne 0x410350
jmp 0x410406
mov dword [ebp - 8], eax
nop dword [eax + eax]
mov eax, dword [edx + 4]
mov ecx, dword [edx]
add edx, 8
push eax
push ecx
push 0
push 0
mov dword [ebp - 4], edx
call fcn.00410250
add esp, 0x10
mov ecx, eax
xor ecx, ebx
xor edx, esi
mov eax, ecx
shld eax, edx, 0x1b
push 0x9e3779b1
shld edx, ecx, 0x1b
push 0x85ebca87
push edx
push eax
call fcn.00419030
mov ebx, eax
mov esi, edx
mov edx, dword [ebp - 4]
add ebx, 0xc2b2ae63
adc esi, 0x85ebca77
sub edi, 8
sub dword [ebp - 8], 1
jne 0x4103b0
mov edx, dword [ebp - 4]
mov ecx, edx
mov eax, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
cmp edi, 4
jb 0x41048d
cmp dword [ebp + 0x10], 1
mov dword [ebp - 0xc], eax
jne 0x410437
mov edi, edx
call fcn.00410210
mov edx, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov ecx, edi
mov dword [ebp - 0xc], eax
jmp 0x41043c
mov edx, dword [ecx]
mov dword [ebp - 8], edx
mov eax, 0x9e3779b1
add ecx, 4
mul edx
mov dword [ebp - 4], ecx
mov edi, eax
mov eax, 0x85ebca87
mul dword [ebp - 8]
push 0xc2b2ae3d
add edi, edx
xor eax, ebx
xor edi, esi
mov ecx, eax
shld ecx, edi, 0x17
shld edi, eax, 0x17
push 0x27d4eb4f
push edi
push ecx
call fcn.00419030
mov edi, dword [ebp - 0xc]
mov ebx, eax
add ebx, 0x9e3779f9
mov esi, edx
mov edx, dword [ebp - 4]
adc esi, 0x165667b1
sub edi, 4
test edi, edi
je 0x4104d4
movzx eax, byte [edx]
push 0x27d4eb2f
cdq
push 0x165667c5
push edx
push eax
call fcn.00419030
inc dword [ebp - 4]
xor ebx, eax
xor esi, edx
mov eax, ebx
push 0x9e3779b1
shld eax, esi, 0xb
push 0x85ebca87
shld esi, ebx, 0xb
push esi
push eax
call fcn.00419030
mov esi, edx
mov edx, dword [ebp - 4]
mov ebx, eax
sub edi, 1
jne 0x410491
push esi
push ebx
call fcn.004102d0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419625
Capabilities:
Parse pe header

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

Function at 0x423d22
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00423ba1

Function at 0x425c6b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042592b

Function at 0x42c900
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42c92d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42c92d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x87c
mov eax, dword [0x40a004]
xor eax, esp
mov dword [esp + 0x878], eax
push esi
mov esi, dword [esp + 0x88c]
push edi
mov edi, dword [esp + 0x888]
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x6a]
push ecx
mov word [esp + 0x6c], ax
call fcn.00402c90
add esp, 0xc
push 0x208
lea edx, [esp + 0x64]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x60]
push 0x5c
push eax
call fcn.004011ca
add esp, 8
test eax, eax
jne 0x40106a
or eax, 0xffffffff
jmp 0x4011a2
lea ecx, [esp + 0x60]
sub eax, ecx
sar eax, 1
xor edx, edx
push str.SGTool.exe
mov word [esp + eax*2 + 0x64], dx
mov eax, ecx
push 0x208
push eax
call fcn.004011f6
xor ecx, ecx
push 0x40e
push ecx
lea edx, [esp + 0x486]
push edx
mov word [esp + 0x488], cx
call fcn.00402c90
push 0x4092cc
lea eax, [esp + 0x48c]
push 0x208
push eax
call fcn.00401273
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x498]
push 0x208
push edx
call fcn.004011f6
push str.____appidscdreg
lea eax, [esp + 0x4a4]
push 0x208
push eax
call fcn.004011f6
push esi
lea ecx, [esp + 0x4b0]
push 0x208
push ecx
call fcn.004011f6
add esp, 0x48
push 0x40
lea edx, [esp + 0x24]
push 0
push edx
call fcn.00402c90
add esp, 0xc
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x490]
push edx
lea eax, [esp + 0x84]
push eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40119e
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0xc]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x880]
pop edi
pop esi
xor ecx, esp
call fcn.004011bb
add esp, 0x87c
ret 0x10

Function at 0x4011bb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a004]
jne 0x4011c5
repz ret
jmp fcn.00401492
Function at 0x403493
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.004024a9
and dword [ebp - 4], 0
cmp dword [0x40b68c], 0
mov ebx, eax
jne 0x403544
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4035f5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4035f5
push eax
call fcn.00402437
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b68c], eax
call esi
push eax
call fcn.00402437
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b690], eax
call esi
push eax
call fcn.00402437
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b694], eax
call esi
push eax
call fcn.00402437
pop ecx
mov dword [0x40b69c], eax
test eax, eax
je 0x403544
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402437
pop ecx
mov dword [0x40b698], eax
mov eax, dword [0x40b698]
cmp eax, ebx
je 0x40359c
cmp dword [0x40b69c], ebx
je 0x40359c
push eax
call fcn.004024b2
push dword [0x40b69c]
mov esi, eax
call fcn.004024b2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40359c
test edi, edi
je 0x40359c
call esi
test eax, eax
je 0x403593
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x403593
test byte [ebp - 0xc], 1
jne 0x40359c
or dword [ebp + 0x10], 0x200000
jmp 0x4035d5
mov eax, dword [0x40b690]
cmp eax, ebx
je 0x4035d5
push eax
call fcn.004024b2
pop ecx
test eax, eax
je 0x4035d5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4035d5
mov eax, dword [0x40b694]
cmp eax, ebx
je 0x4035d5
push eax
call fcn.004024b2
pop ecx
test eax, eax
je 0x4035d5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b68c]
call fcn.004024b2
pop ecx
test eax, eax
je 0x4035f5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4035f7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4045b8
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.00406a64
test esi, esi
jne 0x4045f0
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.00406ba0
jmp 0x40460e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044fc
mov edi, eax
test esi, esi
je 0x40460e
cmp dword [ebx], 0
je 0x40460e
dec esi
jmp 0x4045f7
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405e50
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x55a054], 0
je 0x405eb1
cmp word [0x55a330], 0xd7b2
jne 0x405e79
cmp dword [0x55a338], 0
jbe 0x405e79
mov eax, 0x55a32c
call dword [0x55a348]
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 0x405edc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x555030], 0
jne 0x405ecd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40605c
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 [0x555034], 0
je 0x406082
mov edx, esi
mov eax, ebx
call dword [0x555034]
jmp 0x406091
mov eax, 8
call fcn.00404244
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x55a055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406024
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 0x4089dc
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 0x408b43
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406a64
cmp si, word [0x5557dc]
jb 0x408a76
cmp si, word [0x5559dc]
ja 0x408a76
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408a76
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5557dc]
jae 0x408a50
mov edi, ebx
dec edi
jmp 0x408a71
cmp si, word [ebx*8 + 0x5557dc]
jbe 0x408a60
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408a71
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5557e0]
call fcn.004088ec
jmp 0x408a76
cmp edi, dword [ebp - 0xc]
jae 0x408a3a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408b25
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408b25
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.00406c74
push dword [ebp - 0x164]
push 0x408b60
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406c74
push dword [ebp - 0x168]
push 0x408b70
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406c74
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.0040702c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408b4a
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406a5c
ret
Function at 0x408cfc
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 0x408e01
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x55cb5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x55cb74]
jne 0x408d48
mov eax, esi
mov edx, 0x55cb78
mov ecx, 0x55
call fcn.00406c74
push 0x55cb5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408deb
push 0x55cb5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406a64
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408db9
cmp byte [0x55cb58], 0
je 0x408d7e
mov edx, esi
mov eax, ebx
call fcn.00408bdc
jmp 0x408db9
mov edx, esi
mov eax, ebx
call fcn.004089dc
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408db9
cmp dword [esi], 0
je 0x408da2
mov eax, esi
mov edx, 0x408e1c
call fcn.00406e88
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004089dc
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406e88
push 0x55cb5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x55cb74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406af0
push eax
push 0x55cb78
call sub.kernel32.dll_lstrcpynW
push 0x55cb5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e08
lea eax, [ebp - 4]
call fcn.00406a54
ret
Function at 0x409040
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.00406a4c
xor eax, eax
push ebp
push 0x409225
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409080
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40909a
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406af0
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40920f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409234
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409129
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409234
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409129
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409268
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409129
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40929c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40920f
xor eax, eax
push ebp
push 0x409208
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408e44
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 0x409198
mov eax, dword [ebp - 0x10]
call fcn.00404244
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.00406c20
jmp 0x4091e3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4092dc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4091e3
mov eax, dword [ebp - 0x10]
call fcn.00404244
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4092dc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406c20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40920f
cmp dword [ebp - 8], 0
je 0x4091fe
mov eax, dword [ebp - 8]
call fcn.00404260
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 0x40922c
lea eax, [ebp - 4]
call fcn.00406a54
ret
Function at 0x4094f0
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.00406a4c
mov eax, dword [ebp - 0x21c]
call fcn.00406a4c
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40968f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406a64
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406af0
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 0x409590
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x4095a2
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x40958d
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40965b
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 0x4095cb
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.00409040
cmp dword [ebp - 0x220], 0
je 0x409603
push ebp
mov eax, dword [ebp - 0x220]
call fcn.004093e4
pop ecx
mov ebx, eax
jmp 0x40965b
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408cfc
mov eax, dword [ebp - 0x224]
call fcn.004093e4
pop ecx
mov ebx, eax
test bl, bl
jne 0x40964e
cmp byte [0x55cb58], 0
jne 0x40964e
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408cfc
mov eax, dword [ebp - 0x228]
call fcn.004093e4
pop ecx
mov ebx, eax
test bl, bl
jne 0x40965b
push ebp
call fcn.00409494
pop ecx
mov ebx, eax
test bl, bl
je 0x409671
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406c74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409696
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406a5c
ret

Function at 0x409e24
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 0x40d854
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x55cc5c
push 0xa
push 0x40d8e8
mov eax, dword [0x55cc40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40d878
call fcn.0041ace8
push ebx
mov eax, dword [0x55cc40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40d88f
call fcn.0041ace8
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40d8a1
call fcn.0041ace8
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x55cc60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x55cc64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x55cc68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x55cc6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x55cc70], ecx
add edx, dword [eax + 0x14]
mov dword [0x55cc74], edx
pop esi
pop ebx
ret

Function at 0x412770
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x412819
test eax, edx
je 0x41281c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x412799
push edx
mov edx, eax
mov eax, esp
call fcn.00406c90
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x4127af
push eax
lea eax, [esp + 8]
call fcn.00406c90
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4127be
movzx eax, word [eax]
sub eax, ecx
jmp 0x4127e5
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 0x4127ff
add ecx, 4
js 0x4127d6
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x4127fc
push eax
mov eax, ecx
mov edx, 2
call fcn.004060fc
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4127e3
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4127e5
xor eax, eax
ret
test eax, eax
je 0x41282c
test edx, edx
jne 0x412780
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406af0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x413d3e
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x413d5f
cmp ebx, 3
je 0x413d5f
cmp ebx, 0x7b
je 0x413d5f
mov eax, esi
call fcn.00413ce0
test al, al
jne 0x413d63
xor eax, eax
jmp 0x413d65
mov al, 1
pop esi
pop ebx
ret

Function at 0x417d98
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x417dd1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406ba0
jmp 0x417dda
mov eax, ebx
mov edx, esi
call fcn.00406a64
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x417de4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x417e06
movzx eax, word [esp]
jmp 0x417e08
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x418598
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4186bd
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004183a8
mov esi, eax
mov eax, dword [0x559cfc]
cmp byte [eax], 0
je 0x418665
mov eax, dword [0x559860]
call fcn.004046ec
call fcn.004043ac
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x418570]
call fcn.004083d8
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4186d8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4186a1
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5597b8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x55cc40]
call fcn.004084cc
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4186c4
lea eax, [ebp - 4]
mov edx, dword [0x418570]
call fcn.004083e4
ret