joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418880
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47111d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x34], esi
push esi
call fcn.0045476b
push 0x5c
push eax
mov dword [ebp - 0x30], eax
call fcn.004528ae
push 0x2f
push dword [ebp - 0x30]
mov edi, eax
call fcn.004528ae
add esp, 0x14
cmp eax, edi
cmova edi, eax
test edi, edi
je 0x41890d
movzx esi, word [edi]
xor eax, eax
mov ecx, dword [ebp - 0x30]
mov word [edi], ax
call fcn.00418830
push 0
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [edi], si
mov esi, dword [ebp - 0x34]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418912
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jbe 0x418a57
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418932
sub ecx, edx
sar ecx, 1
cmp ecx, 4
jb 0x41895e
push 4
push 0x4c7bb4
push esi
call fcn.004609c7
add esp, 0xc
test eax, eax
je 0x418a57
push 4
xor eax, eax
mov dword [ebp - 0x4c], 0
push 0x4c7bb4
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
call fcn.00411b40
mov ecx, esi
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418994
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x4c]
call fcn.00412220
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x38]
cmp edx, 8
jb 0x418a0b
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418a01
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418a8b
push edx
push ecx
call fcn.00451449
add esp, 8
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x418a60
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418a4b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418a90
push edx
push ecx
call fcn.00451449
add esp, 8
jmp 0x418a60
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebp - 0x30]
call fcn.004605b8
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00450db2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00460976
call fcn.00460976
int3
Function at 0x418cc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4cbf98
push 0x452750
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4d100c]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, ecx
mov dword [ebp - 4], 0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x418db0
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov eax, 0x4550
cmp word [ecx], ax
jne 0x418db0
lea eax, [ecx + 0x18]
movzx edx, word [ecx + 6]
mov dword [ebp - 0x24], edx
mov esi, 0x20b
mov edi, 0xe0
mov ecx, 0xf0
cmp word [eax], si
cmove edi, ecx
add edi, eax
mov dword [ebp - 0x20], edi
xorps xmm0, xmm0
movlpd qword [ebp - 0x30], xmm0
xor ecx, ecx
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x1c], ecx
cmp ecx, edx
jge 0x418d8a
lea eax, [ecx + ecx*4]
mov edx, dword [edi + eax*8 + 0x14]
xor edi, edi
mov ecx, dword [ebp - 0x20]
add edx, dword [ecx + eax*8 + 0x10]
adc edi, edi
cmp edi, ebx
mov ecx, dword [ebp - 0x1c]
jb 0x418d81
ja 0x418d77
cmp edx, esi
jbe 0x418d81
mov esi, edx
mov ebx, edi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ebx
inc ecx
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
jmp 0x418d51
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov edx, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
xor edx, edx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418dd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0046fc30
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, ecx
mov word [ebp - 0x2008], ax
lea eax, [ebp - 0x2008]
push eax
push 0
push 0
push 0x1a
mov dword [ebp - 0x200c], esi
push 0
mov dword [ebp - 0x200c], esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x418e38
lea ecx, [ebp - 0x2008]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418e21
sub ecx, edx
sar ecx, 1
cmp ecx, 0xf00
jbe 0x418e4c
mov dword [ebp - 0x2008], 0x3a0043
mov dword [ebp - 0x2004], 0x5c
xor eax, eax
mov dword [esi], 0
lea ecx, [ebp - 0x2008]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
lea edx, [ecx + 2]
mov word [esi], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418e70
sub ecx, edx
lea eax, [ebp - 0x2008]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00411b40
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00450db2
mov esp, ebp
pop ebp
ret
Function at 0x418ea0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0046fc30
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, ecx
mov word [ebp - 0x2008], ax
lea eax, [ebp - 0x2008]
push eax
push 0
push 0
push edx
mov dword [ebp - 0x200c], esi
push 0
mov dword [ebp - 0x200c], esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x418f07
lea ecx, [ebp - 0x2008]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418ef0
sub ecx, edx
sar ecx, 1
cmp ecx, 0xf00
jbe 0x418f1b
mov dword [ebp - 0x2008], 0x3a0043
mov dword [ebp - 0x2004], 0x5c
xor eax, eax
mov dword [esi], 0
lea ecx, [ebp - 0x2008]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
lea edx, [ecx + 2]
mov word [esi], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418f40
sub ecx, edx
lea eax, [ebp - 0x2008]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00411b40
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00450db2
mov esp, ebp
pop ebp
ret

Function at 0x418f70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.0046fc30
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov word [ebp - 0x2004], ax
mov esi, ecx
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2008], esi
push eax
push 0xf00
mov dword [ebp - 0x2008], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [ebp - 0x2004]
test eax, eax
mov edx, 0x2e
lea eax, [ebp - 0x2004]
cmove ecx, edx
lea edx, [eax + 2]
mov dword [ebp - 0x2004], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418fd0
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x2006], 0x5c
je 0x419008
push edi
lea edi, [ebp - 0x2004]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x418ff4
mov eax, dword [0x494cac]
mov dword [edi], eax
pop edi
xor eax, eax
mov dword [esi], 0
lea ecx, [ebp - 0x2004]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
lea edx, [ecx + 2]
mov word [esi], ax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419030
sub ecx, edx
lea eax, [ebp - 0x2004]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00411b40
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00450db2
mov esp, ebp
pop ebp
ret
Function at 0x419770
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, 0xaaaaaaab
mov dword [ebp - 4], edx
add esi, 2
mul esi
xor eax, eax
mov ebx, ecx
shr edx, 1
shl edx, 2
add edx, 4
mov dword [ebp - 0xc], ebx
push edi
setb al
neg eax
or eax, edx
push eax
push 1
call fcn.00454560
mov edi, eax
add esp, 8
mov eax, dword [ebp + 8]
xor ecx, ecx
xor esi, esi
test eax, eax
je 0x41983b
lea edx, [eax - 1]
mov dword [ebp - 8], edx
lea ebx, [eax - 2]
mov eax, dword [ebp - 4]
movzx edx, byte [eax + esi]
shl edx, 0x10
cmp esi, dword [ebp - 8]
jae 0x4197e0
movzx eax, byte [eax + esi + 1]
shl eax, 8
or edx, eax
mov eax, dword [ebp - 4]
cmp esi, ebx
jae 0x4197eb
movzx eax, byte [eax + esi + 2]
or edx, eax
mov eax, edx
add esi, 3
shr eax, 0x12
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + edi], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + edi + 1], al
mov eax, edx
shr eax, 6
and edx, 0x3f
and eax, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + edi + 2], al
mov byte [ecx + edi + 3], dl
add ecx, 4
cmp esi, dword [ebp + 8]
jb 0x4197c4
mov ebx, dword [ebp - 0xc]
mov eax, 0xaaaaaaab
mov byte [ecx + edi], 0
mul dword [ebp + 8]
mov esi, 3
shr edx, 1
inc edx
lea eax, [edx + edx*2]
xor edx, edx
sub eax, dword [ebp + 8]
div esi
test edx, edx
je 0x41986c
add ecx, edi
nop
mov byte [ecx - 1], 0x3d
lea ecx, [ecx - 1]
sub edx, 1
jne 0x419860
mov ecx, edi
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x419888
sub ecx, edx
push ecx
push edi
mov ecx, ebx
call fcn.00411c40
push edi
call fcn.004605b8
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4198b0
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x5c]
push edi
lea edi, [esi + 0x5c]
test eax, eax
jne 0x4198d7
mov eax, 1
lock xadd dword [edi], eax
test eax, eax
jne 0x4198d7
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 4], eax
push 0xffffffffffffffff
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x58], 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
ret
Function at 0x419910
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47120d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4d100c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x5c]
lea edi, [esi + 0x5c]
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], 1
test eax, eax
jne 0x419964
mov eax, 1
lock xadd dword [edi], eax
test eax, eax
jne 0x419964
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 4], eax
push 0xffffffffffffffff
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], 0
cmp byte [esi + 0x58], 0
jne 0x41998a
mov byte [esi + 0x58], 1
call fcn.00418790
movsd qword [esi + 0x50], xmm0
mov eax, dword [ebp + 8]
add dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
adc dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
add dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
adc dword [esi + 0x14], eax
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x4199c9
mov ecx, edx
lea ebx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4199b0
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x30]
call fcn.00411b40
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x41a1a0
Capabilities:
Initialize winhttp library
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471280
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4d100c]
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 eax, dword [ebp + 8]
mov esi, eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x19], 1
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41a1e0
sub esi, ecx
xor ecx, ecx
sar esi, 1
mov eax, esi
add eax, 2
setb cl
neg ecx
or ecx, eax
push ecx
push 2
call fcn.00454560
mov edi, eax
xor eax, eax
add esi, 2
setb al
neg eax
or eax, esi
push eax
push 2
call fcn.00454560
mov esi, eax
push esi
push edi
push str.https:_________n_
push dword [ebp - 0x14]
call fcn.00401420
push edi
call fcn.0045476b
add esp, 0x24
mov dword [ebx + 0x50], eax
push esi
call fcn.0045476b
add esp, 4
mov dword [ebx + 0x54], eax
push edi
call fcn.004605b8
add esp, 4
push esi
call fcn.004605b8
mov eax, dword [ebx + 0x50]
add esp, 4
cmp word [eax], 0
je 0x41a329
mov ecx, dword [ebx + 0x54]
movzx eax, word [ecx]
test ax, ax
je 0x41a329
mov edx, eax
mov esi, 0x2f
nop dword [eax]
cmp dx, 0x5c
jne 0x41a289
mov word [ecx], si
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x41a280
push 0
push 0
push 0
push 0
push str.Mozilla_5.0__Windows_NT_6.3__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__curse_6.5.0_Chrome_58.0.3029.110_Twitch_1.7.3_Safari_537.36
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebx + 0x40], eax
test eax, eax
jne 0x41a2c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HttpOpen_failed
mov ecx, ebx
call fcn.00419fa0
jmp 0x41a349
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
lea ecx, [ebp - 0x14]
push 4
push ecx
push 3
push eax
mov dword [ebp - 0x14], 0x3a98
call esi
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x800
push eax
push 0x54
push dword [ebx + 0x40]
call esi
push 0
push 0x1bb
push dword [ebx + 0x50]
push dword [ebx + 0x40]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebx + 0x44], eax
test eax, eax
jne 0x41a324
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HttpConnect_failed
mov ecx, ebx
call fcn.00419fa0
jmp 0x41a349
mov al, byte [ebp - 0x19]
jmp 0x41a34b
cmp dword [ebx + 0x1c], 0
je 0x41a33c
push 0x4c7bf0
lea ecx, [ebx + 0xc]
call fcn.00411d70
push str.hostname_or_page_not_set
lea ecx, [ebx + 0xc]
call fcn.00411d70
xor al, al
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.00450db2
mov esp, ebp
pop ebp
ret 4
Function at 0x41b5c0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x4d100c]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 8], 0
jne 0x41b5f3
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00450db2
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push dword [ebp + 8]
push edx
push dword [esi + 0x48]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x41b628
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Reader_failed
mov ecx, esi
call fcn.00419fa0
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x41b640
mov eax, dword [ecx]
push 0
push 0
push 0
push 0
push dword [esp + 0x30]
call dword [eax + 4]
movq xmm0, qword [0x4d2e98]
mov eax, dword [esp + 0x20]
movq qword [esp + 0x10], xmm0
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0x4d2e98
nop word [eax + eax]
mov ebx, edi
mov ecx, esi
add ebx, eax
mov edx, esi
mov esi, dword [esp + 0x10]
mov eax, edi
adc ecx, 0
lock cmpxchg8b qword [esi]
mov esi, dword [esp + 0xc]
cmp eax, edi
jne 0x41b691
cmp edx, esi
je 0x41b69f
mov esi, edx
mov edi, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], esi
jmp 0x41b670
mov eax, dword [esp + 0x20]
or ecx, 0xffffffff
cmp dword [esp + 0x1c], 0
pop edi
cmove eax, ecx
mov ecx, dword [esp + 0x20]
pop esi
pop ebx
xor ecx, esp
call fcn.00450db2
mov esp, ebp
pop ebp
ret
Function at 0x41d120
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x407c
call fcn.0046fc30
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 3
push 1
push ecx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41d28e
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x4020]
push 0
push eax
push 0x4000
lea eax, [ebp - 0x401c]
mov dword [ebp - 0x407c], 0x67452301
push eax
push esi
mov dword [ebp - 0x4078], 0xefcdab89
mov dword [ebp - 0x4074], 0x98badcfe
mov dword [ebp - 0x4070], 0x10325476
mov dword [ebp - 0x406c], 0xc3d2e1f0
mov dword [ebp - 0x4064], 0
mov dword [ebp - 0x4068], 0
mov dword [ebp - 0x4020], 0
call ebx
test eax, eax
je 0x41d215
nop dword [eax]
mov eax, dword [ebp - 0x4020]
test eax, eax
je 0x41d215
push eax
lea edx, [ebp - 0x401c]
lea ecx, [ebp - 0x407c]
call fcn.00423840
add esp, 4
mov dword [ebp - 0x4020], 0
lea eax, [ebp - 0x4020]
push 0
push eax
push 0x4000
lea eax, [ebp - 0x401c]
push eax
push esi
call ebx
test eax, eax
jne 0x41d1d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x407c]
call fcn.004238f0
add esp, 4
xor esi, esi
mov al, byte [edi + esi*2]
lea ecx, [eax - 0x61]
cmp cl, 5
ja 0x41d23f
add al, 0xa9
jmp 0x41d249
lea ecx, [eax - 0x41]
cmp cl, 5
ja 0x41d249
add al, 0xc9
mov dl, byte [edi + esi*2 + 1]
lea ecx, [edx - 0x61]
cmp cl, 5
ja 0x41d259
mov cl, 0xa9
jmp 0x41d268
lea ecx, [edx - 0x41]
mov bl, 5
cmp bl, cl
sbb cl, cl
and cl, 7
add cl, 0xc9
add dl, cl
shl al, 4
or dl, al
cmp byte [ebp + esi - 0x1c], dl
jne 0x41d28e
inc esi
cmp esi, 0x14
jl 0x41d230
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450db2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450db2
mov esp, ebp
pop ebp
ret
Function at 0x41d2b0
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4080
call fcn.0046fc30
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0
push 0
push 3
push 0
push 3
mov edi, ecx
mov dword [ebp - 0x4080], eax
push 1
mov dword [ebp - 0x4020], edi
push edx
mov dword [ebp - 0x4020], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41d331
push 0
mov dword [edi], 0
mov ecx, edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
push 0x47c352
mov byte [edi], 0
call fcn.00411c40
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450db2
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x4020]
push 0
push eax
push 0x4000
lea eax, [ebp - 0x401c]
mov dword [ebp - 0x407c], 0x67452301
push eax
push esi
mov dword [ebp - 0x4078], 0xefcdab89
mov dword [ebp - 0x4074], 0x98badcfe
mov dword [ebp - 0x4070], 0x10325476
mov dword [ebp - 0x406c], 0xc3d2e1f0
mov dword [ebp - 0x4064], 0
mov dword [ebp - 0x4068], 0
mov dword [ebp - 0x4020], 0
call ebx
test eax, eax
je 0x41d3e9
mov eax, dword [ebp - 0x4020]
test eax, eax
je 0x41d3e9
push eax
lea edx, [ebp - 0x401c]
lea ecx, [ebp - 0x407c]
call fcn.00423840
add esp, 4
mov dword [ebp - 0x4020], 0
lea eax, [ebp - 0x4020]
push 0
push eax
push 0x4000
lea eax, [ebp - 0x401c]
push eax
push esi
call ebx
test eax, eax
jne 0x41d3a4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4080]
lea esi, [ebp - 0x1c]
test eax, eax
push ecx
cmovne esi, eax
lea ecx, [ebp - 0x407c]
mov edx, esi
call fcn.004238f0
add esp, 4
mov edx, esi
mov ecx, edi
call fcn.0041d430
mov ecx, dword [ebp - 4]
mov eax, edi
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00450db2
mov esp, ebp
pop ebp
ret
Function at 0x41d4c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471684
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4d100c]
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
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
jne 0x41d513
xor eax, eax
jmp 0x41d696
lea ecx, [ebp - 0x20]
xor edi, edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41d68b
mov ebx, dword [ebp - 0x20]
mov eax, ebx
mov ecx, dword [ebp - 0x1c]
and eax, ecx
cmp eax, 0xffffffff
je 0x41d68b
cmp ecx, dword [ebp + 0xc]
jg 0x41d68b
jl 0x41d54f
cmp ebx, dword [ebp + 8]
ja 0x41d68b
push 0xc
call fcn.004511c8
mov edi, eax
add esp, 4
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
test ebx, ebx
je 0x41d5b3
cmp ebx, 0x7fffffff
ja 0x41d6b7
push ebx
mov ecx, edi
call fcn.00421a30
mov esi, dword [edi]
push ebx
push 0
push esi
call fcn.00452b60
lea eax, [esi + ebx]
add esp, 0xc
mov dword [edi + 4], eax
cmp dword [ebp - 0x1c], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
jl 0x41d68b
jg 0x41d5cf
test ebx, ebx
je 0x41d68b
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x24], edx
nop dword [eax + eax]
mov eax, ebx
mov ecx, 0x100000
sub eax, esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
sbb eax, edx
test eax, eax
jg 0x41d600
jl 0x41d5fc
cmp dword [ebp - 0x14], ecx
jae 0x41d600
mov ecx, ebx
sub ecx, esi
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
mov eax, dword [edi]
push ecx
add eax, esi
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41d63b
mov edx, dword [ebp - 0x24]
add esi, eax
adc edx, 0
mov dword [ebp - 0x24], edx
cmp edx, dword [ebp - 0x1c]
jl 0x41d5e0
jg 0x41d68b
cmp esi, ebx
jb 0x41d5e0
jmp 0x41d68b
mov eax, dword [edi]
test eax, eax
je 0x41d67e
mov ecx, dword [edi + 8]
sub ecx, eax
cmp ecx, 0x1000
jb 0x41d660
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d6b2
mov eax, edx
push ecx
push eax
call fcn.00451449
mov dword [edi], 0
add esp, 8
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push 0xc
push edi
call fcn.00451449
add esp, 8
xor edi, edi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
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.00450db2
mov esp, ebp
pop ebp
ret
call fcn.00460976
call fcn.004139c0
int3
Function at 0x41d6c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41d745
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41d724
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov edx, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450db2
mov esp, ebp
pop ebp
ret
or edi, 0xffffffff
push esi
or ebx, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov edx, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450db2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
or edx, eax
pop ebx
call fcn.00450db2
mov esp, ebp
pop ebp
ret