joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404eff
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x4b1070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x200
mov esi, ecx
lea eax, [ebp - 0x204]
push 0
mov dword [ebp - 0x208], esi
push eax
mov dword [ebp - 0x208], esi
call fcn.0045fe50
add esp, 0xc
mov dword [ebp - 0x208], 0x100
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x204]
mov ecx, esi
push eax
call fcn.0041b66b
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0045d8f4
leave
ret

Function at 0x4050de
Capabilities:
Get common file path

Disassembly:
push 0x218
mov eax, 0x4845d1
call fcn.0045e53f
mov esi, ecx
mov dword [ebp - 0x220], esi
xor edi, edi
lea eax, [ebp - 0x218]
push 0x208
mov dword [ebp - 4], edi
push edi
mov dword [ebp - 0x224], esi
push eax
mov dword [ebp - 0x21c], edi
call fcn.0045fe50
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.0041b66b
mov dword [ebp - 4], edi
mov ecx, esi
push edi
mov dword [ebp - 0x21c], 1
call fcn.0041bf74
mov eax, esi
call fcn.0045e4e9
ret

Function at 0x405306
Capabilities:
Get common file path

Disassembly:
push 0x234
mov eax, 0x484639
call fcn.0045e53f
mov esi, ecx
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x240], esi
call fcn.00405063
test al, al
je 0x40533a
mov dl, 1
mov ecx, esi
call fcn.00405158
jmp 0x4053f4
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0045fe50
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40532c
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x238]
call fcn.0041b66b
and dword [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.0041cdc1
push 0
lea ecx, [ebp - 0x238]
call fcn.0041bf74
lea edx, [ebp - 0x239]
lea ecx, [ebp - 0x238]
call fcn.004066e3
test al, al
jne 0x4053b4
lea ecx, [ebp - 0x238]
call fcn.0040612a
lea ecx, [ebp - 0x238]
call fcn.0040647c
test al, al
jne 0x4053ce
mov dl, 1
mov ecx, esi
call fcn.00405158
jmp 0x4053e9
push 1
lea ecx, [ebp - 0x238]
call fcn.0041bf74
lea eax, [ebp - 0x238]
mov ecx, esi
push eax
call fcn.0041b6c8
lea ecx, [ebp - 0x238]
call fcn.0041baf2
mov eax, esi
call fcn.0045e4e9
ret
Function at 0x405ba0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4b1070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x20]
push eax
call fcn.0041d3fb
xor esi, esi
cmp dword [ebp + 0xc], esi
jg 0x405bcd
jl 0x405bc9
cmp dword [ebp + 8], esi
ja 0x405bcd
push 0xffffffffffffff9c
jmp 0x405c2e
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push esi
cmovae eax, dword [ebp - 0x1c]
push 0x80
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x405c2c
push esi
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x405c20
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
and esi, 3
add esi, 0xfffffffd
jmp 0x405c23
push 0xfffffffffffffffb
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405c2f
push 0xfffffffffffffff7
pop esi
lea ecx, [ebp - 0x20]
call fcn.0041baf2
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0045d8f4
leave
ret
Function at 0x40612a
Capabilities:
Create directory

Disassembly:
push 0x6c
mov eax, 0x48477f
call fcn.0045e53f
lea eax, [ebp - 0x64]
push eax
call fcn.0041ce9a
xor ebx, ebx
lea ecx, [ebp - 0x64]
push ebx
mov dword [ebp - 4], ebx
call fcn.0041bf74
lea ecx, [ebp - 0x2c]
call fcn.0041b057
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
push 0x49c1c0
mov byte [ebp - 0x65], bl
call fcn.0041b66b
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x64]
call fcn.0041cd12
lea ecx, [ebp - 0x48]
mov bl, al
call fcn.0041baf2
test bl, bl
je 0x40619f
cmp dword [ebp - 0x50], 2
jne 0x40619b
or esi, 0xffffffff
jmp 0x4062e0
mov bl, 1
jmp 0x4061a2
mov bl, byte [ebp - 0x65]
push 0x49c1c8
lea ecx, [ebp - 0x48]
call fcn.0041b66b
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x64]
call fcn.0041d7f3
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0041baf2
mov eax, dword [ebp - 0x74]
xor esi, esi
sub eax, dword [ebp - 0x78]
push 0x1c
cdq
pop edi
idiv edi
mov dword [ebp - 0x6c], esi
test eax, eax
je 0x4062e0
mov edi, esi
mov eax, dword [ebp - 0x78]
cmp dword [edi + eax + 0x14], esi
je 0x4062c6
cmp dword [ebp - 0x18], 0
je 0x406226
push 0x49b684
lea ecx, [ebp - 0x48]
call fcn.0041b66b
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x28]
call fcn.00408695
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0041baf2
test bl, bl
je 0x406259
cmp dword [ebp - 0x18], 0
jne 0x406259
push 0x49c1c0
lea ecx, [ebp - 0x48]
call fcn.0041b66b
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x28]
call fcn.00408695
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0041baf2
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x28]
add eax, 4
add eax, edi
push eax
call fcn.00408695
push 0x49b680
lea ecx, [ebp - 0x2c]
call fcn.0041b711
test al, al
jne 0x4062c6
push 0x49be5c
lea ecx, [ebp - 0x2c]
call fcn.0041b711
test al, al
jne 0x4062c6
cmp dword [ebp - 0x18], 2
jne 0x4062a4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + 2], 0x3a
je 0x4062c6
lea edx, [ebp - 0x65]
lea ecx, [ebp - 0x2c]
call fcn.004066e3
test al, al
jne 0x4062c6
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp - 0x78]
push 0x1c
pop ecx
cdq
add edi, ecx
idiv ecx
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], eax
jb 0x4061ea
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 7
call fcn.00404329
lea ecx, [ebp - 0x2c]
call fcn.0041baf2
lea ecx, [ebp - 0x64]
call fcn.0041baf2
mov eax, esi
call fcn.0045e4e9
ret
Function at 0x406304
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push 0x24
mov eax, 0x4847ac
call fcn.0045e53f
lea eax, [ebp - 0x2c]
push eax
call fcn.0041ce9a
xor esi, esi
lea edx, [ebp - 0x2d]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], esi
call fcn.004066e3
test al, al
jne 0x406332
or esi, 0xffffffff
jmp 0x406371
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x40634f
push 0xffffffffffffff9c
jmp 0x406370
test cl, 1
je 0x406371
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
and ecx, 0xfffffffe
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x406371
push 0xfffffffffffffffd
pop esi
lea ecx, [ebp - 0x2c]
call fcn.0041baf2
mov eax, esi
call fcn.0045e4e9
ret

Function at 0x406381
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push 0x24
mov eax, 0x4847ac
call fcn.0045e53f
lea eax, [ebp - 0x2c]
push eax
call fcn.0041ce9a
xor esi, esi
lea edx, [ebp - 0x2d]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], esi
call fcn.004066e3
test al, al
jne 0x4063af
or esi, 0xffffffff
jmp 0x4063ee
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4063cc
push 0xffffffffffffff9c
jmp 0x4063ed
test cl, 2
je 0x4063ee
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
and ecx, 0xfffffffd
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4063ee
push 0xfffffffffffffffd
pop esi
lea ecx, [ebp - 0x2c]
call fcn.0041baf2
mov eax, esi
call fcn.0045e4e9
ret

Function at 0x4066e3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4b1070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x20]
mov esi, edx
push eax
call fcn.0041ce9a
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x406721
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
jmp 0x40672a
shr eax, 4
mov bl, 1
and al, 1
mov byte [esi], al
lea ecx, [ebp - 0x20]
call fcn.0041baf2
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d8f4
leave
ret

Function at 0x406abf
Capabilities:
Delete file

Disassembly:
push 0x3c
mov eax, 0x484934
call fcn.0045e53f
lea eax, [ebp - 0x2c]
push eax
call fcn.0041ce9a
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0x104
jl 0x406b05
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041d003
add eax, 4
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x28]
call fcn.0041e1ec
lea ecx, [ebp - 0x48]
call fcn.0041baf2
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
lea ecx, [ebp - 0x2c]
setne bl
call fcn.0041baf2
mov al, bl
call fcn.0045e4e9
ret
Function at 0x406b2c
Capabilities:
Move file

Disassembly:
push 0x5c
mov eax, 0x484979
call fcn.0045e53f
mov esi, edx
lea eax, [ebp - 0x48]
push eax
call fcn.0041ce9a
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.0041ce9a
mov esi, 0x104
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], esi
jl 0x406b88
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x48]
call fcn.0041d0d9
add eax, 4
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x44]
call fcn.0041e1ec
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.0041baf2
cmp dword [ebp - 0x18], esi
jl 0x406bb1
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041d0d9
add eax, 4
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x28]
call fcn.0041e1ec
lea ecx, [ebp - 0x64]
call fcn.0041baf2
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x30], 8
push ecx
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
lea ecx, [ebp - 0x2c]
setne bl
call fcn.0041baf2
lea ecx, [ebp - 0x48]
call fcn.0041baf2
mov al, bl
call fcn.0045e4e9
ret

Function at 0x406bec
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
mov eax, dword [0x4b1070]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
jne 0x406c16
xor eax, eax
jmp 0x406d28
push 0x40
xor ebx, ebx
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.0045fe50
push edi
push 1
lea eax, [esp + 0x24]
push 0x40
push eax
call fcn.0046670b
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x406c43
push 0xfffffffffffffffc
jmp 0x406d25
mov eax, 0x5a4d
cmp word [esp + 0x10], ax
je 0x406c56
push 0xfffffffffffffffb
jmp 0x406d25
push ebx
push dword [esp + 0x50]
push edi
call fcn.00466524
add esp, 0xc
test eax, eax
je 0x406c6f
push 0xfffffffffffffffa
jmp 0x406d25
mov esi, 0xf8
lea eax, [esp + 0x50]
push esi
push ebx
push eax
call fcn.0045fe50
push 0x108
lea eax, [esp + 0x158]
push ebx
push eax
call fcn.0045fe50
push edi
push 1
lea eax, [esp + 0x70]
push esi
push eax
call fcn.0046670b
add esp, 0x28
cmp eax, 0xffffffff
jne 0x406cad
push 0xfffffffffffffff9
jmp 0x406d25
cmp dword [esp + 0x50], 0x4550
je 0x406cbb
push 0xfffffffffffffff8
jmp 0x406d25
mov eax, 0x10b
cmp word [esp + 0x68], ax
jne 0x406ccc
xor esi, esi
inc esi
jmp 0x406d26
mov eax, 0x20b
cmp word [esp + 0x68], ax
jne 0x406d23
push 2
pop esi
push ebx
push dword [esp + 0x50]
push edi
call fcn.00466524
add esp, 0xc
test eax, eax
je 0x406cf1
push 0xfffffffffffffff6
jmp 0x406d25
push edi
push 1
lea eax, [esp + 0x150]
push 0x108
push eax
call fcn.0046670b
add esp, 0x10
cmp eax, 0xffffffff
jne 0x406d12
push 0xfffffffffffffff5
jmp 0x406d25
cmp dword [esp + 0x148], 0x4550
je 0x406d26
push 0xfffffffffffffff4
jmp 0x406d25
push 0xfffffffffffffff7
pop esi
mov eax, esi
mov ecx, dword [esp + 0x254]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045d8f4
mov esp, ebp
pop ebp
ret
Function at 0x406d3d
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0x50
mov eax, 0x4849a6
call fcn.0045e53f
mov edi, edx
mov dword [ebp - 0x5c], edi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x48]
push 7
push eax
call fcn.0041bb3b
and dword [ebp - 4], 0
add esi, 4
cmp dword [esi + 0x14], 8
jb 0x406d6b
mov esi, dword [esi]
push 0x49c1f0
push esi
call fcn.00465668
pop ecx
pop ecx
mov ebx, eax
mov dword [ebp - 0x58], ebx
push 0x64
pop esi
test ebx, ebx
jne 0x406d8c
or esi, 0xffffffff
jmp 0x406ed6
push 2
push 0
push ebx
call fcn.00466524
add esp, 0xc
push ebx
call fcn.00466211
pop ecx
push 0
push 0
push ebx
mov dword [ebp - 0x4c], eax
call fcn.00466524
lea ecx, [edi + 4]
add esp, 0xc
cmp dword [ecx + 0x14], 8
jb 0x406dbb
mov ecx, dword [ecx]
push 0x49c1f8
push ecx
call fcn.00465668
mov dword [ebp - 0x54], eax
pop ecx
pop ecx
test eax, eax
jne 0x406dde
push ebx
call fcn.00465923
pop ecx
push 0xfffffffffffffffd
pop esi
jmp 0x406ed6
mov ecx, ebx
xor edi, edi
call fcn.00406bec
mov dword [ebp - 0x50], eax
cmp eax, 1
je 0x406dfb
cmp eax, 2
je 0x406dfb
mov esi, eax
jmp 0x406ea7
push 0
push 0
push ebx
call fcn.00466524
add esp, 0xc
push dword [ebp - 0x4c]
call fcn.0045dbe2
pop ecx
push ebx
push 1
push dword [ebp - 0x4c]
mov edi, eax
push edi
call fcn.0046670b
add esp, 0x10
cmp eax, 0xffffffff
jne 0x406e2c
push 0xfffffffffffffff3
pop esi
jmp 0x406ea7
mov eax, dword [edi + 0x3c]
movzx ecx, word [eax + edi + 0x14]
add ecx, eax
movzx eax, word [eax + edi + 6]
movzx edx, ax
lea eax, [edi + 0x18]
add eax, ecx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], eax
test edx, edx
je 0x406ea7
mov ebx, dword [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041b591
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041d3a9
test eax, eax
jne 0x406e8d
mov eax, dword [ebp - 0x4c]
push ebx
push 1
push dword [eax + 8]
mov eax, dword [eax + 0x14]
add eax, edi
push eax
call fcn.00465bdb
add esp, 0x10
xor ecx, ecx
cmp eax, 0xffffffff
push 0xfffffffffffffff1
pop esi
cmovne esi, ecx
lea ecx, [ebp - 0x2c]
call fcn.0041baf2
mov eax, dword [ebp - 0x4c]
add eax, 0x28
sub dword [ebp - 0x50], 1
mov dword [ebp - 0x4c], eax
jne 0x406e50
mov ebx, dword [ebp - 0x58]
push ebx
call fcn.00465923
mov ebx, dword [ebp - 0x54]
pop ecx
push ebx
call fcn.00465854
pop ecx
push ebx
call fcn.00465923
pop ecx
test edi, edi
je 0x406eca
push edi
call fcn.0045db9f
pop ecx
test esi, esi
je 0x406ed6
mov ecx, dword [ebp - 0x5c]
call fcn.00406abf
lea ecx, [ebp - 0x48]
call fcn.0041baf2
mov eax, esi
call fcn.0045e4e9
ret

Function at 0x4073d4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
push dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 4], edi
push dword [ebp + 8]
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40740b
mov eax, dword [ebp - 4]
test eax, eax
je 0x40740b
add dword [esi + 0x28], eax
mov dword [esi + 0x34], edi
adc dword [esi + 0x2c], edi
jmp 0x407417
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xfffffffffffffffe
mov dword [esi + 0x34], eax
pop eax
pop edi
pop esi
leave
ret 8
Function at 0x407561
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
push dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 4], edi
push dword [ebp + 8]
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40759b
mov eax, dword [ebp - 4]
cmp dword [ebp + 0xc], eax
jne 0x40759b
add dword [esi + 0x20], eax
mov dword [esi + 0x34], edi
adc dword [esi + 0x24], edi
xor eax, eax
jmp 0x4075a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xfffffffffffffffe
mov dword [esi + 0x34], eax
pop eax
pop edi
pop esi
leave
ret 8
Function at 0x409095
Capabilities:
Get file size

Disassembly:
push 0x44
mov eax, 0x484e80
call fcn.0045e53f
mov edi, ecx
call fcn.004073a9
lea eax, [ebp - 0x2c]
xor ebx, ebx
lea esi, [edi + 4]
mov dword [edi + 0x38], ebx
push eax
mov ecx, esi
mov dword [edi + 0x3c], ebx
call fcn.0041d3fb
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0041b7fa
or ebx, 0xffffffff
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0041baf2
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.0041ce9a
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.0041b7fa
lea ecx, [ebp - 0x48]
call fcn.0041baf2
lea eax, [edi + 8]
cmp dword [eax + 0x14], 8
jb 0x409104
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 3
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x30], eax
cmp eax, ebx
jne 0x409132
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x34], eax
push 0xfffffffffffffffe
pop eax
jmp 0x409170
lea ecx, [ebp - 0x50]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x40915f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x34], eax
cmp dword [edi + 0x30], ebx
je 0x40915b
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x30], ebx
push 0xfffffffffffffffd
jmp 0x40912f
mov eax, dword [ebp - 0x50]
mov dword [edi + 0x38], eax
mov eax, dword [ebp - 0x4c]
mov dword [edi + 0x3c], eax
xor eax, eax
mov byte [edi], 1
call fcn.0045e4e9
ret
Function at 0x409d11
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push 0x50
mov eax, 0x484f86
call fcn.0045e53f
mov edi, ecx
call fcn.004073a9
lea eax, [ebp - 0x30]
lea esi, [edi + 4]
push eax
mov ecx, esi
call fcn.0041d3fb
and dword [ebp - 4], 0
mov ecx, esi
push eax
call fcn.0041b7fa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0041baf2
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
call fcn.0041ce9a
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.0041b7fa
lea ecx, [ebp - 0x4c]
call fcn.0041baf2
mov byte [ebp - 0x4d], 0
mov ebx, 0x80
cmp byte [ebp + 8], 0
lea esi, [edi + 8]
mov eax, esi
je 0x409d8f
cmp dword [esi + 0x14], 8
jb 0x409d88
mov eax, dword [esi]
push 0
push ebx
push 4
jmp 0x409d9c
cmp dword [esi + 0x14], 8
jb 0x409d97
mov eax, dword [esi]
push 0
push ebx
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x30], eax
cmp eax, 0xffffffff
jne 0x409e0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x34], eax
cmp eax, 5
jne 0x409e09
cmp byte [ebp - 0x4d], 0
jne 0x409e09
cmp dword [esi + 0x14], 8
mov eax, esi
mov byte [ebp - 0x4d], 1
jb 0x409dd6
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x409e09
cmp ebx, 0x80
je 0x409e09
test bl, 1
je 0x409d75
and ebx, 0xfffffffe
cmp dword [esi + 0x14], 8
jb 0x409dfc
mov esi, dword [esi]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x409d75
push 0xfffffffffffffffe
pop eax
jmp 0x409e4e
cmp byte [ebp + 8], 0
je 0x409e49
push 2
push 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x5c], xmm0
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x409e49
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi + 0x30]
mov dword [edi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffffc
jmp 0x409e0b
mov byte [edi], 1
xor eax, eax
call fcn.0045e4e9
ret 4

Function at 0x40d19e
Capabilities:
Hash data with md5

Disassembly:
and dword [ecx + 4], 0
and dword [ecx], 0
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
ret
Function at 0x40de63
Capabilities:
Create thread

Disassembly:
push 0x1c
mov eax, 0x48555e
call fcn.0045e50b
mov edi, ecx
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [ebp - 0x10], edi
test edi, edi
je 0x40de8c
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
add eax, 8
add eax, edi
push eax
call esi
and dword [ebp - 4], 0
lea ebx, [edi + 8]
push ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x14], 1
mov byte [ebp - 4], 1
cmp byte [edi + 0x20], 0
jne 0x40df5e
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
add eax, 8
add eax, edi
push eax
call esi
lea ecx, [edi + 0x28]
push ecx
push 0
push edi
push 0x40dd77
push dword [ebp + 0xc]
push 0
call fcn.00466ec1
add esp, 0x18
lea ecx, [edi + 0x24]
mov esi, eax
call fcn.0040dfdf
mov dword [eax + 0xc], esi
lea esi, [edi + 0x24]
mov ecx, esi
call fcn.0040dfdf
cmp dword [eax + 0xc], 0
jne 0x40df25
mov eax, dword [edi + 4]
lea ecx, [edi + 4]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.0040d2bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x13d
push str.e:works10720_blowsnow_sourcehiethread.cpp
lea ecx, [ebp - 0x28]
call fcn.0040e18c
push 0x4ae0d0
mov eax, ecx
jmp 0x40df6f
push dword [edi + 0x28]
mov ecx, dword [ebp + 8]
push esi
mov byte [edi + 0x20], 1
call fcn.0040dbfb
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 2
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + 4]
add ecx, 4
add ecx, edi
call fcn.0040d2bd
mov eax, dword [ebp + 8]
call fcn.0045e4d4
ret 8
push ecx
push ecx
lea ecx, [ebp - 0x24]
call fcn.0040e2c0
push 0x4ae298
mov eax, ecx
push eax
call fcn.0045f2d9
int3
Function at 0x410646
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x1c]
lea edi, [esi + 4]
mov dword [ebp - 4], eax
test eax, eax
jg 0x41066d
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
inc eax
mov dword [esi], eax
pop edi
pop esi
pop ebx
leave
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
jmp 0x41069c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
cmp ecx, ebx
jae 0x410687
mov ebx, ecx
jmp 0x410694
mov eax, ecx
sub eax, ebx
cmp eax, dword [ebp - 4]
jb 0x410694
cmp ecx, ebx
ja 0x4106a9
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x410677
jmp 0x410663
push 0xffffffffffffff9c
pop eax
jmp 0x410668
Function at 0x417418
Capabilities:
Get disk size

Disassembly:
push 0x74
mov eax, 0x4868eb
call fcn.0045e53f
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0041b6c8
xor ebx, ebx
lea ecx, [ebp - 0x64]
push 0x49be50
mov dword [ebp - 4], ebx
call fcn.0041b66b
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041c003
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call fcn.0041baf2
cmp dword [ebp - 0x18], ebx
jne 0x417472
xorps xmm0, xmm0
movlpd qword [ebp - 0x70], xmm0
mov esi, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x70]
jmp 0x417508
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x48]
cmovae eax, dword [ebp - 0x28]
movzx eax, word [eax]
push eax
call fcn.0041b099
push 0x49c1e8
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.0041b66b
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x44]
call fcn.00408695
lea ecx, [ebp - 0x64]
call fcn.0041baf2
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x80]
push ecx
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x4174e1
xorps xmm0, xmm0
movlpd qword [ebp - 0x70], xmm0
mov esi, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x70]
jmp 0x417500
push ebx
mov esi, 0x400
push esi
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call fcn.004828d0
push ebx
push esi
push edx
push eax
call fcn.004828d0
mov edi, eax
mov esi, edx
lea ecx, [ebp - 0x48]
call fcn.0041baf2
lea ecx, [ebp - 0x2c]
call fcn.0041baf2
mov eax, edi
mov edx, esi
call fcn.0045e4e9
ret