joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405940
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor eax, eax
push edi
cmp esi, eax
mov ebx, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
je 0x405b40
cmp dword [ebx + 0x448], eax
je 0x405b10
mov ebp, dword [esp + 0x24]
mov eax, esi
cdq
mov dword [ebp], esi
mov edi, dword [ebx + 0x440]
mov ecx, dword [ebx + 0x430]
add eax, edi
mov edi, dword [ebx + 0x444]
adc edx, edi
xor edi, edi
cmp edx, edi
jb 0x4059b6
ja 0x405997
cmp eax, ecx
jbe 0x4059b6
sub ecx, dword [ebx + 0x440]
mov dword [ebp], ecx
mov eax, dword [ebx + 0x420]
or eax, dword [ebx + 0x424]
je 0x4059b6
mov dword [esp + 0x14], 1
mov ecx, dword [ebp]
xor eax, eax
cmp ecx, eax
je 0x405a10
mov esi, dword [ebx + 0x41c]
mov edx, dword [ebx + 0x440]
mov edi, dword [esp + 0x1c]
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
mov ecx, dword [ebx + 0x440]
add ecx, eax
mov esi, dword [esp + 0x20]
mov dword [ebx + 0x440], ecx
mov eax, dword [ebx + 0x444]
adc eax, 0
mov dword [ebx + 0x444], eax
mov ecx, dword [ebp]
mov dword [esp + 0x10], ecx
mov edi, ecx
xor eax, eax
jmp 0x405a14
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x14], 1
jne 0x405b40
jmp 0x405a23
xor eax, eax
mov edx, dword [ebx + 0x41c]
mov dword [ebx + 0x438], eax
mov dword [ebx + 0x440], eax
push edx
mov dword [ebx + 0x43c], eax
mov dword [ebx + 0x444], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, ebx
mov dword [ebx + 0x41c], 0
call fcn.00405b50
test eax, eax
je 0x405b2d
mov eax, dword [ebp]
mov ecx, dword [ebx + 0x430]
mov edx, esi
sub edx, eax
cmp edx, ecx
jbe 0x405a8f
add eax, ecx
mov dword [ebp], eax
mov eax, dword [ebx + 0x420]
or eax, dword [ebx + 0x424]
je 0x405a9a
mov dword [esp + 0x14], 1
jmp 0x405a9a
mov dword [ebp], esi
mov dword [esp + 0x14], 0
mov ecx, dword [ebp]
sub ecx, edi
je 0x405af6
mov esi, dword [ebx + 0x41c]
mov eax, dword [ebx + 0x440]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, ecx
add 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]
mov ecx, dword [ebp]
mov esi, dword [esp + 0x10]
mov edx, dword [ebx + 0x440]
sub ecx, esi
add edx, ecx
mov esi, dword [esp + 0x20]
mov dword [ebx + 0x440], edx
mov eax, dword [ebx + 0x444]
adc eax, 0
mov dword [ebx + 0x444], eax
mov edx, dword [ebp]
mov dword [esp + 0x10], edx
mov edi, edx
cmp dword [esp + 0x14], 1
je 0x405a21
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx + 0x208]
push eax
mov eax, dword [esp + 0x28]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405b40
mov ecx, ebx
call fcn.004058e0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0xc
Function at 0x405b50
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, ecx
xor ecx, ecx
mov edx, dword [esi + 0x424]
mov eax, dword [esi + 0x434]
cmp edx, ecx
ja 0x405baa
jb 0x405b71
mov ecx, dword [esi + 0x420]
cmp ecx, eax
ja 0x405baa
mov edx, dword [esi + 0x428]
push 0
push edx
mov eax, edx
mov edx, dword [esi + 0x42c]
mov ecx, 0x20
call fcn.0040a090
push eax
mov eax, dword [esi + 0x418]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [esi + 0x420]
mov dword [esi + 0x41c], eax
jmp 0x405be0
mov edx, dword [esi + 0x428]
push eax
push edx
mov eax, edx
mov edx, dword [esi + 0x42c]
mov ecx, 0x20
call fcn.0040a090
push eax
mov eax, dword [esi + 0x418]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [esi + 0x434]
mov dword [esi + 0x41c], eax
mov eax, dword [esi + 0x41c]
mov dword [esi + 0x430], ecx
test eax, eax
je 0x405c3d
mov edx, dword [esi + 0x420]
mov eax, ecx
xor ecx, ecx
sub edx, eax
mov dword [esi + 0x420], edx
mov edx, dword [esi + 0x424]
sbb edx, ecx
mov dword [esi + 0x448], 1
mov dword [esi + 0x424], edx
mov edx, dword [esi + 0x428]
add edx, eax
mov dword [esi + 0x428], edx
mov eax, dword [esi + 0x42c]
adc eax, ecx
mov dword [esi + 0x42c], eax
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x405f50
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, ecx
push esi
mov eax, dword [ebp + 0xc18]
test eax, eax
je 0x40605f
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebp + 0xc20]
cmp eax, ecx
jg 0x40605f
mov ebx, dword [esp + 0x34]
test ebx, ebx
je 0x40605f
mov esi, dword [esp + 0x38]
test esi, esi
je 0x40605f
lea ecx, [esp + 0xc]
push edi
push ecx
call dword [sym.imp.MSVCRT.dll__wstrdate]
add esp, 4
lea edx, [esp + 0x22]
mov edi, 0x20
push edx
mov word [esp + 0x24], di
call dword [sym.imp.MSVCRT.dll__wstrtime]
mov eax, dword [ebp + 0xc1c]
add esp, 4
mov word [esp + 0x32], di
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp word [ebp + 0xa10], 0
jne 0x406038
xor esi, esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push ebx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40600f
inc edi
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x40600f
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [esp + 0x3c]
mov eax, dword [ebp + 0xc18]
lea ecx, [esp + 0x40]
push 0
push ecx
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x406051
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x406051
mov eax, dword [ebp + 0xc18]
lea ecx, [esp + 0x40]
push 0
lea edx, [esi + esi]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0xc1c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc
Function at 0x406800
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
lea eax, [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x18]
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40689c
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 8]
lea ecx, [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x18]
push ebx
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406892
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40688b
cmp eax, 2
jne 0x406892
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0040a020
mov esi, esp
test esi, esi
je 0x406892
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x406892
cmp eax, edi
jae 0x406892
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4068b0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 0x20006
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406902
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x406902
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x406902
ret
and eax, 0xffff
or eax, 0x80040000
ret
Function at 0x407780
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
lea eax, [esp + 0xc]
mov byte [esi], 0
mov byte [edi], 0
mov ecx, dword [str.HardwareDescriptionSystem]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4077f9
mov edx, dword [esp + 0x14]
mov ecx, dword [str.Identifier]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push 0
push ecx
push edx
call esi
mov eax, dword [esp + 0x18]
mov edx, dword [str.SystemBiosVersion]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push edi
push ecx
push 0
push edx
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
ret
Function at 0x409e30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40bb68
push 0x40a160
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x41283c], 0xffffffff
mov dword [0x412840], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x412804]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x412800]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x412838], ecx
call fcn.0040a1b0
mov eax, dword [0x40f360]
test eax, eax
jne 0x409ec1
push 0x40a1a0
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.0040a180
push 0x40d01c
push 0x40d018
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x4127fc]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [0x4127f8]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x40d014
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004038c0
add esp, 0xc
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x409f60
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a880
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov dword [ebp - 0xa4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0x94
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x8c], 1
jne 0x40a8d0
mov dword [0x412d58], 0
jmp 0x40a8da
mov dword [0x412d58], 1
xor ecx, ecx
cmp dword [0x412d58], 0
sete cl
mov dword [0x412d54], ecx
mov dword [0x412844], 1
lea edx, [ebp - 0xa4]
push edx
push 0x20019
push 0
push str.SoftwareMicrosoftMSSQLServerClient
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a96f
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xa0]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push str.SQLSTRDebug
mov eax, dword [ebp - 0xa4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a959
cmp dword [ebp - 0xa0], 0
je 0x40a959
mov dword [0x412844], 0
cmp dword [ebp - 0xa4], 0
je 0x40a96f
mov ecx, dword [ebp - 0xa4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xa4], 0
lea edx, [ebp - 0xa4]
push edx
push 0x20019
push 0
push str.SoftwareMicrosoftMSSQLServerSQLSTR
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a9f2
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xa0]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push str.RetailDebug
mov eax, dword [ebp - 0xa4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a9dc
cmp dword [ebp - 0xa0], 0
je 0x40a9dc
mov dword [0x412848], 1
cmp dword [ebp - 0xa4], 0
je 0x40a9f2
mov ecx, dword [ebp - 0xa4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x412d58]
mov esp, ebp
pop ebp
ret

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0
Function at 0x426c50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], edx
mov esi, 1
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
sar eax, 4
sub eax, 1
je 0x426d1b
mov ebx, dword [ebp + 8]
nop dword [eax]
dec eax
mov edx, ebx
mov ecx, edi
mov dword [esp + 0x24], eax
call fcn.0040ff70
cmp eax, 0x471248
je 0x426d4b
cmp dword [eax + 8], 3
jne 0x426d4b
test esi, esi
je 0x426d0c
mov edx, ebx
mov ecx, edi
call fcn.0040ff70
mov ecx, dword [eax + 8]
cmp ecx, 3
je 0x426ceb
cmp ecx, 4
jne 0x426d46
mov ecx, dword [eax]
lea edx, [esp + 0x28]
add ecx, 0x10
call fcn.00416ed0
test eax, eax
je 0x426d46
movsd xmm0, qword [esp + 0x28]
lea eax, [esp + 0x30]
movsd qword [esp + 0x30], xmm0
mov dword [esp + 0x38], 3
movsd xmm0, qword [eax]
sub esp, 8
movsd qword [esp], xmm0
push str._.14g
push dword [esp + 0x28]
call fcn.00410d80
add esp, 0x10
test eax, eax
jg 0x426d78
xor esi, esi
mov eax, dword [esp + 0x24]
inc ebx
test eax, eax
jne 0x426c80
call fcn.00441877
mov ebx, dword [eax]
mov eax, dword [edi + 8]
test esi, esi
je 0x426d7f
mov dword [eax], 1
mov dword [eax + 8], 1
mov eax, 1
add dword [edi + 8], 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
jmp 0x426cef
lea eax, [esp + 0x20]
mov edx, ebx
push eax
mov ecx, edi
call fcn.004113d0
add esp, 4
test esi, esi
je 0x426d0c
push dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
push esi
push 1
push eax
call fcn.0045a28a
add esp, 0x10
cmp eax, esi
jne 0x426d0c
mov esi, 1
jmp 0x426d0e
mov dword [eax + 8], 0
add dword [edi + 8], 0x10
push ebx
call fcn.00454827
add esp, 4
push eax
push 0x4739b8
push edi
call fcn.004103d0
mov eax, dword [edi + 8]
add esp, 0xc
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
mov dword [eax + 8], 3
movsd qword [eax], xmm0
mov eax, 3
add dword [edi + 8], 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4513d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
xor eax, eax
push edi
mov edi, ecx
test edx, edx
je 0x45144c
push esi
mov esi, dword [ebp + 8]
cmp edx, 0x20
jb 0x451435
movsx ecx, byte [edi + 4]
push ebx
lea ebx, [edi + 4]
movd xmm0, ecx
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
cmp esi, ebx
ja 0x45140e
lea ecx, [edx - 1]
add ecx, esi
cmp ecx, ebx
jae 0x451434
mov ecx, edx
and ecx, 0xffffffe0
movups xmm0, xmmword [esi + eax]
pxor xmm0, xmm1
movups xmmword [esi + eax], xmm0
movups xmm0, xmmword [esi + eax + 0x10]
pxor xmm0, xmm1
movups xmmword [esi + eax + 0x10], xmm0
add eax, 0x20
cmp eax, ecx
jb 0x451413
pop ebx
cmp eax, edx
jae 0x45144b
nop dword [eax]
mov cl, byte [edi + 4]
xor byte [eax + esi], cl
inc eax
cmp eax, edx
jb 0x451440
pop esi
pop edi
pop ebp
ret 8

Function at 0x45c742
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045c5c1
Function at 0x402f20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402f79
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402dbc
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402dbc
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402f63
inc ebx
jmp 0x402f4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f80
lea eax, [ebp - 8]
call fcn.00404b30
ret

Function at 0x402f88
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404b30
test esi, esi
jne 0x402fbf
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404c20
jmp 0x402fe0
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402dbc
mov dword [esp], eax
test esi, esi
je 0x402fe0
cmp dword [ebx], 0
je 0x402fe0
dec esi
jmp 0x402fc7
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403b6c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4f4020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403c04
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403be4
xor eax, eax
push ebp
push 0x403bdd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403c20
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403be4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4f4020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4f4020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404908
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f804c], 0
je 0x404969
cmp word [0x4f8220], 0xd7b2
jne 0x404931
cmp dword [0x4f8228], 0
jbe 0x404931
mov eax, 0x4f821c
call dword [0x4f8238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4f4070
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 0x404990
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4f4030], 0
jne 0x404985
push 0
push 0x4f4068
push 0x4f4070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404ae4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402b5c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4f804d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404aac
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406fb0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x407016
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404da0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403598
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x407000
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40701d
lea eax, [ebp - 0x10]
call fcn.00404b30
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404ff0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a1e1
test al, 0x10
jne 0x40a1e5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40d408
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d441
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404c20
jmp 0x40d44a
mov eax, ebx
mov edx, esi
call fcn.00404b84
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d454
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d475
mov al, byte [esp]
jmp 0x40d477
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40db0c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d974
mov eax, dword [0x4f79c8]
cmp byte [eax], 0
je 0x40db88
mov eax, dword [0x4f7514]
call fcn.004033f8
call fcn.00402ce8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040a490
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40dbd0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40dbbe
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4f7454]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4f8668]
call fcn.004063d0
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40e480
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e556
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404bc8
lea eax, [ebp - 8]
call fcn.00405040
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404ff0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e540
mov eax, ebx
call fcn.00402b5c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e539
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404ff0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e523
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e568
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e523
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e540
mov eax, dword [ebp - 0x10]
call fcn.00402b8c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e55d
lea eax, [ebp - 8]
call fcn.00404b30
ret

Function at 0x40eb30
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40eb94
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404da0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409db0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eb9b
lea eax, [ebp - 0xc]
call fcn.00404b30
ret

Function at 0x422a14
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0042286c
dec esi
jne 0x422a36
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret