joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4022b0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [0x40b864]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test eax, eax
jne 0x4022d7
lea eax, [edi + 0x2c]
push eax
push str.flicking:__s_n
push 0x408858
call fcn.00402480
add esp, 0xc
mov al, byte [edi]
mov esi, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
test al, 1
je 0x4022ef
push pe_nt_image_headers32
push esi
call ebp
push 0
push 0
push 3
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
mov eax, dword [edi]
test al, 1
je 0x402311
push eax
push esi
call ebp
cmp ebx, 0xffffffff
jne 0x402336
call fcn.004010d0
push eax
push esi
push str.Failure_opening___s_._n_s_n
push 0x408878
call fcn.00402480
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [0x40b874]
mov edx, dword [0x40b878]
neg ecx
mov eax, dword [0x40b870]
sbb ecx, ecx
and ecx, 0x40b850
neg edx
sbb edx, edx
push ecx
and edx, 0x40b848
neg eax
sbb eax, eax
push edx
and eax, 0x40b840
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
test eax, eax
jne 0x4023b2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x57
je 0x402390
cmp eax, 0xd
je 0x402390
call fcn.004010d0
push eax
push esi
push str.Failure
jmp 0x402397
push eax
push esi
push str.Failure_setting_times_for___s_._nError__u:_The_date_specified_is_out_of_the_range_supported_by_the_file_system._n
push 0x408878
call fcn.00402480
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x403e20
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40ba08]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x403e3f
push ebp
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40ba04], 1
mov byte [0x40ba00], bl
jne 0x403e99
mov ecx, dword [0x40bb64]
test ecx, ecx
je 0x403e87
mov esi, dword [0x40bb60]
sub esi, 4
cmp esi, ecx
jb 0x403e87
mov eax, dword [esi]
test eax, eax
je 0x403e80
call eax
mov ecx, dword [0x40bb64]
sub esi, 4
cmp esi, ecx
jae 0x403e72
push 0x408020
push 0x408014
call fcn.00403ed0
add esp, 8
push 0x408028
push 0x408024
call fcn.00403ed0
add esp, 8
test ebx, ebx
jne 0x403ec0
push ebp
mov dword [0x40ba08], 1
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x4047d0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40bb18]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
test eax, eax
jne 0x404812
call edi
mov esi, eax
test esi, esi
je 0x4047fc
mov eax, 1
jmp 0x40480d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40491f
mov eax, 2
mov dword [0x40bb18], eax
cmp eax, 1
jne 0x4048b2
test esi, esi
jne 0x40482b
call edi
mov esi, eax
test esi, esi
je 0x40491f
cmp word [esi], 0
mov eax, esi
je 0x404845
add eax, 2
cmp word [eax], 0
jne 0x404833
add eax, 2
cmp word [eax], 0
jne 0x404833
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4048a4
push edi
call fcn.00404d60
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4048a4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
test eax, eax
jne 0x404896
push ebx
call fcn.00404fb0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40491f
test ebx, ebx
jne 0x4048c3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40491f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4048db
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4048cb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4048cb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00404d60
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4048fd
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x404b80
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4091e0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x404ba4
add eax, 8
inc ebp
cmp eax, 0x409270
jb 0x404b95
cmp ecx, dword [ebp*8 + 0x4091e0]
jne 0x404d4b
mov eax, dword [0x40b894]
cmp eax, 1
je 0x404d0d
test eax, eax
jne 0x404bd0
cmp dword [0x408e08], 1
je 0x404d0d
cmp ecx, 0xfc
je 0x404d4b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x404c0b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x404c54
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x407360
add ebx, ecx
push ebx
call fcn.00405d20
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x407340
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x4091e4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00405c90
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40bb80]
test eax, eax
je 0x404d1e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x404d28
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4091e4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x405820
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x40bc80]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x4059cd
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x40bb80]
lea edi, [ecx*4 + 0x40bb80]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x4059cd
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40588e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x40589f
push 2
push ebp
push eax
call fcn.00405a40
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x4059fe
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x405949
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x4058fa
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x4058e7
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x4058ca
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4059ef
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x405945
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x4058c6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4059be
mov eax, dword [esp + 0x18]
test eax, eax
je 0x405992
cmp eax, 5
jne 0x40597b
mov dword [0x40b9c4], eax
mov dword [0x40b9c0], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00406040
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x4059b2
cmp byte [ebp], 0x1a
jne 0x4059b2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40b9c0], 0x1c
jmp 0x4059d7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40b9c0], 9
pop edi
pop esi
pop ebp
mov dword [0x40b9c4], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x405945
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x405a2f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x405949
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x405949

Function at 0xae212d
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00ae212d
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x105617c9
nop
nop
nop
nop
nop
test eax, eax
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x112c5837
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x75716bb1
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x5f6c0808
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x40d13a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407d3b
mov dword [ebp - 0x14], eax
cmp dword [0x813cdc], esi
jne 0x40d22d
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d1ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d30d
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d30d
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d30d
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x813cdc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x813ce0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x813ce4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813cec], eax
test eax, eax
je 0x40d22a
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813ce8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d252
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d245
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d267
push 4
pop eax
jmp 0x40d30f
cmp dword [ebp - 0x14], esi
je 0x40d267
push dword [0x813cdc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d24c
mov eax, dword [0x813ce8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d2c5
cmp dword [0x813cec], edi
je 0x40d2c5
push eax
call ebx
push dword [0x813cec]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d2c5
test eax, eax
je 0x40d2c5
call ecx
test eax, eax
je 0x40d2ba
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d2ba
test byte [ebp - 8], 1
jne 0x40d2c5
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d2f5
mov eax, dword [0x813ce0]
cmp eax, edi
je 0x40d2f2
push eax
call ebx
test eax, eax
je 0x40d2f2
call eax
mov esi, eax
test esi, esi
je 0x40d2f2
mov eax, dword [0x813ce4]
cmp eax, edi
je 0x40d2f2
push eax
call ebx
test eax, eax
je 0x40d2f2
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x813cdc]
call ebx
test eax, eax
je 0x40d30d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d30f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404238
mov esp, ebp
pop ebp
ret
Function at 0x402efc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40c018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402f94
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402f74
xor eax, eax
push ebp
push 0x402f6d
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 0x402fb0
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 0x402f74
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40c018]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40c018], ax
mov esp, ebp
pop ebp
ret

Function at 0x403860
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40d044], 0
je 0x4038c1
cmp word [0x40d218], 0xd7b2
jne 0x403889
cmp dword [0x40d220], 0
jbe 0x403889
mov eax, 0x40d214
call dword [0x40d230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40c060
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 0x4038e8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40c024], 0
jne 0x4038dd
push 0
push 0x40c058
push 0x40c060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404e70
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 0x404ed6
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.00403c54
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402af0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404ec0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404edd
lea eax, [ebp - 0x10]
call fcn.004039e4
ret

Function at 0x406cc8
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 0x406d01
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403ad4
jmp 0x406d0a
mov eax, ebx
mov edx, esi
call fcn.00403a38
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406d14
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 0x406d35
mov al, byte [esp]
jmp 0x406d37
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4073cc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x407234
mov eax, dword [0x40c470]
cmp byte [eax], 0
je 0x407448
mov eax, dword [0x40c36c]
call fcn.00402a6c
call fcn.00402994
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.0040619c
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 0x407490
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40747e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x40c340]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40d660]
call fcn.00404814
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 0x407e6c
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 0x407ed0
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.00403c54
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406064
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407ed7
lea eax, [ebp - 0xc]
call fcn.004039e4
ret

Function at 0x4089f4
Capabilities:
Decrypt data using tea

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov edi, edx
mov ecx, eax
mov dword [esp], 0xc6ef3720
mov dword [esp + 4], 0x13
mov esi, 0x20
mov eax, dword [esp]
mov edx, dword [esp + 4]
shrd eax, edx, 0xb
shr edx, 0xb
and eax, 3
xor edx, edx
mov eax, dword [edi + eax*4]
mov ebx, dword [ecx]
mov edx, ebx
shl edx, 4
mov ebp, ebx
shr ebp, 5
xor edx, ebp
xor ebx, dword [esp]
add edx, ebx
add eax, edx
sub dword [ecx + 4], eax
sub dword [esp], 0x9e3779b9
sbb dword [esp + 4], 0
mov eax, dword [esp]
mov edx, dword [esp + 4]
and eax, 3
xor edx, edx
mov eax, dword [edi + eax*4]
mov ebx, dword [ecx + 4]
mov edx, ebx
shl edx, 4
mov ebp, ebx
shr ebp, 5
xor edx, ebp
xor ebx, dword [esp]
add edx, ebx
add eax, edx
sub dword [ecx], eax
dec esi
jne 0x408a13
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret