joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013a0
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push edi
push 0x20000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4013c1
or eax, 0xffffffff
pop edi
add esp, 0x1c
ret
push esi
push 0x34
push str.stisvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4013e6
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
or eax, 0xffffffff
pop edi
add esp, 0x1c
ret
push ebx
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x401419
cmp dword [esp + 0x10], 1
je 0x401419
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0xc]
push ecx
push esi
call ebx
test eax, eax
je 0x401425
cmp dword [esp + 0x10], 1
jne 0x401406
pop ebx
pop esi
mov eax, 1
pop edi
add esp, 0x1c
ret
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
pop esi
xor eax, eax
pop edi
add esp, 0x1c
ret
Function at 0x401930
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
mov eax, 0x1944
call fcn.00411020
mov eax, dword [0x42ea04]
xor eax, esp
mov dword [esp + 0x1940], eax
lea eax, [esp + 0x940]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x940]
mov byte [esp + eax + 0x1140], cl
add eax, 1
test cl, cl
jne 0x401960
lea eax, [esp + 0x1140]
add eax, 0xffffffff
nop
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x401980
mov ecx, dword [str.RK5Scn]
mov edx, dword [0x426648]
push ebx
mov dword [eax], ecx
push esi
mov dword [eax + 4], edx
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x114c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4019fd
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x950]
push eax
lea ecx, [esp + 0x154]
push 0x42663c
push ecx
call fcn.00410fa5
add esp, 0x10
lea edx, [esp + 0x14c]
push edx
call ebx
lea eax, [esp + 0xc]
push eax
push esi
call edi
test eax, eax
jne 0x4019c4
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.30F0407A_FA47_42e6_8109_CA2DBD24D7D5.bmp
lea ecx, [esp + 0x94c]
push ecx
lea edx, [esp + 0x150]
push 0x42663c
push edx
call fcn.00410fa5
lea eax, [esp + 0x158]
push 0x4265f0
push eax
call fcn.00410f83
add esp, 0x18
test eax, eax
je 0x401a4f
push eax
call fcn.00410e43
add esp, 4
lea ecx, [esp + 0x148]
push ecx
call ebx
mov ecx, dword [esp + 0x1948]
pop esi
pop ebx
xor ecx, esp
call fcn.00410f96
add esp, 0x1944
ret
Function at 0x402420
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x423ad6
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x42ea04]
xor eax, esp
mov dword [esp + 0x42c], eax
push ebp
push esi
push edi
mov eax, dword [0x42ea04]
xor eax, esp
push eax
lea eax, [esp + 0x440]
mov dword fs:[0], eax
mov edi, dword [esp + 0x450]
lea ecx, [esp + 0x14]
call fcn.004081d9
push edi
lea eax, [esp + 0x238]
push str._s.
push eax
mov dword [esp + 0x454], 0
call fcn.00410fa5
add esp, 0xc
push 0
lea ecx, [esp + 0x238]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00408286
test eax, eax
je 0x40259d
lea ecx, [esp + 0x14]
call fcn.00407e39
lea ecx, [esp + 0x14]
mov ebp, eax
call fcn.0040815d
test eax, eax
jne 0x402595
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
call fcn.004084cd
mov esi, eax
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
mov byte [esp + 0x448], 1
jge 0x4024ff
push 0x104
mov ecx, esi
call fcn.00401e80
mov ecx, dword [esi]
lea edx, [esp + 0x2c]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x402505
mov byte [esp + 0x448], al
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40253a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x18]
call eax
test eax, eax
lea ecx, [esp + 0x2c]
push ecx
push edi
push str._s_s
je 0x402577
lea edx, [esp + 0x13c]
push edx
call fcn.00410fa5
lea eax, [esp + 0x140]
push eax
call fcn.00402420
add esp, 0x14
jmp 0x402595
lea edx, [esp + 0x344]
push edx
call fcn.00410fa5
add esp, 0x10
lea eax, [esp + 0x338]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test ebp, ebp
jne 0x4024a6
lea ecx, [esp + 0x14]
call fcn.00407d69
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
mov dword [esp + 0x448], 0xffffffff
lea ecx, [esp + 0x14]
jne 0x4025c9
call fcn.004081fd
xor eax, eax
jmp 0x4025d3
call fcn.004081fd
mov eax, 1
mov ecx, dword [esp + 0x440]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.00410f96
add esp, 0x43c
ret
Function at 0x404250
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x42ea04]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
mov esi, dword [esp + 0xa0]
push edi
lea eax, [esp + 8]
push eax
xor edi, edi
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4042a8
mov eax, dword [esp + 0xc]
cmp eax, 6
jb 0x404297
push esi
call fcn.00403fb0
jmp 0x4042aa
cmp eax, 5
jb 0x4042a4
push esi
call fcn.00403e30
jmp 0x4042aa
xor eax, eax
jmp 0x4042aa
mov eax, edi
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
xor ecx, esp
call fcn.00410f96
add esp, 0x98
ret 4
Function at 0x406a10
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x42ea04]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
lea eax, [esp + 4]
push eax
xor esi, esi
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x406ab0
mov eax, dword [esp + 8]
cmp eax, 6
jb 0x406a6c
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.004061c0
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00410f96
add esp, 0x98
ret 0x10
cmp eax, 5
jb 0x406a96
mov edx, dword [esp + 0xa8]
push edx
call fcn.004059e0
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00410f96
add esp, 0x98
ret 0x10
xor eax, eax
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00410f96
add esp, 0x98
ret 0x10
mov ecx, dword [esp + 0x98]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00410f96
add esp, 0x98
ret 0x10
Function at 0x407030
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push ebx
lea eax, [esp + 8]
push eax
xor ebx, ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
mov byte [esp + 0x10], bl
mov byte [esp + 0x11], bl
mov byte [esp + 0x12], bl
mov byte [esp + 0x13], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x407084
mov edx, dword [esp + 8]
push 4
lea ecx, [esp + 8]
push ecx
push 4
push ebx
push str.ConsentPromptBehaviorAdmin
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
add esp, 8
ret

Function at 0x407090
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
mov byte [esp + 0xc], 2
mov byte [esp + 0xd], 0
mov byte [esp + 0xe], 0
mov byte [esp + 0xf], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4070e5
mov edx, dword [esp + 4]
push 4
lea ecx, [esp + 4]
push ecx
push 4
push eax
push str.ConsentPromptBehaviorAdmin
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
ret

Function at 0x4070f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
push 0x3c
xor esi, esi
lea eax, [esp + 8]
push esi
push eax
call fcn.00410c60
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x20], eax
add esp, 0xc
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x54]
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x3c]
push 0xffffffffffffffff
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esi
pop esi
add esp, 0x3c
ret 0x14

Function at 0x4071a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x42ea04]
xor eax, esp
mov dword [esp + 0x94], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4071eb
cmp dword [esp + 4], 6
jb 0x4071eb
mov eax, 1
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00410f96
add esp, 0x98
ret
mov ecx, dword [esp + 0x94]
xor ecx, esp
xor eax, eax
call fcn.00410f96
add esp, 0x98
ret
Function at 0x410f96
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42ea04]
jne 0x410fa0
repz ret
jmp fcn.00416627

Function at 0x41dadd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041728e
xor ebx, ebx
cmp dword [0x43264c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41dbb2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x41db1d
xor eax, eax
jmp 0x41dc76
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x428990
push edi
call esi
cmp eax, ebx
je 0x41db16
push eax
call fcn.0041722b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43264c], eax
call esi
push eax
call fcn.0041722b
mov dword [esp], 0x42896c
push edi
mov dword [0x432650], eax
call esi
push eax
call fcn.0041722b
mov dword [0x432654], eax
lea eax, [ebp - 8]
push eax
call fcn.00413e58
test eax, eax
pop ecx
pop ecx
je 0x41db80
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00411055
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41dbb2
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041722b
cmp eax, ebx
pop ecx
mov dword [0x43265c], eax
je 0x41dbb2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041722b
pop ecx
mov dword [0x432658], eax
mov eax, dword [0x432658]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x41dc2b
cmp dword [0x43265c], esi
je 0x41dc2b
push eax
call fcn.00417297
pop ecx
call eax
cmp eax, ebx
je 0x41dbf8
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x43265c]
call fcn.00417297
pop ecx
call eax
test eax, eax
je 0x41dbf8
test byte [ebp - 0x18], 1
jne 0x41dc2b
lea eax, [ebp - 0xc]
push eax
call fcn.00413e8f
test eax, eax
pop ecx
je 0x41dc13
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00411055
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41dc22
or dword [ebp + 0x10], 0x200000
jmp 0x41dc5c
or dword [ebp + 0x10], 0x40000
jmp 0x41dc5c
mov eax, dword [0x432650]
cmp eax, esi
je 0x41dc5c
push eax
call fcn.00417297
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41dc5c
mov eax, dword [0x432654]
cmp eax, esi
je 0x41dc5c
push dword [ebp - 4]
push eax
call fcn.00417297
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x43264c]
call fcn.00417297
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4239bc
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x42ea04]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00423951
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00410c60
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x423a0b
cmp dword [ebp - 0x1c], 5
jb 0x423a23
jmp 0x423a1f
cmp dword [ebp - 0x10], 1
jne 0x423a23
cmp dword [ebp - 0x1c], 4
ja 0x423a1f
jne 0x423a23
cmp dword [ebp - 0x18], 0
jbe 0x423a23
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x429348
call fcn.00423842
test eax, eax
jge 0x423a44
mov byte [0x42fde0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00410f96
add ebp, 0x78
leave
ret
Function at 0x4065bf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4065e3
xor eax, eax
test eax, eax
je 0x4065f5
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4065f5
xor ecx, ecx
jmp 0x4065f8
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x4066e4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43f2bc], 0
push esi
jne 0x40671b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4066f5
mov dword [ecx*4 + 0x43f2b8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066f0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40674c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43f2b8]
xor eax, esi
inc ecx
dec edx
jne 0x40672e
pop edi
not eax
pop esi
ret 0xc
Function at 0x407029
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004047a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4070c4
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x46c3bc]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4070c4
cmp eax, 1
je 0x4070e5
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4070c4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x407091
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4070c0
xor eax, eax
inc eax
jmp 0x407104
cmp edi, eax
jae 0x4070c8
xor eax, eax
jmp 0x407104
cmp eax, esi
jae 0x4070cf
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x46c3bc]
jmp 0x4070e8
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40488c
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.00406f48
test esi, esi
jne 0x4048c2
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.004070c0
jmp 0x4048e0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404770
mov edi, eax
test esi, esi
je 0x4048e0
cmp dword [ebx], 0
je 0x4048e0
dec esi
jmp 0x4048c9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405ef8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004061a8
mov byte [esp], al
cmp byte [esp], 0
jne 0x406084
test edi, edi
je 0x406084
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405fbb
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405f96
cmp edi, 0xffffffff
je 0x405f57
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405f57
mov byte [esp], 0
jmp 0x406084
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405f96
test ebx, ebx
jne 0x405f8c
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402728
test eax, eax
jne 0x405f8c
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x406084
call 0x4061ec
dec ebp
test ebp, ebp
jg 0x405f3c
cmp edi, 0xffffffff
je 0x405fbb
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405fb9
mov byte [esp], 0
jmp 0x406084
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405f06
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402728
cmp ebx, eax
jne 0x405fbb
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004060f4
mov edx, eax
mov ebx, dword [0x4588f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x406022
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x406020
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x406022
xor edi, edi
cmp byte [esp], 0
je 0x40604b
mov ebx, dword [esi]
test bl, 1
jne 0x406064
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402728
cmp ebx, eax
jne 0x406028
mov byte [esp + 1], 1
jmp 0x406064
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402728
cmp ebx, eax
jne 0x40604b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405fd5
cmp byte [esp], 0
je 0x406084
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406cb0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x458058], 0
je 0x406d17
cmp word [0x458344], 0xd7b2
jne 0x406cd9
cmp dword [0x45834c], 0
jbe 0x406cd9
mov eax, 0x458340
call dword [0x45835c]
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, 0x406d44
call fcn.004077b0
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45602e], 0
jne 0x406d33
push 0
push 0x4569ba
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40929c
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 0x409401
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406f48
cmp si, word [0x4569f8]
jb 0x409334
cmp si, word [0x456bf8]
ja 0x409334
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409334
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4569f8]
jae 0x40930e
mov edi, ebx
dec edi
jmp 0x40932f
cmp si, word [ebx*8 + 0x4569f8]
jbe 0x40931e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40932f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4569fc]
call fcn.004091ac
jmp 0x409334
cmp edi, dword [ebp - 8]
jae 0x4092f8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4093e3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4093e3
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.00407c2c
push dword [ebp - 0x160]
push 0x40941c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407c2c
push dword [ebp - 0x164]
push 0x40942c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407c2c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407e64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409408
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406fa8
ret
Function at 0x4095b4
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 0x4096b7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x45ab88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x45aba0]
jne 0x409600
mov eax, esi
mov edx, 0x45aba2
mov ecx, 0x55
call fcn.00407c2c
push 0x45ab88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4096a1
push 0x45ab88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406f48
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40966f
cmp byte [0x45ab84], 0
je 0x409634
mov edx, esi
mov eax, ebx
call fcn.00409498
jmp 0x40966f
mov edx, esi
mov eax, ebx
call fcn.0040929c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40966f
cmp dword [esi], 0
je 0x409658
mov eax, esi
mov edx, 0x4096d0
call fcn.00407d84
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040929c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407d84
push 0x45ab88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x45aba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407b98
push eax
push 0x45aba2
call sub.kernel32.dll_lstrcpynW
push 0x45ab88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4096be
lea eax, [ebp - 4]
call fcn.00406f48
ret