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

Disassembly:
push edi
push esi
push ebp
push ebx
push esi
mov dword [esp], eax
test eax, eax
je 0x575851
mov esi, eax
mov edx, dword [esi]
xor eax, eax
mov byte [edx + 0x16], al
mov ecx, dword [esi]
mov byte [ecx + 0x17], al
mov ebx, dword [esi]
mov byte [ebx + 0x18], al
mov ebp, dword [esi]
mov byte [ebp + 0x19], al
mov ebp, dword [esi + 4]
test ebp, ebp
jle 0x5757fb
mov eax, esi
mov edx, dword [eax]
xor ecx, ecx
xor ebx, ebx
movzx esi, byte [edx + ebx]
mov edi, ecx
shl edi, 8
shr ecx, 0x18
xor ecx, esi
mov eax, ecx
mov ecx, edi
xor ecx, dword [eax*4 + 0x598fa0]
inc ebx
cmp ebx, ebp
jl 0x5757db
jmp 0x575801
mov eax, esi
mov edx, dword [eax]
xor ecx, ecx
mov eax, dword [esp]
mov edi, dword [eax + 0xc]
test edi, edi
jle 0x57582f
mov ebp, dword [eax + 8]
xor esi, esi
movzx eax, byte [ebp + esi]
mov ebx, ecx
shl ebx, 8
shr ecx, 0x18
xor ecx, eax
mov eax, ecx
mov ecx, ebx
xor ecx, dword [eax*4 + 0x598fa0]
inc esi
cmp esi, edi
jl 0x575810
mov esi, dword [esp]
mov byte [edx + 0x16], cl
mov ebp, dword [esi]
mov eax, ecx
shr eax, 8
mov byte [ebp + 0x17], al
mov ebx, dword [esi]
mov edx, ecx
shr edx, 0x10
mov byte [ebx + 0x18], dl
mov edi, dword [esi]
shr ecx, 0x18
mov byte [edi + 0x19], cl
pop ecx
pop ebx
pop ebp
pop esi
pop edi
ret

Function at 0x8daa90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x14], ebx
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x128]
call eax
push eax
push 0x8d97ec
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push 0x10
push eax
movups xmmword [ebp - 0x24], xmm0
call fcn.008d9e30
mov al, byte [ebp - 0x24]
lea edx, [ebp - 0x23]
mov ch, al
add esp, 0x10
xor al, 0x55
mov edi, 1
mov byte [ebp - 0x24], al
mov eax, 2
sub eax, edx
mov dword [ebp - 4], eax
mov eax, 3
mov ebx, dword [ebp - 4]
sub eax, edx
mov dword [ebp - 8], eax
mov eax, 4
sub eax, edx
mov dword [ebp - 0xc], eax
mov eax, 5
sub eax, edx
mov dword [ebp - 0x10], eax
mov eax, edi
lea esi, [ebp - 0x24]
and eax, 0x1f
add esi, edi
add edi, 5
movzx eax, byte [eax + 0x8d9870]
mov cl, byte [esi]
xor al, cl
mov dl, byte [esi + 1]
xor al, ch
mov ch, byte [esi + 4]
mov byte [esi], al
lea eax, [ebx + esi]
and eax, 0x1f
movzx eax, byte [eax + 0x8d9870]
xor al, dl
xor al, cl
mov cl, byte [esi + 2]
mov byte [esi + 1], al
mov eax, dword [ebp - 8]
add eax, esi
and eax, 0x1f
movzx eax, byte [eax + 0x8d9870]
xor al, cl
xor al, dl
mov dl, byte [esi + 3]
mov byte [esi + 2], al
mov eax, dword [ebp - 0xc]
add eax, esi
and eax, 0x1f
movzx eax, byte [eax + 0x8d9870]
xor al, dl
xor al, cl
mov byte [esi + 3], al
mov eax, dword [ebp - 0x10]
add eax, esi
and eax, 0x1f
movzx eax, byte [eax + 0x8d9870]
xor al, ch
xor al, dl
mov byte [esi + 4], al
cmp edi, 0x10
jb 0x8dab01
mov ebx, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
push 0x10
push ecx
push 0xfc
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x28]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x8dad10
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
cmp byte [eax + 2], 1
sete al
ret
Function at 0x40d24e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x40d25d
pop dword [ebp - 0x38]
mov eax, 0xf5bfcb6a
sub eax, 0xf57ef90d
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x3ca6c
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0xa4a7d640
add ecx, 0x5b586d40
xor ebx, ebx
add ebx, eax
mov esi, 0x9d915116
add esi, 0x62b202ea
add esi, dword [ebp - 0x38]
mov edi, 0x48edc02b
xor dword [ebp - 0x34], ecx
mov edx, dword [esi]
xor edx, edi
add dword [ebp - 0x24], ebx
mov dword [ebx], edx
add ebx, 0xb2c2be30
add ebx, 0x4d3d41d4
add esi, 0x7725240e
sub esi, 0x7725240a
loop 0x40d2b3
add eax, 0x100d3
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xc380fd87
sub ecx, 0xc340fd87
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x402000
Capabilities:
Terminate process

Disassembly:
cld
xor ebx, ebx
call dword [sym.imp.COMCTL32.DLL_InitCommonControls]
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x405150], eax
push 0x40519c
push 0x404019
push ebx
call dword [sym.imp.USER32.DLL_GetClassInfoExA]
mov dword [0x40519c], 0x30
mov dword [0x4051a0], 3
mov dword [0x4051ac], 0x1e
mov dword [0x4051bc], 0x10
mov dword [0x4051c4], 0x404000
mov dword [0x4051a8], ebx
mov dword [0x4051c0], ebx
mov eax, dword [0x405150]
mov dword [0x4051b0], eax
push 0x401
push eax
call dword [sym.imp.USER32.DLL_LoadIconA]
mov dword [0x4051b4], eax
push 0x7f00
push ebx
call dword [sym.imp.USER32.DLL_LoadCursorA]
mov dword [0x4051b8], eax
push 0x40519c
call dword [sym.imp.USER32.DLL_RegisterClassExA]
push 0x1f4
push 0x4020ed
push ebx
push 0x1f4
push dword [0x4051b0]
call dword [sym.imp.USER32.DLL_CreateDialogParamA]
test eax, eax
je 0x4035db
mov edi, eax
lea esi, [0x405180]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.USER32.DLL_GetMessageA]
push esi
push edi
call dword [sym.imp.USER32.DLL_IsDialogMessageA]
test eax, eax
jne 0x4020c7
push esi
call dword [sym.imp.USER32.DLL_TranslateMessage]
push esi
call dword [sym.imp.USER32.DLL_DispatchMessageA]
jmp 0x4020c7
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x409e10
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x14
call fcn.004072b0
test eax, eax
jne 0x409e25
mov eax, 0x80004005
add esp, 0x14
ret
lea eax, [esp]
push eax
push 0x20006
push 0
push str.AppID
push SysReAllocString
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409eac
mov eax, dword [esp]
push ebp
push esi
push edi
push 0x20006
push str.3163A299_B985_4140_A820_57D8351EFCA1
mov ebp, eax
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.004066e0
test eax, eax
je 0x409eb9
push eax
call fcn.00406390
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x409e9c
push eax
call edi
test ebp, ebp
je 0x409ea3
push ebp
call edi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x14
ret
push eax
call fcn.00406390
add esp, 4
add esp, 0x14
ret
mov esi, dword [esp + 0x10]
push str.LocalService
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0
call fcn.00409c60
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, eax
test esi, esi
je 0x409edf
push esi
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x409eea
push eax
call edi
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0x14
ret
Function at 0x4153f4
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x41543c
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x415437
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x415421
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x415429
cmp edx, ebx
jne 0x415577
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x4153f8
add eax, dword [eax + 4]
jmp 0x4153e5
mov dword [ebp + 0xc], ebx
jmp 0x415447
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x41545f
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x41547d
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4154db
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4154c2
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4154cb
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4154d5
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4154b7
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x415441
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x415528
dec eax
je 0x41551f
sub eax, 3
je 0x415516
mov dword [ebp - 4], 0x40
jmp 0x415545
mov dword [ebp - 4], 4
jmp 0x41552b
mov dword [ebp - 4], 0x20
jmp 0x41552b
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x415577
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4154f7
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00414d88
cmp byte [ebx + 0x25], ah
or edi, edi
jne 0x415582
push 1
push esi
call edi
mov eax, esi
jmp 0x415583
push 0x8000
push ebx
push esi
rcr byte [edi + 0x5e], 0x5b

Function at 0x4158fd
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
call fcn.00414d98
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00414d4d
add esp, 0xc
mov dword [ebp - 0x67c], eax
invalid
Function at 0x417e55
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.00412d6d
and dword [ebp - 4], 0
cmp dword [0x423c00], 0
mov ebx, eax
jne 0x417f06
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x417fb7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x417fb7
push eax
call fcn.00412cfb
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423c00], eax
call esi
push eax
call fcn.00412cfb
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423c04], eax
call esi
push eax
call fcn.00412cfb
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423c08], eax
call esi
push eax
call fcn.00412cfb
pop ecx
mov dword [0x423c10], eax
test eax, eax
je 0x417f06
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00412cfb
pop ecx
mov dword [0x423c0c], eax
mov eax, dword [0x423c0c]
cmp eax, ebx
je 0x417f5e
cmp dword [0x423c10], ebx
je 0x417f5e
push eax
call fcn.00412d76
push dword [0x423c10]
mov esi, eax
call fcn.00412d76
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x417f5e
test edi, edi
je 0x417f5e
call esi
test eax, eax
je 0x417f55
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x417f55
test byte [ebp - 0xc], 1
jne 0x417f5e
or dword [ebp + 0x10], 0x200000
jmp 0x417f97
mov eax, dword [0x423c04]
cmp eax, ebx
je 0x417f97
push eax
call fcn.00412d76
pop ecx
test eax, eax
je 0x417f97
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x417f97
mov eax, dword [0x423c08]
cmp eax, ebx
je 0x417f97
push eax
call fcn.00412d76
pop ecx
test eax, eax
je 0x417f97
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423c00]
call fcn.00412d76
pop ecx
test eax, eax
je 0x417fb7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x417fb9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4034cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x4034db
pop dword [ebp - 0x38]
mov eax, 0x4034db
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x46598c43
sub dword [ebp - 0x48], 0xf80746f8
mov dword [ebp - 0x44], 0xaa667568
sub dword [ebp - 0x44], 0x78332923
mov dword [ebp - 0x40], 0xde0f47e
add dword [ebp - 0x40], 0x3e6b4fb0
mov dword [ebp - 0x3c], 0xb1ab0c7d
sub dword [ebp - 0x3c], 0xb1ab0c7d
lea eax, [ebp - 0x48]
push eax
mov eax, 0xd4a82028
add eax, 0x2b98202c
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x50a29743
add dword [ebp - 0x48], 0x23cfd213
mov dword [ebp - 0x44], 0xec4b78e6
add dword [ebp - 0x44], 0x5520e88f
mov dword [ebp - 0x40], 0x82a3f3b8
sub dword [ebp - 0x40], 0x1f34874c
mov dword [ebp - 0x3c], 0x41193407
add dword [ebp - 0x3c], 0xbee6cbf9
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x38868
push 0
call eax
mov ecx, 0x4e8f
xor edx, edx
add edx, eax
mov ebx, 0x1d5ee1a6
add ebx, 0xe2e1a25a
add ebx, dword [ebp - 0x38]
mov edi, 0xfd0e305e
sub edi, 0xda78ee3a
sub dword [ebp - 4], ebx
mov esi, dword [ebx]
sub dword [ebp - 0x28], edx
sub esi, edi
add dword [ebp - 0x20], 0xe5136c49
mov dword [edx], esi
xor dword [ebp - 0x30], 0xe4ea6973
add edx, 0x6e7b44b3
sub edx, 0x6e7b44af
add ebx, 4
loop 0x4035ef
add eax, 0x12d0f
mov ebx, eax
add eax, 0x2adc0cc0
add eax, 0xd523f345
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x402c18
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4a0008], 0x8088405
inc edx
mov dword [ebx + 0x4a0008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403070
Capabilities:
Query or enumerate registry value

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

Function at 0x403dcc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a2048], 0
je 0x403e2d
cmp word [0x4a221c], 0xd7b2
jne 0x403df5
cmp dword [0x4a2224], 0
jbe 0x403df5
mov eax, 0x4a2218
call dword [0x4a2234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a0070
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 0x403e54
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a0034], 0
jne 0x403e49
push 0
push 0x4a0068
push 0x4a0070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405280
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 0xf0019
push 0
push 0x4054b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405303
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4054b0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405303
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4054cc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40538c
xor eax, eax
push ebp
push 0x405385
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004050c8
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 0x40536a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4054ec
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40536a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40538c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
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 0x4054a6
cmp byte [ebp - 0xd], 0
jne 0x4053d3
cmp byte [ebp - 0x12], 0
je 0x4054a6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4053ec
dec ebx
cmp byte [ebx], 0x2e
je 0x4053fb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4053eb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4054a6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405438
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4054a6
cmp byte [ebp - 0xd], 0
je 0x4054a6
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4054a6
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
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 0x405ba8
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 0x405c0e
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.004041b8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c34
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405bf8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405c15
lea eax, [ebp - 0x10]
call fcn.00403f48
ret

Function at 0x40b210
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 0x40b249
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404038
jmp 0x40b252
mov eax, ebx
mov edx, esi
call fcn.00403f9c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b904
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b77c
mov eax, dword [0x4a1d58]
cmp byte [eax], 0
je 0x40b980
mov eax, dword [0x4a1ac4]
call fcn.00402a48
call fcn.0040285c
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.0040868c
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 0x40b9c8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b9b6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4a1a70]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4a2664]
call fcn.0040508c
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 0x40c21c
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 0x40c2f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403fe0
lea eax, [ebp - 8]
call fcn.00404458
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404408
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c2dc
mov eax, ebx
call fcn.004026f4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c2d5
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.00404408
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c2bf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c304
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c2bf
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 0x40c2dc
mov eax, dword [ebp - 0x10]
call fcn.00402714
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c2f9
lea eax, [ebp - 8]
call fcn.00403f48
ret

Function at 0x40c804
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 0x40c868
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.004041b8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004081d4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c86f
lea eax, [ebp - 0xc]
call fcn.00403f48
ret

Function at 0x41ac18
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4a2884
cmp dword [edi], 0
jne 0x41ac94
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4a2880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4a03f0
mov ecx, 2
call fcn.004028f0
mov edx, 0x41abf0
lea eax, [esi + 5]
call fcn.0041ac10
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041ac10
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41ac69
mov dword [0x4a2880], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41c250
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 0x41c256
ret
Function at 0x41e870
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 0x41e8c1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e8a8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e898
jmp 0x41e8c1
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 0x41e8a9
pop ebx
mov esp, ebp
pop ebp
ret