joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408c90
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
nop
nop
nop
nop
nop
Function at 0x445974
Capabilities:
Get common file path

Disassembly:
push 0xc
mov eax, 0x4b5060
call fcn.0046c638
mov esi, ecx
call fcn.004527d1
push eax
lea ecx, [ebp - 0x10]
call fcn.00402899
xor edi, edi
lea ecx, [ebp - 0x10]
push 0x104
mov dword [ebp - 4], edi
call fcn.00402bd2
push eax
push edi
push edi
push 0x2b
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.00409d68
test edi, edi
jne 0x4459da
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00402e14
push str.AdobeARM1.0AdobeARM.exe
mov ecx, esi
call fcn.0040259d
xor esi, esi
inc esi
jmp 0x445a05
push str.SHGetFolderPath_in_GetCurrentExePath_failed:
lea ecx, [ebp - 0x14]
call fcn.00402829
xor ecx, ecx
mov byte [ebp - 4], 1
push edi
lea edx, [ebp - 0x14]
inc ecx
call fcn.00417741
pop ecx
mov ecx, dword [ebp - 0x14]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402e64
mov eax, esi
call fcn.0046c601
ret

Function at 0x445a18
Capabilities:
Get common file path

Disassembly:
push 0x214
mov eax, 0x4b5096
call fcn.0046c66c
mov esi, ecx
xor ebx, ebx
test edx, edx
je 0x445a40
push 0x519f68
call fcn.00402e14
push 0x4d0aa0
jmp 0x445a80
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00484ac0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x2b
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
jne 0x445ae9
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.0040286d
push str.AdobeARM1.0_
mov ecx, esi
call fcn.0040259d
mov eax, dword [0x519e0c]
mov ecx, esi
push dword [eax - 0xc]
push eax
call fcn.004025c6
mov ecx, dword [esi]
or edx, 0xffffffff
push ebx
call fcn.0042f1d5
pop ecx
test eax, eax
je 0x445ae4
push esi
lea eax, [ebp - 0x220]
push str.Not_found_or_not_valid:
push eax
call fcn.004023f1
add esp, 0xc
mov esi, eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1fc98
mov ecx, 0x51a3ac
call fcn.00415893
mov ecx, dword [ebp - 0x220]
jmp 0x445b12
xor eax, eax
inc eax
jmp 0x445b1c
push str.SHGetFolderPath_in_GetLauncherPath_failed:
lea ecx, [ebp - 0x21c]
call fcn.00402829
xor ecx, ecx
mov dword [ebp - 4], ebx
push edi
lea edx, [ebp - 0x21c]
inc ecx
call fcn.00417741
pop ecx
mov ecx, dword [ebp - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
xor eax, eax
call fcn.0046c616
ret
Function at 0x445b22
Capabilities:
Get file version info

Disassembly:
push 0x1c
mov eax, 0x4b50f0
call fcn.0046c638
mov dword [ebp - 0x14], edx
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 0x14]
xor edi, edi
test esi, esi
je 0x445b6d
push str.GetFileVersion__:
lea ecx, [ebp - 0x10]
call fcn.00402829
push edi
push ebx
push 2
lea edx, [ebp - 0x10]
mov dword [ebp - 4], edi
pop ecx
call fcn.00417010
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x20]
push eax
push dword [ebx]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x445cb7
push ebx
call fcn.00452092
pop ecx
mov edi, eax
mov eax, dword [ebp - 0x18]
push edi
push ebx
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x445c7e
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x4d0aa0
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
cmp eax, 1
jne 0x445c64
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push edi
movzx eax, word [ecx + 0xa]
mov dword [ebx], eax
movzx eax, word [ecx + 8]
mov dword [edx], eax
movzx eax, word [ecx + 0xe]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
movzx eax, word [ecx + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
call fcn.0045208d
pop ecx
test esi, esi
je 0x445c5c
call fcn.004527d1
push eax
lea ecx, [ebp - 0x10]
call fcn.00402899
push str.File_version:__1_u_._2_u_._3_u_._4_u_
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 1
call fcn.00402829
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 2
push dword [eax]
mov eax, dword [ebp + 0xc]
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x10]
push dword [ebx]
push dword [ebp - 0x14]
push eax
call fcn.00415fc0
push 0
push 2
lea edx, [ebp - 0x10]
pop ecx
call fcn.00417741
mov ecx, dword [ebp - 0x14]
add esp, 0x1c
add ecx, 0xfffffff0
call fcn.00402e64
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402e64
xor eax, eax
inc eax
jmp 0x445ce9
test esi, esi
je 0x445cae
push str.VerQueryValue___failed_in_GetFileVersion__.
lea ecx, [ebp - 0x14]
call fcn.00402829
mov dword [ebp - 4], 3
jmp 0x445c96
test esi, esi
je 0x445cae
push str.GetFileVersionInfo___failed_in_GetFileVersion__.
lea ecx, [ebp - 0x14]
call fcn.00402829
mov dword [ebp - 4], 4
xor ecx, ecx
lea edx, [ebp - 0x14]
push ebx
inc ecx
call fcn.00417741
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push edi
call fcn.0045208d
pop ecx
jmp 0x445ce7
test esi, esi
je 0x445ce7
push str.GetFileVersionInfoSize___failed_in_GetFileVersion__.
lea ecx, [ebp - 0x18]
call fcn.00402829
xor ecx, ecx
mov dword [ebp - 4], 5
push edi
lea edx, [ebp - 0x18]
inc ecx
call fcn.00417741
pop ecx
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00402e64
xor eax, eax
call fcn.0046c601
ret
Function at 0x4640b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x4b7e0b
call fcn.0046c6a3
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [esi + 0x1c]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 8]
test ebx, ebx
jle 0x4641ba
cmp ebx, dword [esi + 0xc]
jge 0x4641ba
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x464107
cmp ebx, dword [edi + 8]
jl 0x4641a8
cmp dword [ebp + 0xc], 0
je 0x4641a8
xor ebx, ebx
jmp 0x464141
xor ebx, ebx
push 0x10
mov dword [ebp - 4], ebx
call fcn.00463b57
mov edi, eax
test edi, edi
je 0x464121
mov dword [edi], vtable.CThreadData.0
jmp 0x464123
mov edi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x14]
push edi
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
call fcn.00463fdc
mov ecx, dword [esi + 0x14]
mov dword [eax], ecx
mov dword [esi + 0x14], edi
mov esi, dword [ebp - 0x14]
cmp dword [edi + 0xc], ebx
jne 0x46415c
push 4
push dword [esi + 0xc]
call fcn.004187f2
pop ecx
pop ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x464174
push 2
push 4
push dword [esi + 0xc]
call fcn.004187f2
pop ecx
pop ecx
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x4641e1
mov ecx, dword [edi + 8]
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push ebx
push eax
call fcn.00484ac0
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [edi + 8], eax
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x4641ba
cmp ebx, dword [edi + 8]
jge 0x4641ba
mov eax, dword [ebp + 0xc]
mov dword [ecx + ebx*4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0046c601
ret 8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004522ae
int3
Function at 0x46d13c
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x46d0b9
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x46d0b4
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x46d09e
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x46d0a6
cmp edx, ebx
jne 0x46d1f4
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x46d075
add eax, dword [eax + 4]
jmp 0x46d062
mov dword [ebp + 0xc], ebx
jmp 0x46d0c4
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x46d0dc
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
add byte [eax], al
add byte [eax - 0x15], ah
push ds
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 0x46d158
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 0x46d13f
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x46d148
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x46d152
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x46d134
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x46d0be
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 0x46d1a5
dec eax
je 0x46d19c
sub eax, 3
je 0x46d193
mov dword [ebp - 4], 0x40
jmp 0x46d1c2
mov dword [ebp - 4], 4
jmp 0x46d1a8
mov dword [ebp - 4], 0x20
jmp 0x46d1a8
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 0x46d1f4
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x46d174
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0046ca05
imul ebp, dword [edi], 0x75ff6656
adc al, 0x6a
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x46d200
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x46d8ef
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosd dword es:[edi], eax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
invalid
Function at 0x46dd8b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0046c9ca
add esp, 0xc
mov dword [ebp - 0x6c8], eax
push 0
lea eax, [ebp - 0x6e0]
push eax
push dword [ebp - 0x378]
push dword [ebp - 4]
push dword [ebp - 0x66c]
call dword [ebp - 0x6c8]
mov dword [ebp - 0x6cc], eax
push dword [ebp - 0x66c]
call dword [ebp - 0x680]
cmp dword [ebp - 0x6cc], 0
je 0x46eb98
push 5
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x1d]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.0046c976
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x46de12
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x46de5b
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x46de05
insb byte es:[edi], dx
cld
invalid
call fcn.0046ca05
loopne 0x46de25
push ds
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
test edi, ebx
clc
invalid
jmp [ebp - 0x3a]
test eax, esp
clc
invalid
dec dword [edi - 0x3a]
test ecx, esp
clc
invalid
call dword [edx - 0x3a]
test edx, esp
clc
invalid
dec dword [ecx - 0x3a]
test ebx, esp
clc
invalid
call [eax - 0x3a]
test esp, esp
clc
invalid
call [esi - 0x3a]
test ebp, esp
clc
invalid
dec dword [ecx - 0x3a]
test esi, esp
clc
invalid
invalid
cmp eax, 0xffeb17e8
invalid
jge 0x46df49
sub eax, 0xd4858dcb
clc
invalid
les ecx, [ecx*4 - 0x7177b]
call dword [eax - 1]
mov ch, 0xe8
clc
invalid
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4a145d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a110e

Function at 0x4a1468
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a1298
Function at 0x403980
Capabilities:
Query or enumerate registry value

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

Function at 0x4046e0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45c048], 0
je 0x404741
cmp word [0x45c21c], 0xd7b2
jne 0x404709
cmp dword [0x45c224], 0
jbe 0x404709
mov eax, 0x45c218
call dword [0x45c234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45a080
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 0x404768
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45a01c], 0
jne 0x40475d
push 0
push 0x45a0a0
push 0x45a080
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40618c
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 0x4063bc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40620f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4063bc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40620f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4063d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406298
xor eax, eax
push ebp
push 0x406291
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405fd4
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 0x406276
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4063f8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406276
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 0x406298
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 0x4063b2
cmp byte [ebp - 0xd], 0
jne 0x4062df
cmp byte [ebp - 0x12], 0
je 0x4063b2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4062f8
dec ebx
cmp byte [ebx], 0x2e
je 0x406307
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4062f7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4063b2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406344
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 0x4063b2
cmp byte [ebp - 0xd], 0
je 0x4063b2
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 0x4063b2
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 0x409d60
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 0x409d99
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040494c
jmp 0x409da2
mov eax, ebx
mov edx, esi
call fcn.004048b0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40a454
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a2cc
mov eax, dword [0x45afa4]
cmp byte [eax], 0
je 0x40a4bc
mov eax, dword [0x45ae04]
call fcn.00402ce4
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408f84
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
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 0x40a504
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a4f2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45adbc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45c714]
call fcn.00405f98
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 0x40afdc
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 0x40b040
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.00404ac4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408c04
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b047
lea eax, [ebp - 0xc]
call fcn.0040485c
ret
Function at 0x41cc58
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45ca20
cmp dword [edi], 0
jne 0x41ccd4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45ca1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45a4e8
mov ecx, 2
call fcn.004028d4
mov edx, 0x41cc30
lea eax, [esi + 5]
call fcn.0041cc50
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041cc50
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 0x41cca9
mov dword [0x45ca1c], 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 0x41de80
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 0x41de86
ret

Function at 0x4202c4
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 0x420315
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4202fc
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4202ec
jmp 0x420315
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 0x4202fd
pop ebx
mov esp, ebp
pop ebp
ret