joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10046fca
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10046fec
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10046fec
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10046fec
ret
cmp word [ebx + 4], 0x14c
jne 0x10046fec
test word [ebx + 0x16], 2
je 0x10046fec
test word [ebx + 0x16], 0x100
je 0x10046fec
cmp word [ebx + 0x18], 0x10b
jne 0x10046fec
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10046fec
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10047078
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1004700c
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1002df57
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10046fec
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x10047078
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10046fec
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10046fec
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10046fec
ret
cmp word [ebx + 4], 0x14c
jne 0x10046fec
test word [ebx + 0x16], 2
je 0x10046fec
test word [ebx + 0x16], 0x100
je 0x10046fec
cmp word [ebx + 0x18], 0x10b
jne 0x10046fec
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10046fec
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10047078
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1004700c
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1002df57
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10046fec
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x1004712f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10047188
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1004712f
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1004713e
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1044cde1
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1004718f
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1002e005
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1004722e
add edi, 4
add eax, 2
dec ecx
jne 0x10047174
call 0x100471db
loope 0x100471d1
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1004722b
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1004723c
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100471ef
cmp eax, ecx
ja 0x100471ef
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x10047279
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1004726f
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1002e4e4
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1004713e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10047188
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1004712f
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1004713e
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1044cde1
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1004718f
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1002e005
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1004722e
add edi, 4
add eax, 2
dec ecx
jne 0x10047174
call 0x100471db
loope 0x100471d1
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1004722b
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1004723c
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100471ef
cmp eax, ecx
ja 0x100471ef
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x10047279
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1004726f
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1002e4e4
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]

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, reloc.cmpbk32.dll_PhoneBookEnumNumbers
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4010f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4670
mov eax, dword fs:[0]
push eax
push ecx
push ecx
push ebx
push esi
push edi
mov eax, dword [0x50b230]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
lea eax, [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004011f0
add esp, 8
push 0x8633
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x40117c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x404000
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x20], eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp + 8]
pop ebp
ret
Function at 0x422720
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5c39
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x50b230]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], 0
lea ecx, [ebp + 0xc]
call fcn.0041cca0
movzx eax, al
test eax, eax
je 0x422777
mov ecx, dword [ebp + 8]
call fcn.00430eb0
mov ecx, dword [ebp - 0x38]
or ecx, 1
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp + 8]
jmp 0x4228f2
lea ecx, [ebp - 0x58]
call fcn.00430eb0
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00430580
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
call fcn.00431af0
push eax
call sub.SHELL32.dll_CommandLineToArgvW
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x34]
call fcn.00431430
cmp dword [ebp - 0x48], 0
jne 0x422803
cmp dword [ebp - 0x40], 0
je 0x4227d3
push 0x4e3b4c
call fcn.00402a60
xor edx, edx
jne 0x4227c3
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
call fcn.00430db0
mov ecx, dword [ebp - 0x38]
or ecx, 1
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00431680
mov eax, dword [ebp + 8]
jmp 0x4228f2
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x6c]
call fcn.00425430
mov dword [ebp - 0x60], eax
mov al, byte [0x4e10c3]
mov byte [ebp - 0x39], al
mov ecx, dword [ebp - 0x60]
push ecx
movzx edx, byte [ebp - 0x39]
push edx
lea eax, [ebp - 0x68]
push eax
call fcn.00427b60
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [ebp - 0x40], 1
jge 0x422882
cmp dword [ebp - 0x40], 0
jge 0x422849
push 0x4e3b68
call fcn.00402a60
xor ecx, ecx
jne 0x422839
lea edx, [ebp - 0x58]
push edx
mov ecx, dword [ebp + 8]
call fcn.00430db0
mov eax, dword [ebp - 0x38]
or eax, 1
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00425450
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00431680
mov eax, dword [ebp + 8]
jmp 0x4228f2
mov ecx, dword [ebp - 0x40]
add ecx, 1
push ecx
lea ecx, [ebp - 0x58]
call fcn.00434fd0
mov dword [ebp - 0x44], 0
jmp 0x4228a3
mov edx, dword [ebp - 0x44]
add edx, 1
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x40]
jge 0x4228bf
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
lea eax, [edx + ecx*4]
push eax
lea ecx, [ebp - 0x58]
call fcn.0042dbf0
jmp 0x42289a
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00430db0
mov edx, dword [ebp - 0x38]
or edx, 1
mov dword [ebp - 0x38], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00425450
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00431680
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048ab20
mov esp, ebp
pop ebp
ret
Function at 0x424ef0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5db1
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x3c
mov eax, dword [0x50b230]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x424f70
lea ecx, [ebp - 0x44]
push ecx
call fcn.0040bc70
add esp, 4
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
mov ecx, dword [ebp + 8]
call fcn.00420870
mov ecx, dword [ebp - 0x34]
or ecx, 1
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp + 8]
jmp 0x425022
push 0
mov edx, dword [ebp - 0x38]
sub edx, 1
push edx
lea ecx, [ebp - 0x30]
call fcn.00430310
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040b840
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x30]
call fcn.0040c1e0
add eax, 1
cmp dword [ebp - 0x3c], eax
je 0x424fbd
mov edx, dword [0x50b008]
movsx eax, byte [edx]
test eax, eax
jne 0x424fbd
call fcn.004012e0
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00420830
mov edx, dword [ebp - 0x34]
or edx, 1
mov dword [ebp - 0x34], edx
lea ecx, [ebp - 0x30]
call fcn.00409000
mov eax, dword [ebp + 8]
jmp 0x425022
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048ab20
mov esp, ebp
pop ebp
ret
Function at 0x435db0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6ca1
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x6c
mov eax, dword [0x50b230]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp + 0x14]
call fcn.00440310
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp + 0x10]
push edx
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x435e51
lea edx, [ebp - 0x5c]
push edx
call fcn.0040bc70
add esp, 4
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040ea60
mov eax, dword [ebp - 0x34]
or eax, 1
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
jmp 0x435fad
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x435e94
lea eax, [ebp - 0x64]
push eax
call fcn.0040bc70
add esp, 4
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040ea60
mov eax, dword [ebp - 0x34]
or eax, 1
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
jmp 0x435fad
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x435ed7
lea eax, [ebp - 0x6c]
push eax
call fcn.0040bc70
add esp, 4
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040ea60
mov eax, dword [ebp - 0x34]
or eax, 1
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
jmp 0x435fad
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x435f16
lea edx, [ebp - 0x74]
push edx
call fcn.0040bc70
add esp, 4
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040ea60
mov eax, dword [ebp - 0x34]
or eax, 1
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
jmp 0x435fad
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.004a4b20
add esp, 4
cmp dword [ebp - 0x40], eax
jbe 0x435f31
push 0x4e4840
call fcn.00402a60
xor edx, edx
jne 0x435f16
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x30]
call fcn.0040e930
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040ea20
mov eax, dword [ebp - 0x34]
or eax, 1
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x30]
call fcn.00408fa0
mov eax, dword [ebp + 8]
jmp 0x435fad
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048ab20
mov esp, ebp
pop ebp
ret
Function at 0x4393a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x230]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x4393c9
cmp dword [ebp - 8], 1
je 0x439400
cmp dword [ebp - 8], 2
je 0x439437
jmp 0x439437
mov edx, dword [ebp - 4]
add edx, 4
push edx
mov ecx, dword [ebp - 4]
call fcn.0041cf20
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4393eb
mov dword [ebp - 0xc], 1
jmp 0x4393f2
mov dword [ebp - 0xc], 2
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x230], ecx
jmp 0x43944d
mov edx, dword [ebp - 4]
add edx, 4
push edx
mov ecx, dword [ebp - 4]
call fcn.0041cf20
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x439422
mov dword [ebp - 0x10], 1
jmp 0x439429
mov dword [ebp - 0x10], 2
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x230], ecx
jmp 0x43944d
mov edx, dword [0x50b008]
movsx eax, byte [edx]
test eax, eax
jne 0x439449
call fcn.004012e0
xor al, al
jmp 0x43946c
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x230], 1
jne 0x439462
mov dword [ebp - 0x14], 1
jmp 0x439469
mov dword [ebp - 0x14], 0
mov al, byte [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x439f90
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7129
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x258
mov eax, dword [0x50b230]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x244], 0
lea ecx, [ebp - 0x240]
call fcn.004406c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.00443880
mov dword [ebp - 0x24c], eax
lea ecx, [ebp - 0x240]
call fcn.00441d20
mov dword [ebp - 0x250], eax
mov eax, dword [ebp - 0x24c]
push eax
mov ecx, dword [ebp - 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
jne 0x43a077
lea edx, [ebp - 0x25c]
push edx
call fcn.0040bc70
add esp, 4
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
mov ecx, dword [ebx + 8]
call fcn.004410c0
mov eax, dword [ebp - 0x244]
or eax, 1
mov dword [ebp - 0x244], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.004417b0
mov eax, dword [ebx + 8]
jmp 0x43a11f
lea ecx, [ebp - 0x240]
call fcn.00443880
cmp dword [ebp - 0x248], eax
jae 0x43a0f6
push 0
mov ecx, dword [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x240]
call fcn.00441d20
push eax
lea ecx, [ebp - 0x264]
call fcn.00407f70
push eax
lea ecx, [ebp - 0x30]
call fcn.004042c0
mov dword [ebp - 0x254], eax
mov edx, dword [ebp - 0x254]
push edx
mov ecx, dword [ebx + 8]
call fcn.00441080
mov eax, dword [ebp - 0x244]
or eax, 1
mov dword [ebp - 0x244], eax
lea ecx, [ebp - 0x30]
call fcn.00409290
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.004417b0
mov eax, dword [ebx + 8]
jmp 0x43a11f
mov ecx, dword [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x240]
call fcn.00444250
jmp 0x439feb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048ab20
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x43a140
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7163
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x258
mov eax, dword [0x50b230]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x244], 0
lea ecx, [ebp - 0x240]
call fcn.004406c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.00443880
mov dword [ebp - 0x24c], eax
lea ecx, [ebp - 0x240]
call fcn.00441d20
mov dword [ebp - 0x250], eax
mov eax, dword [ebp - 0x24c]
push eax
mov ecx, dword [ebp - 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
jne 0x43a277
lea edx, [ebp - 0x25c]
push edx
call fcn.0040bc70
add esp, 4
lea ecx, [ebp - 0x25c]
call fcn.0040c2e0
cmp eax, 0x78
jne 0x43a238
mov eax, dword [ebx + 8]
push eax
call fcn.00439f90
add esp, 4
mov ecx, dword [ebp - 0x244]
or ecx, 1
mov dword [ebp - 0x244], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.004417b0
mov eax, dword [ebx + 8]
jmp 0x43a31f
mov edx, dword [ebp - 0x258]
push edx
mov eax, dword [ebp - 0x25c]
push eax
mov ecx, dword [ebx + 8]
call fcn.004410c0
mov ecx, dword [ebp - 0x244]
or ecx, 1
mov dword [ebp - 0x244], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.004417b0
mov eax, dword [ebx + 8]
jmp 0x43a31f
lea ecx, [ebp - 0x240]
call fcn.00443880
cmp dword [ebp - 0x248], eax
jae 0x43a2f6
push 0
mov edx, dword [ebp - 0x248]
push edx
lea ecx, [ebp - 0x240]
call fcn.00441d20
push eax
lea ecx, [ebp - 0x264]
call fcn.00407f70
push eax
lea ecx, [ebp - 0x30]
call fcn.004042c0
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x254]
push eax
mov ecx, dword [ebx + 8]
call fcn.00441080
mov ecx, dword [ebp - 0x244]
or ecx, 1
mov dword [ebp - 0x244], ecx
lea ecx, [ebp - 0x30]
call fcn.00409290
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.004417b0
mov eax, dword [ebx + 8]
jmp 0x43a31f
mov edx, dword [ebp - 0x248]
push edx
lea ecx, [ebp - 0x240]
call fcn.00444250
jmp 0x43a19b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048ab20
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x46c4e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d990b
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x50b230]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0x30]
call fcn.004311c0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x30]
mov dword [eax], vtable.std::filesystem::filesystem_error.0
mov ecx, dword [ebp - 0x30]
add ecx, 0x14
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x34]
call fcn.00408da0
mov byte [ebp - 4], 1
xor eax, eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x30
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x30
call fcn.00431160
mov byte [ebp - 4], 2
xor edx, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x2c]
call fcn.00431160
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
sub esp, 8
mov esi, esp
mov dword [ebp - 0x38], esp
mov ecx, dword [ebp - 0x30]
call fcn.0040c2f0
push eax
mov ecx, esi
call fcn.00430480
mov edx, dword [ebp - 0x30]
add edx, 0x4c
push edx
call fcn.0046f290
add esp, 0x14
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00409290
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048ab20
mov esp, ebp
pop ebp
ret 0x10