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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10004
call fcn.0047a740
mov eax, dword [0x505034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x50bad8]
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
lea edi, [esi + 1]
test eax, eax
je 0x445a5f
push esi
call eax
mov edi, eax
lea eax, [ebp - 0x10004]
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x445a7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x445aae
lea edx, [ebp - 0x10004]
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x445a90
sub edx, ecx
lea eax, [ebp - 0x10004]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.00415170
mov eax, dword [0x50bad8]
test eax, eax
je 0x445aba
push edi
call eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00479e61
mov esp, ebp
pop ebp
ret

Function at 0x446620
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10004
call fcn.0047a740
mov eax, dword [0x505034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
test ecx, ecx
je 0x4466b1
cmp word [ecx], 0
je 0x4466b1
push esi
push 0x8000
lea eax, [ebp - 0x10004]
xor esi, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x446675
mov esi, 2
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00479e61
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10004]
push edi
lea edi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x446680
sub edx, edi
lea eax, [ebp - 0x10004]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.00415170
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00479e61
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x57
xor ecx, ebp
pop ebx
call fcn.00479e61
mov esp, ebp
pop ebp
ret
Function at 0x448ad0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc880
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x505034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], edx
mov esi, ecx
mov edi, dword [ebp + 8]
test edi, edi
jg 0x448b8f
cmp dword [esi + 0x14], 8
jb 0x448b12
mov ecx, dword [esi]
xor dl, dl
call fcn.00445010
test eax, eax
js 0x448b88
test edi, edi
je 0x448b81
cmp dword [esi + 0x14], 8
mov edi, esi
jb 0x448b2b
mov edi, dword [esi]
mov eax, dword [0x50bad8]
mov dword [ebp - 0x34], 1
test eax, eax
je 0x448b42
push 0
call eax
mov dword [ebp - 0x34], eax
push 0x50b5a0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x448b58
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x50bad8]
test eax, eax
je 0x448b66
push dword [ebp - 0x34]
call eax
cmp dword [esi + 0x14], 8
jb 0x448b6e
mov esi, dword [esi]
xor dl, dl
mov ecx, esi
call fcn.00445010
test eax, eax
sets al
jmp 0x448c56
xor al, al
jmp 0x448c56
mov al, 1
jmp 0x448c56
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x2c], xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x34], eax
nop
lea ecx, [edx + eax*4]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x448c34
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x448c0e
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x448bfd
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00415170
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
push ecx
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00452d30
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov dl, 1
cmovae ecx, dword [ebp - 0x2c]
call fcn.00445010
mov edx, dword [ebp - 0x38]
test eax, eax
mov eax, dword [ebp - 0x34]
je 0x448c35
dec edi
inc eax
mov dword [ebp - 0x34], eax
cmp eax, dword [ebp + 8]
jl 0x448be0
test edi, edi
sete byte [ebp - 0x2d]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004484f0
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00479e61
mov esp, ebp
pop ebp
ret
Function at 0x449c00
Capabilities:
Get common file path
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x505034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp dword [0x50bb64], esi
jne 0x449c3d
sub esp, 8
lea ecx, [esi + 1]
call fcn.004499a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x449d14
or dword [0x50bb60], 2
mov eax, dword [0x50bb64]
test eax, eax
je 0x449c4d
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x50bb5c]
mov ecx, eax
inc eax
mov dword [0x50bb5c], eax
test ecx, ecx
jne 0x449d02
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004a4fba
add esp, 4
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push 0x104
push eax
push str._SystemRoot_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ax, word [ebp - 0x210]
xor ecx, ecx
cmp cx, ax
je 0x449ca9
mov ecx, 0x25
cmp cx, ax
jne 0x449ccd
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x210]
push eax
push str.SystemRoot
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, 4
call fcn.00440230
mov esi, eax
test esi, esi
jne 0x449cfd
or dword [0x50bb60], 1
mov cl, 1
call fcn.00448950
mov esi, eax
test esi, esi
jne 0x449cfd
call fcn.00449000
call fcn.00449870
jmp 0x449d02
call fcn.00449d30
mov eax, dword [0x50bb64]
test eax, eax
je 0x449d12
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00479e61
mov esp, ebp
pop ebp
ret
Function at 0x453d10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x505034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, edx
mov dword [ebp - 0x210], eax
test esi, esi
je 0x453ea2
test eax, eax
je 0x453ea2
push ebx
push 4
push 0x4eca04
push esi
call fcn.004a505a
add esp, 0xc
test eax, eax
je 0x453da6
push 4
push 0x4eb5c0
push esi
call fcn.004a505a
add esp, 0xc
test eax, eax
je 0x453da6
mov eax, 0x3a
cmp ax, word [esi + 2]
jne 0x453dd5
mov eax, 0x5c
cmp ax, word [esi + 4]
jne 0x453dd5
push 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0049f7e0
add esp, 0xc
lea ebx, [ebp - 0x208]
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x20c]
jmp 0x453df5
push 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0049f7e0
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x204]
push 0x5c
push eax
call fcn.004918e5
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x453def
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00479e61
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x204]
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
push edi
push dword [ebp - 0x210]
mov word [ebx], cx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x453e63
cmp eax, edi
jae 0x453e63
mov ecx, dword [ebp - 0x210]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x453e20
sub ecx, edx
sar ecx, 1
je 0x453e63
lea eax, [ebp - 0x20c]
sub ebx, eax
sar ebx, 1
lea esi, [esi + ebx*2]
mov edx, esi
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x453e43
sub edx, ebx
lea eax, [ecx + 1]
sar edx, 1
add eax, edx
cmp eax, edi
jbe 0x453e76
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00479e61
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x210]
sub edi, ecx
push edi
push esi
lea eax, [eax + ecx*2]
push eax
call fcn.0049f7e0
add esp, 0xc
mov eax, 1
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00479e61
mov esp, ebp
pop ebp
ret
push 0xa0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00479e61
mov esp, ebp
pop ebp
ret
Function at 0x454c20
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd830
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x505034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
xor edi, edi
mov dword [ebp - 0x2c], esi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [ebp - 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
call fcn.00455f70
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
xor eax, eax
mov dword [esi + 0xac], edi
mov dword [esi + 0xb0], 7
mov word [esi + 0x9c], ax
mov dword [esi + 0xc4], eax
mov dword [esi + 0xc8], 7
mov word [esi + 0xb4], ax
mov dword [esi + 0xe0], eax
mov dword [esi + 0xe4], 7
mov word [esi + 0xd0], ax
mov dword [esi + 0xf8], eax
mov dword [esi + 0xfc], 7
mov word [esi + 0xe8], ax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x150]
mov dword [esi + 0x104], eax
call fcn.004692f0
cmp dword [eax + 4], 6
ja 0x454d04
jne 0x454d09
cmp dword [eax + 8], 3
jb 0x454d09
mov edi, 4
push dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push 0x10000000
push 0
push 0
push edi
push str.Avast_SimpleHttp_3.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push eax
mov ecx, esi
call fcn.00455410
mov eax, dword [esi]
test eax, eax
je 0x454dc3
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
lea ecx, [ebp - 0x14]
push 4
push ecx
push 0x54
push eax
mov dword [ebp - 0x14], 0x80
call edi
test eax, eax
je 0x454de5
or dword [ebp - 0x14], 0x200
lea eax, [ebp - 0x14]
push 4
push eax
push 0x54
push dword [esi]
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x454d7e
call edi
cmp eax, 0x57
jne 0x454e07
push 0x3a98
push 0x3a98
push 0x7530
push 0
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x454da4
push str.Unable_to_set_WinHTTP_timeouts_
call edi
jmp 0x454dce
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00479e61
mov esp, ebp
pop ebp
ret 0xc
push str.Unable_to_initialize_a_WinHTTP_session_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x28]
call fcn.0046c6b0
push 0x50271c
lea eax, [ebp - 0x28]
push eax
call fcn.00491d27
mov esi, dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004554e0
push 0x50271c
lea eax, [ebp - 0x28]
push eax
call fcn.00491d27
mov esi, dword [ebp - 0x14]
call edi
push esi
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004554e0
push 0x50271c
lea eax, [ebp - 0x28]
push eax
call fcn.00491d27
int3
Function at 0x456890
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cda58
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x505034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
call fcn.00479ea3
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [eax], esi
mov dword [eax + 4], 0x457290
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x457230
push 0
push 0
call fcn.0049e1bb
add esp, 0x18
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x456920
cmp dword [esi + 0x38], 0
jne 0x45692e
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x38], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00479e61
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebp - 0x18], 0
call fcn.004775b3
call fcn.0049f576
int3

Function at 0x456dc0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cdad9
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x505034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov esi, dword [ebp + 8]
xor eax, eax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x14], eax
mov eax, edi
mov dword [ebp - 0x18], 1
jb 0x456e28
mov eax, dword [edi]
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push eax
push 0xffff
push dword [ecx + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x456e54
call ebx
cmp eax, 0x7a
jne 0x456efd
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x10]
shr eax, 1
cmp eax, ecx
ja 0x456e75
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x456e6a
mov ecx, dword [esi]
xor edx, edx
mov dword [esi + 0x10], eax
mov word [ecx + eax*2], dx
jmp 0x456e81
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00419430
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x456e8b
mov eax, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x456e93
mov edi, dword [edi]
push 0
lea ecx, [ebp - 0x14]
push ecx
push eax
mov eax, dword [ebp - 0x1c]
push edi
push 0xffff
push dword [eax + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x456efd
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x10]
shr eax, 1
cmp eax, ecx
ja 0x456ed1
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x456ec6
mov ecx, dword [esi]
xor edx, edx
mov dword [esi + 0x10], eax
mov word [ecx + eax*2], dx
jmp 0x456edd
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00419430
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00479e61
mov esp, ebp
pop ebp
ret 8
push str.Unable_to_query_response_headers_
call ebx
push eax
lea ecx, [ebp - 0x34]
call fcn.0046c6b0
push 0x50271c
lea eax, [ebp - 0x34]
push eax
call fcn.00491d27
int3
Function at 0x45bbe0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce338
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x505034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
push 0x64
call fcn.00479ea3
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
lea esi, [edi + 4]
mov word [edi], 0
push 2
push esi
call fcn.00477f77
lea eax, [edi + 0x34]
push eax
call fcn.004786ba
add ebx, 0xffffffe4
lea eax, [ebp - 0x14]
add esp, 0xc
xorps xmm0, xmm0
movq qword [edi + 0x5c], xmm0
cmp ebx, eax
je 0x45bc7c
mov esi, dword [ebx]
mov dword [ebx], edi
test esi, esi
je 0x45bc9c
cmp dword [esi + 0x60], 0
jne 0x45bd17
lea eax, [esi + 0x34]
push eax
call fcn.0047869d
add esp, 4
lea eax, [esi + 4]
push eax
call fcn.00477f4d
add esp, 4
push 0x64
push esi
jmp 0x45bc94
lea eax, [edi + 0x34]
push eax
call fcn.0047869d
add esp, 4
push esi
call fcn.00477f4d
add esp, 4
push 0x64
push edi
call fcn.00479e95
add esp, 8
mov esi, dword [ebp - 0x20]
push 4
add esi, 0xffffff54
call fcn.00479ea3
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [eax], esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x45c960
push 0
push 0
call fcn.0049e1bb
mov edx, eax
add esp, 0x18
mov dword [ebp - 0x1c], edx
test edx, edx
je 0x45bd1c
mov ecx, dword [ebx]
cmp dword [ecx + 0x60], 0
jne 0x45bd17
mov eax, dword [ebp - 0x18]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ecx + 0x5c], edx
mov dword [ecx + 0x60], eax
cmp dword [ebp - 0x18], 0
jne 0x45bd17
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00479e61
mov esp, ebp
pop ebp
ret
call fcn.0049f576
push 6
mov dword [ebp - 0x18], 0
call fcn.004775b3
int3
Function at 0x461250
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ceb20
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x505034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0x48
call fcn.00479ea3
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea ebx, [esi + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x18], ebx
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_obj2_class_asw::mi::ModuleDestructions_.0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
lea eax, [ebx + 0xc]
mov dword [ebx], vtable.asw::mi::ModuleDestructions.0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 2
push 0x40
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
call fcn.00479ea3
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebx + 0x28], eax
mov byte [ebp - 4], 3
push 0x40
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
call fcn.00479ea3
xorps xmm0, xmm0
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebx + 0x30], eax
mov byte [ebx + 0x38], 0
movq qword [edi], xmm0
mov dword [edi], ebx
mov dword [edi + 4], esi
test ebx, ebx
je 0x4613a2
mov eax, dword [ebx + 8]
test eax, eax
je 0x461349
cmp dword [eax + 4], 0
jne 0x4613a2
lea eax, [esi + 4]
lock inc dword [eax]
mov esi, dword [edi + 4]
xor eax, eax
xor edx, edx
test esi, esi
je 0x461362
mov eax, ebx
mov edx, esi
lock inc dword [esi + 8]
mov ecx, dword [ebx + 8]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
or ebx, 0xffffffff
test ecx, ecx
je 0x461380
mov eax, ebx
lock xadd dword [ecx + 8], eax
jne 0x461380
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x4613a2
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x4613a2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x4613a2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x462cd0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cecb8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x505034]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x38], eax
push eax
movlpd qword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x462d2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x462e86
cmp dword [ebp - 0x28], 0
je 0x462d3b
mov ebx, 0xdf
jmp 0x462e86
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
xor ebx, ebx
movq qword [ebp - 0x24], xmm0
xor edi, edi
mov dword [ebp - 0x1c], 0
xor esi, esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], edi
test eax, eax
je 0x462da1
cmp eax, 0x7fffffff
ja 0x462eb0
push eax
lea ecx, [ebp - 0x24]
call fcn.00422590
mov esi, dword [ebp - 0x34]
push esi
push edi
push dword [ebp - 0x24]
call fcn.004928b0
mov ecx, dword [ebp - 0x24]
add esp, 0xc
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x1c]
lea ebx, [esi + ecx]
mov esi, ecx
mov dword [ebp - 0x20], ebx
push 0
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 1
push edx
push eax
push ecx
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x462df9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test esi, esi
je 0x462e86
sub edi, esi
cmp edi, 0x1000
jb 0x462dea
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x462eb5
mov esi, ecx
push edi
push esi
call fcn.00479e95
add esp, 8
jmp 0x462e86
mov eax, ebx
mov ebx, dword [ebp - 0x2c]
sub eax, esi
cmp ebx, eax
jae 0x462e0c
lea eax, [esi + ebx]
mov dword [ebp - 0x20], eax
jmp 0x462e36
jbe 0x462e36
sub edi, esi
cmp ebx, edi
jbe 0x462e20
push ecx
push ebx
lea ecx, [ebp - 0x24]
call fcn.0042abd0
jmp 0x462e36
mov esi, dword [ebp - 0x20]
sub ebx, eax
push ebx
push 0
push esi
call fcn.004928b0
add esp, 0xc
add esi, ebx
mov dword [ebp - 0x20], esi
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
push eax
call fcn.00462ec0
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x462e72
mov edx, dword [ebp - 0x1c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x462e68
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x462eb5
push edx
push ecx
call fcn.00479e95
add esp, 8
xor ebx, ebx
jmp 0x462e86
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00479e61
mov esp, ebp
pop ebp
ret 4
call fcn.00416f90
call fcn.0049b19a
int3
Function at 0x465920
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x465933
test al, 0x10
jne 0x465933
mov al, 1
ret
xor al, al
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, ecx
xor eax, eax
mov ebx, dword [esi + 0x14]
mov ecx, esi
mov edi, dword [esi + 0x10]
cmp ebx, 8
jb 0x465f0f
mov ecx, dword [esi]
push dword [ebp - 4]
inc eax
mov edx, edi
push 2
push 0x4ed9f8
push eax
call fcn.004178a0
add esp, 0x10
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x465fb6
xor ecx, ecx
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], cx
lea ecx, [eax + 1]
cmp edi, ecx
mov dword [ebp - 0xc], 7
mov eax, esi
cmovb ecx, edi
cmp ebx, 8
jb 0x465f56
mov eax, dword [esi]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00415170
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
push dword [ebp - 4]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp edx, 8
jb 0x465f00
mov ecx, dword [ebp - 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465fa4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465ffc
push edx
push ecx
call fcn.00479e95
mov eax, dword [ebp - 8]
add esp, 8
jmp 0x465f00
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x465fc8
mov eax, dword [esi]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esi + 0x14], 8
jb 0x465fda
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x465ff3
test al, 0x10
je 0x465ff3
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0049b19a
int3
Function at 0x466950
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov bl, dl
mov esi, ecx
nop dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x466974
test al, 0x10
jne 0x466974
mov al, 1
jmp 0x466976
xor al, al
test al, al
je 0x4669a6
test bl, bl
je 0x4669a6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4669a0
add bl, 0xff
je 0x466960
push 0xc8
call edi
jmp 0x466960
pop edi
pop esi
mov al, 1
pop ebx
ret
pop edi
pop esi
xor al, al
pop ebx
ret