joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c73250
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x41c9bcfe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov ebx, dword [esi + 8]
xor edi, edi
test ebx, ebx
mov dword [esp + 0x18], 2
jle 0x41c732a0
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi + 4]
mov eax, dword [eax + edi*4]
mov cl, byte [eax + 0x54]
add eax, 0x54
test cl, cl
je 0x41c7329a
push eax
call ebp
inc edi
cmp edi, ebx
jl 0x41c73287
pop ebp
mov eax, dword [esi + 0x74]
push eax
call fcn.41c67200
mov ecx, dword [esi + 0x6c]
add esp, 4
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esi + 0x40]
push eax
mov byte [esp + 0x1c], 1
call fcn.41c67200
mov eax, dword [esi + 0x3c]
push eax
call fcn.41c67200
mov eax, dword [esi + 0x68]
push eax
call fcn.41c67200
add esp, 0xc
lea ecx, [esi + 0x1c]
mov byte [esp + 0x18], 0
call fcn.41c72f50
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.41c73090
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41c74c40
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push 0x20
mov esi, ecx
call fcn.41c671c0
add esp, 4
test eax, eax
jne 0x41c74c56
call fcn.41c43850
xor ecx, ecx
mov edx, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], ecx
mov dword [edx + 0x18], ecx
mov dword [edx + 0x1c], ecx
mov ecx, dword [esp + 8]
mov dword [ecx], eax
mov cx, word [esi + 2]
mov byte [eax], ch
mov byte [eax + 1], cl
xor ecx, ecx
mov cx, word [esi]
add eax, 2
add eax, 2
add eax, 2
add eax, 2
add eax, 2
add eax, 2
mov edx, ecx
sar edx, 8
mov byte [eax - 0xa], dl
mov byte [eax - 9], cl
mov cx, word [esi + 4]
mov byte [eax - 8], ch
mov byte [eax - 7], cl
mov cx, word [esi + 6]
mov byte [eax - 6], ch
mov byte [eax - 5], cl
mov cx, word [esi + 8]
mov byte [eax - 4], ch
mov byte [eax - 3], cl
mov cx, word [esi + 0xa]
mov byte [eax - 2], ch
mov byte [eax - 1], cl
mov cx, word [esi + 0xc]
mov byte [eax], ch
mov byte [eax + 1], cl
mov cx, word [esi + 0xe]
mov byte [eax + 2], ch
mov byte [eax + 3], cl
mov cx, word [esi + 0x10]
add eax, 2
mov byte [eax + 2], ch
mov byte [eax + 3], cl
mov cx, word [esi + 0x12]
add eax, 2
mov byte [eax + 2], ch
mov byte [eax + 3], cl
mov cx, word [esi + 0x14]
add eax, 2
mov byte [eax + 2], ch
mov byte [eax + 3], cl
mov cx, word [esi + 0x16]
add eax, 2
mov byte [eax + 2], ch
mov byte [eax + 3], cl
mov cx, word [esi + 0x18]
add eax, 2
mov byte [eax + 2], ch
mov byte [eax + 3], cl
mov cx, word [esi + 0x1a]
add eax, 2
mov byte [eax + 2], ch
mov byte [eax + 3], cl
mov cx, word [esi + 0x1c]
add eax, 2
add eax, 2
mov byte [eax], ch
mov byte [eax + 1], cl
mov cx, word [esi + 0x1e]
add eax, 2
mov byte [eax], ch
mov byte [eax + 1], cl
mov eax, 0x20
pop esi
ret 4
Function at 0x41c751d0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push 0x24
mov esi, ecx
call fcn.41c671c0
add esp, 4
test eax, eax
jne 0x41c751e6
call fcn.41c43850
xor ecx, ecx
mov edx, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], ecx
mov dword [edx + 0x18], ecx
mov dword [edx + 0x1c], ecx
mov dword [edx + 0x20], ecx
mov ecx, dword [esp + 8]
mov dword [ecx], eax
mov cx, word [esi + 2]
mov byte [eax], ch
mov byte [eax + 1], cl
xor ecx, ecx
mov cx, word [esi]
add eax, 2
add eax, 2
add eax, 2
add eax, 2
add eax, 2
add eax, 2
mov edx, ecx
sar edx, 8
mov byte [eax - 0xa], dl
mov byte [eax - 9], cl
xor ecx, ecx
mov cx, word [esi + 4]
add eax, 2
add eax, 2
add eax, 2
add eax, 2
mov edx, ecx
sar edx, 8
mov byte [eax - 0x10], dl
mov byte [eax - 0xf], cl
xor ecx, ecx
mov cx, word [esi + 6]
mov edx, ecx
sar edx, 8
mov byte [eax - 0xe], dl
mov byte [eax - 0xd], cl
xor ecx, ecx
mov cx, word [esi + 8]
mov edx, ecx
sar edx, 8
mov byte [eax - 0xc], dl
mov byte [eax - 0xb], cl
mov cx, word [esi + 0xa]
mov byte [eax - 0xa], ch
mov byte [eax - 9], cl
xor ecx, ecx
mov cx, word [esi + 0xc]
mov edx, ecx
sar edx, 8
mov byte [eax - 8], dl
mov byte [eax - 7], cl
xor ecx, ecx
mov cx, word [esi + 0xe]
mov edx, ecx
sar edx, 8
mov byte [eax - 6], dl
mov byte [eax - 5], cl
xor ecx, ecx
mov cx, word [esi + 0x10]
mov edx, ecx
sar edx, 8
mov byte [eax - 4], dl
mov byte [eax - 3], cl
xor ecx, ecx
mov cx, word [esi + 0x12]
mov edx, ecx
sar edx, 8
mov byte [eax - 2], dl
mov byte [eax - 1], cl
xor ecx, ecx
mov cx, word [esi + 0x14]
mov edx, ecx
sar edx, 8
mov byte [eax], dl
mov byte [eax + 1], cl
xor ecx, ecx
mov cx, word [esi + 0x16]
add eax, 2
add eax, 2
add eax, 2
add eax, 2
add eax, 2
add eax, 2
mov edx, ecx
sar edx, 8
mov byte [eax - 0xa], dl
mov byte [eax - 9], cl
xor ecx, ecx
mov cx, word [esi + 0x18]
add eax, 2
mov edx, ecx
sar edx, 8
mov byte [eax - 0xa], dl
mov byte [eax - 9], cl
xor ecx, ecx
mov cx, word [esi + 0x1a]
mov edx, ecx
sar edx, 8
mov byte [eax - 8], dl
mov byte [eax - 7], cl
xor ecx, ecx
mov cx, word [esi + 0x1c]
mov edx, ecx
sar edx, 8
mov byte [eax - 6], dl
mov byte [eax - 5], cl
xor ecx, ecx
mov cx, word [esi + 0x1e]
mov edx, ecx
sar edx, 8
mov byte [eax - 4], dl
mov byte [eax - 3], cl
xor ecx, ecx
mov cx, word [esi + 0x20]
mov edx, ecx
sar edx, 8
mov byte [eax - 2], dl
mov byte [eax - 1], cl
mov cx, word [esi + 0x22]
mov byte [eax], ch
mov byte [eax + 1], cl
mov eax, 0x24
pop esi
ret 4
Function at 0x41c762e0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
mov edx, ecx
push edi
mov edi, dword [edx + 8]
xor eax, eax
mov ecx, 0x8000
rep stosd dword es:[edi], eax
cmp dword [esp + 0x18], 0x206
mov dword [esp + 0xc], edx
jae 0x41c76307
push 9
call fcn.41c75520
mov edx, dword [esp + 0x14]
push ebx
xor ecx, ecx
push ebp
mov dword [esp + 0x1c], ecx
push esi
xor eax, eax
mov ah, byte [edx + ecx*2 + 6]
mov al, byte [edx + ecx*2 + 7]
test ax, ax
mov dword [esp + 0x10], eax
jne 0x41c7632f
test ecx, ecx
jne 0x41c763e1
mov esi, dword [esp + 0x24]
shr ax, 3
movzx eax, ax
shl eax, 3
lea ecx, [eax + 0x206]
cmp esi, ecx
jb 0x41c763e1
lea ecx, [eax + edx + 0x206]
movzx ax, byte [ecx + 1]
mov ah, byte [ecx]
xor ebx, ebx
mov bh, byte [ecx + 2]
mov esi, eax
lea eax, [ecx + 2]
mov bl, byte [eax + 1]
add eax, 2
add eax, 2
movzx esi, si
mov dword [esp + 0x14], esi
mov edi, ebx
xor ebx, ebx
mov bh, byte [eax - 2]
movzx edi, di
mov bl, byte [eax - 1]
mov ebp, ebx
xor ebx, ebx
mov bh, byte [eax]
movsx esi, bp
mov dword [esp + 0x10], esi
mov bl, byte [eax + 1]
mov ax, bx
movzx eax, ax
lea esi, [eax + ecx + 6]
mov eax, dword [esp + 0x24]
lea ecx, [edi + esi]
add eax, edx
cmp eax, ecx
jb 0x41c763e1
xor eax, eax
test edi, edi
jle 0x41c763e1
lea ecx, [ecx]
xor ecx, ecx
mov ch, byte [esi + eax*2]
mov cl, byte [esi + eax*2 + 1]
test ecx, ecx
je 0x41c763dc
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov ebp, dword [ebp + 8]
add ebx, ecx
mov cl, byte [esp + 0x14]
add cl, al
movzx ecx, cl
mov ch, byte [esp + 0x20]
mov word [ebp + ecx*2], bx
inc eax
cmp eax, edi
jl 0x41c763b0
mov ecx, dword [esp + 0x20]
inc ecx
cmp ecx, 0x100
mov dword [esp + 0x20], ecx
jl 0x41c76314
pop esi
pop ebp
pop ebx
mov al, 1
pop edi
add esp, 0xc
ret 8

Function at 0x41c77840
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
mov edx, dword [ecx + 8]
test edx, edx
mov dword [esp + 0x10], edx
jg 0x41c77854
xor eax, eax
add esp, 0x14
ret
cmp edx, 1
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
push ebx
movzx ebx, word [eax]
push ebp
mov bp, word [eax + 4]
mov ax, word [eax + 6]
mov dword [esp + 0x14], 0
mov word [esp + 0x10], ax
mov dword [esp + 8], 1
jle 0x41c778e5
add ecx, 4
push esi
mov dword [esp + 0x10], ecx
push edi
lea esp, [esp]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [esp + 0x18]
movzx esi, word [eax]
push edx
xor ecx, ecx
mov cx, word [eax + 4]
xor edi, edi
mov di, word [eax + 6]
push ebp
call fcn.41c74710
add esp, 8
test eax, eax
jge 0x41c778c7
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov ebx, esi
mov ebp, ecx
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jl 0x41c77890
pop edi
pop esi
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x41c7a580
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x41c7a5cd
mov edx, dword [esp + 8]
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41c7a5be
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41c7a5be
push eax
push eax
call fcn.41c7a0f0
add esp, 4
push eax
call fcn.41c7a000
cmp dword [esp + 0xc], esi
je 0x41c7a5cd
push 0xffffffffffffffff
push 0xd
call fcn.41c7a000
pop esi
ret 8

Function at 0x41c7a770
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x1008]
test eax, eax
jbe 0x41c7a782
mov eax, dword [esi]
call dword [eax + 0x1c]
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x41c7a78e
pop esi
ret 8
mov edx, dword [esp + 8]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41c7a7c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41c7a7c3
push eax
push eax
call fcn.41c7a0f0
add esp, 4
push eax
call fcn.41c7a000
mov eax, dword [esp + 0xc]
pop esi
ret 8
Function at 0x41c7b7c0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41c9c068
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
xor eax, eax
mov ax, word [ecx + 0xde]
cmp ax, 1
push esi
mov esi, dword [esp + 0x3c]
mov ebp, dword [esi + 0x60]
jb 0x41c7b7fa
dec eax
mov dword [esp + 0x14], eax
xor ebx, ebx
jmp 0x41c7b800
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [esi + 0x5c]
lea edx, [esp + 0x3c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x24], edx
mov byte [esp + 0x28], 0
cmp word [esi], bx
mov dword [esp + 0x34], ebx
mov dword [esp + 0xc], ebx
jbe 0x41c7b8c7
add ecx, 0x104
mov dword [esp + 0x1c], ecx
push edi
lea esp, [esp]
movzx eax, word [esp + 0x10]
mov ecx, dword [esi + 0x24]
movzx eax, word [ecx + eax*2]
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x28]
push eax
call fcn.41c76fe0
mov edi, eax
test edi, edi
je 0x41c7b8b4
mov edx, dword [esi + 0x28]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
push edx
push eax
push edi
push ecx
call fcn.41c79490
mov edx, dword [0x41c9e724]
push edx
push edi
call fcn.41c741b0
mov edi, eax
mov eax, dword [esp + 0x58]
push edi
push eax
call fcn.41c74550
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x60]
add ecx, eax
mov eax, dword [ebp + 0x38]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0x44]
push ecx
push edi
push edx
push eax
call dword [ebp + 0x3c]
add esp, 0x30
add ebx, edi
mov eax, dword [esp + 0x10]
inc eax
cmp ax, word [esi]
mov dword [esp + 0x10], eax
jb 0x41c7b840
pop edi
mov ecx, dword [str.glyf]
push ecx
lea ecx, [esi + 0x2c]
call fcn.41c777e0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
add dword [esi + 0x5c], ebx
mov edx, dword [esp + 0x3c]
push edx
mov dword [esp + 0x38], 0xffffffff
call fcn.41c67200
mov ecx, dword [esp + 0x30]
add esp, 4
pop esi
pop ebp
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x41c7d170
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x41c9c2a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
xor eax, eax
push esi
mov esi, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0x400
mov dword [esp + 0x44], 4
mov dword [esp + 0x48], 0x10
mov dword [esp + 0x30], 0x41c9e8a4
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x78]
push eax
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.41c7c8d0
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.41c7cef0
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.41c7b380
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.41c7b530
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.41c7b220
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.41c7b950
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.41c7b680
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.41c7ba10
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.41c7bab0
mov edx, dword [str.cvt]
lea ecx, [esp + 4]
push ecx
push edx
mov ecx, esi
call fcn.41c7bb50
mov ecx, dword [str.fpgm]
lea eax, [esp + 4]
push eax
push ecx
mov ecx, esi
call fcn.41c7bb50
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.41c7bc30
mov ecx, dword [str.prep]
lea eax, [esp + 4]
push eax
push ecx
mov ecx, esi
call fcn.41c7bb50
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.41c7bd50
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.41c7b7c0
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.41c7c490
lea ecx, [esp + 4]
mov dword [esp + 0x70], 0xffffffff
call fcn.41c7c840
mov ecx, dword [esp + 0x68]
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 4
Function at 0x41c86f40
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
mov ebx, ecx
mov dword [esi], 0
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x41c86f96
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41c86f8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x70
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 3
mov dword [esi], eax
pop esi
xor eax, eax
pop ebx
ret 0xc
mov eax, dword [esp + 0x10]
pop esi
pop ebx
ret 0xc
mov eax, dword [esp + 0x10]
test eax, eax
push ebp
push edi
mov ebp, eax
jbe 0x41c86ff2
mov edi, dword [esp + 0x14]
jmp 0x41c86fb0
cmp ebp, 0xffff
mov esi, 0xffff
ja 0x41c86fbf
mov esi, ebp
mov eax, dword [ebx + 0x20]
mov ecx, dword [eax + 2]
push edi
lea edx, [esp + 0x18]
push edx
push esi
push 0
push ecx
call dword [eax + 0x26]
test eax, eax
mov edx, dword [esp + 0x1c]
mov dword [edx], eax
jne 0x41c86ff0
movzx eax, si
add edi, eax
sub ebp, eax
jne 0x41c86fb0
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop esi
pop ebx
ret 0xc
xor eax, eax
pop edi
pop ebp
pop esi
pop ebx
ret 0xc
Function at 0x41c8aaa0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x41caa230]
mov dword [esp + 0x208], eax
mov eax, dword [0x41caa520]
test eax, eax
jne 0x41c8aad0
push 0x41caa520
mov dword [0x41caa520], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [0x41caa530], 1
jne 0x41c8ab68
push esi
mov esi, dword [esp + 0x218]
test esi, esi
jne 0x41c8ab07
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
pop esi
mov ecx, dword [esp + 0x208]
call fcn.41c9a4ee
add esp, 0x20c
ret 8
lea eax, [esp + 4]
push eax
push 0x206
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x41c8ab31
pop esi
mov ecx, dword [esp + 0x208]
call fcn.41c9a4ee
add esp, 0x20c
ret 8
mov ecx, dword [esp + 0x214]
push ecx
push esi
push 0xffffffffffffffff
lea edx, [esp + 0x10]
push edx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov word [esi + eax*2], 0
inc eax
pop esi
mov ecx, dword [esp + 0x208]
call fcn.41c9a4ee
add esp, 0x20c
ret 8
mov eax, dword [esp + 0x214]
mov ecx, dword [esp + 0x210]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esp + 0x208]
call fcn.41c9a4ee
add esp, 0x20c
ret 8

Function at 0x41c8acc0
Capabilities:
Delete file

Disassembly:
sub esp, 0x210
mov eax, dword [0x41caa230]
mov dword [esp + 0x20c], eax
mov eax, dword [0x41caa520]
test eax, eax
jne 0x41c8acf0
push 0x41caa520
mov dword [0x41caa520], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [0x41caa530], 1
jne 0x41c8ad56
mov edx, dword [esp + 0x214]
lea eax, [esp]
push eax
push 0
push 0x208
lea ecx, [esp + 0x10]
push ecx
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x41c8ad36
mov ecx, dword [esp + 0x20c]
call fcn.41c9a4ee
add esp, 0x210
ret 4
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x20c]
call fcn.41c9a4ee
add esp, 0x210
ret 4
mov ecx, dword [esp + 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x20c]
call fcn.41c9a4ee
add esp, 0x210
ret 4

Function at 0x41c8b040
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [ecx]
cmp edx, 0xffffffff
jne 0x41c8b056
mov dword [ecx + 0x210], 4
xor eax, eax
ret 0xc
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, esi
imul eax, edi
cmp eax, 0xffffffff
jbe 0x41c8b07b
mov dword [ecx + 0x210], 3
pop edi
xor eax, eax
pop esi
ret 0xc
test esi, esi
je 0x41c8b074
test edi, edi
je 0x41c8b074
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [esp + 0x18]
push eax
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
xor edx, edx
pop edi
div esi
pop esi
ret 0xc
Function at 0x41c8b290
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
call fcn.41c70270
mov ebp, dword [sym.imp.MSVCR71.dll_rand]
add esp, 4
call ebp
mov edi, eax
call ebp
mov esi, eax
imul esi, edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x10], 0
lea esp, [esp]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x2c]
push esi
push ecx
push edx
push str._s_s_x__d__x.ctm
push eax
push edi
call fcn.41c4f400
add esp, 0x20
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41c8b326
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x41c8b367
call ebp
mov ebx, eax
call ebp
mov esi, eax
imul esi, ebx
mov ebx, dword [esp + 0x10]
inc ebx
cmp ebx, 0xa
mov dword [esp + 0x10], ebx
jle 0x41c8b353
call ebp
cdq
mov ecx, 0xc8
idiv ecx
add edx, 0x32
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, 0x100
jl 0x41c8b2d0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x41c8b380
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x41caa230]
push esi
push edi
mov edi, ecx
lea esi, [edi + 5]
mov dword [esp + 0x10c], eax
cmp byte [esi], 0
jne 0x41c8b3fc
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x41c8b3ce
push 0x104
push esi
lea ecx, [esp + 0x10]
push 0x41c9f510
push ecx
call fcn.41c8b290
add esp, 0x10
test eax, eax
jne 0x41c8b3f2
mov dword [edi + 0x10c], 1
pop edi
mov byte [esi], 0
mov eax, esi
pop esi
mov ecx, dword [esp + 0x104]
call fcn.41c9a4ee
add esp, 0x108
ret
mov dword [edi + 0x10c], 0
mov ecx, dword [esp + 0x10c]
pop edi
mov eax, esi
pop esi
call fcn.41c9a4ee
add esp, 0x108
ret
Function at 0x41c8b4a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
call fcn.41c70270
mov ebp, dword [sym.imp.MSVCR71.dll_rand]
add esp, 4
call ebp
mov edi, eax
call ebp
mov esi, eax
imul esi, edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x10], 0
lea esp, [esp]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x2c]
push esi
push ecx
push edx
push 0x41c9f514
push eax
push edi
call fcn.41c4f420
add esp, 0x20
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41c8b535
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push edi
call fcn.41c8aba0
cmp eax, 0xffffffff
jne 0x41c8b576
call ebp
mov ebx, eax
call ebp
mov esi, eax
imul esi, ebx
mov ebx, dword [esp + 0x10]
inc ebx
cmp ebx, 0xa
mov dword [esp + 0x10], ebx
jle 0x41c8b562
call ebp
cdq
mov ecx, 0xc8
idiv ecx
add edx, 0x32
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, 0x100
jl 0x41c8b4e0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x41c95910
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x41caa230]
mov dword [esp + 0x208], eax
mov eax, dword [0x41caa5c8]
test eax, eax
jne 0x41c95940
push 0x41caa5c8
mov dword [0x41caa5c8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [0x41caa5d8], 1
jne 0x41c959d8
push esi
mov esi, dword [esp + 0x218]
test esi, esi
jne 0x41c95977
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
pop esi
mov ecx, dword [esp + 0x208]
call fcn.41c9a4ee
add esp, 0x20c
ret 8
lea eax, [esp + 4]
push eax
push 0x206
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x41c959a1
pop esi
mov ecx, dword [esp + 0x208]
call fcn.41c9a4ee
add esp, 0x20c
ret 8
mov ecx, dword [esp + 0x214]
push ecx
push esi
push 0xffffffffffffffff
lea edx, [esp + 0x10]
push edx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov word [esi + eax*2], 0
inc eax
pop esi
mov ecx, dword [esp + 0x208]
call fcn.41c9a4ee
add esp, 0x20c
ret 8
mov eax, dword [esp + 0x214]
mov ecx, dword [esp + 0x210]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esp + 0x208]
call fcn.41c9a4ee
add esp, 0x20c
ret 8

Function at 0x41c95cf0
Capabilities:
Delete file

Disassembly:
sub esp, 0x210
mov eax, dword [0x41caa230]
mov dword [esp + 0x20c], eax
mov eax, dword [0x41caa5c8]
test eax, eax
jne 0x41c95d20
push 0x41caa5c8
mov dword [0x41caa5c8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [0x41caa5d8], 1
jne 0x41c95d86
mov edx, dword [esp + 0x214]
lea eax, [esp]
push eax
push 0
push 0x208
lea ecx, [esp + 0x10]
push ecx
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x41c95d66
mov ecx, dword [esp + 0x20c]
call fcn.41c9a4ee
add esp, 0x210
ret 4
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x20c]
call fcn.41c9a4ee
add esp, 0x210
ret 4
mov ecx, dword [esp + 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x20c]
call fcn.41c9a4ee
add esp, 0x210
ret 4