joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423500
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x442f28]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x423546
cmp word [ebx], dx
jne 0x423546
or byte [eax + edi + 0x28], 4
jmp 0x42354b
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4236ae
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x42368e
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x42358c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4235c2
cmp eax, edx
jae 0x4235d0
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x423567
jmp 0x4236ae
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x423689
cmp dword [ebp - 0x18], 0
je 0x423689
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x442f28]
test byte [eax + edi + 0x28], 0x48
je 0x42365f
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x423623
mov word [esi], cx
jmp 0x42365a
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x442f28]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x442f28]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x442f28]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4236ae
pop eax
cmp word [ebp - 4], ax
jne 0x42366f
cmp esi, ebx
jne 0x42366f
mov word [esi], ax
jmp 0x4236ab
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00423f39
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4236ae
push 0xd
pop eax
jmp 0x42366a
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x442f28]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4236a8
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4236ae
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x427b1d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x427bba
push ebx
push esi
call fcn.00427ae6
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00420286
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x427b67
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x427bb9
push edi
push eax
call fcn.004200e6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x427b87
call fcn.0041e6f9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x427bb8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00420286
add esp, 0x20
test eax, eax
jne 0x427ba6
push edi
call fcn.0041e6f9
jmp 0x427bae
push ebx
call fcn.0041e6f9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x427bbd
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x427bce
pop esi
ret
push ebx
push edi
push esi
call fcn.00427ae6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004200e6
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x427bf6
push ebx
push esi
push edi
call fcn.004105e0
add esp, 0xc
push 0
call fcn.0041e6f9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x427fc6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00427c0b

Function at 0x42a3ef
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041e1bf
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42a45e
cmp esi, dword [ebp - 4]
je 0x42a459
cmp dword [ebp + 0xc], 0
je 0x42a459
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42a436
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00429f41
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x42a460
xor eax, eax
inc eax
jmp 0x42a460
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x42a4c5
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x44104c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0041e1bf
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0041e1bf
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x42a53c
cmp word [ecx], dx
je 0x42a53c
mov eax, dword [0x435c44]
push edi
dec eax
push eax
push 0x435b30
call fcn.0042a464
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x42a5af
cmp word [eax], dx
je 0x42a5af
mov eax, dword [edi]
test eax, eax
je 0x42a560
cmp word [eax], dx
je 0x42a560
lea eax, [ebp - 0x10]
push eax
call fcn.00429e47
jmp 0x42a569
lea eax, [ebp - 0x10]
push eax
call fcn.00429ee2
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x42a5d9
mov eax, dword [0x435b2c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x435820
call fcn.0042a464
add esp, 0xc
test al, al
je 0x42a5d9
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x42a5a4
cmp word [eax], di
je 0x42a5a4
lea eax, [ebp - 0x10]
push eax
call fcn.00429e47
pop ecx
jmp 0x42a5db
lea eax, [ebp - 0x10]
push eax
call fcn.00429ee2
jmp 0x42a5a1
mov eax, dword [edi]
test eax, eax
je 0x42a5c6
cmp word [eax], dx
je 0x42a5c6
lea eax, [ebp - 0x10]
push eax
call fcn.00429dfc
pop ecx
jmp 0x42a5d9
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x42a6a4
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0042a2e9
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42a6a4
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x42a6a4
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x42a6a4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42a631
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041ee46
test ebx, ebx
je 0x42a69f
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041ee46
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42a6a4
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42a6a4
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0042e891
add esp, 0x10
xor eax, eax
inc eax
jmp 0x42a6a6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040edd0
leave
ret
Function at 0x42f075
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0042eff1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42f1e4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42f1e4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42f199
jg 0x42f0d1
test eax, eax
je 0x42f18f
push 1
push 0x1000
call fcn.0041e69c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42f0f4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x42f186
push 0x8000
push ebx
call fcn.0041b799
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42f11d
jg 0x42f118
cmp ecx, 0x1000
jb 0x42f11d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041faff
add esp, 0x10
cmp eax, 0xffffffff
je 0x42f162
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 0x42f118
jl 0x42f149
test ecx, ecx
jne 0x42f10a
push dword [ebp - 0xc]
push ebx
call fcn.0041b799
push esi
call fcn.0041e6f9
add esp, 0xc
xor ebx, ebx
jmp 0x42f1f2
cmp byte [edi + 0x24], 0
je 0x42f179
cmp dword [edi + 0x20], 5
jne 0x42f179
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x42f184
mov ebx, dword [edi + 0x18]
jmp 0x42f186
xor ebx, ebx
push esi
call fcn.0041e6f9
pop ecx
jmp 0x42f1f2
test ecx, ecx
jg 0x42f15b
jl 0x42f199
test eax, eax
jae 0x42f15b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00423f39
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42f1b9
cmp byte [edi + 0x1c], 0
je 0x42f15b
jmp 0x42f1ea
push ebx
call fcn.004283c0
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42f15b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x42f1f2
cmp byte [edi + 0x1c], 0
je 0x42f1ef
mov ebx, dword [edi + 0x18]
jmp 0x42f1f2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00423f39
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403120
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fcb2
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x46706c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x28], esi
call fcn.00422105
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x4031fc
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.004246a4
add esp, 8
mov byte [ebp - 4], 7
mov dword [ebp - 0x24], vtable.std::runtime_error.0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x24]
push 0x4650a8
push eax
call fcn.00425973
push edi
push esi
call fcn.0042244d
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042318e
mov esp, ebp
pop ebp
ret 4

Function at 0x4047e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440338
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x46706c]
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 ebx, edx
mov edi, ecx
mov esi, dword [ebp + 0xc]
push 0x5c
push esi
call fcn.00423ff0
add esp, 8
test eax, eax
je 0x404831
push esi
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
jmp 0x4048bb
lea eax, [ebp - 0x28]
mov ecx, 0x46b120
push eax
call fcn.0040f390
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x404873
cmp byte [esi], 0
jne 0x404855
xor ecx, ecx
jmp 0x404869
mov ecx, esi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404860
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00402970
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4048a7
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00402ba0
mov dword [ebp - 0x14], 0xf
mov eax, esi
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
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.0042318e
mov esp, ebp
pop ebp
ret 8
Function at 0x404990
Capabilities:
Create process memory minidump

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x45b328
push 0x427cb0
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x46706c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x12c], esi
test edi, edi
jne 0x404a15
mov dword [ebp - 4], edx
push edx
push edx
push edx
push 0x80000003
call dword [sym.imp.KERNEL32.dll_RaiseException]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x120], 0
push 0
push 0
lea eax, [ebp - 0x128]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
mov edi, eax
xor esi, esi
test edi, edi
jne 0x404a63
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push str.p2pnetwork.ini
push ecx
mov edx, str.pop_errorbox
mov ecx, str.Debug
call fcn.004047e0
test eax, eax
je 0x404abe
test edi, edi
je 0x404a8e
push 0x40
push 0x454468
push 0x454470
jmp 0x404ab6
push esi
push 0x4544b0
push 0x100
lea eax, [ebp - 0x11c]
push eax
call fcn.00402f60
add esp, 0x10
push 0x40
push 0x454468
lea eax, [ebp - 0x11c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0042318e
mov esp, ebp
pop ebp
ret
Function at 0x405bc0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x46706c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x24]
xor edx, edx
mov eax, 0x40000000
mov dword [ebp - 0x50], edi
div edi
xor esi, esi
shl eax, 2
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], esi
lea ebx, [esi + 1]
test eax, eax
je 0x405c75
nop
push 0x1c
lea eax, [ebp - 0x44]
push eax
mov eax, esi
imul eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
xor edx, edx
test eax, eax
je 0x405c47
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x405c47
div edi
cmp dword [ebp - 0x34], 0x1000
mov edi, eax
jne 0x405c50
mov edx, dword [ebp - 0x40]
cmp edx, dword [ebp - 0x48]
jbe 0x405c50
push ebx
mov dword [ebp - 0x48], edx
call fcn.00405c90
add esp, 4
test eax, eax
je 0x405c50
inc ebx
jmp 0x405c50
mov eax, 0x10000
div edi
mov edi, eax
add esi, edi
mov edi, dword [ebp - 0x50]
cmp esi, dword [ebp - 0x4c]
jb 0x405c00
cmp ebx, 1
je 0x405c75
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042318e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042318e
mov esp, ebp
pop ebp
ret
Function at 0x406fd0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x46706c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ecx
mov edi, edx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407080
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 0x40
jne 0x407080
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x407080
push 0
push 0
push dword [edi + 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x407080
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 8]
push 0
push eax
push 0xf8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 0xf8
jne 0x407080
cmp dword [edi], 0x4550
jne 0x407080
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042318e
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0042318e
mov esp, ebp
pop ebp
ret
Function at 0x409810
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fa28
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x46706c]
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 ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x409963
cmp byte [ebx + 0x3d], 0
je 0x409963
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x409864
xor al, al
jmp 0x409965
push 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
push 8
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00409520
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
nop dword [eax]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4098d9
sub eax, 1
je 0x4098dd
sub eax, 2
je 0x40992f
xor bl, bl
jmp 0x409931
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x409915
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0042b8e3
add esp, 0x10
cmp esi, eax
jne 0x4098d5
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x3d], 0
je 0x40992f
test esi, esi
jne 0x4098a0
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004095f0
jmp 0x409897
mov bl, 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40994d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00402ba0
mov dword [ebp - 0x14], 0xf
mov al, bl
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jmp 0x409965
mov al, 1
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.0042318e
mov esp, ebp
pop ebp
ret
Function at 0x40d110
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44127b
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x46706c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x120]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsPPStream.exe
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d1b5
push 0x104
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x104
push eax
call fcn.00426340
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x11c]
push eax
push 0
push 0
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x120]
test eax, eax
je 0x40d1bc
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40d252
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x114], 0
jne 0x40d1cf
xor ecx, ecx
jmp 0x40d1e1
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d1d8
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
mov ecx, esi
push eax
call fcn.00402970
push 4
push ecx
push str..exe
mov ecx, esi
call fcn.0040d2f0
cmp eax, 0xffffffff
jne 0x40d218
push 4
push ecx
push str..EXE
mov ecx, esi
call fcn.0040d2f0
cmp eax, 0xffffffff
je 0x40d1b5
add eax, 4
mov ecx, esi
push eax
push 0
lea eax, [ebp - 0x138]
push eax
call fcn.00402420
mov dword [ebp - 4], 0
mov ecx, esi
push eax
call fcn.0040d270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
call fcn.004024e0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042318e
mov esp, ebp
pop ebp
ret 4