joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a4d2
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42459c]
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.00405ec1
mov dword [ebp - 0x14], eax
cmp dword [0x429f0c], esi
jne 0x40a5c5
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40a552
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40a6a5
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40a6a5
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a6a5
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x429f0c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x429f10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x429f14], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x429f1c], eax
test eax, eax
je 0x40a5c2
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x429f18], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40a5ea
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40a5dd
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40a5ff
push 4
pop eax
jmp 0x40a6a7
cmp dword [ebp - 0x14], esi
je 0x40a5ff
push dword [0x429f0c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40a5e4
mov eax, dword [0x429f18]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40a65d
cmp dword [0x429f1c], edi
je 0x40a65d
push eax
call ebx
push dword [0x429f1c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40a65d
test eax, eax
je 0x40a65d
call ecx
test eax, eax
je 0x40a652
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 0x40a652
test byte [ebp - 8], 1
jne 0x40a65d
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40a68d
mov eax, dword [0x429f10]
cmp eax, edi
je 0x40a68a
push eax
call ebx
test eax, eax
je 0x40a68a
call eax
mov esi, eax
test esi, esi
je 0x40a68a
mov eax, dword [0x429f14]
cmp eax, edi
je 0x40a68a
push eax
call ebx
test eax, eax
je 0x40a68a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x429f0c]
call ebx
test eax, eax
je 0x40a6a5
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40a6a7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402b6b
mov esp, ebp
pop ebp
ret
Function at 0x40ee90
Capabilities:
Delete file
Read .ini file
Read file on windows

Disassembly:
sub esp, 0x58c
mov edx, dword [0x511ffc]
mov eax, ecx
mov dword [esp + 0x18], eax
push ebx
push ebp
mov ebx, dword [eax]
mov ebp, 0xc6ef3720
mov dword [esp + 0xc], ebx
push esi
push edi
mov edi, dword [eax + 4]
cmp edx, 0x114e
jne 0x40eed0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [0x511ffc]
mov eax, dword [0x4252e8]
mov dword [esp + 0x1c], eax
mov eax, dword [0x4252ec]
mov dword [esp + 0x34], eax
cmp edx, 0xb54
jne 0x40ef19
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindActCtxSectionStringA]
push 0
push 0
push 0
lea eax, [esp + 0x1a4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [0x511ffc]
mov ecx, dword [0x4252f0]
mov esi, 0xedeb2e40
mov eax, dword [0x4252f4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], 0x20
lea esp, [esp]
mov eax, ebx
mov dword [0x4f7620], 0x9150ce2e
shl eax, 4
add eax, ecx
cmp edx, 0xfa9
mov dword [esp + 0x30], eax
mov eax, dword [0x4f7624]
cmove eax, esi
mov esi, ebx
shr esi, 5
add esi, dword [esp + 0x2c]
mov dword [0x4f7624], eax
lea eax, [ebx + ebp]
mov dword [esp + 0x24], eax
cmp edx, 0x976
jne 0x40efb0
push 0
push 0
lea eax, [esp + 0x1a0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [0x511ffc]
mov eax, dword [esp + 0x24]
mov dword [0x4f676c], 0
xor esi, eax
xor esi, dword [esp + 0x30]
sub edi, esi
cmp edx, 0x5b6
jne 0x40efda
push 0
lea eax, [esp + 0x19c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VerLanguageNameA]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x10], 0
and eax, 0x4dd0071b
sub dword [esp + 0x10], 0x2273eb88
mov ebx, 0x3a7cd587
add dword [esp + 0x10], 0x2273eb8c
mov ecx, dword [esp + 0x10]
mov edx, edi
mov ebx, dword [esp + 0x14]
mov eax, edi
shl edx, cl
add edx, dword [esp + 0x1c]
shr eax, 5
add eax, dword [esp + 0x34]
xor edx, eax
mov dword [0x4389d0], 0
lea eax, [edi + ebp]
xor edx, eax
sub ebx, edx
mov edx, dword [0x511ffc]
mov dword [esp + 0x14], ebx
cmp edx, 0x1d5
jne 0x40f07a
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
push 0
push 0
push 0
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
push 0
call dword [sym.imp.KERNEL32.dll_GetTapeStatus]
mov edx, dword [0x511ffc]
mov ecx, dword [esp + 0x20]
add ebp, 0x61c88647
dec dword [esp + 0x18]
mov esi, 0xedeb2e40
jne 0x40ef40
mov esi, dword [esp + 0x28]
mov dword [esi], ebx
cmp edx, 0xa6d
jne 0x40f0c9
push 0x30
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], 0
push 0
push eax
call fcn.004090c0
add esp, 0xc
lea eax, [esp + 0x38]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
mov dword [esi + 4], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58c
ret
Function at 0x408956
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop ecx
call fcn.00408982
dec ebx
add esi, 0x66759b30
xor dword [eax], ecx
add ebx, 0xa2fc5c07
add ebx, esi
inc eax
cmp eax, edi
jne fcn.00408956
sub ebx, 0x1299e060
inc ebx
ret

Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x50e76a6a
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
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
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x7ab05a02
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x409581
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a344]
jne 0x40958b
repz ret
jmp fcn.0040df6c

Function at 0x41219c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b60f
and dword [ebp - 0x14], 0
cmp dword [0x46b44c], 0
mov dword [ebp - 0x18], eax
jne 0x41224f
push 0x403784
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4122f7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403778
push ebx
call edi
test eax, eax
je 0x4122f7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403768
push ebx
mov dword [0x46b44c], eax
call edi
push eax
call esi
push 0x403754
push ebx
mov dword [0x46b450], eax
call edi
push eax
call esi
push 0x403738
push ebx
mov dword [0x46b454], eax
call edi
push eax
call esi
mov dword [0x46b45c], eax
test eax, eax
je 0x41224f
push 0x403720
push ebx
call edi
push eax
call esi
mov dword [0x46b458], eax
mov eax, dword [0x46b458]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4122a8
cmp dword [0x46b45c], ecx
je 0x4122a8
push eax
call esi
push dword [0x46b45c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4122a8
test ebx, ebx
je 0x4122a8
call edi
test eax, eax
je 0x41229f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41229f
test byte [ebp - 8], 1
jne 0x4122a8
or dword [ebp + 0x10], 0x200000
jmp 0x4122db
mov eax, dword [0x46b450]
cmp eax, dword [ebp - 0x18]
je 0x4122db
push eax
call esi
test eax, eax
je 0x4122db
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4122db
mov eax, dword [0x46b454]
cmp eax, dword [ebp - 0x18]
je 0x4122db
push eax
call esi
test eax, eax
je 0x4122db
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46b44c]
call esi
test eax, eax
je 0x4122f7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4122f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409581
leave
ret
Function at 0x4140d0
Capabilities:
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1400
call fcn.00413770
cmp dword [0x80b5a4], 0x37
jne 0x414161
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0x403f50
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [esp + 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x403f70
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapePosition]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
lea edx, [esp + 0xc04]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov eax, dword [0x80c188]
mov edx, dword [0x808604]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1400
ret
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x408b40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffec
adc byte [ebx + 0x7156774d], cl
jbe 0x408b5d
mov word [eax], es
lea edx, [ebp + 0x2d]
push 0
nop
push es
push edx
dec ecx
push ebp
or byte [ebx], cl
inc ebp
invalid
lea eax, [ebp - 4]
mov dword [ebp + 0x41], ecx
push eax
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x10]
push edx
add dword [edi + 0x50], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x408bb3
push edi
mov edi, dword [ebp - 0x28]
stosd dword es:[edi], eax
inc eax
in eax, 0xff
xlatb
sal byte [ebp + 0x2e], 0x89
jne 0x408bf6
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 4]
mov dword [esi], eax
nop
div dword [ebx - 0x7dda3fe5]
out dx, al
out 0xff, eax
add eax, 0x9f11b9
push 0x7c
pop ebp
ret 0x46
or bl, 0xc7
inc ebp
cld
add byte [eax], al
add cl, dh
call dword [0x40c1d6]
cmp eax, 0xffffffff
jne 0x408c11
push esi
and dword [sym.imp.WSOCK32.dll_WSAGetLastError], esi
call esi
fadd st(1)
inc eax
add bh, bh
salc
test eax, eax
jne 0x408bdf
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
in eax, dx
ret
Function at 0xd16058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00d161a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xd1607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd1606a
add dl, dl
jne 0xd16089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd160dc
xor eax, eax
add dl, dl
jne 0xd16096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd1617d
add dl, dl
jne 0xd160a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd160b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd160bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd160c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xd160d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xd16075
mov eax, 1
add dl, dl
jne 0xd160ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd160f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd160e1
sub eax, ebx
mov ebx, 1
jne 0xd16128
mov ecx, 1
add dl, dl
jne 0xd1610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd16119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd16105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd16075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xd1613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd1614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd16136
cmp eax, 0x7d00
jae 0xd1616d
cmp eax, 0x500
jb 0xd16168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd16075
cmp eax, 0x7f
ja 0xd16170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd16075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xd1619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xd16075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402934
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402971
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x108]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402991
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.00403fdc
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x402b10
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x402b3f
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403e94
jmp 0x402b5d
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402a98
mov edi, eax
test ebx, ebx
je 0x402b5d
cmp dword [esi], 0
je 0x402b5d
dec ebx
jmp 0x402b46
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403034
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4030cc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4030ac
xor eax, eax
push ebp
push 0x4030a5
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 0x4030e8
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 0x4030ac
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x405d38
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405ef0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405d99
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405f0c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405e06
xor eax, eax
push ebp
push 0x405dff
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405de8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405f2c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e06
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405ee7
cmp byte [ebp - 0xd], 0
jne 0x405e48
cmp byte [ebp - 0x12], 0
je 0x405ee7
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405e61
dec ebx
cmp byte [ebx], 0x2e
je 0x405e70
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405e60
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405ee7
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405e9d
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405ee7
cmp byte [ebp - 0xd], 0
je 0x405ee7
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405ee7
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40bc58
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 0x40bc91
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403e94
jmp 0x40bc9a
mov eax, ebx
mov edx, esi
call fcn.00403e48
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40bca4
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 0x40bcc5
mov al, byte [esp]
jmp 0x40bcc7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41a0e8
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41a0ee
ret

Function at 0x41caf8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41cb49
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41cb30
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41cb20
jmp 0x41cb49
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41cb31
pop ebx
mov esp, ebp
pop ebp
ret