joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429374
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x446054]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4293bf
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00429513
test al, al
jne 0x4293b9
sub edx, 2
cmp edx, edi
jne 0x42939f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4293e1
lea eax, [edi + 2]
cmp edx, eax
je 0x4293e1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004292c0
add esp, 0x10
jmp 0x4294db
push esi
lea ecx, [ebp - 0x255]
call fcn.00429513
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x429424
push dword [ebp - 0x25c]
jmp 0x4293d1
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x429461
cmp word [ebp - 0x226], 0
je 0x429482
cmp word [ebp - 0x226], ax
jne 0x429461
cmp word [ebp - 0x224], 0
je 0x429482
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004292c0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4294ce
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x42943b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4294b6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4294db
push 0x4290f0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0042f990
add esp, 0x10
jmp 0x4294ab
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414aa1
leave
ret
Function at 0x430775
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004306f1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4308ed
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4308ed
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43089c
jg 0x4307ce
test eax, eax
je 0x430892
push 1
push 0x1000
call fcn.00421f5c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4307f4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x430889
push 0x8000
push ebx
call fcn.0041f184
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x430820
jg 0x43081b
cmp ecx, 0x1000
jb 0x430820
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0042463c
add esp, 0x10
cmp eax, 0xffffffff
je 0x430865
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x43081b
jl 0x43084c
test ecx, ecx
jne 0x43080d
push dword [ebp - 0xc]
push ebx
call fcn.0041f184
push esi
call fcn.0042172a
add esp, 0xc
xor edi, edi
jmp 0x4308fe
cmp byte [edi + 0x24], 0
je 0x43087c
cmp dword [edi + 0x20], 5
jne 0x43087c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x430887
mov edi, dword [edi + 0x18]
jmp 0x430889
xor edi, edi
push esi
call fcn.0042172a
pop ecx
jmp 0x4308fe
test ecx, ecx
jg 0x43085e
jl 0x43089c
test eax, eax
jae 0x43085e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004263f9
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4308bf
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43085e
jmp 0x4308f6
push ebx
call fcn.00421cfb
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43085e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4308fe
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4308fb
mov edi, dword [edi + 0x18]
jmp 0x4308fe
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004263f9
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x50b580
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
jmp 0x50b59a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50b5a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50b590
mov eax, 1
add ebx, ebx
jne 0x50b5b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50b5a8
jne 0x50b5c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50b5a8
xor ecx, ecx
sub eax, 3
jb 0x50b5d8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50b64a
mov ebp, eax
add ebx, ebx
jne 0x50b5e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50b5f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50b614
inc ecx
add ebx, ebx
jne 0x50b600
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50b5f5
jne 0x50b611
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50b5f5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50b634
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50b625
jmp 0x50b596
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50b634
add edi, ecx
jmp 0x50b596
pop esi
mov edi, esi
mov ecx, 0x1d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50b652
cmp byte [edi], 6
jne 0x50b652
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 0x50b657
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x50b6c6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xdacc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xdb24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50b684
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xdb2c]
or eax, eax
je 0x50b6c0
mov dword [ebx], eax
add ebx, 4
jmp 0x50b6a1
call dword [esi + 0xdb28]
mov ebp, dword [esi + 0xdb30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x50b6fa
sub esp, 0xffffff80
jmp section.UPX0

Function at 0x431002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
mov ecx, 0x72972b69
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
mov ecx, 0x5a1e675a
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43106c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40105a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401051
cmp dword [ebp - 0xc], 4
jne 0x401051
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
mov bl, 1
mov dword [ecx], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret

Function at 0x40105f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x40a4fc]
xor eax, ebp
mov dword [ebp + 0x98], eax
push ebx
lea eax, [ebp - 0x7c]
push eax
xor bl, bl
mov dword [ebp - 0x7c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4010cd
cmp dword [ebp - 0x6c], 2
jne 0x4010cd
cmp dword [ebp - 0x78], 5
ja 0x4010a6
jne 0x4010cd
cmp dword [ebp - 0x74], 1
jb 0x4010cd
lea eax, [ebp - 0x80]
push eax
push dword [0x40a0f0]
push dword [0x40a0ec]
push 0x80000002
call fcn.00401000
add esp, 0x10
test al, al
je 0x4010cd
mov bl, byte [ebp - 0x80]
and bl, 1
mov ecx, dword [ebp + 0x98]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00403a17
add ebp, 0x9c
leave
ret

Function at 0x4010e5
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x40a4fc]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40112a
push esi
push str.ADOBE_READLOGGER_CMD:COMMENT:_s
lea eax, [ebp - 0xcc]
push 0xc7
push eax
call dword [sym.imp.MSVCR80.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403a17
leave
ret

Function at 0x40130d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x40132a
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [esi], eax
mov eax, dword [esi]
pop esi
leave
ret
Function at 0x4013f6
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
call fcn.0040135c
xor ebx, ebx
test al, al
je 0x40149d
cmp byte [edi], bl
jne 0x40149d
cmp dword [edi + 4], ebx
jne 0x40143f
cmp byte [ebp + 8], bl
push 2
pop eax
je 0x401427
mov eax, 0x1000002
push ebx
push ebx
push ebx
push eax
push ebx
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [edi + 4], eax
jne 0x40143f
mov byte [edi], 1
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x40149d
cmp dword [edi + 8], ebx
jne 0x40149d
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [edi + 8], eax
jne 0x401463
mov byte [edi], 1
jmp 0x40149d
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.004013a0
add esp, 0xc
test al, al
je 0x40148e
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x40148e
mov ecx, dword [edi + 8]
lea eax, [ecx + eax - 1]
mov dword [edi + 0xc], eax
jmp 0x40149d
push dword [edi + 8]
mov byte [edi], 1
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [edi + 8], ebx
xor eax, eax
cmp dword [edi + 8], ebx
pop esi
setne al
pop ebx
leave
ret

Function at 0x4014a9
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop ebp
ret

Function at 0x4014be
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x40a4fc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
jbe 0x401548
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0xffffffff
je 0x401548
mov dword [ebp - 0x150], 1
jmp 0x401516
mov eax, dword [ebp - 0x150]
inc eax
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
cmp eax, dword [ebp + 0xc]
jae 0x40153c
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40153a
jmp 0x40153c
jmp 0x401509
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403a17
leave
ret
Function at 0x40179b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0
jg 0x4017d9
jl 0x4017bd
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0x7fffffff
ja 0x4017d9
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 4], 0xffffffff
jg 0x4017de
jl 0x4017d9
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0x80000001
jae 0x4017de
jmp 0x401866
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 8]
neg eax
sbb eax, eax
and eax, 0xfffffffe
inc eax
inc eax
push eax
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x401866
and dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0xc]
jae 0x401866
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
sub eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.00401692
pop ecx
pop ecx
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401859
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jae 0x40185b
jmp 0x401866
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x40180d
leave
ret

Function at 0x402880
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0x14c
mov eax, dword [0x40a4fc]
xor eax, ebp
mov dword [ebp + 0xc8], eax
mov eax, dword [ebp + 0xd8]
push ebx
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0xd4]
xor ebx, ebx
push ebx
mov byte [ebp - 0x71], bl
mov dword [ebp - 0x78], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x402908
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4028e6
push dword [ebp - 0x80]
lea eax, [ebp - 0x70]
push eax
push 1
push esi
call edi
add esp, 0x10
mov byte [ebp - 0x71], 1
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x402903
mov eax, dword [ebp - 0x7c]
push dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
cmp byte [ebp - 0x71], bl
jne 0x402914
push dword [ebp - 0x80]
push ebx
push 1
push esi
call edi
add esp, 0x10
mov ecx, dword [ebp + 0xc8]
xor ecx, ebp
pop ebx
call fcn.00403a17
add ebp, 0xcc
leave
ret
Function at 0x402a4e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0x14c
mov eax, dword [0x40a4fc]
xor eax, ebp
mov dword [ebp + 0xc8], eax
mov eax, dword [ebp + 0xd4]
push ebx
mov dword [ebp - 0x78], ecx
lea ecx, [ebp - 0x7c]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor ebx, ebx
test eax, eax
jne 0x402acb
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x136
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x402aab
mov byte [ebp - 0x71], bl
jmp 0x402abd
push dword [ebp - 0x78]
lea eax, [ebp - 0x70]
push eax
push ebx
push esi
mov byte [ebp - 0x71], 1
call edi
add esp, 0x10
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x71], bl
jne 0x402ad6
push dword [ebp - 0x78]
push ebx
push ebx
push esi
call edi
add esp, 0x10
mov ecx, dword [ebp + 0xc8]
xor ecx, ebp
pop ebx
call fcn.00403a17
add ebp, 0xcc
leave
ret

Function at 0x40373c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ecx, ecx
push esi
push edi
mov byte [ebp - 8], cl
xor eax, eax
lea edi, [ebp - 7]
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp byte [ebp - 8], cl
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 4
jne 0x4037ed
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push eax
mov esi, 0x20019
push esi
push ecx
mov ebx, str.SOFTWAREAdobeAdobe_Acrobat9.0Language
push ebx
push 0x80000001
call edi
test eax, eax
jne 0x4037af
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4078d8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 8], 0
jne 0x4037ed
lea eax, [ebp - 4]
push eax
push esi
push 0
push ebx
push 0x80000002
call edi
test eax, eax
jne 0x4037ed
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4078d8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
xor esi, esi
mov edi, 0x40a3e8
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.MSVCR80.dll__stricmp]
test eax, eax
pop ecx
pop ecx
je 0x403812
inc esi
add edi, 8
cmp esi, 0x1d
jb 0x4037f6
jmp 0x403814
mov bl, 1
neg bl
lea ecx, [ebp - 0x14]
sbb ebx, ebx
and ebx, esi
push dword [ebx*8 + 0x40a3ec]
call fcn.004036fb
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402e50
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4038a6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x40a4fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x244
xor esi, esi
lea eax, [ebp - 0x248]
push esi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov edi, 0x122
push edi
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4038f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00403a17
leave
ret
push str.kernel32.dll
lea eax, [ebp - 0x248]
push edi
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, esi
je 0x4038e9
push str.HeapSetInformation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
jne 0x40393d
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x4038eb
push esi
push esi
push 1
push esi
call eax
mov esi, eax
neg esi
sbb esi, esi
neg esi
jmp 0x403932

Function at 0x403a17
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a4fc]
jne 0x403a21
repz ret
jmp fcn.0040405e
Function at 0x4033a8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404d30
test esi, esi
jne 0x4033de
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404e20
jmp 0x4033fc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040324c
mov edi, eax
test esi, esi
je 0x4033fc
cmp dword [ebx], 0
je 0x4033fc
dec esi
jmp 0x4033e5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403b48
Capabilities:
Query or enumerate registry value

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

Function at 0x404adc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f204c], 0
je 0x404b3d
cmp word [0x4f2220], 0xd7b2
jne 0x404b05
cmp dword [0x4f2228], 0
jbe 0x404b05
mov eax, 0x4f221c
call dword [0x4f2238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404b64
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ef02c], 0
jne 0x404b59
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404cb4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4ef030], 0
je 0x404cda
mov edx, esi
mov eax, ebx
call dword [0x4ef030]
jmp 0x404ce9
mov eax, 8
call fcn.00402f5c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4f204d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404c7c
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc