joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4187d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4ec256
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi], 0
mov ebx, dword [esp + 0x254]
je 0x418834
mov ecx, dword [edi + 4]
call fcn.00417de0
test al, al
sete al
test al, al
mov byte [edi], al
sete al
test al, al
je 0x41892a
xorps xmm0, xmm0
mov dword [esp + 0x28], 0
movq qword [esp + 0x20], xmm0
push 8
mov dword [esp + 0x24], 0
call fcn.004df9b3
add esp, 4
test eax, eax
jne 0x41886e
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 0x51c2c8
push eax
call fcn.004ea58e
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], 3
mov dword [esp + 0x248], 0
xor ecx, ecx
mov word [eax], cx
xor eax, eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x2c]
push eax
push 0x105
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
lea ecx, [esp + 0x20]
lea eax, [esp + 0x2c]
push eax
call fcn.00412850
lea eax, [esi - 1]
cmp eax, 0x103
ja 0x41890f
push 0x501f70
lea edx, [esp + 0x24]
lea ecx, [esp + 0x18]
call fcn.004124e0
mov byte [esp + 0x248], 1
mov dl, 1
mov ecx, dword [eax]
lea eax, [edi + 4]
push ebx
push eax
call fcn.00418480
test al, al
mov byte [esp + 0x248], 0
push dword [esp + 0x14]
sete bl
call fcn.004df97b
add esp, 4
test bl, bl
jne 0x41890f
mov byte [edi], 1
mov bl, 1
jmp 0x418911
xor bl, bl
mov dword [esp + 0x248], 0xffffffff
push dword [esp + 0x20]
call fcn.004df97b
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.004df96c
add esp, 0x23c
ret 8
Function at 0x418960
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4ec2a6
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi], 0
mov ebx, dword [esp + 0x254]
je 0x4189c4
lea ecx, [edi + 4]
call fcn.00417f40
test al, al
sete al
test al, al
mov byte [edi], al
sete al
test al, al
je 0x418ab7
xorps xmm0, xmm0
mov dword [esp + 0x28], 0
movq qword [esp + 0x20], xmm0
push 8
mov dword [esp + 0x24], 0
call fcn.004df9b3
add esp, 4
test eax, eax
jne 0x4189fe
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 0x51c2c8
push eax
call fcn.004ea58e
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], 3
mov dword [esp + 0x24c], 0
xor ecx, ecx
mov word [eax], cx
xor eax, eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x2c]
push eax
push 0x105
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
lea ecx, [esp + 0x20]
lea eax, [esp + 0x2c]
push eax
call fcn.00412850
lea eax, [esi - 1]
cmp eax, 0x103
ja 0x418a9c
push ebx
lea edx, [esp + 0x24]
lea ecx, [esp + 0x18]
call fcn.004124e0
mov byte [esp + 0x24c], 1
mov dl, 1
mov ecx, dword [eax]
lea eax, [edi + 4]
push 0
push eax
call fcn.00418480
test al, al
mov byte [esp + 0x24c], 0
push dword [esp + 0x14]
sete bl
call fcn.004df97b
add esp, 4
test bl, bl
jne 0x418a9c
mov byte [edi], 1
mov bl, 1
jmp 0x418a9e
xor bl, bl
mov dword [esp + 0x24c], 0xffffffff
push dword [esp + 0x20]
call fcn.004df97b
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.004df96c
add esp, 0x240
ret 4
Function at 0x419050
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4ec368
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0041ba70
mov edi, eax
cmp edi, 1
je 0x41909e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41915b
test edi, edi
je 0x419158
xorps xmm0, xmm0
mov dword [esp + 0x18], 0
movq qword [esp + 0x10], xmm0
push 8
mov dword [esp + 0x14], 0
call fcn.004df9b3
add esp, 4
test eax, eax
jne 0x4190e0
mov byte [esp + 0xf], al
lea eax, [esp + 0xf]
push 0x51c2c8
push eax
call fcn.004ea58e
xor ecx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 3
mov word [eax], cx
mov dword [esp + 0x28], ecx
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.0041bb40
test al, al
je 0x419144
cmp dword [esp + 0x14], 0
jne 0x419122
cmp edi, 1
jne 0x419144
push esi
lea ecx, [esp + 0x14]
call fcn.00412850
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov edi, eax
mov dword [esp + 0x2c], 0xffffffff
call fcn.004df97b
add esp, 4
mov eax, edi
jmp 0x41915b
mov dword [esp + 0x28], 0xffffffff
push dword [esp + 0x10]
call fcn.004df97b
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004df96c
add esp, 0x20
ret
Function at 0x419bf0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4ec440
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x1c], eax
call fcn.00410ab0
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov esi, eax
test esi, esi
jne 0x419c46
xor al, al
jmp 0x419d38
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004df9b3
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x419c78
mov byte [esp + 0x17], al
lea eax, [esp + 0x17]
push 0x51c2c8
push eax
call fcn.004ea58e
mov dword [esp + 0x30], ebp
push ebp
push esi
mov dword [esp + 0x48], 0
call edi
mov ebx, eax
test ebx, ebx
je 0x419d23
cmp ebx, esi
ja 0x419d23
xorps xmm0, xmm0
mov dword [esp + 0x2c], 0
lea ecx, [esp + 0x24]
movq qword [esp + 0x24], xmm0
call fcn.00412560
xor eax, eax
mov byte [esp + 0x40], 1
xor edi, edi
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x419d0b
mov esi, 2
lea ebx, [ebx]
cmp word [esi + ebp - 2], 0
jne 0x419cff
add eax, ebp
lea ecx, [esp + 0x24]
push eax
call fcn.00412850
mov ecx, dword [esp + 0x1c]
lea eax, [edi + 1]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x24], esi
call fcn.004109c0
mov eax, esi
inc edi
add esi, 2
cmp edi, ebx
jb 0x419cd0
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov byte [esp + 0x40], 0
push dword [esp + 0x24]
sete bl
call fcn.004df97b
add esp, 4
jmp 0x419d25
xor bl, bl
push ebp
mov dword [esp + 0x44], 0xffffffff
call fcn.004df97b
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004df96c
add esp, 0x30
ret

Function at 0x419ec0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 4], eax
cmp byte [ecx + 4], 0
push esi
mov esi, dword [esp + 0x10]
je 0x419efe
cmp byte [ecx + 5], 0
je 0x419efe
mov eax, dword [ecx + 8]
mov dword [esi], eax
mov eax, dword [ecx + 0xc]
mov dword [esi + 4], eax
mov al, 1
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004df96c
add esp, 8
ret 4
push edi
lea eax, [esp + 8]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x419f32
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x419f32
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004df96c
add esp, 8
ret 4
mov ecx, dword [esp + 8]
xor eax, eax
add eax, edi
mov dword [esi], eax
mov al, 1
adc ecx, 0
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.004df96c
add esp, 8
ret 4
Function at 0x41a100
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
mov esi, dword [ecx + 0xc]
mov eax, esi
push edi
mov edi, dword [ecx + 8]
sar eax, 0x1f
and edi, 0xffffc000
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], ecx
push eax
push edi
push dword [ecx]
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41a153
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41a2a8
push 4
push 0x1000
push 0x4000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
mov byte [esp + 0x13], 1
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
mov eax, dword [esp + 0x1c]
push 0x4000
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a1f9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41a1ed
mov edx, dword [esp + 0x14]
xor ecx, ecx
add eax, edi
mov byte [esp + 0x13], 0
adc ecx, esi
cmp dword [esp + 0x18], 0x4000
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
jne 0x41a296
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push 0x4000
push ebx
push dword [edx]
add edi, 0x4000
adc esi, 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41a193
jmp 0x41a296
mov al, byte [esp + 0x13]
test al, al
je 0x41a296
mov eax, edi
or eax, esi
je 0x41a296
add edi, 0xffffc000
push 0
adc esi, 0xffffffff
mov eax, esi
mov dword [esp + 0x1c], esi
sar eax, 0x1f
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41a238
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41a296
test ebx, ebx
jne 0x41a255
push 4
push 0x1000
push 0x4000
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x41a2a8
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
mov eax, dword [esp + 0x1c]
push 0x4000
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a296
mov edx, dword [esp + 0x18]
test edx, edx
je 0x41a1f9
mov ecx, dword [esp + 0x14]
xor eax, eax
add edx, edi
adc eax, esi
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
test ebx, ebx
je 0x41a2a8
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004df96c
mov esp, ebp
pop ebp
ret
Function at 0x41a4d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 4], eax
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebp, ecx
push edi
mov edi, dword [esp + 0x1c]
mov ecx, 0x400000
mov dword [ebx], 0
jmp 0x41a500
cmp esi, 0x400000
mov dword [esp + 0x10], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x41a555
test ecx, ecx
je 0x41a53e
add edi, ecx
sub esi, ecx
mov ecx, 0x400000
jne 0x41a500
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004df96c
add esp, 8
ret 0xc
mov ecx, dword [esp + 0x14]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004df96c
add esp, 8
ret 0xc

Function at 0x41a570
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 4], eax
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebp, ecx
push edi
mov edi, dword [esp + 0x1c]
mov ecx, 0x400000
mov dword [ebx], 0
jmp 0x41a5a0
cmp esi, 0x400000
mov dword [esp + 0x10], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x41a5f5
test ecx, ecx
je 0x41a5de
add edi, ecx
sub esi, ecx
mov ecx, 0x400000
jne 0x41a5a0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004df96c
add esp, 8
ret 0xc
mov ecx, dword [esp + 0x14]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004df96c
add esp, 8
ret 0xc
Function at 0x41a6b0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push edi
mov edi, edx
mov dword [esp + 0x10], ecx
movzx eax, word [edi]
cmp eax, 0x5c
je 0x41a6fb
cmp eax, 0x2f
je 0x41a6fb
cmp eax, 0x61
jb 0x41a6d2
cmp eax, 0x7a
jbe 0x41a6dc
cmp eax, 0x41
jb 0x41a6e3
cmp eax, 0x5a
ja 0x41a6e3
cmp word [edi + 2], 0x3a
je 0x41a6fb
mov bl, byte [esp + 0x20]
xor bh, bh
mov byte [esp + 0xb], bh
test bl, bl
jne 0x41a705
pop edi
xor al, al
pop ebx
add esp, 0x14
ret 4
mov bl, byte [esp + 0x20]
mov bh, 1
mov byte [esp + 0xb], bh
mov byte [esp + 0xa], 1
cmp eax, 0x5c
je 0x41a714
cmp eax, 0x2f
jne 0x41a76c
movzx ecx, word [edi + 2]
cmp ecx, 0x5c
je 0x41a722
cmp ecx, 0x2f
jne 0x41a76c
cmp word [edi + 4], 0x3f
jne 0x41a76c
movzx ecx, word [edi + 6]
cmp ecx, 0x5c
je 0x41a737
cmp ecx, 0x2f
jne 0x41a76c
movzx eax, word [edi + 8]
add edi, 8
cmp eax, 0x61
jb 0x41a748
cmp eax, 0x7a
jbe 0x41a752
cmp eax, 0x41
jb 0x41a767
cmp eax, 0x5a
ja 0x41a767
cmp word [edi + 2], 0x3a
jne 0x41a767
movzx ecx, word [edi + 4]
cmp ecx, 0x5c
je 0x41a76c
cmp ecx, 0x2f
je 0x41a76c
mov byte [esp + 0xa], 0
xor edx, edx
test bh, bh
push esi
mov esi, 4
cmovne edx, esi
xor ecx, ecx
mov dword [esp + 0x18], edx
test ax, ax
je 0x41a78c
inc ecx
cmp word [edi + ecx*2], 0
jne 0x41a784
push ebp
lea ebp, [ecx + ecx]
xor ecx, ecx
lea eax, [edx + edx]
mov dword [esp + 0x20], eax
add eax, ebp
cmp byte [esp + 0x12], cl
mov dword [esp + 0x14], eax
cmove ebp, ecx
lea ecx, [eax + ebp]
test bl, bl
jne 0x41a7af
add ecx, esi
xor eax, eax
test bl, bl
mov ebx, dword [esp + 0x18]
cmovne eax, esi
lea esi, [ecx + 0x10]
add esi, eax
mov ecx, ebx
push esi
call fcn.0041b140
push esi
push 0
push dword [ebx]
call fcn.004e3fe0
mov cl, byte [esp + 0x34]
add esp, 0xc
mov ebx, dword [ebx]
test cl, cl
mov edx, 0xa000000c
mov eax, 0xa0000003
cmovne eax, edx
xor edx, edx
mov dword [esp + 0x28], edx
mov dword [ebx], eax
lea eax, [esi - 8]
mov word [ebx + 4], ax
xor esi, esi
xor eax, eax
mov word [ebx + 6], ax
mov eax, dword [esp + 0x14]
test cl, cl
je 0x41a80c
mov esi, ebp
jmp 0x41a813
lea edx, [eax + 2]
mov dword [esp + 0x28], edx
mov word [ebx + 0xe], bp
mov word [ebx + 8], si
mov word [ebx + 0xa], ax
mov word [ebx + 0xc], dx
add ebx, 0x10
pop ebp
test cl, cl
je 0x41a839
xor eax, eax
cmp byte [esp + 0xf], al
sete al
mov dword [ebx], eax
add ebx, 4
cmp dword [esp + 0x18], 0
je 0x41a870
movzx ecx, word [0x501208]
lea edx, [esi + ebx]
mov eax, 0x50120a
test cx, cx
je 0x41a870
sub edx, eax
jmp 0x41a860
mov word [edx + eax], cx
lea eax, [eax + 2]
movzx ecx, word [eax - 2]
test cx, cx
jne 0x41a860
add esi, dword [esp + 0x1c]
lea eax, [edi + 2]
movzx edx, word [edi]
add esi, ebx
mov ecx, eax
test dx, dx
je 0x41a895
sub esi, eax
mov word [esi + ecx], dx
lea ecx, [ecx + 2]
movzx edx, word [ecx - 2]
test dx, dx
jne 0x41a885
cmp byte [esp + 0xe], 0
pop esi
je 0x41a8c0
mov edx, dword [esp + 0x20]
movzx ecx, word [edi]
add edx, ebx
test cx, cx
je 0x41a8c0
sub edx, eax
lea ecx, [ecx]
mov word [edx + eax], cx
lea eax, [eax + 2]
movzx ecx, word [eax - 2]
test cx, cx
jne 0x41a8b0
pop edi
mov al, 1
pop ebx
add esp, 0x14
ret 4
Function at 0x41b830
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov eax, dword [edi]
mov dword [edi + 4], 0
mov word [eax], cx
xor eax, eax
mov word [esp + 8], ax
lea eax, [esp + 8]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
mov ecx, edi
lea eax, [esp + 8]
push eax
call fcn.00412850
lea eax, [esi - 1]
mov ecx, 0x103
cmp ecx, eax
mov ecx, dword [esp + 0x214]
pop edi
sbb eax, eax
pop esi
xor ecx, esp
inc eax
call fcn.004df96c
add esp, 0x210
ret
Function at 0x41c450
Capabilities:
Get disk size

Disassembly:
sub esp, 0x3c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
mov ebx, dword [esp + 0x48]
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
mov esi, edx
push str.GetDiskFreeSpaceExW
push 0x50109c
mov ebp, ecx
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41c4c1
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x40]
push ecx
push ebp
call eax
test eax, eax
mov eax, dword [esp + 0x28]
mov dword [edi], eax
mov eax, dword [esp + 0x2c]
setne byte [esp + 0x17]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x30]
mov dword [ebx], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 4], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x2c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x41c4f7
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004df96c
add esp, 0x3c
ret 8
mov eax, dword [esp + 0x20]
mul dword [esp + 0x24]
cmp byte [esp + 0x17], 0
mov dword [esi], eax
mov dword [esi + 4], edx
jne 0x41c532
push edx
push eax
push 0
push dword [esp + 0x24]
call fcn.004e6eb0
mov dword [edi], eax
mov dword [edi + 4], edx
push dword [esi + 4]
push dword [esi]
push 0
push dword [esp + 0x28]
call fcn.004e6eb0
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov ecx, dword [esp + 0x44]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004df96c
add esp, 0x3c
ret 8
Function at 0x41ce40
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push 0xffffffffffffffff
push 0x4ec699
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov ebx, dword [esp + 0xb4]
mov ebp, dword [esp + 0xb8]
test eax, eax
je 0x41cea1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41cea1
mov dword [esi], 0
xorps xmm0, xmm0
mov dword [esp + 0x98], 0
push ebx
lea ecx, [esp + 0x14]
movq qword [esp + 0x94], xmm0
call fcn.00412680
lea edx, [esp + 0x10]
mov dword [esp + 0xac], 0
lea ecx, [esp + 0x28]
call fcn.0041cd40
push 0x20
mov edx, eax
mov byte [esp + 0xb0], 1
lea ecx, [esp + 0x20]
call fcn.0041cd20
push ebp
mov edx, eax
mov byte [esp + 0xb0], 2
lea ecx, [esp + 0x94]
call fcn.004124b0
mov byte [esp + 0xac], 4
push dword [esp + 0x1c]
call fcn.004df97b
mov byte [esp + 0xb0], 5
push dword [esp + 0x2c]
call fcn.004df97b
mov byte [esp + 0xb4], 6
push dword [esp + 0x18]
call fcn.004df97b
mov ebx, dword [esp + 0x9c]
add esp, 0xc
xor eax, eax
mov dword [esp + 0x44], 0x44
mov word [esp + 0x76], ax
mov dword [esp + 0x78], eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x4c], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x98], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41cfa6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x41cfb8
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x34]
mov dword [esi], eax
xor esi, esi
push ebx
mov dword [esp + 0xb0], 0xffffffff
call fcn.004df97b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.004df96c
add esp, 0xa0
ret 0xc
Function at 0x41dae0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
lea edx, [esp + 0x18]
mov dword [esp + 0x14], 0
push edx
push 0x2001f
mov eax, ecx
mov dword [esp + 0x20], 0
mov ecx, dword [ebp + 8]
push 0
push ecx
push dword [eax]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x41dbe4
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
je 0x41db4e
push eax
call ebx
mov esi, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
test esi, esi
jne 0x41dbe4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [esp + 0x20]
push ecx
push esi
push esi
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x105
push ecx
lea ecx, [esp + 0x3c]
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x41dbbf
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
call fcn.0041dae0
mov esi, eax
test esi, esi
jne 0x41dbe4
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x105
push eax
push esi
push esi
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x30]
call edi
test eax, eax
je 0x41db86
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41dbd2
push eax
call ebx
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x10]
push dword [esp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41dbef
push eax
call ebx
mov ecx, dword [esp + 0x23c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004df96c
mov esp, ebp
pop ebp
ret 4

Function at 0x41dc10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov ebx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, ecx
xor ecx, ecx
mov eax, dword [esi]
mov dword [esi + 4], 0
mov word [eax], cx
lea eax, [esp + 0xc]
push eax
push ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
push eax
push ecx
push ebx
push dword [edi]
mov dword [esp + 0x24], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41dc61
cmp eax, 0xea
jne 0x41dcc4
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
cmp eax, dword [esi + 8]
jbe 0x41dc76
push eax
mov ecx, esi
call fcn.00412210
lea eax, [esp + 0x10]
mov dword [esp + 0x18], 0
push eax
push dword [esi]
lea eax, [esp + 0x20]
push eax
push 0
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0xc]
mov edi, eax
cmp edx, dword [esp + 0x10]
mov ecx, dword [esi]
cmova edx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0xc], edx
shr edx, 1
mov word [ecx + edx*2], ax
cmp word [ecx], ax
je 0x41dcbf
inc eax
cmp word [ecx + eax*2], 0
jne 0x41dcb7
mov dword [esi + 4], eax
mov eax, edi
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004df96c
add esp, 0x14
ret 8