joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418170
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x418188
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x41817d
cmp dword [edi + 0x7c], ebx
je 0x418197
call fcn.00418560
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00417ee0
add esp, 0xc
test eax, eax
je 0x4181bd
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push ebp
push 0x84
call fcn.00441ec4
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x4181ff
push 0x4000
call fcn.00441ec4
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [ebp], eax
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x48], edx
mov dword [ebp + 0x4c], ebx
cmp eax, ebx
jne 0x41820b
push ebp
call fcn.00441da7
add esp, 4
pop ebp
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [ebp + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [ebp + 0x54], ecx
mov dword [ebp + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [ebp + 0x64], edx
mov ecx, dword [edi]
mov dword [ebp + 0x60], ecx
mov edx, dword [edi + 0xc]
push esi
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x18], ebx
cmp eax, ebx
jne 0x418254
lea esi, [ebp + 4]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
call fcn.00416fe0
test eax, eax
jne 0x418254
mov dword [ebp + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [ebp + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [ebp + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [ebp + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x41827e
mov cl, byte [edi + 0x39]
mov byte [ebp + 0x80], cl
jmp 0x418287
mov dl, byte [edi + 0x3f]
mov byte [ebp + 0x80], dl
movzx eax, byte [ebp + 0x6c]
mov esi, dword [esp + 0x20]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [ebp + 0x70]
mov dword [ebp + 0x7c], eax
mov dword [edx], 0x12345678
mov dword [ebp + 0x74], 0x23456789
mov dword [ebp + 0x78], 0x34567890
cmp esi, ebx
je 0x4182c4
mov cl, byte [esi]
cmp cl, bl
je 0x4182c4
call fcn.00416d20
add esi, 1
jne 0x4182b4
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 8], ebx
pop esi
mov dword [edi + 0x7c], ebp
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x418660
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [esi], 0
push edi
jne 0x418701
cmp dword [esi + 4], 0xffffffff
jne 0x418701
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418690
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x4186c9
cmp ax, 0x2f
je 0x4186c9
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4186b6
mov eax, dword [0x462944]
mov dword [edi], eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
call fcn.00417430
add esp, 4
test eax, eax
jne 0x4186e7
mov eax, dword [esp + 0xc]
pop edi
pop ecx
ret 4
call fcn.00417860
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ecx
ret 4
mov eax, 0x1000000
pop edi
pop ecx
ret 4

Function at 0x418d00
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x4747c0]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x420]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov esi, dword [esp + 0x424]
test esi, esi
je 0x418d40
push esi
call ebp
cmp eax, 0xffffffff
jne 0x418d40
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x418e26
mov ecx, ebx
mov edx, ebx
movzx eax, ax
cmp ax, 0x2f
je 0x418d5f
cmp ax, 0x5c
jne 0x418d61
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x418d53
push edi
cmp ecx, ebx
je 0x418da4
sub ecx, ebx
sar ecx, 1
add ecx, ecx
mov edi, ecx
push edi
lea eax, [esp + 0x21c]
push ebx
push eax
call fcn.0044a770
lea edx, [esp + 0x224]
push edx
xor ecx, ecx
push esi
mov word [esp + edi + 0x22c], cx
call fcn.00418d00
add esp, 0x14
xor eax, eax
mov word [esp + 0x10], ax
test esi, esi
je 0x418dcf
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
jmp 0x418dc0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x418dc0
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418dd3
lea edi, [esp + 0x10]
sub eax, edx
add edi, 0xfffffffe
jmp 0x418df0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x418df0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call ebp
pop edi
cmp eax, 0xffffffff
jne 0x418e26
push 0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x41c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00440c2a
add esp, 0x414
ret
Function at 0x419490
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x459958
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4747c0]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], 1
jle 0x4194d4
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.004012a0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [esp + 0x18]
setne cl
mov esi, ecx
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0044121e
add esp, 8
test eax, eax
jl 0x41954b
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx - 8]
jg 0x41954b
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x18]
xor edx, edx
mov word [ecx + eax*2], dx
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x419538
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret
push 0x80070057
call fcn.00401000
int3

Function at 0x419740
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push edi
push 0
push 0x100
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x419767
xor eax, eax
pop edi
pop ecx
ret
push ebx
push ebp
push esi
call fcn.004260b6
mov ecx, dword [esp + 0x18]
movzx edx, word [esp + 0x1c]
mov esi, dword [eax + 0xc]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push ebp
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
pop ecx
ret
Function at 0x4197d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x459cc2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4747c0]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [0x4747c0]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
mov dword [esp + 0x220], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
call fcn.0042263d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x419838
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x16]
mov dword [esp + 0x228], 0
push edx
mov dword [esp + 0x10], 1
mov word [esp + 0x18], cx
call fcn.004438f0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0xc]
push ecx
push 0x462b60
push esi
call fcn.00401360
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00440c2a
add esp, 0x220
ret

Function at 0x4199b0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x45a4c8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x4747c0]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x44], edi
mov eax, dword [esp + 0x4c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x14], esp
mov esi, esp
push eax
call fcn.0040c3d0
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea esi, [esp + 0x14]
call fcn.004198c0
fldz
add esp, 4
fstp qword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp eax, 1
jne 0x419a46
fild qword [esp + 0x14]
jmp 0x419a4a
fld qword [esp + 0x2c]
call fcn.00446366
mov esi, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov edi, edx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419a73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419a9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, edi
mov eax, esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x3c
ret
Function at 0x419b80
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x45a4a0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x4747c0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x10]
push eax
push 0x461cc4
push 1
push ebx
push 0x461cd4
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x419bee
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
push esi
lea ecx, [esp + 0x10]
call fcn.0040b3d0
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0xc]
push 0x5c
push eax
call fcn.00441b9f
add esp, 8
or esi, 0xffffffff
cmp eax, ebx
jne 0x419c23
mov eax, esi
jmp 0x419c29
sub eax, dword [esp + 0xc]
sar eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.0040b8e0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.0040c110
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x419c6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
cmp edi, ebx
je 0x419c8d
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push ebx
push edi
push eax
call edx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x461d04
push eax
mov eax, dword [ecx]
call eax
cmp eax, ebx
jge 0x419cf2
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x419cde
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
cmp eax, ebx
jl 0x419cb7
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x419d48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x41a2c0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x4747c0]
xor eax, esp
mov dword [esp + 0x214], eax
mov ecx, dword [esp + 0x220]
lea eax, [esp]
push eax
push ecx
push esi
mov dword [esp + 0x10], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x41a319
mov ecx, dword [esp + 0x21c]
lea edx, [esp + 8]
push edx
lea eax, [esp + 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ecx, dword [esp + 0x220]
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 4]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push ecx
push edx
mov dword [esp + 0x1c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41a36b
mov eax, dword [esp + 0x224]
mov ecx, dword [eax - 0xc]
mov edx, dword [esp + 0x220]
add ecx, ecx
push ecx
push eax
mov eax, dword [esp + 8]
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x21c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41a398
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a3bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a3de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x214]
xor ecx, esp
mov eax, 1
call fcn.00440c2a
add esp, 0x218
ret
Function at 0x41aa70
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x459928
mov eax, dword fs:[0]
push eax
push edi
mov eax, dword [0x4747c0]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov dword [esp + 0x10], 2
mov eax, dword [esi]
mov edi, dword [esp + 0x20]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x41aac2
push 0x104
mov ecx, esi
call fcn.00401240
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
push edi
push 0x104
push eax
mov eax, dword [esp + 0x28]
push 0x462794
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x41aafb
push ecx
push eax
call fcn.0044121e
add esp, 8
test eax, eax
jl 0x41ab94
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x41ab94
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov byte [esp + 0x10], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ab36
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x10], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ab5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ab83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0xc
ret
push 0x80070057
call fcn.00401000
int3
Function at 0x41ac20
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x459f28
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4747c0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
call fcn.0042263d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41ac66
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov edx, dword [esp + 0x20]
lea ecx, [esp + 8]
push ecx
push edx
mov dword [esp + 0x20], 0
push 0
mov dword [esp + 0x14], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x41ad33
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x41acc6
push 0x104
lea ecx, [esp + 0x10]
call fcn.00401240
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 8]
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0044121e
add esp, 8
test eax, eax
jl 0x41ad29
cmp eax, dword [esi - 8]
jg 0x41ad29
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
add esi, 0xfffffff0
push esi
call fcn.0040c3d0
add eax, 0x10
mov dword [ebx], eax
add esp, 4
mov dword [esp + 0x18], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41ad63
mov ecx, dword [esi]
push esi
jmp 0x41ad5c
push 0x80070057
call fcn.00401000
push 0x462794
mov ecx, ebx
call fcn.0040b3d0
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ad63
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x41bf00
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4747c0]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41bf43
cmp dword [esp + 0x10], 2
jne 0x41bf43
cmp dword [esp + 4], 6
jne 0x41bf43
mov eax, 1
cmp dword [esp + 8], eax
je 0x41bf45
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00440c2a
add esp, 0x118
ret
Function at 0x41c250
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2004]
mov eax, 0x2004
call fcn.00445900
push 0xffffffffffffffff
push 0x45970e
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4747c0]
xor eax, ebp
mov dword [ebp + 0x2000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push 0x467310
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 1
call fcn.0042ff3e
push esi
push esi
push 0x600002
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x200c]
push esi
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.00430bcd
mov ecx, dword [ebp + 0x2010]
push esi
push 0x80
push 2
push esi
push 2
push 0xc0000000
mov ebx, eax
push ecx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, 0xffffffff
jne 0x41c35b
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00430730
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x200c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c329
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x2010]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c491
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41c491
push 0x1ffe
lea edx, [ebp + 2]
xor ecx, ecx
push esi
push edx
mov word [ebp], cx
call fcn.004438f0
add esp, 0xc
mov dword [ebp - 0x1c], esi
mov eax, dword [ebx]
mov edx, dword [eax + 0x34]
push 0x1000
lea ecx, [ebp]
push ecx
mov ecx, ebx
call edx
push 0
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
jg 0x41c376
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 1
call fcn.00430730
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x200c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c3dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x2010]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c491
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41c491
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2000]
xor ecx, ebp
call fcn.00440c2a
add ebp, 0x2004
mov esp, ebp
pop ebp
ret