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

Disassembly:
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x10010720
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x100108e4
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
jmp 0x1001074a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10010751
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10010740
mov eax, 1
add ebx, ebx
jne 0x10010763
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10010758
jne 0x10010774
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10010758
xor ecx, ecx
sub eax, 3
jb 0x10010788
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x100107fa
mov ebp, eax
add ebx, ebx
jne 0x10010793
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x100107a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x100107c4
inc ecx
add ebx, ebx
jne 0x100107b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x100107a5
jne 0x100107c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100107a5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x100107e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x100107d5
jmp 0x10010746
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x100107e4
add edi, ecx
jmp 0x10010746
pop esi
mov edi, esi
mov ecx, 0x29b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10010802
cmp byte [edi], 5
jne 0x10010802
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 0x10010807
lea edi, [esi + 0xe000]
mov eax, dword [edi]
or eax, eax
je 0x10010876
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x101b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10208]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10010834
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1020c]
or eax, eax
je 0x10010870
mov dword [ebx], eax
add ebx, 4
jmp 0x10010851
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x100108a7
cmp al, 0xef
ja 0x1001089a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1001087c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10010889
mov ebp, dword [esi + 0x10210]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x100108db
sub esp, 0xffffff80
jmp 0x100028e8
Function at 0x1002415
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x100128c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1002444
xor eax, eax
jmp 0x100247a
push 0x20
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push eax
call fcn.010023f8
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push esi
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x100247f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push 0x100128c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10024cb
push dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call esi
mov ecx, eax
mov eax, dword [ebp + 0x18]
inc ecx
cmp eax, ecx
jl 0x10024c6
push dword [ebp + 0x14]
call esi
inc eax
mov esi, dword [ebp + 0x14]
jmp 0x1002526
push 0x20
push dword [ebp + 0xc]
lea eax, [ebp - 0x48]
push eax
call fcn.010023f8
cmp dword [ebp - 4], edi
je 0x1002537
mov esi, dword [ebp + 0x14]
push ebx
lea eax, [ebp + 0x18]
push eax
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
pop ebx
jne 0x100250f
cmp dword [ebp - 8], 1
je 0x1002537
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
mov ecx, eax
mov eax, dword [ebp + 0x18]
inc ecx
cmp eax, ecx
jl 0x1002526
push esi
call edi
inc eax
mov edi, dword [ebp + 0x10]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
pop edi
inc eax
pop esi
leave
ret 0x14
Function at 0x1002540
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
push esi
lea eax, [ebp + 0x10]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x100128c
push 0x80000001
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1002580
mov eax, ebx
jmp 0x10025ca
push 0x20
push dword [ebp + 0xc]
lea eax, [ebp - 0x4c]
push eax
call fcn.010023f8
cmp dword [ebp + 0x10], esi
je 0x10025c7
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x10025c4
cmp dword [ebp - 8], 4
je 0x10025c7
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x10030f9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x1003114
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.01002e26
jno 0x1003139
invalid
mov byte [ecx], ch
lea eax, [ebp - 0x40]
push eax
call fcn.01002e36
push eax
push esi
push dword [ebp + 8]
call fcn.01002deb
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.01002e26
inc ebp
mov byte [esi - 0x17ba72e2], cl
mov byte [ebp - 0x18], bl
push eax
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.01002e36
push eax
push esi
push dword [ebp + 8]
call fcn.01002deb
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
invalid
invalid
Function at 0x1006277
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x1001318
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10062cf
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x1001354
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10062c2
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10062d1
xor eax, eax
pop esi
leave
ret 4
Function at 0x401140
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
push edi
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401270
add esp, 0xc
xor eax, eax
cmp dword [ebp - 0x14], 0
setne al
mov dword [0x405760], eax
mov ecx, dword [sym.imp.gvplugin_neato_layout.dll_gvplugin_neato_layout_LTX_library]
mov dword [0x405028], ecx
push 1
push sym.gvpack.exe_lt_preloaded_symbols
call dword [sym.imp.gvc.dll_gvContextPlugins]
add esp, 8
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 4]
push eax
call fcn.00402aa0
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 4], 0
jne 0x4011aa
push 0
call dword [sym.imp.MSVCR90.dll_exit]
cmp dword [0x405760], 0
je 0x4011ee
lea ecx, [ebp - 0x24]
push ecx
push 0
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.gvc.dll_packGraphs]
add esp, 0x10
test eax, eax
je 0x4011ee
push str.gvpack:_packing_of_graphs_failed._n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR90.dll_exit]
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004017e0
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [0x405760], 0
je 0x40124e
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.00401020
add esp, 0xc
mov ecx, dword [ebp - 0x28]
mov edi, dword [ecx + 8]
add edi, 0x10
mov ecx, 8
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.gvc.dll_dotneato_postprocess]
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.gvc.dll_attach_attrs]
add esp, 4
mov ecx, dword [0x405764]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call sub.cgraph.dll_agwrite
add esp, 8
push 0
call dword [sym.imp.MSVCR90.dll_exit]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401600
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [str.Usage:_gvpack___gnuv_____m_margin____array__rc__n_____o_outf____files__n___n____________use_node_granularity_n___g____________use_graph_granularity_n___array_______pack_as_array_of_graphs_n___G_n__v______attach_name_value_attribute_to_output_graph_n___m_n__________set_margin_to__n__points_n___s_gname______use__gname__for_name_of_root_graph_n___o_outfile____write_output_to__outfile__n___u____________no_packing__just_combine_graphs_n___v____________verbose_n________________print_usage_nIf_no_files_are_specified__stdin_is_used_n]
push eax
push 0x405250
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR90.dll_exit]
pop ebp
ret
Function at 0x401630
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401693
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx]
cmp eax, 0x72
jne 0x401664
mov dword [ebp - 4], str.reading
jmp 0x40166b
mov dword [ebp - 4], str.writing
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.gvpack:_could_not_open_file__s_for__s_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0x10
push 1
call dword [sym.imp.MSVCR90.dll_exit]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x402aa0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0xc], 1
mov eax, dword [sym.imp.gvc.dll_PSinputscale]
fld qword [0x404210]
fstp qword [eax]
mov ecx, dword [sym.imp.gvc.dll_Nop]
mov dword [ecx], 2
push 0x402c90
mov edx, dword [0x40576c]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.00403120
add esp, 0xc
lea ecx, [ebp - 0x28]
push ecx
call fcn.00402d60
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x402c5c
cmp dword [0x405768], 0
je 0x402b3a
mov edx, dword [ebp - 8]
push edx
call sub.cgraph.dll_agnameof
add esp, 4
push eax
push str.Reading_graph__s_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call sub.cgraph.dll_agnnodes
add esp, 4
test eax, eax
jne 0x402b71
mov ecx, dword [ebp - 8]
push ecx
call sub.cgraph.dll_agnameof
add esp, 4
push eax
push str.Graph__s_is_empty___ignoring_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
jmp 0x402af3
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x30]
jl 0x402bbd
mov eax, dword [ebp - 0x30]
add eax, dword [0x405770]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x2c], 0
je 0x402ba4
mov ecx, dword [ebp - 0x30]
shl ecx, 2
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.gvc.dll_grealloc]
add esp, 8
mov dword [ebp - 0x34], eax
jmp 0x402bb7
mov eax, dword [ebp - 0x30]
shl eax, 2
push eax
call dword [sym.imp.gvc.dll_gmalloc]
add esp, 4
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0xc], 0
je 0x402bd7
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov dword [0x405754], eax
jmp 0x402c2a
mov ecx, dword [0x405754]
and ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
and eax, 1
cmp ecx, eax
je 0x402c0f
push str.Error:_all_graphs_must_be_directed_or_undirected_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR90.dll_exit]
jmp 0x402c2a
mov ecx, dword [ebp - 8]
push ecx
call sub.cgraph.dll_agisstrict
add esp, 4
test eax, eax
jne 0x402c2a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov dword [0x405754], eax
mov ecx, dword [ebp + 0xc]
push ecx
movzx edx, byte [0x405760]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00401c60
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov dword [edx + ecx*4], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x402af3
mov edx, dword [ebp - 4]
shl edx, 2
push edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.gvc.dll_grealloc]
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp + 8], 0
je 0x402c81
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
mov eax, dword [ebp - 0x2c]
mov esp, ebp
pop ebp
ret
Function at 0x4034d6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x405730]
jne 0x4034e0
repz ret
jmp fcn.0040384e

Function at 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x402260
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402279
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4022b4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4022b0
lea ebx, [ebx]
cmp esi, eax
jae 0x4022b4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4022a0
cmp esi, eax
jb 0x4022ba
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403180
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
add eax, 1
push eax
mov edi, ecx
mov byte [ebp], 0
mov dword [esp + 0x1c], 0
call fcn.00410e61
mov edx, dword [esp + 0x18]
add esp, 4
lea ecx, [esp + 0x18]
push ecx
mov esi, eax
mov eax, dword [esp + 0x14]
push edx
push eax
mov ecx, edi
call fcn.00403140
test eax, eax
jne 0x403236
mov edi, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x20]
push ecx
push esi
mov eax, 1
add dword [esp + 0x28], eax
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x403221
test ebx, ebx
jne 0x403221
cmp byte [esi], bl
je 0x403221
sub eax, 1
mov dword [esp + 0x20], eax
mov edx, ebp
mov byte [esi + eax], bl
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x403215
push esi
call fcn.00410e5c
add esp, 4
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
ret 0x14
pop edi
pop esi
xor eax, eax
pop ebp
ret 0x14

Function at 0x403240
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
add ecx, 1
push ecx
mov byte [eax], 0
mov dword [esp + 0xc], 0
call fcn.00410e61
mov ecx, dword [esp + 0x14]
add esp, 4
lea edx, [esp + 8]
mov esi, eax
mov eax, dword [esp + 0x14]
push edx
push eax
push ecx
mov ecx, edi
call fcn.00403140
test eax, eax
jne 0x40330f
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 8]
add dword [esp + 0x1c], 1
push ebp
lea edx, [esp + 0x20]
push edx
push esi
lea eax, [esp + 0x30]
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x20]
xor eax, eax
test ebp, ebp
jle 0x4032fa
mov edi, dword [esp + 0x1c]
mov ecx, esi
sub edi, esi
mov dl, byte [ecx]
mov byte [edi + ecx], dl
cmp byte [ecx], 0
jne 0x4032d2
mov dl, byte [eax + esi + 1]
test dl, dl
je 0x4032f1
add eax, 1
add ecx, 1
cmp eax, ebp
jl 0x4032c0
push esi
call fcn.00410e5c
add esp, 4
pop ebp
pop edi
mov eax, 1
pop esi
pop ecx
ret 0x18
mov ecx, dword [esp + 0x1c]
mov byte [eax + ecx + 1], 0
push esi
call fcn.00410e5c
add esp, 4
pop ebp
pop edi
mov eax, 1
pop esi
pop ecx
ret 0x18
pop edi
xor eax, eax
pop esi
pop ecx
ret 0x18
Function at 0x4033c0
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
push esi
push edi
mov dword [esp + 0x14], 0
call fcn.00403140
test eax, eax
je 0x403411
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xc]
push edx
push 0
push 0xf003f
push 0
push 0x44796c
push 0
push esi
push edi
mov dword [esp + 0x38], 2
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40343a
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
pop ecx
ret 0x14

Function at 0x403450
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
push esi
push edi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
push edx
xor esi, esi
push eax
mov dword [esp + 0x14], esi
call fcn.00403140
mov edi, eax
cmp edi, esi
jne 0x4034df
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x1c]
push ecx
push esi
push esi
push esi
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x20]
push ebx
push esi
call ebp
mov eax, dword [esp + 0x1c]
test eax, eax
jbe 0x4034be
mov ecx, dword [esp + 0x24]
cmp eax, dword [ecx]
ja 0x4034be
mov edx, dword [esp + 0x20]
push ecx
push edx
lea eax, [esp + 0x20]
push eax
push 0
push ebx
push esi
mov dword [esp + 0x30], 4
call ebp
mov edi, eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop ebp
pop ebx
jne 0x4034df
mov ecx, dword [esp + 0x1c]
cmp dword [ecx], 0
jle 0x4034df
pop edi
mov eax, 1
pop esi
pop ecx
ret 0x14
pop edi
xor eax, eax
pop esi
pop ecx
ret 0x14

Function at 0x4034f0
Capabilities:
Delete registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
push esi
push edi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
push edx
xor esi, esi
push eax
mov dword [esp + 0x14], esi
call fcn.00403140
test eax, eax
mov edi, dword [esp + 8]
jne 0x40352a
mov ecx, dword [esp + 0x18]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
neg esi
sbb esi, esi
add esi, 1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ecx
ret 0xc
Function at 0x4035f0
Capabilities:
Delete registry key

Disassembly:
push ecx
push esi
push edi
lea eax, [esp + 8]
push eax
push str.InstallerProducts435ABA3722F4B804CADCE9B80870349F
xor edi, edi
push SysReAllocStringLen
mov esi, ecx
mov dword [esp + 0x14], edi
call fcn.00403140
mov eax, dword [esp + 8]
test eax, eax
je 0x40361c
mov edi, 1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionInstallerUserDataS_1_5_18Products435ABA3722F4B804CADCE9B80870349F
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, esi
call fcn.00403140
cmp dword [esp + 8], 0
je 0x403643
add edi, 1
lea edx, [esp + 8]
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall73ABA534_4F22_408B_ACCD_9E8B800743F9
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, esi
call fcn.00403140
cmp dword [esp + 8], 0
je 0x403663
add edi, 1
cmp edi, 3
jne 0x403671
pop edi
mov eax, 1
pop esi
pop ecx
ret
lea eax, [esp + 8]
push eax
push str.InstallerProducts
push SysReAllocStringLen
mov ecx, esi
call fcn.00403140
mov eax, dword [esp + 8]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
je 0x40369d
push str.435ABA3722F4B804CADCE9B80870349F
push eax
call edi
lea ecx, [esp + 8]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionInstallerUserDataS_1_5_18Products
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, esi
call fcn.00403140
mov eax, dword [esp + 8]
test eax, eax
je 0x4036c3
push str.435ABA3722F4B804CADCE9B80870349F
push eax
call edi
lea edx, [esp + 8]
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, esi
call fcn.00403140
mov eax, dword [esp + 8]
test eax, eax
je 0x4036e9
push str.73ABA534_4F22_408B_ACCD_9E8B800743F9
push eax
call edi
pop edi
xor eax, eax
pop esi
pop ecx
ret