joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408e7c
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 0x408eb5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040489c
jmp 0x408ebe
mov eax, ebx
mov edx, esi
call fcn.00404800
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40a078
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 0x40a0dc
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.00404a14
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00407e98
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a0e3
lea eax, [ebp - 0xc]
call fcn.004047ac
ret

Function at 0x419824
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00419398
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404c4c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x419882
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x41c684]
mov dl, 1
mov eax, dword [0x419290]
call fcn.0040971c
call fcn.0040420c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41988c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404c4c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4198e4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x41c774]
mov dl, 1
mov eax, dword [0x419290]
call fcn.0040971c
call fcn.0040420c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004193c8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41a34c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41a3bb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x100]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
lea edx, [ebp - 0x104]
lea eax, [ebp - 0x100]
call fcn.004082f4
mov edx, dword [ebp - 0x104]
mov eax, ebx
mov ecx, 0x41a3d0
call fcn.00404ab0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a3c2
lea eax, [ebp - 0x104]
call fcn.004047ac
ret
Function at 0x1c43170
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1d309f8]
mov ecx, dword [0x1d2e0e8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c431a1
movzx eax, word [0x1d309d4]
cmp eax, 9
jne 0x1c431ec
xor eax, eax
inc eax
pop ebp
ret
push 0x1d309f8
call fcn.01c92097
add esp, 4
cmp dword [0x1d309f8], 0xffffffff
jne 0x1c43190
xorps xmm0, xmm0
movups xmmword [0x1d309e4], xmm0
movups xmmword [0x1d309d4], xmm0
mov dword [0x1d309f4], 0
push 0x1d309d4
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x1d309f8
call fcn.01c9210d
add esp, 4
jmp 0x1c43190
test eax, eax
je 0x1c4319f
cmp eax, 6
jne 0x1c431fc
mov eax, 2
jmp 0x1c4319f
cmp eax, 0xc
jne 0x1c43208
mov eax, 3
jmp 0x1c4319f
mov eax, 4
jmp 0x1c4319f

Function at 0x1c47480
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x1d12014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
lea esi, [ebp - 0x1c]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push str.LOCALAPPDATA
push esi
call fcn.01c416b0
add esp, 8
movzx eax, byte [esi + 0xb]
test al, al
jns 0x1c474bc
mov eax, dword [ebp - 0x18]
jmp 0x1c474bf
and eax, 0x7f
test eax, eax
jne 0x1c4753b
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1c474f6
cmp byte [ebp - 0x11], 0
jns 0x1c474e2
push dword [ebp - 0x1c]
call fcn.01c92027
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c92fe3
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, eax
inc edi
mov ecx, esi
push 0
push edi
call fcn.01c70940
cmp byte [ebp - 0x11], 0
jns 0x1c4750c
mov esi, dword [ebp - 0x1c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1c4752c
movzx ecx, byte [ebp - 0x11]
test cl, cl
jns 0x1c47525
mov ecx, dword [ebp - 0x18]
jmp 0x1c47528
and ecx, 0x7f
cmp eax, ecx
jb 0x1c47530
xor ebx, ebx
jmp 0x1c474d1
lea ecx, [ebp - 0x1c]
push 0
push eax
call fcn.01c70940
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov edi, dword [ebp - 0x14]
mov dword [esi + 8], edi
movsd xmm0, qword [ebp - 0x1c]
movsd qword [esi], xmm0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
movzx eax, byte [esi + 0xb]
test al, al
jns 0x1c47571
mov eax, dword [esi + 4]
test eax, eax
je 0x1c475c4
mov ecx, dword [esi]
jmp 0x1c47577
mov ecx, esi
test eax, eax
je 0x1c475c4
mov edi, dword [ebp + 0xc]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x1c4758b
mov ecx, esi
push 0x5c
call fcn.01c70660
movzx eax, byte [edi + 0xb]
test al, al
jns 0x1c4759a
mov eax, dword [edi + 4]
mov edi, dword [edi]
jmp 0x1c4759d
and eax, 0x7f
mov ecx, esi
push eax
push edi
call fcn.01c3e510
mov ecx, esi
push 0x5c
call fcn.01c70660
mov ecx, esi
push 9
push 0x1d04df0
call fcn.01c3e510
mov bl, 1
jmp 0x1c474d1
push str.string_index_out_of_bounds
push str.__pos___size__
push 0x45b
push str....._buildtools_third_partylibc_trunkinclude_string
push str._s:_d:_assertion__s_failed:__s
call fcn.01cbef30
int3
Function at 0x1c9c6d7
Capabilities:
Get number of processors
Parse pe header
Resolve function by parsing pe exports

Disassembly:
add esp, 4
pop ecx
push edi
push edi
add esp, 4
sub edi, 0xa290
pop edi
push eax
push ecx
add esp, 4
xor eax, 0x58ae
pop eax
imul ecx, dword [ebp - 0x34c], 0xfe
add ecx, 0x56f3663b
imul edx, dword [ebp - 0x34c], 0xfe
sub ecx, edx
xor ecx, 2
imul ecx, dword [ebp - 0x34c]
imul eax, dword [ebp - 0x34c], 0xfe
sub ecx, eax
mov dword [ebp - 0x350], ecx
push ebx
push ecx
add esp, 4
sub ebx, 0x7033
or ebx, 0xbbde
pop ebx
push ecx
push esi
add esp, 4
add ecx, 0x7f04
pop ecx
push edx
and edx, 0x46cc
and edx, 0x1daa
sub edx, 0x12c65
pop edx
mov ecx, dword [ebp - 0xb3c]
mov edx, dword [ebp - 0xb38]
mov dword [ebp - 0x2d0], ecx
mov dword [ebp - 0x2cc], edx
jmp 0x1c9c6ae
push edi
push edx
add esp, 4
sub edi, 0x10a81
or edi, 0x105c9
pop edi
push edi
push edx
add esp, 4
add edi, 0x133
call 0x1c9c6d7
add byte [eax], bh
cmp al, 0x37
aaa
cmp dword [ebx + 0x3eb04c4], eax
xor eax, 0x8b5f4f39
xchg ebp, eax
xor ch, bh
invalid
Function at 0x40d670
Capabilities:
Execute command

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x10]
lea eax, [esp]
lea ecx, [esp + 0x10]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
push esi
push eax
push ecx
push edx
call sub.libsvn_subr_1.dll_svn_path_split
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.0040d840
add esp, 0x1c
test eax, eax
jne 0x40d829
push esi
lea eax, [esp + 0x1c]
push 0x10
push eax
call dword [sym.imp.libapr_1.dll__apr_filepath_get_12]
mov edi, eax
test edi, edi
je 0x40d6f4
push 0xa7
push str.C:SVN_src_1.6.16_subversion_svnutil.c
call sub.libsvn_subr_1.dll_svn_error__locate
push str.Cant_get_working_directory
push str.subversion
call dword [sym.imp.intl3_svn.dll_libintl_dgettext]
push eax
push edi
call sub.libsvn_subr_1.dll_svn_error_wrap_apr
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
jne 0x40d707
mov dword [esp + 0x2c], 0x4198b0
jmp 0x40d71e
push esi
lea ecx, [esp + 0x30]
push eax
push ecx
call sub.libsvn_subr_1.dll_svn_path_cstring_from_utf8
add esp, 0xc
test eax, eax
jne 0x40d829
mov edx, dword [esp + 0x2c]
mov ebp, dword [sym.imp.libapr_1.dll__apr_filepath_set_8]
push esi
push edx
call ebp
mov edi, eax
test edi, edi
je 0x40d76e
push 0xb1
push str.C:SVN_src_1.6.16_subversion_svnutil.c
call sub.libsvn_subr_1.dll_svn_error__locate
mov eax, dword [esp + 0x28]
add esp, 8
push eax
push str.Cant_change_working_directory_to__s
push str.subversion
call dword [sym.imp.intl3_svn.dll_libintl_dgettext]
add esp, 8
push eax
push edi
call sub.libsvn_subr_1.dll_svn_error_wrap_apr
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ecx
push edx
push str._s__s
push esi
call dword [sym.imp.libapr_1.dll_apr_psprintf]
mov edi, eax
push edi
call dword [sym.imp.MSVCRT.dll_system]
add esp, 0x14
mov ebx, eax
mov eax, dword [esp + 0x18]
push esi
push eax
call ebp
mov ebp, dword [sym.imp.intl3_svn.dll_libintl_dgettext]
mov esi, eax
test esi, esi
je 0x40d7e8
push 0xb9
push str.C:SVN_src_1.6.16_subversion_svnutil.c
call sub.libsvn_subr_1.dll_svn_error__locate
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add esp, 8
add ecx, 0x40
push str.svn:
push 1
push ecx
push str.Cant_restore_working_directory
push str.subversion
call ebp
push eax
push esi
call sub.libsvn_subr_1.dll_svn_error_wrap_apr
add esp, 0x10
push eax
call sub.libsvn_subr_1.dll_svn_handle_error2
add esp, 0x10
test ebx, ebx
je 0x40d827
push 0xc0
push str.C:SVN_src_1.6.16_subversion_svnutil.c
call sub.libsvn_subr_1.dll_svn_error__locate
add esp, 8
push ebx
push edi
push str.system__s__returned__d
push str.subversion
call ebp
add esp, 8
push eax
push 0
push 0x30d4c
call sub.libsvn_subr_1.dll_svn_error_createf
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x40d840
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 8]
push esi
test eax, eax
mov dword [esp + 0xc], eax
jne 0x40d8c5
mov esi, dword [sym.imp.MSVCRT.dll_getenv]
push str.SVN_EDITOR
call esi
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x40d8c5
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40d87d
push 0xffffffffffffffff
push str.config
push eax
call dword [sym.imp.libapr_1.dll__apr_hash_get_12]
jmp 0x40d87f
xor eax, eax
push 0
push str.editor_cmd
lea ecx, [esp + 0x14]
push str.helpers
push ecx
push eax
call sub.libsvn_subr_1.dll_svn_config_get
mov eax, dword [esp + 0x20]
add esp, 0x14
test eax, eax
jne 0x40d8c5
push str.VISUAL
call esi
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x40d8c5
push str.EDITOR
call esi
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x40d910
mov cl, byte [eax]
mov edx, eax
test cl, cl
je 0x40d8eb
mov esi, dword [sym.imp.libsvn_subr_1.dll_svn_ctype_table]
and ecx, 0xff
mov ecx, dword [esi + ecx*4]
and ecx, 2
test cl, cl
je 0x40d8eb
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x40d8d3
cmp byte [edx], 0
jne 0x40d906
push 0x82
push str.C:SVN_src_1.6.16_subversion_svnutil.c
call sub.libsvn_subr_1.dll_svn_error__locate
push str.The_EDITOR__SVN_EDITOR_or_VISUAL_environment_variable_or_editor_cmd_run_time_configuration_option_is_empty_or_consists_solely_of_whitespace._Expected_a_shell_command.
jmp 0x40d924
mov edx, dword [esp + 8]
pop esi
mov dword [edx], eax
xor eax, eax
ret
push 0x89
push str.C:SVN_src_1.6.16_subversion_svnutil.c
call sub.libsvn_subr_1.dll_svn_error__locate
push str.None_of_the_environment_variables_SVN_EDITOR__VISUAL_or_EDITOR_are_set__and_no_editor_cmd_run_time_configuration_option_was_found
push str.subversion
call dword [sym.imp.intl3_svn.dll_libintl_dgettext]
push eax
push 0
push 0x320cf
call sub.libsvn_subr_1.dll_svn_error_create
add esp, 0x1c
pop esi
ret
Function at 0x40f62c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415dc8
push 0x40f7d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x423758], 0xffffffff
or dword [0x42375c], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x423754]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x423750]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x423760], eax
call fcn.00401000
cmp dword [0x423730], 0
jne 0x40f6af
push 0x40f778
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040f760
push 0x41800c
push 0x418008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x42374c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x423748]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x418004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.0040a090
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x5b3b0987
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x79f4e07
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x413f50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x412015
lea edi, [esi - 0x11015]
push edi
jmp 0x413f6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x413f71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x413f60
mov eax, 1
add ebx, ebx
jne 0x413f83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x413f78
jne 0x413f94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x413f78
xor ecx, ecx
sub eax, 3
jb 0x413fa8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41401a
mov ebp, eax
add ebx, ebx
jne 0x413fb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x413fc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x413fe4
inc ecx
add ebx, ebx
jne 0x413fd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x413fc5
jne 0x413fe1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x413fc5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414004
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x413ff5
jmp 0x413f66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414004
add edi, ecx
jmp 0x413f66
pop esi
mov edi, esi
mov ecx, 0x78
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x414022
cmp byte [edi], 2
jne 0x414022
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x414027
lea edi, [esi + 0x11000]
mov eax, dword [edi]
or eax, eax
je 0x414096
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x14000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x14108]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x414054
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x14110]
or eax, eax
je 0x414090
mov dword [ebx], eax
add ebx, 4
jmp 0x414071
call dword [esi + 0x1410c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4140c7
cmp al, 0xef
ja 0x4140ba
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x41409c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4140a9
mov ebp, dword [esi + 0x14114]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x14122]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x414113
sub esp, 0xffffff80
jmp 0x4010de
Function at 0x1402050
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push edi
mov edi, eax
mov eax, 0x44
cmp edi, eax
mov dl, 0x57
mov dword [esp + 0xc], 0
jbe 0x1402082
lea esp, [esp]
xor byte [eax + esi], dl
mov cl, byte [eax + esi]
add cl, 0x57
add eax, 1
add dl, cl
cmp eax, edi
jb 0x1402070
xor dword [esi + 0x4c], 0x7a32bc85
xor dword [esi + 0x50], 0x49c042d1
add dword [esi + 0x54], 0xfffffff4
xor dword [esi + 0x58], 0x872c3d47
mov eax, dword [esi + 0x44]
mov dword [0x3408128], eax
mov ecx, dword [esi + 0x48]
mov dword [0x340812c], ecx
mov edx, dword [esi + 0x4c]
mov dword [0x3408130], edx
mov eax, dword [esi + 0x50]
mov dword [0x3408134], eax
mov ecx, dword [esi + 0x54]
mov dword [0x3408138], ecx
mov edx, dword [esi + 0x58]
mov dword [0x340813c], edx
xor ebx, ebx
movzx eax, bx
lea eax, [eax + eax*4]
cmp dword [esi + eax*4 + 0x6c], 0
lea edi, [esi + eax*4 + 0x5c]
je 0x14020e9
mov ecx, dword [edi + 0xc]
mov dword [esp + 0xc], ecx
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
jbe 0x1402106
mov ecx, dword [edi + 8]
mov edx, dword [edi]
sub eax, ecx
push eax
add edx, ecx
push 0
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi]
push eax
add ecx, esi
push ecx
push edx
call sub.msvcrt.dll_memcpy
add ebx, 1
add esp, 0xc
cmp bx, word [esi + 0x48]
jbe 0x14020d1
mov ebp, dword [esi + 0x58]
add ebp, 0xc
cmp dword [ebp], 0
je 0x1402181
mov eax, dword [esi + 0x50]
add eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [ebp + 4]
add edi, dword [esi + 0x50]
add ebp, 0x14
cmp dword [edi], 0
mov ebx, eax
je 0x140217b
lea ecx, [ecx]
mov eax, dword [edi]
test eax, eax
jns 0x140215d
and eax, 0x7fffffff
jmp 0x1402169
mov ecx, dword [esi + 0x50]
and eax, 0x7fffffff
lea eax, [eax + ecx + 2]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi], eax
add edi, 4
cmp dword [edi], 0
jne 0x1402150
cmp dword [ebp], 0
jne 0x1402130
mov edx, dword [esi + 0x54]
push 0
push 1
push 0
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x4c]
push eax
call ecx
mov eax, dword [esp + 0x10]
add esp, 4
pop edi
pop ebp
pop ebx
pop ecx
ret
Function at 0x14026f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [esi + 8], 0
push ebx
push ebp
push edi
je 0x140272e
mov eax, dword [esi + 0x24]
mov edi, dword [eax + 4]
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, dword [esi]
push 0x34083bc
push 0x40
push 4
push edi
call ebp
test eax, eax
je 0x1402787
mov ecx, dword [ebx]
push 0x34083bc
mov dword [edi], ecx
mov edx, dword [0x34083bc]
push edx
push 4
push edi
call ebp
jmp 0x1402787
cmp dword [esi + 0x14], 0
je 0x1402768
mov eax, dword [esi + 0x24]
mov edi, dword [eax]
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, dword [esi]
push 0x34083bc
push 0x40
push 4
push edi
call ebp
test eax, eax
je 0x1402787
mov ecx, dword [ebx]
push 0x34083bc
mov dword [edi], ecx
mov edx, dword [0x34083bc]
push edx
push 4
push edi
call ebp
jmp 0x1402787
call fcn.01403890
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call fcn.01403cf0
mov eax, dword [esi + 4]
push eax
push esi
call fcn.01403fe0
call fcn.014039b0
mov eax, dword [esi + 0x24]
test eax, eax
pop edi
pop ebp
pop ebx
je 0x140279a
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
ret

Function at 0x1403070
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
cmp byte [ecx + 4], 0
jne 0x1403083
mov eax, dword [esp + 0x10]
add esp, 8
ret 8
lea eax, [esp]
push eax
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ecx + 8]
push 0
push edx
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1403079
cmp dword [esp + 0xc], 4
mov eax, dword [esp + 0x10]
jne 0x14030bd
mov eax, dword [esp + 4]
add esp, 8
ret 8

Function at 0x14030d0
Capabilities:
Set registry value

Disassembly:
cmp byte [ecx + 4], 0
je 0x14030f0
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx + 8]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x1403100
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov byte [0x34081b8], 0
cmp byte [ecx + 4], 0
mov dword [esp], 0x200
jne 0x140311d
mov eax, dword [esp + 0xc]
pop ecx
ret 8
mov ecx, dword [ecx + 8]
lea eax, [esp]
push eax
mov eax, dword [esp + 0xc]
push 0x34081b8
lea edx, [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1403115
cmp dword [esp + 8], 1
mov eax, dword [esp + 0xc]
jne 0x1403150
mov eax, 0x34081b8
pop ecx
ret 8

Function at 0x1403160
Capabilities:
Set registry value

Disassembly:
cmp byte [ecx + 4], 0
je 0x1403196
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
push edi
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1403171
mov ecx, dword [ecx + 8]
sub eax, edi
add eax, 1
push eax
mov eax, dword [esp + 0x10]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 8