joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1531f10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd72000]
push edi
or ebp, 0xffffffff
jmp 0x1531f32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1531f39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1531f28
mov eax, 1
add ebx, ebx
jne 0x1531f4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1531f5c
jne 0x1531f7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1531f7b
dec eax
add ebx, ebx
jne 0x1531f68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1531f40
add ebx, ebx
jne 0x1531f77
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1531fcd
xor ecx, ecx
sub eax, 3
jb 0x1531f93
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1532002
sar eax, 1
mov ebp, eax
jmp 0x1531f9e
add ebx, ebx
jne 0x1531f9e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1531f6c
inc ecx
add ebx, ebx
jne 0x1531fac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1531f6c
add ebx, ebx
jne 0x1531fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1531fae
jne 0x1531fca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1531fae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1531fec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1531fde
jmp 0x1531f2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1531fec
add edi, ecx
jmp 0x1531f2e
pop esi
mov edi, esi
mov ecx, 0x9097aa
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x1532027
cmp byte [edi], 0x9d
jne 0x153200c
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x153200a
lea edi, [esi + 0x10c7000]
mov eax, dword [edi]
or eax, eax
je 0x153206f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1141d3c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1141f30]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x153202d
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1141f34]
or eax, eax
je 0x1532069
mov dword [ebx], eax
add ebx, 4
jmp 0x153204a
call dword [esi + 0x1141f44]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x15320a9
cmp al, 0xef
ja 0x1532093
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1532075
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
or eax, eax
jne 0x1532082
mov eax, dword [edi]
add edi, 4
jmp 0x1532082
mov ebp, dword [esi + 0x1141f38]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x15320dd
sub esp, 0xffffff80
jmp 0xda7700
Function at 0x4027d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4027eb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402822
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
pcmpeqd mm2, qword [ebx]
jmp 0x402810
cmp esi, eax
jae 0x402822
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402810
cmp esi, eax
jb 0x402829
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x407080
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4070a1
mov eax, 0xff
call fcn.00402680
xor byte [esi], al
inc esi
dec ebx
jne 0x407091
pop esi
pop ebx
ret

Function at 0x40ca72
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40cab9
call fcn.00411955
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40cab9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40cad5
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040c572
mov esi, eax
test edi, edi
je 0x40cad3
test ebx, ebx
je 0x40cad3
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41590f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x571ea8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x415944
xor eax, eax
jmp 0x415997
lea eax, [ebp - 0x210]
push eax
call fcn.0050343e
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x415975
push 0x551f4c
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005038ca
add esp, 0xc
test eax, eax
jne 0x415940
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005038ca
add esp, 0xc
test eax, eax
jne 0x415940
lea eax, [ebp - 0x210]
push eax
call fcn.00403821
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005023a9
leave
ret
Function at 0x43eeb3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push edi
xor edi, edi
push str.UxTheme.dll
mov dword [esi], vtable.CMFCBaseVisualManager.0
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
call fcn.00403821
pop ecx
mov dword [esi + 0x4c], eax
cmp eax, edi
je 0x43ef6f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThemeData
push eax
call edi
push str.CloseThemeData
push dword [esi + 0x4c]
mov dword [esi + 0x50], eax
call edi
push str.DrawThemeBackground
push dword [esi + 0x4c]
mov dword [esi + 0x54], eax
call edi
push str.GetThemeColor
push dword [esi + 0x4c]
mov dword [esi + 0x58], eax
call edi
push str.GetThemeSysColor
push dword [esi + 0x4c]
mov dword [esi + 0x5c], eax
call edi
push str.GetCurrentThemeName
push dword [esi + 0x4c]
mov dword [esi + 0x60], eax
call edi
push str.GetWindowTheme
push dword [esi + 0x4c]
mov dword [esi + 0x64], eax
call edi
mov ecx, esi
mov dword [esi + 0x68], eax
call fcn.0043e681
jmp 0x43ef84
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
pop edi
mov eax, esi
pop esi
ret

Function at 0x4514cf
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004d9d8a
call fcn.00411386
cmp dword [eax + 0x14], 0
jne 0x4514ec
mov ecx, esi
pop esi
jmp fcn.00450fd4
pop esi
ret

Function at 0x454b8d
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004a40eb
call fcn.00411386
cmp dword [eax + 0x14], 0
jne 0x454baa
mov ecx, esi
pop esi
jmp fcn.00454560
pop esi
ret

Function at 0x4631f2
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00462e96
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x46323c
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040abe6
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00402d10
jmp 0x463247
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004173e1
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x46324d
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0040f7f2
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x46328a
call fcn.00462e96
mov dword [esi + 0xc], 1
jmp 0x46328f
call fcn.00462e96
cmp dword [esi], 0
je 0x4632d8
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x4632b0
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040abe6
jmp 0x4632c2
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00402e90
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00402d10
jmp 0x4632fc
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4632fc
push dword [esi]
push dword [ebp + 8]
call fcn.004173e1
pop esi
pop ebp
ret 0xc

Function at 0x48fa39
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x48fa53
call fcn.00411955
mov esi, dword [eax + 0xc]
push dword [0x577190]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x48fa71
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x48fa69
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x48fa9e
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x48fa6b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0048f967
mov esi, eax
jmp 0x48fa90
Function at 0x4e3433
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4e344b
mov edi, dword [esi + 0xc]
jmp 0x4e348b
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4e3464
call fcn.00411d23
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4e3479
call fcn.00411d23
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4e348b
call fcn.00411d23
call fcn.00411955
cmp dword [eax + 0x3c], 0
je 0x4e34a0
push edi
mov ecx, ebx
call fcn.004e22e7
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004e334d
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4e34be
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e34ca
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x5023a9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x571ea8]
jne 0x5023b3
repz ret
jmp fcn.00508f23
Function at 0x513718
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x571ea8]
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.0050894b
and dword [ebp - 0x14], 0
cmp dword [0x5797cc], 0
mov dword [ebp - 0x18], eax
jne 0x5137cb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x513873
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x54fd68
push ebx
call edi
test eax, eax
je 0x513873
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x54fd58
push ebx
mov dword [0x5797cc], eax
call edi
push eax
call esi
push 0x54fd44
push ebx
mov dword [0x5797d0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5797d4], eax
call edi
push eax
call esi
mov dword [0x5797dc], eax
test eax, eax
je 0x5137cb
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5797d8], eax
mov eax, dword [0x5797d8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x513824
cmp dword [0x5797dc], ecx
je 0x513824
push eax
call esi
push dword [0x5797dc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x513824
test ebx, ebx
je 0x513824
call edi
test eax, eax
je 0x51381b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x51381b
test byte [ebp - 8], 1
jne 0x513824
or dword [ebp + 0x10], 0x200000
jmp 0x513857
mov eax, dword [0x5797d0]
cmp eax, dword [ebp - 0x18]
je 0x513857
push eax
call esi
test eax, eax
je 0x513857
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x513857
mov eax, dword [0x5797d4]
cmp eax, dword [ebp - 0x18]
je 0x513857
push eax
call esi
test eax, eax
je 0x513857
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5797cc]
call esi
test eax, eax
je 0x513873
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x513875
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005023a9
leave
ret
Function at 0x402930
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x40296d
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 + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x40298d
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404ca4
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b64
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404a34
test esi, esi
jne 0x402b9a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404b24
jmp 0x402bb8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a78
mov edi, eax
test esi, esi
je 0x402bb8
cmp dword [ebx], 0
je 0x402bb8
dec esi
jmp 0x402ba1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403b5c
Capabilities:
Query or enumerate registry value

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

Function at 0x4048b8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47c048], 0
je 0x404919
cmp word [0x47c21c], 0xd7b2
jne 0x4048e1
cmp dword [0x47c224], 0
jbe 0x4048e1
mov eax, 0x47c218
call dword [0x47c234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47a078
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 0x404940
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47a030], 0
jne 0x404935
push 0
push 0x47a070
push 0x47a078
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406610
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 0x406676
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.00404ca4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403484
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406660
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40667d
lea eax, [ebp - 0x10]
call fcn.00404a34
ret

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

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

Function at 0x40c1ec
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 0x40c225
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404b24
jmp 0x40c22e
mov eax, ebx
mov edx, esi
call fcn.00404a88
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c8e0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c758
mov eax, dword [0x47b250]
cmp byte [eax], 0
je 0x40c95c
mov eax, dword [0x47b04c]
call fcn.00402fd0
call fcn.00402884
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.00409408
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 0x40c9a4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c992
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47aff0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x47c664]
call fcn.00405b24
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 0x40d1f8
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 0x40d2ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404acc
lea eax, [ebp - 8]
call fcn.00404f44
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404ef4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d2b8
mov eax, ebx
call fcn.0040271c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d2b1
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.00404ef4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d29b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d2e0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d29b
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 0x40d2b8
mov eax, dword [ebp - 0x10]
call fcn.0040273c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d2d5
lea eax, [ebp - 8]
call fcn.00404a34
ret

Function at 0x40d8d4
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 0x40d938
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.00404ca4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408cdc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d93f
lea eax, [ebp - 0xc]
call fcn.00404a34
ret

Function at 0x41bd70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x47c884
cmp dword [edi], 0
jne 0x41bdec
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x47c880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47a3f8
mov ecx, 2
call fcn.00402a38
mov edx, 0x41bd48
lea eax, [esi + 5]
call fcn.0041bd68
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041bd68
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 0x41bdc1
mov dword [0x47c880], 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 0x41d380
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 0x41d386
ret
Function at 0x41fbd0
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 0x41fc21
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41fc08
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41fbf8
jmp 0x41fc21
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 0x41fc09
pop ebx
mov esp, ebp
pop ebp
ret