joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bae40
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2ff8
call fcn.00441e20
mov eax, dword [0x4fb2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.ReadFirstPhysicalDriveInNTWithZeroRights_Enter._n
mov esi, ecx
call fcn.00430e27
add esp, 4
xor ebx, ebx
mov dword [ebp - 0x2ff4], ebx
mov eax, dword [ebp - 0x2ff4]
push eax
push str..PhysicalDrive_d
lea ecx, [ebp - 0x104]
push 0x100
push ecx
call fcn.00430a13
add esp, 0x10
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4baff1
push 0x270f
lea eax, [ebp - 0x2fe3]
push ebx
push eax
mov byte [ebp - 0x2fe4], bl
call fcn.00438200
add esp, 0xc
push ebx
lea ecx, [ebp - 0x2ff8]
push ecx
push 0x2710
xor eax, eax
lea edx, [ebp - 0x2fe4]
push edx
mov dword [ebp - 0x2ff0], eax
mov dword [ebp - 0x2fec], eax
push 0xc
mov dword [ebp - 0x2fe8], eax
lea eax, [ebp - 0x2ff0]
push eax
push 0x2d1400
push edi
mov dword [ebp - 0x2ff8], ebx
mov dword [ebp - 0x2ff0], ebx
mov dword [ebp - 0x2fec], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4bafe8
push 0x3e7
lea ecx, [ebp - 0x4eb]
push ebx
push ecx
mov byte [ebp - 0x4ec], bl
call fcn.00438200
push 0x3e7
lea edx, [ebp - 0x8d3]
push ebx
push edx
mov byte [ebp - 0x8d4], bl
call fcn.00438200
mov eax, dword [ebp - 0x2fcc]
lea ecx, [ebp + eax - 0x2fe4]
add esp, 0x18
push ecx
mov ecx, esi
call fcn.004ba150
push eax
lea edx, [ebp - 0x4ec]
push 0x3e8
push edx
call fcn.00434a2a
mov eax, dword [ebp - 0x2fd4]
lea ecx, [ebp + eax - 0x2fe4]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.004ba150
push eax
lea edx, [ebp - 0x8d4]
push 0x3e8
push edx
call fcn.00434a2a
lea eax, [ebp - 0x4ec]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4bafb3
sub eax, ecx
push eax
lea eax, [ebp - 0x4ec]
push eax
mov ecx, esi
call fcn.00402b70
push 1
push ebx
push 0x4d7be8
mov ecx, esi
call fcn.004ba2d0
push eax
push ebx
mov ecx, esi
call fcn.00402c70
cmp dword [esi + 0x10], ebx
jne 0x4bb030
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4bb007
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xffffffffffffffff
push str._hDevice___d__Error___d___n
call fcn.00430e27
add esp, 0xc
mov eax, dword [ebp - 0x2ff4]
inc eax
mov dword [ebp - 0x2ff4], eax
cmp eax, 0x10
jl 0x4bae71
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e217
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0042e217
mov esp, ebp
pop ebp
ret
Function at 0x4bb460
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4fb2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x107]
push ebx
push eax
mov dword [ebp - 0x220], ecx
xor edi, edi
mov dword [ebp - 0x210], ebx
mov byte [ebp - 0x108], bl
call fcn.00438200
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 8
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4bb604
mov eax, dword [ebp - 0x210]
cmp eax, ebx
je 0x4bb604
push esi
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x108]
push ecx
push ebx
push eax
xor esi, esi
mov dword [ebp - 0x21c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4bb5f6
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x4bb510
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
push 1
push ebx
lea eax, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4bb5ac
push 0x103
lea edx, [ebp - 0x20b]
push ebx
push edx
mov byte [ebp - 0x20c], bl
call fcn.00438200
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x224]
push edx
push ebx
push str.ServiceName
push eax
mov dword [ebp - 0x228], 0x104
mov dword [ebp - 0x224], 1
call edi
test eax, eax
jne 0x4bb59f
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp - 0x220]
call fcn.004bb050
test eax, eax
jne 0x4bb5d7
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x210]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x108]
push ecx
inc esi
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4bb510
jmp 0x4bb5f4
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x220]
mov edi, 1
cmp dword [ecx + 0x2c], ebx
jne 0x4bb5f6
mov edi, ebx
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.0042e217
mov esp, ebp
pop ebp
ret
Function at 0x4bb620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c2d4c
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4fb2a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x80], ebx
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x4d5acd
mov ecx, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x88], esi
mov byte [esi], bl
call fcn.00402b70
push 0x63
lea eax, [ebp - 0x73]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x80], 1
mov byte [ebp - 0x74], bl
call fcn.00438200
add esp, 0xc
lea ecx, [ebp - 0x78]
push ecx
push 1
push ebx
push edi
push SysReAllocString
mov dword [ebp - 0x84], 1
mov dword [ebp - 0x7c], 0x64
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4bb6e5
lea edx, [ebp - 0x7c]
push edx
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x84]
push ecx
push ebx
push 0x4d6c7c
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x74]
lea edx, [eax + 1]
jmp 0x4bb6f0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4bb6f0
sub eax, edx
push eax
lea ecx, [ebp - 0x74]
push ecx
mov ecx, esi
call fcn.00402b70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042e217
mov esp, ebp
pop ebp
ret 8
Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
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 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xba213e7
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x1c3370be
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x40473a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0
push esi
mov esi, ecx
jne 0x404833
mov eax, dword [ebp + 0xc]
cmp eax, 0x110
jne 0x404769
sub esp, 0x10
call fcn.00404a40
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x404835
cmp eax, 0xf
jne 0x40477d
lea ecx, [esi + 0x20]
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp + 0x18]
and dword [eax], 0
jmp 0x404761
cmp eax, 0x14
jne 0x40478d
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 1
jmp 0x404761
cmp eax, 0x201
jne 0x4047a1
push ecx
push dword [ebp + 0x14]
push ecx
push ecx
call fcn.0040498d
jmp 0x40475c
cmp eax, 0x202
jne 0x4047b3
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
jmp 0x404761
cmp eax, 0x18
jne 0x40480b
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
cmp byte [0x468550], 0
mov edi, eax
jne 0x404800
xor ecx, ecx
mov byte [0x468550], 1
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], ecx
push eax
push ecx
push esi
push 0x404b5c
push ecx
push ecx
call fcn.004313c7
add esp, 0x18
test eax, eax
je 0x404800
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
xor eax, eax
inc eax
pop edi
jmp 0x404835
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x1c], 1
push ecx
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push eax
call fcn.00404eda
cmp dword [ebp + 0x1c], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jne 0x404761
xor eax, eax
pop esi
pop ebp
ret 0x18
Function at 0x405e8e
Capabilities:
Accept command line arguments

Disassembly:
push 0xac
mov eax, 0x44b79f
call fcn.00414960
push 0x20
call fcn.00413eaa
mov dword [ebp - 0x98], eax
xor edi, edi
mov ecx, eax
mov dword [ebp - 4], edi
call fcn.00405ddd
or dword [ebp - 4], 0xffffffff
mov dword [0x468138], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00401a86
xor ebx, ebx
lea eax, [ebp - 0x4c]
inc ebx
mov dword [ebp - 4], ebx
mov ecx, dword [0x468138]
push eax
call fcn.00406118
push edi
push ebx
lea ecx, [ebp - 0x4c]
call fcn.00401ab7
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], ax
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x94]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x34]
call fcn.0040b63f
mov esi, eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 3
mov ecx, dword [0x468138]
push eax
call fcn.00406a40
push 0x45bf6c
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x64]
call fcn.0040523c
pop ecx
push esi
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4c]
call fcn.00405272
pop ecx
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xb8]
call fcn.00405e37
push edi
push ebx
lea ecx, [ebp - 0x4c]
call fcn.00401ab7
push edi
push ebx
lea ecx, [ebp - 0x64]
call fcn.00401ab7
push edi
push ebx
lea ecx, [ebp - 0x7c]
call fcn.00401ab7
push edi
push ebx
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0xb
call fcn.00401ab7
mov ecx, dword [0x468138]
lea edx, [ebp - 0xb8]
call fcn.00405b4a
lea ecx, [ebp - 0xb8]
call fcn.00405e73
push edi
push ebx
lea ecx, [ebp - 0x30]
call fcn.00401ab7
mov al, bl
call fcn.0041490a
ret
Function at 0x4081b7
Capabilities:
Copy file

Disassembly:
push 0xbc
mov eax, 0x44bcc7
call fcn.00414960
mov dword [ebp - 0xc8], ecx
push 6
pop ecx
mov esi, 0x45c020
mov dword [ebp - 0x34], 7
lea edi, [ebp - 0x30]
xor ebx, ebx
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x30]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x90]
call fcn.00401a86
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.0040e632
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x78]
cmp dword [ebp - 0x68], ebx
jne 0x40821a
push ebx
jmp 0x408231
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0x90]
call fcn.0040c838
pop ecx
mov bl, al
lea ecx, [ebp - 0x78]
push 0
push 1
call fcn.00401ab7
push 0
push 1
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0
call fcn.00401ab7
test bl, bl
je 0x408386
mov dl, 1
lea ecx, [ebp - 0x60]
call fcn.0040e6f7
mov byte [ebp - 4], 3
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x4c], 8
cmovae eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0xa8]
call fcn.00401a86
mov esi, 0x45be50
mov byte [ebp - 4], 4
push esi
call fcn.004011c0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00401fa0
push 0xffffffffffffffff
xor ebx, ebx
lea eax, [ebp - 0xa8]
push ebx
push eax
lea ecx, [ebp - 0x48]
call fcn.00402044
cmp dword [ebp - 0x34], 8
lea ecx, [ebp - 0x48]
push ebx
cmovae ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x4c], 8
push ecx
cmovae eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40836d
push ecx
lea edx, [ebp - 0x48]
mov byte [ebp - 0xc1], bl
lea ecx, [ebp - 0xc0]
call fcn.004085ed
pop ecx
push dword [ebp - 0xc8]
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x78]
call fcn.00407394
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x90]
mov edx, eax
mov dword [esp], str.___cp
call fcn.0040523c
pop ecx
lea edx, [ebp - 0xc1]
mov byte [ebp - 4], 7
mov ecx, eax
call fcn.0040e2ed
mov ebx, eax
lea ecx, [ebp - 0x90]
neg ebx
push 0
sbb bl, bl
push 1
inc bl
call fcn.00401ab7
push 0
push 1
lea ecx, [ebp - 0x78]
call fcn.00401ab7
push 0
push 1
lea ecx, [ebp - 0xc0]
call fcn.00401ab7
push 0
push 1
lea ecx, [ebp - 0xa8]
call fcn.00401ab7
push 0
jmp 0x40837c
push ebx
push 1
lea ecx, [ebp - 0xa8]
call fcn.00401ab7
push ebx
push 1
lea ecx, [ebp - 0x60]
call fcn.00401ab7
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00401ab7
mov al, bl
call fcn.0041490a
ret
Function at 0x40b226
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.0040b2c3
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x40b2b9
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x40b2b2
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
test edx, edx
je 0x40b2a9
push 6
pop ecx
mov dword [ebp - 0x1c], edi
xor eax, eax
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b2a9
mov ecx, dword [ebp - 0x10]
mov al, 1
mov dword [esi + 0x10], ecx
jmp 0x40b2bb
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0040b2c3
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40b301
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
test eax, eax
jne 0x40b312
xor al, al
jmp 0x40b37b
mov ecx, 0x5a4d
push esi
cmp word [eax], cx
jne 0x40b378
mov ecx, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
jne 0x40b378
mov edx, dword [ecx + eax + 0x98]
xor ecx, ecx
lea esi, [edx + eax]
test edx, edx
jne 0x40b33b
mov esi, ecx
test esi, esi
je 0x40b378
lea eax, [esi + 8]
test eax, eax
je 0x40b378
cmp byte [eax], 0x30
lea edx, [eax + 1]
jne 0x40b36a
mov al, byte [edx]
cmp al, 0x82
jne 0x40b36a
movzx ecx, byte [edx + 1]
movzx eax, byte [edx + 2]
shl ecx, 8
add ecx, 0x13
add ecx, eax
and ecx, 0xffffff8
test ecx, ecx
je 0x40b378
mov dword [edi + 0x14], ecx
mov al, 1
mov dword [edi + 0x18], esi
jmp 0x40b37a
xor al, al
pop esi
pop edi
pop ebp
ret 4
Function at 0x40b7dc
Capabilities:
Encode data using xor

Disassembly:
push 0x844
mov eax, 0x44c23e
call fcn.00414960
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x840], eax
mov edi, 0xff
mov ecx, esi
mov dword [ebp - 0x850], esi
lea eax, [ebp - 0x844]
mov dword [ebp - 0x84c], ecx
mov dword [ebp - 0x848], edi
mov dword [ebp - 0x844], 0x4fd7e7d
mov dword [ebp - 0x824], esi
mov dword [ebp - 0x830], eax
push 0x20
pop ebx
or eax, 0xffffffff
shr eax, 1
dec ebx
mov dword [ebp - 0x82c], ebx
mov dword [ebp - 0x828], eax
cmp eax, 0x7ffffffd
ja 0x40b831
mov dword [ebp - 0x834], eax
add edi, 0x80000000
lea eax, [ecx - 0x80000000]
mov dword [ebp - 0x838], ebx
sub edi, eax
mov dword [ebp - 0x83c], eax
cmp edi, 0xffffffff
jne 0x40b896
mov edi, esi
mov dword [ebp - 0x818], esi
lea ecx, [ebp - 0x830]
call fcn.0040bf2c
lea ecx, [ebx - 1]
add esi, ebx
shl edi, cl
add edi, edi
or edi, eax
cmp esi, 0x20
jb 0x40b874
xor esi, esi
jmp 0x40b93e
lea eax, [edi + 1]
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x814], esi
mov eax, esi
mov dword [ebp - 0x820], eax
test edi, edi
je 0x40b901
mov esi, dword [ebp - 0x834]
lea eax, [ebx - 1]
mov ebx, dword [ebp - 0x814]
mov dword [ebp - 0x81c], eax
lea ecx, [ebp - 0x830]
call fcn.0040bf2c
mov ecx, dword [ebp - 0x81c]
shl ebx, cl
add ebx, ebx
or ebx, eax
mov eax, dword [ebp - 0x820]
shl eax, cl
add eax, eax
or eax, esi
mov dword [ebp - 0x820], eax
cmp eax, edi
jb 0x40b8c6
mov dword [ebp - 0x814], ebx
xor esi, esi
mov ebx, dword [ebp - 0x838]
xor edx, edx
lea ecx, [edi + 1]
div ecx
mov ecx, eax
mov dword [ebp - 0x81c], edx
mov eax, dword [ebp - 0x814]
xor edx, edx
div dword [ebp - 0x818]
cmp eax, ecx
jb 0x40b92e
cmp dword [ebp - 0x81c], edi
jne 0x40b89f
mov eax, dword [ebp - 0x814]
xor edx, edx
div dword [ebp - 0x818]
mov edi, edx
mov ecx, dword [ebp - 0x824]
mov eax, dword [ebp - 0x83c]
add eax, edi
add eax, 0x80000000
mov byte [ebp + ecx - 0x810], al
inc ecx
mov dword [ebp - 0x824], ecx
cmp ecx, 0x800
jge 0x40b978
mov edi, dword [ebp - 0x848]
mov ecx, dword [ebp - 0x84c]
jmp 0x40b82b
push 0x800
lea ecx, [ebp - 0x830]
call fcn.0040ba31
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov edi, dword [ebp - 0x830]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
cmp eax, 0x800
jne 0x40b9c1
lea ebx, [ebp - 0x810]
sub ebx, edi
mov eax, dword [ecx]
lea edx, [edi + esi]
mov cl, byte [ebx + edx]
xor cl, byte [eax + esi]
inc esi
mov byte [edx], cl
mov ecx, dword [ebp + 0xc]
cmp esi, 0x800
jl 0x40b9a8
mov ecx, dword [ebp - 0x840]
push edi
call fcn.00409702
lea ecx, [ebp - 0x830]
call fcn.0040bac9
mov eax, dword [ebp - 0x840]
call fcn.0041490a
ret 8