joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100210e
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x1004024]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x42c], eax
mov word [ebp - 0x210], di
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x418]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x100217b
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x418]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, 1
mov dword [ebp - 0x41c], eax
jge 0x1002182
xor eax, eax
jmp 0x1002280
push ebx
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
test ebx, ebx
pop ecx
je 0x100227d
push ebx
push dword [ebp - 0x41c]
lea eax, [ebp - 0x418]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
mov edi, eax
test edi, edi
je 0x1002276
and dword [ebp - 0x41c], 0
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x428]
push eax
push 0x10012e8
push ebx
mov dword [ebp - 0x420], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
je 0x1002229
mov eax, dword [ebp - 0x428]
movsx ecx, word [eax + 2]
movsx eax, word [eax]
push 0x100123c
push ecx
push eax
lea eax, [ebp - 0x20c]
push 0x10012ac
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
mov edi, eax
test edi, edi
jne 0x1002261
push dword [ebp - 0x424]
lea eax, [ebp - 0x20c]
push 0x1001270
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
mov edi, eax
test edi, edi
je 0x1002276
push dword [ebp + 0x10]
push dword [ebp - 0x41c]
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.010027ef
leave
ret 0xc
Function at 0x1002676
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x1002c2f
call fcn.01002ab8
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0x30]
push edi
xor ebx, ebx
push 2
push ebx
push dword [ebp + 0x10]
mov dword [esi], 1
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
cmp edi, ebx
jne 0x10026c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
jmp 0x1002766
push edi
push dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x18]
push eax
call fcn.0100263a
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x34], ebx
je 0x10026ec
push dword [ebp + 0x38]
push 0x1001320
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
jmp 0x10026fb
push 0x1001320
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x1002727
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x1002727
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp + 0xc]
mov dword [ebp + 0x30], eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [ebp + 0x30], ebx
jne 0x1002732
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
jmp 0x1002755
push esi
push dword [ebp + 0x2c]
mov ecx, dword [ebp + 8]
push dword [ebp + 0x28]
mov edx, dword [ecx]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x30]
push eax
push ecx
call dword [edx + 0x10]
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
push eax
call fcn.010025a8
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x34
Function at 0x1002907
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001330
call fcn.01002b14
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1002942
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002942
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100295a
cmp eax, 0x20b
je 0x1002947
mov dword [ebp - 0x1c], edi
jmp 0x100296e
cmp dword [ecx + 0x84], 0xe
jbe 0x1002942
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1002968
cmp dword [ecx + 0x74], 0xe
jbe 0x1002942
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1004c9c], 0xffffffff
or dword [0x1004ca0], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1004c94]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1004c90]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1004ca4], eax
call fcn.01002b0a
cmp dword [0x1004030], edi
jne 0x10029c9
push fcn.01002b0a
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01002af3
push 0x1004010
push 0x100400c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1004c8c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1004c88]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x1004008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01001772
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1002a40
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1002a75
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01002b4f
ret
Function at 0x402400
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
sub esp, 0x110
lea eax, [esp + 0xc]
push ebx
push esi
push edi
push str.SYSTEMCurrentControlSetServices_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
push str.Distribudmr
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push 0xf003f
push 0
push eax
push 0x80000002
call dword [0x408d98]
test eax, eax
je 0x402455
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x104
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push str.ImagePath
push eax
call dword [0x408d94]
test eax, eax
je 0x4024a1
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x408d90]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov edx, dword [esp + 0x10]
push edx
call dword [0x408d90]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4024c8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push 0
push 0
push 3
push 0
push 1
lea ecx, [esp + 0x2c]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4024f5
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esp + 0xc], eax
jne 0x402519
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x40253b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov eax, dword [esp + 0xc]
lea edx, [esp + 0xc]
push 0
push edx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40256d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x120]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov esi, eax
test esi, esi
jne 0x40259d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov edx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push edx
push ebx
push 0
push 0x66
push 0xa
push esi
call ebp
mov edi, eax
test edi, edi
je 0x4025d6
push str.Distribudmr
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push str.Distribudmr
push 0
push 0x65
push 0xa
push esi
call ebp
mov edi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
pop ebp
test eax, eax
push ebx
jne 0x4025f7
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x110
ret
Function at 0x405a80
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x240
lea eax, [esp + 0x13c]
push ebx
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x148]
push str.svchost.exe
push ecx
call sub.MSVCRT.dll_strstr
add esp, 8
test eax, eax
jne 0x405b83
lea edx, [esp + 0x148]
push 0x408d74
push edx
call sub.MSVCRT.dll_fopen
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x405b83
lea eax, [esp + 0xc]
lea ecx, [esp + 0x68]
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
push ebx
call fcn.00405430
add esp, 0x14
test al, al
je 0x405b6b
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x68]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.00405570
add esp, 0x10
mov edi, eax
push 0x40
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x405b83
mov edx, dword [esp + 0xc]
push esi
lea eax, [esp + 0x6c]
push edx
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
push ebx
call fcn.00405600
mov eax, dword [esp + 0x24]
push edi
push esi
lea ecx, [esp + 0x88]
push eax
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x50]
push edx
push eax
call fcn.00405890
add esp, 0x30
push ebx
call sub.MSVCRT.dll_fclose
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x240
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x240
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x436890
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x42d015
lea edi, [esi - 0x2c015]
push edi
jmp 0x4368aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4368b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4368a0
mov eax, 1
add ebx, ebx
jne 0x4368c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4368b8
jne 0x4368d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4368b8
xor ecx, ecx
sub eax, 3
jb 0x4368e8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43695a
mov ebp, eax
add ebx, ebx
jne 0x4368f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x436900
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x436924
inc ecx
add ebx, ebx
jne 0x436910
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x436905
jne 0x436921
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x436905
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x436944
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x436935
jmp 0x4368a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x436944
add edi, ecx
jmp 0x4368a6
pop esi
mov edi, esi
mov ecx, 0xafb
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x436962
cmp byte [edi], 4
jne 0x436962
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 0x436967
lea edi, [esi + 0x34000]
mov eax, dword [edi]
or eax, eax
je 0x4369df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x388e0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3891c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x436994
mov ecx, edi
jns 0x4369c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x38924]
or eax, eax
je 0x4369d9
mov dword [ebx], eax
add ebx, 4
jmp 0x4369b1
call dword [esi + 0x38920]
mov ebp, dword [esi + 0x38928]
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
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x436a13
sub esp, 0xffffff80
jmp 0x401940
Function at 0x4011ae
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x45a210]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push 0xc35
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x401214
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00435a10
add esp, 0xc
push 0x400
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x401214
add esi, 0x10
lea eax, [ebp - 0x804]
call fcn.0040124c
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043579e
leave
ret

Function at 0x401677
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x45a210]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
cmp dword [eax + 0x18], 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
jb 0x4016aa
mov eax, dword [eax + 4]
jmp 0x4016ad
add eax, 4
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x74]
push ecx
xor ebx, ebx
push ebx
push 0xf003f
push ebx
push 0x449dac
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401739
cmp dword [ebp - 0x74], ebx
je 0x401739
mov eax, 0x208
push eax
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.00435a10
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x4016fa
mov edi, dword [edi + 4]
jmp 0x4016fd
add edi, 4
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push edi
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, ebx
jne 0x401722
lea eax, [ebp - 0x70]
call fcn.0040124c
cmp dword [ebp - 0x74], ebx
je 0x401730
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, ebx
sete al
jmp 0x40173b
xor al, al
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043579e
add ebp, 0x19c
leave
ret 4

Function at 0x401755
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [eax + 0x18], 8
push ebx
push esi
mov esi, ecx
jb 0x401769
mov eax, dword [eax + 4]
jmp 0x40176c
add eax, 4
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
xor ebx, ebx
push ebx
push 0xf003f
push ebx
push 0x449dac
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4017e1
cmp dword [ebp - 4], ebx
je 0x4017e1
mov eax, dword [esi + 0x14]
add eax, eax
cmp dword [esi + 0x18], 8
jb 0x4017a8
mov esi, dword [esi + 4]
jmp 0x4017ab
add esi, 4
cmp dword [edi + 0x18], 8
jb 0x4017b6
mov ecx, dword [edi + 4]
jmp 0x4017b9
lea ecx, [edi + 4]
push eax
push esi
push 1
push ebx
push ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 4], ebx
mov esi, eax
je 0x4017d8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebx
sete al
jmp 0x4017e3
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x402cc9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push 0x44
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.00435a10
push 0x10
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [ebp - 0x5c], 0x44
call fcn.00435a10
add esp, 0x18
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x30], 1
mov word [ebp - 0x2c], 5
jb 0x402d0f
mov esi, dword [esi + 4]
jmp 0x402d12
add esi, 4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x402d20
mov eax, dword [eax + 4]
jmp 0x402d23
add eax, 4
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x402d4f
cmp dword [ebp - 0x14], ebx
je 0x402d4b
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x402d51
xor al, al
pop esi
pop ebx
leave
ret 4
Function at 0x403c27
Capabilities:
Accept command line arguments

Disassembly:
push 0x28
mov eax, 0x445cce
call fcn.004378a5
mov eax, dword [ebp + 8]
xor esi, esi
cmp dword [eax + 0x18], 8
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], esi
jb 0x403c49
mov eax, dword [eax + 4]
jmp 0x403c4c
add eax, 4
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
cmp ebx, esi
jne 0x403c61
xor al, al
jmp 0x403cb4
xor edi, edi
cmp dword [ebp - 0x30], esi
jle 0x403ca0
jmp 0x403c6c
xor esi, esi
mov eax, dword [ebx + edi*4]
lea ecx, [ebp - 0x2c]
call fcn.00401222
mov dword [ebp - 4], esi
cmp dword [ebp - 0x18], esi
je 0x403c8b
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x34]
call fcn.00403d30
or dword [ebp - 4], 0xffffffff
push esi
push 1
lea esi, [ebp - 0x2c]
call fcn.004012ba
inc edi
cmp edi, dword [ebp - 0x30]
jl 0x403c6a
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x34]
call fcn.00403cfb
test eax, eax
setne al
call fcn.00437928
ret 4
Function at 0x406217
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x45a210]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x406238
mov eax, dword [eax + 4]
jmp 0x40623b
add eax, 4
push pe_nt_image_headers32
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x406262
mov eax, dword [ebp - 0x2b8]
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043579e
leave
ret 4

Function at 0x408c4b
Capabilities:
Get graphical window text

Disassembly:
push 0x274
mov eax, 0x4469fb
call fcn.004378a5
lea eax, [ebp - 0x258]
mov edi, ecx
push 0x5087
push eax
mov dword [ebp - 0x264], edi
call fcn.00402c78
pop ecx
pop ecx
and dword [ebp - 4], 0
cmp dword [ebp - 0x240], 8
mov eax, dword [ebp - 0x254]
jae 0x408c8e
lea eax, [ebp - 0x254]
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
push dword [edi + 4]
call esi
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00435a10
add esp, 0xc
push 0x3ec
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
mov dword [ebp - 0x25c], eax
je 0x408d09
push eax
call ebx
test eax, eax
je 0x408d09
push 0x104
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x408d09
and word [ebp - 0x18], 0
lea esi, [edi + 0x298]
lea eax, [ebp - 0x220]
call fcn.0040124c
jmp 0x408d32
push dword [ebp - 0x25c]
call ebx
test eax, eax
je 0x408d32
lea eax, [edi + 0x298]
cmp dword [eax + 0x18], 8
jb 0x408d26
mov eax, dword [eax + 4]
jmp 0x408d29
add eax, 4
push eax
push dword [ebp - 0x25c]
call esi
add edi, 0x298
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x25c], edi
call fcn.0042d8a5
push 0xffffffffffffffff
push edi
xor ebx, ebx
mov byte [ebp - 4], 1
call fcn.00401318
push ebx
push 1
lea esi, [ebp - 0x280]
mov byte [ebp - 4], bl
call fcn.004012ba
push 0x44a0ac
mov eax, edi
call fcn.0040c320
mov edi, dword [ebp - 0x264]
cmp byte [edi + 0x90], bl
pop ecx
je 0x408e59
cmp dword [edi + 0x88], ebx
je 0x408e59
mov eax, dword [ebp - 0x25c]
lea esi, [edi + 0x74]
call fcn.0040c0d0
test eax, eax
je 0x408e59
lea eax, [edi + 0x324]
lea esi, [ebp - 0x23c]
call fcn.00403d90
mov ebx, esi
mov byte [ebp - 4], 2
call fcn.0040c420
push 0x25
push 0x3a
mov edi, esi
call fcn.0040c250
push 0x25
push 0x5c
call fcn.0040c250
mov edi, str.SoftwareHaoZip_SFX
add esp, 0x10
mov eax, edi
lea ecx, [ebp - 0x280]
call fcn.00401222
lea eax, [ebp - 0x280]
call fcn.00401624
xor ebx, ebx
push ebx
push 1
lea esi, [ebp - 0x280]
mov byte [ebp - 0x25d], al
call fcn.004012ba
cmp byte [ebp - 0x25d], bl
je 0x408e49
mov eax, edi
lea ecx, [ebp - 0x280]
call fcn.00401222
mov ecx, dword [ebp - 0x25c]
lea edi, [ebp - 0x23c]
lea eax, [ebp - 0x280]
call fcn.00401755
push ebx
push 1
lea esi, [ebp - 0x280]
call fcn.004012ba
push ebx
push 1
lea esi, [ebp - 0x23c]
call fcn.004012ba
xor ebx, ebx
push ebx
push 1
lea esi, [ebp - 0x258]
call fcn.004012ba
call fcn.00437928
ret