joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f560
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x432015
lea edi, [esi - 0x31015]
push edi
or ebp, 0xffffffff
jmp 0x43f582
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43f589
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43f578
mov eax, 1
add ebx, ebx
jne 0x43f59b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43f590
jne 0x43f5ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43f590
xor ecx, ecx
sub eax, 3
jb 0x43f5c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43f632
mov ebp, eax
add ebx, ebx
jne 0x43f5cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43f5d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43f5fc
inc ecx
add ebx, ebx
jne 0x43f5e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43f5dd
jne 0x43f5f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43f5dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43f61c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43f60d
jmp 0x43f57e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43f61c
add edi, ecx
jmp 0x43f57e
pop esi
mov edi, esi
mov ecx, 0xc0f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43f63a
cmp byte [edi], 4
jne 0x43f63a
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 0x43f63f
lea edi, [esi + 0x3d000]
mov eax, dword [edi]
or eax, eax
je 0x43f6b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3fc30]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3fc6c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43f66c
mov ecx, edi
jns 0x43f69b
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 + 0x3fc74]
or eax, eax
je 0x43f6b1
mov dword [ebx], eax
add ebx, 4
jmp 0x43f689
call dword [esi + 0x3fc70]
mov ebp, dword [esi + 0x3fc78]
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 0x43f6eb
sub esp, 0xffffff80
jmp 0x401bf4
Function at 0x41b141
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push dword [ebp + 8]
mov ebx, eax
push ebx
push esi
call fcn.0040be42
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
cmp eax, 3
pop ecx
jle 0x41b166
lea edi, [esi + eax*2 - 8]
jmp 0x41b175
mov ecx, 0x103
sub ecx, eax
cmp ecx, 3
jl 0x41b1ab
lea edi, [esi + eax*2]
and dword [ebp - 4], 0
mov eax, edi
sub eax, esi
sar eax, 1
sub ebx, eax
push dword [ebp - 4]
push 0x402b74
push ebx
push edi
call fcn.0041b094
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41b1b1
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x3e7
jl 0x41b181
xor al, al
pop edi
pop ebx
leave
ret
mov al, 1
jmp 0x41b1ad

Function at 0x41b1b5
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [section..cdata]
push ebx
mov ebx, dword [esp + 0x2c]
push esi
push dword [esp + 0x38]
xor esi, esi
push dword [esp + 0x38]
mov dword [esp + 0x30], eax
push ebx
mov dword [esp + 0x14], 1
mov dword [esp + 0x1c], esi
call fcn.0040be42
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
cmp eax, 3
pop ecx
jle 0x41b1fa
lea eax, [ebx + eax*2 - 8]
mov dword [esp + 0x10], eax
jmp 0x41b213
mov ecx, 0x103
sub ecx, eax
cmp ecx, 3
jl 0x41b20b
lea eax, [ebx + eax*2]
jmp 0x41b1f4
mov dword [esp + 8], 0x80040212
cmp dword [esp + 8], 1
mov dword [esp + 0xc], esi
jne 0x41b2d2
push ebp
push edi
cmp dword [esp + 0x14], 0x3e7
jge 0x41b2d0
mov eax, dword [esp + 0x18]
push dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
sub eax, ebx
sar eax, 1
push 0x402b74
sub ecx, eax
push ecx
push dword [esp + 0x24]
call fcn.0041b094
add esp, 0x10
push esi
push 0x8000000
push 3
push esi
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41b2d0
push esi
push esi
push dword [0x493a9c]
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [esp + 0x20]
push eax
push 0x10
lea eax, [esp + 0x2c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b2c1
cmp dword [esp + 0x1c], 0x10
jne 0x41b2c1
push 4
pop ecx
mov edi, 0x4054c4
lea esi, [esp + 0x20]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x41b2bf
and dword [esp + 0x10], eax
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc dword [esp + 0x14]
cmp dword [esp + 0x10], 1
je 0x41b224
pop edi
pop ebp
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 8]
pop esi
pop ebx
call fcn.0046e295
add esp, 0x24
ret
Function at 0x41d853
Capabilities:
Enumerate pe sections
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push 2
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
call esi
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
jne 0x41d8a7
call edi
test eax, eax
je 0x41d8a7
call edi
push eax
call fcn.00430d77
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
jl 0x41d8a7
mov dword [ebp - 4], 0x80030019
cmp dword [ebp - 0x14], ebx
je 0x41d8b3
mov dword [ebp - 4], 0x8002000a
cmp dword [ebp - 4], ebx
jl 0x41d9f7
mov eax, dword [0x493a9c]
push eax
mov dword [ebp - 0xc], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
jne 0x41d8d9
mov dword [ebp - 4], 0x8007000e
cmp dword [ebp - 4], ebx
jl 0x41d9f7
push ebx
push ebx
push ebx
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
jne 0x41d8fb
call edi
push eax
call fcn.00430d77
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
jl 0x41d9f7
mov esi, dword [ebp - 0xc]
push ebx
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d922
cmp dword [ebp - 0x10], esi
je 0x41d92e
call edi
push eax
call fcn.00430d77
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
jl 0x41d9f7
mov eax, dword [ebp - 8]
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x41d9ab
cmp word [esi + 0x18], 0x10b
jne 0x41d9ab
movzx ecx, word [esi + 6]
movzx eax, word [esi + 0x14]
imul ecx, ecx, 0x28
lea eax, [eax + esi + 0x18]
lea edi, [ecx + eax - 0x28]
jmp 0x41d970
test byte [eax + 0x24], 0x40
je 0x41d96d
add ebx, dword [eax + 0x10]
add eax, 0x28
cmp eax, edi
jne 0x41d964
mov ecx, dword [ebp - 0x18]
sub ecx, dword [edi + 0x14]
or dword [edi + 0x24], 0x40
mov dword [edi + 0x10], ecx
push dword [esi + 0x38]
add ebx, ecx
call fcn.0041d837
mov dword [edi + 8], eax
mov ecx, dword [esi + 0x54]
push dword [esi + 0x38]
add ecx, ebx
mov dword [esi + 0x20], ebx
call fcn.0041d837
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
pop ecx
pop ecx
mov dword [esi + 0x50], eax
xor ebx, ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41d9c8
call edi
push eax
call fcn.00430d77
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
jl 0x41d9f7
mov esi, dword [ebp - 0xc]
push ebx
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41d9eb
cmp dword [ebp - 0x10], esi
je 0x41d9f7
call edi
push eax
call fcn.00430d77
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x8002000a
jne 0x41da07
mov dword [ebp - 4], 1
cmp dword [ebp - 8], ebx
pop edi
pop esi
pop ebx
je 0x41da18
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp - 4]
leave
ret
Function at 0x43bc8b
Capabilities:
Create http request

Disassembly:
push ebp
mov eax, 0x105c
lea ebp, [esp - 0xfdc]
call fcn.0046ead6
mov eax, dword [section..cdata]
push ebx
push esi
mov esi, dword [ebp + 0xfe4]
xor ebx, ebx
push edi
mov dword [ebp + 0xfd8], eax
xor eax, eax
cmp esi, ebx
mov word [ebp - 0x70], bx
mov ecx, 0x411
lea edi, [ebp - 0x6e]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x80], ebx
stosw word es:[edi], ax
mov dword [ebp - 0x7c], 0x824
jne 0x43bce2
mov dword [ebp - 0x74], 0x80004003
jmp 0x43bd65
push ebx
push ebx
push ebx
push ebx
push 0x4047f8
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, ebx
mov dword [ebp - 0x78], eax
je 0x43bd44
push dword [esi]
push eax
call fcn.0043bbf7
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x43bd47
push ebx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
push 0x21
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x43bd4e
mov eax, dword [esi]
cmp eax, ebx
je 0x43bd2b
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [esi], eax
jne 0x43bd4e
mov dword [ebp - 0x74], 0x8007000e
jmp 0x43bd4e
mov edi, dword [ebp - 0x80]
mov dword [ebp - 0x74], 0x80004005
cmp edi, ebx
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x43bd5b
push edi
call esi
cmp dword [ebp - 0x78], ebx
je 0x43bd65
push dword [ebp - 0x78]
call esi
mov ecx, dword [ebp + 0xfd8]
mov eax, dword [ebp - 0x74]
pop edi
pop esi
pop ebx
call fcn.0046e295
add ebp, 0xfdc
leave
ret
Function at 0x447006
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1d4]
sub esp, 0x254
mov eax, dword [section..cdata]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
xor edi, edi
push edi
push edi
push dword [0x493a9c]
mov dword [ebp + 0x1d0], eax
push dword [ebp + 0x1dc]
mov ebx, ecx
mov dword [ebp - 0x7c], edi
call esi
cmp eax, 0xffffffff
jne 0x44705c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00430d77
cmp eax, edi
pop ecx
mov dword [ebp - 0x7c], eax
jl 0x447189
push edi
push edi
push dword [0x493a9c]
push dword [ebp + 0x1dc]
call esi
push edi
lea eax, [ebp - 0x80]
push eax
mov esi, 0x248
push esi
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x1dc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x447090
cmp dword [ebp - 0x80], esi
je 0x4470a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00430d77
pop ecx
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], edi
jl 0x447189
mov eax, dword [0x493a9c]
add eax, 0x248
xor ecx, ecx
test eax, eax
setge cl
push 4
mov edi, 0x4054c4
lea esi, [ebp - 0x78]
dec ecx
mov dword [ebx + 0x1494], ecx
mov eax, dword [0x493a9c]
add eax, 0x248
mov dword [ebx + 0x1490], eax
pop ecx
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x4470ee
mov dword [ebx + 0x2208], 1
jmp 0x447118
push 4
pop ecx
mov edi, 0x4054b4
lea esi, [ebp - 0x78]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x447111
cmp dword [ebx + 0x2208], 2
je 0x447118
mov dword [ebp - 0x7c], 0x80040231
jmp 0x447118
mov dword [ebp - 0x7c], 0x80040210
cmp dword [ebp - 0x7c], 0
jl 0x447189
mov eax, dword [ebp - 0x68]
mov dword [ebx + 0x1fd0], eax
mov eax, dword [ebp - 0x64]
mov dword [ebx + 0x1fd4], eax
mov eax, dword [ebp - 0x60]
mov dword [ebx + 0x1fd8], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebx + 0x1fdc], eax
mov eax, dword [ebp - 0x58]
mov dword [ebx + 0x1ff4], eax
lea eax, [ebp - 0x54]
push eax
push 0x104
lea eax, [ebx + 0x2000]
push eax
call fcn.0040bcb7
mov eax, dword [ebp + 0x1c8]
push 5
mov dword [ebx + 0x1ff8], eax
mov eax, dword [ebp + 0x1cc]
lea edi, [ebx + 0x1fe0]
pop ecx
lea esi, [ebp + 0x1b4]
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x1ffc], eax
cmp dword [ebp - 0x7c], 0x800300fd
pop edi
pop esi
pop ebx
jne 0x44719c
mov dword [ebp - 0x7c], 0x80040210
mov ecx, dword [ebp + 0x1d0]
mov eax, dword [ebp - 0x7c]
call fcn.0046e295
add ebp, 0x1d4
leave
ret 4
Function at 0x4471b4
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [section..cdata]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x1484], ebx
mov dword [ebp - 4], eax
jne 0x4471d6
inc ebx
jmp 0x447248
lea eax, [esi + 0x1e]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0040bcb7
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
jne 0x447207
mov ebx, 0x800700a1
jmp 0x44723d
and word [eax + 2], 0
push 0
lea eax, [ebp - 0x214]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x447248
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00430d77
mov ebx, eax
test ebx, ebx
pop ecx
jge 0x447248
and dword [esi + 0x14], 0
mov dword [esi + 0x10], 0xa00000
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
pop ebx
call fcn.0046e295
leave
ret
Function at 0x45f754
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, ecx
push edi
xor esi, esi
push esi
push 0x45f562
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x45f793
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x45f781
call esi
mov esi, eax
jmp 0x45f799
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x45f799
mov dword [edi + 0x80], eax
pop edi
mov eax, esi
pop esi
ret

Function at 0x462d45
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x489432
call fcn.0046e3e3
sub esp, 0x14
fld qword [ebp + 0xc]
mov al, byte [ebp + 0x14]
push esi
mov esi, ecx
and dword [esi], 0
fstp qword [esi + 0x18]
fld qword [0x402d00]
or dword [esi + 0xc], 0xffffffff
or dword [esi + 0x10], 0xffffffff
fstp qword [esi + 0x20]
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov byte [esi + 0x28], al
call fcn.00460710
and dword [ebp - 0x18], 0
or dword [ebp - 0x14], 0xffffffff
or dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x1c], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push edi
lea ecx, [esi + 0x30]
call fcn.0046287e
lea ecx, [ebp - 0x20]
call fcn.004512d2
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x464389
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x4643a3
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
ret 0xc

Function at 0x4643cf
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4643da
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x464cbe
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi + 0x34], eax
jne 0x464cda
xor al, al
jmp 0x464cf4
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x464c8a
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ecx
ret
Function at 0x464de0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [section..cdata]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x19c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x190], eax
mov dword [ebp - 0x74], esi
call fcn.00464354
cmp eax, esi
jne 0x464e68
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x464e31
lea eax, [ebp - 0x70]
push eax
call fcn.00464de0
cmp eax, esi
jne 0x464e67
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x464e24
call fcn.004642ef
push dword [ebp + 0x19c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.004642ef
mov ecx, dword [ebp + 0x190]
mov eax, esi
pop esi
pop ebx
call fcn.0046e295
add ebp, 0x194
leave
ret 4
Function at 0x467136
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x489669
call fcn.0046e3e3
sub esp, 0x420
mov eax, dword [section..cdata]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
call dword [0x493038]
xor edi, edi
mov dword [ebp - 0x41c], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x418], edi
push 2
push edi
push dword [ebp + 8]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x420], ebx
jne 0x4671a1
call fcn.00464228
mov esi, eax
jmp 0x46725d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x46722a
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [ebp - 0x424], eax
je 0x46722a
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + esi + 2]
push eax
lea ecx, [ebp - 0x418]
mov dword [ebp + 8], esi
mov byte [ebp - 4], 2
call fcn.00465656
jmp 0x4671f4
cmp dword [ebp - 0x418], edi
mov dword [ebp - 4], 1
jne 0x46720a
mov esi, 0x8007000e
jmp 0x467251
call dword [0x493038]
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x424]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x467231
call fcn.00464228
jmp 0x46724f
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
mov word [eax + esi*2], di
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.00466fd1
mov esi, eax
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x467276
lea ecx, [ebp - 0x418]
call fcn.00414884
lea ecx, [ebp - 0x41c]
call fcn.0043e5c3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.0046e295
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x467f8e
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x28
mov eax, dword [section..cdata]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ebp, ebp
push ebp
mov dword [esp + 0x48], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push ebp
push dword [esp + 0x40]
mov ebx, 0x49757c
push 0x494b30
mov ecx, ebx
call fcn.00464800
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x4975ac], eax
mov esi, 0x407968
lea edi, [esp + 0x2c]
lea eax, [esp + 0x2c]
movsd dword es:[edi], dword [esi]
push eax
push dword [esp + 0x48]
movsw word es:[edi], word [esi]
mov dword [esp + 0x44], ebp
call fcn.004641e3
mov esi, eax
cmp esi, ebp
pop ecx
pop ecx
je 0x46803b
mov edi, dword [sym.imp.KERNEL32.dll_CompareStringW]
push 0xffffffffffffffff
push 0x407950
push 0xffffffffffffffff
push esi
push 1
push 0x7f
call edi
cmp eax, 2
je 0x468063
push 0xffffffffffffffff
push 0x40793c
push 0xffffffffffffffff
push esi
push 1
push 0x7f
call edi
cmp eax, 2
je 0x46807d
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.004641e3
mov esi, eax
cmp esi, ebp
pop ecx
pop ecx
jne 0x467ffe
mov ecx, ebx
call fcn.00464cbe
push 1
push 4
mov ecx, ebx
call fcn.004650e7
push ebp
push 0x3a98
push ebp
push ebp
call dword [sym.imp.USER32.dll_SetTimer]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
jmp 0x4680b7
push ebp
push ebp
push 0xd1
push ebx
call fcn.0046732f
push ebp
push ebp
mov ecx, ebx
call fcn.00467523
mov esi, eax
jmp 0x4680db
push ebp
push 1
push 0xd1
push ebx
call fcn.0046732f
push ebp
push ebp
mov ecx, ebx
call fcn.004674be
jmp 0x468079
cmp dword [esp + 0x14], 0x113
jne 0x4680ac
call fcn.00448897
call fcn.004476ad
jmp 0x4680b7
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebp
push ebp
lea eax, [esp + 0x18]
push ebp
push eax
call esi
test eax, eax
jne 0x468096
mov ecx, ebx
call fcn.00465129
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x3c]
mov ecx, ebx
call fcn.00465095
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x34]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
call fcn.0046e295
add esp, 0x28
ret 0x10
Function at 0x46b475
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov esi, ecx
push ebx
push dword [esi + 0x11c]
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x46b4d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x46b4d0
push eax
call fcn.00430d77
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
jl 0x46b567
mov dword [ebp - 4], 0x80030019
jmp 0x46b567
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, ebx
push ebx
mov dword [ebp - 0x28], eax
setge cl
lea eax, [ebp - 8]
push eax
push 0x18
lea eax, [ebp - 0x28]
push eax
push dword [esi + 0x11c]
dec ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46b50e
cmp dword [ebp - 8], 0x18
je 0x46b52b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00430d77
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
jl 0x46b567
mov dword [ebp - 4], 0x8003001d
jmp 0x46b567
push 2
push ebx
push dword [ebp + 8]
push dword [esi + 0x11c]
call edi
cmp eax, 0xffffffff
je 0x46b54e
push dword [esi + 0x11c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x46b559
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x46b4b2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8