joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f84
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, 0x208
push edi
xor ebx, ebx
lea edi, [esi + 0x1d0]
push ebp
push ebx
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x206
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push edi
call dword [sym.imp.MSVCRT.dll__mbsrchr]
cmp byte [eax], bl
pop ecx
pop ecx
je 0x401fc1
mov byte [eax + 1], bl
lea edi, [esi + 0x3d8]
push ebp
push ebx
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, esi
call fcn.004018e1
mov ecx, esi
call fcn.004019f0
mov dword [esi + 0x644], eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4020a9
Capabilities:
Get file size

Disassembly:
mov eax, 0x4098dc
call fcn.004092f0
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x40d7f8
mov ecx, esi
mov dword [ebp - 0x10], 1
call fcn.00409084
xor edi, edi
push edi
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__access]
pop ecx
cmp eax, 0xffffffff
pop ecx
je 0x402100
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x402104
xor eax, eax
jmp 0x402173
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x402164
cmp eax, edi
je 0x402164
add eax, 0x200
shr eax, 0xa
jne 0x402122
push 1
pop eax
push eax
push 0x40d22c
push esi
call sub.MFC42.DLL_CString::Format
push dword [esi]
lea eax, [ebp + 8]
push eax
call fcn.00402181
add esp, 0x14
lea eax, [ebp + 8]
mov ecx, esi
push eax
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::operator_1
push str._KB
mov ecx, esi
call sub.MFC42.DLL_CString::operator
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
jmp 0x402167
mov dword [ebp - 0x10], edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4023ad
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
mov esi, ecx
lea ecx, [ebp - 4]
push edi
lea eax, [esi + 0x28]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x4024a7
push ebx
lea ebx, [edi + 1]
push ebx
call sub.MFC42.DLL_operatornew
push ebx
push 0
push eax
mov dword [esi], eax
call sub.MSVCRT.dll_memset
add esp, 0x10
lea eax, [esi + 0x28]
push dword [esi]
push edi
push dword [ebp - 4]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
pop ebx
je 0x4024a7
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
call fcn.0040253c
test eax, eax
je 0x4024a7
mov eax, dword [ebp - 0x30]
mov ecx, eax
mov word [esi + 0xa], ax
mov eax, dword [ebp - 0x2c]
shr ecx, 0x10
mov word [esi + 8], cx
mov ecx, eax
shr ecx, 0x10
mov word [esi + 0xe], ax
mov eax, dword [ebp - 0x28]
mov word [esi + 0xc], cx
mov ecx, eax
shr ecx, 0x10
mov word [esi + 0x12], ax
mov eax, dword [ebp - 0x24]
mov word [esi + 0x10], cx
mov ecx, eax
mov word [esi + 0x16], ax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x24], eax
lea eax, [esi + 0x230]
shr ecx, 0x10
mov word [esi + 0x14], cx
push eax
push str.CompanyName
mov ecx, esi
call fcn.0040257c
lea eax, [esi + 0x640]
mov ecx, esi
push eax
push 0x40d244
call fcn.0040257c
lea eax, [esi + 0x438]
mov ecx, esi
push eax
push 0x40d238
call fcn.0040257c
push 1
pop eax
jmp 0x4024a9
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4041bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp + 0xc]
push esi
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x404216
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x404266
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x404376
cmp byte [eax], bl
je 0x404376
cmp dword [ebp + 0x10], ebx
mov ecx, str.open
je 0x404294
mov ecx, 0x40d42c
push esi
push edi
push dword [ebp + 0xc]
push ebx
push ebx
push eax
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x404370
lea eax, [ebp - 0x208]
mov edi, 0x80000000
push eax
push str..htm
push edi
call fcn.004041bc
add esp, 0xc
test eax, eax
jne 0x404370
lea eax, [ebp - 0x208]
push str._shellopencommand
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x208]
push eax
push edi
call fcn.004041bc
add esp, 0x14
test eax, eax
jne 0x404370
mov edi, dword [sym.imp.MSVCRT.dll__mbsstr]
lea eax, [ebp - 0x208]
push str.__1_
push eax
call edi
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jne 0x404345
lea eax, [ebp - 0x208]
push 0x40d404
push eax
call edi
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jne 0x404345
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea esi, [ebp + eax - 0x209]
jmp 0x404347
mov byte [esi], bl
push 0x40d400
push esi
call sub.MSVCRT.dll_strcat
push dword [ebp + 8]
push esi
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x208]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
mov eax, esi
pop edi
pop esi
jmp 0x404379
push 0x24
pop eax
pop ebx
leave
ret
Function at 0x406b45
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push 1
xor edi, edi
pop eax
cmp ebx, eax
jl 0x406b5a
cmp ebx, 8
jle 0x406b5c
xor eax, eax
mov esi, dword [esp + 0x10]
push str.bad_pack_level
push eax
push esi
call fcn.004056d0
lea ecx, [esi + 0x6af70]
lea eax, [esi + 0x6af78]
add esp, 0xc
cmp dword [ecx], edi
mov dword [eax], edi
jne 0x406b8d
mov dword [eax], 1
mov dword [ecx], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push edi
push eax
mov dword [esi + 0x6af6c], edi
call sub.MSVCRT.dll_memset
mov eax, ebx
add esp, 0xc
shl eax, 3
cmp ebx, 2
movzx ecx, word [eax + 0x40afb2]
mov dword [esi + 0x6af98], ecx
movzx ecx, word [eax + 0x40afb0]
mov dword [esi + 0x6af9c], ecx
movzx ecx, word [eax + 0x40afb4]
mov dword [esi + 0x6afa0], ecx
movzx eax, word [eax + 0x40afb6]
mov dword [esi + 0x6af94], eax
jg 0x406bef
mov eax, dword [esp + 0x18]
or byte [eax], 4
jmp 0x406bfb
cmp ebx, 8
jl 0x406bfb
mov eax, dword [esp + 0x18]
or byte [eax], 2
lea ebx, [esi + 0x1af70]
push 0x10000
push ebx
push esi
mov dword [esi + 0x6af84], edi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
cmp eax, edi
mov dword [esi + 0x6af90], eax
je 0x406c6b
cmp eax, 0xffffffff
je 0x406c6b
cmp eax, 0x106
mov dword [esi + 0x6af8c], edi
jae 0x406c3d
push esi
call fcn.00406e42
pop ecx
mov dword [esi + 0x6af7c], edi
movzx eax, byte [ebx + edi]
mov ecx, dword [esi + 0x6af7c]
and eax, 0x7fff
and ecx, 0x3ff
shl ecx, 5
xor eax, ecx
inc edi
cmp edi, 2
mov dword [esi + 0x6af7c], eax
jb 0x406c43
jmp 0x406c7b
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
ret
Function at 0x406f6d
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
xor ebp, ebp
xor edi, edi
mov eax, dword [esi + 0x6af90]
mov dword [esi + 0x6af80], 2
test eax, eax
je 0x407187
push ebx
mov ebx, 0x7fff
cmp eax, 3
jb 0x406fe5
mov ecx, dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af7c]
and edx, 0x3ff
movzx eax, byte [ecx + esi + 0x1af72]
and eax, ebx
shl edx, 5
xor eax, edx
and ecx, ebx
mov dword [esi + 0x6af7c], eax
mov ebp, dword [esi + eax*4 + 0x4af70]
mov dword [esi + ecx*4 + 0x2af70], ebp
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
test ebp, ebp
je 0x407021
mov eax, dword [esi + 0x6af84]
sub eax, ebp
cmp eax, 0x7efa
ja 0x407021
mov ecx, dword [esi + 0x6af90]
lea eax, [esi + 0x6afa0]
cmp dword [eax], ecx
jbe 0x40700a
mov dword [eax], ecx
push ebp
push esi
call fcn.00406c7f
mov edi, eax
mov eax, dword [esi + 0x6af90]
pop ecx
cmp edi, eax
pop ecx
jbe 0x407021
mov edi, eax
cmp edi, 3
jb 0x4070fe
lea eax, [edi - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.004064b7
sub dword [esi + 0x6af90], edi
add esp, 0xc
cmp edi, dword [esi + 0x6af98]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x6af90]
ja 0x4070b7
cmp eax, 3
jb 0x4070b7
dec edi
inc dword [esi + 0x6af84]
mov ecx, dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af7c]
movzx eax, byte [esi + ecx + 0x1af72]
and edx, 0x3ff
and eax, ebx
shl edx, 5
xor eax, edx
and ecx, ebx
mov dword [esi + 0x6af7c], eax
dec edi
mov ebp, dword [esi + eax*4 + 0x4af70]
mov dword [esi + ecx*4 + 0x2af70], ebp
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x407062
jmp 0x407122
add dword [esi + 0x6af84], edi
mov eax, dword [esi + 0x6af84]
lea edx, [esi + 0x6af7c]
push str.Call_UPDATE_HASH___MIN_MATCH_3_more_times
lea ecx, [eax + esi]
push 1
push esi
xor edi, edi
movzx eax, byte [ecx + 0x1af70]
mov dword [edx], eax
and eax, 0x3ff
movzx ecx, byte [ecx + 0x1af71]
and ecx, ebx
shl eax, 5
xor ecx, eax
mov dword [edx], ecx
call fcn.004056d0
add esp, 0xc
jmp 0x407128
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push 0
push esi
call fcn.004064b7
add esp, 0xc
dec dword [esi + 0x6af90]
mov dword [esp + 0x14], eax
inc dword [esi + 0x6af84]
cmp dword [esp + 0x14], 0
je 0x407165
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x407142
lea ecx, [eax + esi + 0x1af70]
jmp 0x407144
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.004062a7
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x407178
push esi
call fcn.00406e42
pop ecx
mov eax, dword [esi + 0x6af90]
test eax, eax
jne 0x406f96
pop ebx
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x40719a
lea ecx, [eax + esi + 0x1af70]
jmp 0x40719c
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.004062a7
add esp, 0x10
pop edi
pop esi
pop ebp
ret
Function at 0x407cdf
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x407ced
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x407dce
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x40b000]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x40b000]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x40b000]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x40b000]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x40b000]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x40b000]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x40b000]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x40b000]
xor eax, esi
inc edx
dec edi
jne 0x407d0a
pop ebx
cmp dword [ebp + 0x10], 0
je 0x407def
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x40b000]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x407dd4
pop edi
pop esi
not eax
pop ebp
ret
Function at 0x407f27
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
push 1
pop esi
cmp eax, esi
je 0x407f4a
mov eax, 0x1000000
jmp 0x4080c3
lea eax, [ebp - 0x4c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_sFileInformationByHandle]
test eax, eax
jne 0x407f63
mov eax, 0x200
jmp 0x4080c3
mov eax, dword [ebp - 0x4c]
push ebx
mov edx, eax
xor ebx, ebx
and edx, esi
mov dword [ebp - 8], ebx
je 0x407f75
mov dword [ebp - 8], esi
test al, 2
je 0x407f7d
or dword [ebp - 8], 2
test al, 4
je 0x407f85
or dword [ebp - 8], 4
mov ecx, eax
and ecx, 0x10
je 0x407f90
or dword [ebp - 8], 0x10
test al, 0x20
je 0x407f98
or dword [ebp - 8], 0x20
cmp ecx, ebx
je 0x407fa2
or byte [ebp - 5], 0x40
jmp 0x407fa6
or byte [ebp - 5], 0x80
or byte [ebp - 5], 1
cmp edx, ebx
jne 0x407fb2
or byte [ebp - 6], 0x80
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x28
mov dword [ebp - 0x10], eax
jbe 0x40804d
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push ebx
push edi
call esi
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 2]
push 2
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
push ebx
push ebx
push 0x24
push dword [ebp + 8]
call esi
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x14]
push 4
push eax
push dword [ebp + 8]
call edi
cmp word [ebp - 2], 0x54ad
jne 0x40804d
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x10], ecx
jbe 0x40804d
push ebx
push ebx
push eax
push dword [ebp + 8]
call esi
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x18]
push 4
push eax
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 0x18]
cmp eax, 0x5a4d
je 0x408049
cmp eax, 0x454e
je 0x408049
cmp eax, 0x454c
je 0x408049
cmp eax, 0x4550
jne 0x40804d
or byte [ebp - 6], 0x40
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x408059
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x408065
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x408098
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.00407e9e
push dword [ebp - 0x34]
mov dword [esi], eax
push dword [ebp - 0x38]
call fcn.00407e9e
push dword [ebp - 0x44]
mov dword [esi + 4], eax
push dword [ebp - 0x48]
call fcn.00407e9e
add esp, 0x18
mov dword [esi + 8], eax
mov esi, dword [ebp + 0x18]
cmp esi, ebx
pop ebx
je 0x4080c1
lea eax, [ebp + 0xe]
push eax
lea eax, [ebp + 0xa]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx eax, word [ebp + 0xa]
movzx ecx, word [ebp + 0xe]
shl eax, 0x10
or eax, ecx
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x408255
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x408290
mov eax, dword [esi + 0x1c]
mov edi, dword [ebp + 0xc]
lea edx, [eax + edi]
cmp edx, dword [esi + 0x20]
jb 0x40827a
mov dword [esi + 0xc], 0x30000
jmp 0x4082b5
push edi
add eax, ecx
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
jmp 0x4082b7
mov eax, dword [esi]
test eax, eax
je 0x4082ae
lea ecx, [ebp + 0xc]
push 0
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0xc]
jmp 0x4082b7
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x4085ff
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x408649
mov eax, dword [esi + 0x60]
mov edi, dword [esi + 0x5c]
cmp eax, edi
jae 0x40868b
sub edi, eax
cmp edi, dword [ebp + 0xc]
jbe 0x408621
mov edi, dword [ebp + 0xc]
add eax, ecx
push edi
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_memcpy
add dword [esi + 0x60], edi
add dword [esi + 0x48], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x4c]
call fcn.00407cdf
mov dword [esi + 0x4c], eax
add esp, 0x18
mov eax, edi
jmp 0x40868d
mov eax, dword [esi + 0x50]
test eax, eax
je 0x408684
lea ecx, [ebp + 0xc]
push 0
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40868b
mov eax, dword [ebp + 0xc]
add dword [esi + 0x48], eax
push eax
push dword [ebp + 8]
push dword [esi + 0x4c]
call fcn.00407cdf
mov dword [esi + 0x4c], eax
mov eax, dword [ebp + 0xc]
add esp, 0xc
jmp 0x40868d
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x402924
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 0x402953
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.00403bec
jmp 0x402971
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.0040284c
mov edi, eax
test ebx, ebx
je 0x402971
cmp dword [esi], 0
je 0x402971
dec ebx
jmp 0x40295a
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402cd8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x463000]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402d70
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402d50
xor eax, eax
push ebp
push 0x402d49
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 0x402d8c
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 0x402d50
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x463000]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x463000], ax
mov esp, ebp
pop ebp
ret
Function at 0x4050fc
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 0x4052b8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40515d
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4052d4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4051cf
xor eax, eax
push ebp
push 0x4051c8
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]
call fcn.00404f54
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4051b1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4052f4
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 0x4051cf
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 0x4052b0
cmp byte [ebp - 0xd], 0
jne 0x405211
cmp byte [ebp - 0x12], 0
je 0x4052b0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40522a
dec ebx
cmp byte [ebx], 0x2e
je 0x405239
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405229
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4052b0
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405266
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 0x4052b0
cmp byte [ebp - 0xd], 0
je 0x4052b0
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 0x4052b0
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 0x40a614
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 0x40a64d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403bec
jmp 0x40a656
mov eax, ebx
mov edx, esi
call fcn.00403b58
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40a660
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 0x40a681
mov al, byte [esp]
jmp 0x40a683
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x415f80
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 0x415f86
ret

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