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

Disassembly:
push 0x3c
mov eax, 0x428522
call fcn.004280c3
mov esi, ecx
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x407e46
mov al, 1
jmp 0x407e8b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x407e57
xor al, al
jmp 0x407e8b
lea ecx, [ebp - 0x48]
call fcn.00408732
lea ecx, [ebp - 0x20]
call fcn.00406fe9
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
call fcn.00408765
test al, al
je 0x407e80
mov ebx, dword [ebp - 0x28]
shr ebx, 4
and bl, 1
push dword [ebp - 0x20]
call fcn.0041928c
pop ecx
mov al, bl
call fcn.00428091
ret

Function at 0x407e9b
Capabilities:
Create directory

Disassembly:
push 0x24
mov eax, 0x428554
call fcn.004280c3
mov esi, ecx
call fcn.00408753
cmp eax, 0xffffffff
je 0x407ebe
test al, 0x10
je 0x407ebe
mov al, 1
jmp 0x407ff0
mov ecx, esi
call fcn.00408f17
test al, al
lea ecx, [esi + 8]
cmove ecx, esi
call fcn.00408df2
xor ebx, ebx
test al, al
je 0x407ee5
cmp word [ecx + 6], bx
jne 0x407ee5
xor al, al
jmp 0x407ff0
mov ecx, esi
call fcn.00409029
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], eax
call fcn.0040700d
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.00407396
mov ebx, dword [ebp - 0x20]
mov edx, eax
mov edi, dword [ebp - 0x1c]
xor eax, eax
inc eax
mov dword [ebp - 0x10], eax
test edx, edx
js 0x407f30
lea ecx, [edi - 1]
cmp edx, ecx
jne 0x407f30
cmp edi, eax
jne 0x407f25
jmp 0x407fe6
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x1c], edi
mov word [ebx + ecx*2], ax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00407094
mov byte [ebp - 4], 1
mov esi, edi
jmp 0x407f8a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x407f9a
lea ecx, [ebp - 0x20]
call fcn.00407396
mov esi, eax
test esi, esi
js 0x407f9a
je 0x407f9a
cmp esi, 1
jne 0x407f73
movzx eax, word [ebx]
cmp eax, 0x5c
je 0x407f9a
cmp eax, 0x2f
je 0x407f9a
lea eax, [esi + 1]
cmp dword [ebp - 0x14], eax
jae 0x407f9a
cmp esi, edi
jae 0x407f8a
mov edi, esi
xor eax, eax
mov dword [ebp - 0x1c], edi
mov word [ebx + esi*2], ax
mov ecx, ebx
call fcn.00407e26
test al, al
je 0x407f44
mov edi, dword [ebp - 0x2c]
jmp 0x407fd4
mov edi, dword [ebp - 0x2c]
mov byte [ebp - 0x10], 0
jmp 0x407fdf
lea ecx, [edi + 2]
lea ecx, [ecx + esi*2]
call fcn.00408da9
test eax, eax
jns 0x407fb7
mov esi, dword [ebp - 0x28]
jmp 0x407fba
inc esi
add esi, eax
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.0040718e
mov ebx, dword [ebp - 0x20]
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x407f9d
cmp esi, dword [ebp - 0x28]
jl 0x407fa3
xor eax, eax
inc eax
mov dword [ebp - 0x10], eax
push edi
call fcn.0041928c
pop ecx
push ebx
call fcn.0041928c
mov al, byte [ebp - 0x10]
pop ecx
call fcn.00428091
ret
Function at 0x407ff6
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, ecx
call fcn.00408753
cmp eax, 0xffffffff
je 0x40801e
test al, 0x10
jne 0x40801e
test al, 1
je 0x40801e
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
jne 0x40801e
xor al, al
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
pop esi
setne al
ret

Function at 0x40802c
Capabilities:
Delete directory
Set file attributes

Disassembly:
push 0x54
mov eax, 0x42859e
call fcn.004280c3
mov esi, ecx
lea ecx, [ebp - 0x60]
call fcn.00408732
lea ecx, [ebp - 0x38]
call fcn.00406fe9
and dword [ebp - 4], 0
lea ecx, [ebp - 0x60]
push dword [esi]
call fcn.00408765
test al, al
je 0x408073
mov ebx, dword [ebp - 0x40]
mov eax, ebx
shr eax, 4
test al, 1
jne 0x408084
push 0x10b
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push dword [ebp - 0x38]
call fcn.0041928c
pop ecx
xor al, al
call fcn.00428091
ret
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x38]
shr ebx, 0xa
call fcn.0041928c
pop ecx
test bl, 1
jne 0x408171
push esi
lea ecx, [ebp - 0x18]
call fcn.00407094
push 0x5c
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call fcn.004067b6
mov edi, dword [ebp - 0x14]
or dword [ebp - 0x28], 0xffffffff
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00406fe9
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x24]
call fcn.0040712d
push 0x2a
lea ecx, [ebp - 0x24]
call fcn.004067b6
lea ecx, [ebp - 0x60]
call fcn.00408732
lea ecx, [ebp - 0x38]
call fcn.00406fe9
mov byte [ebp - 4], 4
jmp 0x408137
cmp edi, dword [ebp - 0x14]
jae 0x40810b
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0x14], edi
mov word [eax + edi*2], cx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.00407309
mov eax, dword [ebp - 0x40]
shr eax, 4
test al, 1
je 0x40812b
lea ecx, [ebp - 0x18]
call fcn.0040802c
jmp 0x408133
mov ecx, dword [ebp - 0x18]
call fcn.00407ff6
test al, al
je 0x408195
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x28]
call fcn.00408b91
test al, al
jne 0x4080fa
push dword [ebp - 0x38]
call fcn.0041928c
push dword [ebp - 0x24]
call fcn.0041928c
cmp dword [ebp - 0x28], 0xffffffff
pop ecx
pop ecx
je 0x408168
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [ebp - 0x18]
call fcn.0041928c
pop ecx
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
je 0x40807c
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x40807e
push dword [ebp - 0x38]
call fcn.0041928c
push dword [ebp - 0x24]
call fcn.0041928c
cmp dword [ebp - 0x28], 0xffffffff
pop ecx
pop ecx
je 0x4081b6
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [ebp - 0x18]
jmp 0x408076
Function at 0x4081d7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov eax, dword [edi]
and dword [edi + 4], 0
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x210]
push eax
call fcn.004070c5
lea eax, [esi - 1]
mov ecx, 0x103
cmp ecx, eax
mov ecx, dword [ebp - 4]
pop edi
sbb al, al
xor ecx, ebp
inc al
pop esi
call fcn.0041927e
leave
ret

Function at 0x408296
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov eax, dword [edi]
and dword [edi + 4], 0
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x210]
push eax
call fcn.004070c5
lea eax, [esi - 1]
mov ecx, 0x103
cmp ecx, eax
mov ecx, dword [ebp - 4]
pop edi
sbb al, al
xor ecx, ebp
inc al
pop esi
call fcn.0041927e
leave
ret

Function at 0x4082ff
Capabilities:
Create directory

Disassembly:
push 0x5c
mov eax, 0x4285c8
call fcn.004280f6
mov dword [ebp - 0x2c], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov esi, eax
shl esi, 2
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edi, eax
xor edi, esi
shl edi, 0xc
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov esi, eax
xor esi, edi
xor edi, edi
mov dword [ebp - 0x24], esi
push dword [ebp - 0x2c]
mov ecx, ebx
call fcn.004070c5
xor edx, edx
mov ecx, esi
shr esi, 4
and ecx, 0xf
cmp ecx, 0xa
sbb al, al
and al, 0xf9
add al, 0x37
add al, cl
mov byte [ebp + edx - 0x20], al
inc edx
cmp edx, 8
jb 0x408347
cmp edx, 0x10
jae 0x40841c
lea eax, [ebp - 0x20]
mov byte [ebp + edx - 0x20], 0
push eax
mov ecx, ebx
call fcn.00407347
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov esi, dword [ebx]
inc eax
push 1
add eax, 1
pop ecx
cmove eax, ecx
lea ecx, [ebp - 0x68]
add dword [ebp - 0x24], eax
call fcn.00408732
lea ecx, [ebp - 0x40]
call fcn.00406fe9
and dword [ebp - 4], 0
lea ecx, [ebp - 0x68]
push esi
call fcn.00408765
or dword [ebp - 4], 0xffffffff
mov bl, al
push dword [ebp - 0x40]
call fcn.0041928c
pop ecx
test bl, bl
je 0x4083d2
push 0xb7
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov ebx, dword [ebp - 0x28]
jmp 0x4083f5
mov ebx, dword [ebp - 0x28]
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x408417
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x50
je 0x4083f5
cmp eax, 0xb7
jne 0x408402
mov esi, dword [ebp - 0x24]
inc edi
cmp edi, 0x64
jb 0x40833b
mov eax, dword [ebx]
xor ecx, ecx
and dword [ebx + 4], 0
mov word [eax], cx
xor al, al
call fcn.004280a5
ret 8
xor eax, eax
inc eax
jmp 0x40840f
call fcn.004195b4
int3
Function at 0x408753
Capabilities:
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
ret

Function at 0x408c8a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408cb0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x408cb0
xor al, al
jmp 0x408cc4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x408d4b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, 0x400000
push esi
mov esi, dword [ebp + 0xc]
push edi
and dword [ebx], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp esi, edx
mov eax, esi
push 0
cmova eax, edx
and dword [ebp + 0x10], 0
lea edx, [ebp + 0x10]
push edx
push eax
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, dword [ebp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x408da0
test ecx, ecx
je 0x408d9c
add edi, ecx
mov edx, 0x400000
sub esi, ecx
mov ecx, dword [ebp - 4]
jne 0x408d66
mov al, 1
jmp 0x408da2
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40b994
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
lea eax, [esp + 8]
push ebx
push esi
push edi
push eax
lea eax, [esp + 0x14]
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcessAffinityMask]
xor esi, esi
test eax, eax
je 0x40b9dc
cmp dword [esp + 0x10], esi
je 0x40b9dc
mov edx, esi
mov ecx, esi
mov eax, dword [esp + 0x10]
shr eax, cl
and eax, 1
add edx, eax
inc ecx
cmp ecx, 0x20
jb 0x40b9c9
jmp 0x40b9eb
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov edx, dword [esp + 0x30]
mov eax, 0x40000000
mov dword [edi], edx
lea ecx, [esp + 0x10]
mov dword [edi + 4], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], esi
mov dword [edi + 8], eax
mov dword [edi + 0xc], esi
call fcn.0040967d
test al, al
je 0x40ba3e
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], esi
shrd esi, eax, 5
push 0x11
shr eax, 5
pop ebx
mul ebx
mov ecx, eax
mov eax, esi
mul ebx
add ecx, edx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4104ba
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push eax
inc ebx
add esi, 8
push ebx
push 0
push 0
mov ecx, esi
call fcn.00408cc9
test al, al
jne 0x4104e6
mov eax, 0x80004005
jmp 0x41053e
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00408cc9
test al, al
je 0x41052f
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 8], eax
jne 0x41052f
cmp dword [ebp - 4], edi
jne 0x41052f
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
je 0x41052f
lea eax, [ebp + 0xc]
mov ecx, esi
push eax
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.00408cc9
test al, al
jne 0x410531
xor bl, bl
xor ecx, ecx
mov eax, 0x80004005
test bl, bl
pop edi
cmovne eax, ecx
pop esi
pop ebx
leave
ret 0xc

Function at 0x41151a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
jne 0x411535
lea ecx, [esi + 4]
call fcn.00406748
test eax, eax
jne 0x41159d
push edi
lea edi, [esi + 8]
cmp dword [edi], ebx
jne 0x411548
mov ecx, edi
call fcn.00406748
test eax, eax
jne 0x41159c
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_ResetEvent]
test eax, eax
jne 0x41155a
call fcn.004066d8
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_ResetEvent]
test eax, eax
jne 0x41156b
call fcn.004066d8
mov byte [esi + 0x10], bl
cmp dword [esi + 0xc], ebx
je 0x411577
xor eax, eax
jmp 0x41159c
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x4114da
push ebx
push ebx
call fcn.0041e29e
add esp, 0x18
mov dword [esi + 0xc], eax
test eax, eax
jne 0x41159a
call fcn.004066d8
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416fdb
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x417020
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x416ffb
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
and dword [esi + 0x4c], 0
sub edi, 1
je 0x417009
mov byte [esi + 0xe0], 1
jmp 0x417019
push str.Unsupported_Method
lea ecx, [esi + 0xe4]
call fcn.0040724a
mov eax, 0x80004005
jmp 0x417073
xor edi, edi
cmp dword [esi + 0x4c], edi
je 0x41704f
lea eax, [esi + 0x38]
push eax
mov eax, dword [esi + 0x48]
push edi
push edi
push dword [eax + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
mov ecx, dword [esi + 0x48]
lea ecx, [ecx + 8]
call fcn.00408c6b
mov cl, al
call fcn.004100d8
test eax, eax
jne 0x417073
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x41705f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x4c], edi
cmp byte [esi + 0x34], 0
je 0x417071
push dword [esi + 0x44]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x4172ea
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
lea esi, [edi + 0x68]
lea ecx, [esi + 0xc]
call fcn.0040712d
push esi
push 0x407b43
push 0
push 0x61
push dword [0x438004]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov eax, dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov edx, 0xce4
lea ecx, [ebp - 0x10]
call fcn.0040955c
push dword [ebp - 0x10]
push dword [edi + 0x6c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [ebp - 0x10]
call fcn.0041928c
pop ecx
push 1
push dword [edi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
xor eax, eax
pop esi
leave
ret 8
Function at 0x417665
Capabilities:
Create thread

Disassembly:
push 0xa4
mov eax, 0x42959b
call fcn.004280c3
mov edi, edx
mov esi, ecx
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 0xac]
mov byte [ebx], 0
call fcn.00406fe9
and dword [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.00406fe9
xor ecx, ecx
mov dword [ebp - 0x90], ecx
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], ecx
mov byte [ebp - 4], 4
xorps xmm0, xmm0
mov word [ebp - 0x68], cx
lea ecx, [ebp - 0x64]
movlpd qword [ebp - 0x70], xmm0
call fcn.00406fe9
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.004146eb
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.00406fe9
mov dword [ebp - 4], 7
lea ecx, [ebp - 0xac]
push edi
mov dword [ebp - 0xb0], esi
call fcn.0040712d
push dword [ebp + 8]
lea ecx, [ebp - 0xa0]
call fcn.0040712d
push 0xf0
call fcn.0041943f
pop ecx
mov dword [ebp + 0x10], eax
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.004178ce
mov esi, eax
mov byte [ebp - 4], 7
mov dword [ebp - 0x94], esi
test esi, esi
je 0x417747
mov ecx, dword [esi]
push esi
call dword [ecx + 4]
mov ecx, dword [ebp - 0x90]
test ecx, ecx
je 0x417757
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
cmp byte [ebp + 0xc], 0
mov dword [ebp - 0x90], esi
je 0x417807
mov eax, dword [ebp - 0x94]
xor ecx, ecx
mov dword [ebp + 0xc], ecx
mov dword [eax + 0xd8], 1
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 9
push eax
push ecx
lea eax, [ebp - 0xb0]
push eax
push 0x417652
push ecx
push ecx
call fcn.0041e29e
mov esi, eax
add esp, 0x18
mov dword [ebp + 0xc], esi
test esi, esi
jne 0x4177b4
call fcn.004066d8
mov edi, eax
test edi, edi
je 0x4177b4
jmp 0x41784a
lea ecx, [ebp - 0x18]
call fcn.00406fe9
lea edx, [ebp - 0x18]
mov byte [ebp - 4], 0xb
mov ecx, 0xce4
call fcn.004095fa
mov ecx, dword [ebp - 0x94]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004172ea
push dword [ebp - 0x18]
call fcn.0041928c
pop ecx
mov byte [ebp - 4], 0xc
test esi, esi
je 0x417801
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
jne 0x417801
call fcn.004066d8
mov byte [ebp - 4], 7
jmp 0x417812
lea ecx, [ebp - 0xb0]
call fcn.00417438
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.0040712d
cmp dword [esi + 4], 0
jne 0x417839
mov eax, dword [ebp - 0x94]
mov ecx, esi
add eax, 0xe4
push eax
call fcn.0040712d
mov eax, dword [ebp - 0x94]
mov edi, dword [ebp - 0x28]
mov al, byte [eax + 0xe0]
mov byte [ebx], al
lea ecx, [ebp - 0xb0]
call fcn.0041785f
mov eax, edi
call fcn.00428091
ret 0x10
Function at 0x41798a
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42962a
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0xc], 0
je 0x4179f5
lea ecx, [ebp - 0x18]
call fcn.00406fe9
lea ecx, [ebp - 0x18]
call fcn.004081d7
test al, al
je 0x4179ec
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 4]
jne 0x4179e4
push dword [esi]
push dword [ebp - 0x18]
call fcn.0041e3bc
pop ecx
pop ecx
test eax, eax
je 0x4179ec
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
push dword [ebp - 0x18]
call fcn.0041928c
pop ecx
push dword [esi]
call fcn.0041928c
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret

Function at 0x417e05
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 8
mov eax, 0x4296c2
call fcn.004280c3
mov dword [ebp - 0x10], ecx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x417e93
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
mov esi, eax
cmp esi, 0xffffffff
je 0x417e8c
test esi, esi
jne 0x417e5b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x417e8c
push ebx
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x417e85
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, eax
call fcn.00417d1b
mov bl, al
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp + 8]
call fcn.0041928c
pop ecx
mov al, bl
call fcn.00428091
ret 0xc
Function at 0x4181a1
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x20
mov eax, 0x428c61
call fcn.004280c3
mov edi, edx
mov esi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
and dword [edi + 4], 0
mov byte [eax], 0
push dword [ebx + 4]
call fcn.0041928c
and dword [ebx + 4], 0
mov ecx, edi
and dword [ebx + 8], 0
mov dword [esp], str._Mozilla__n
call fcn.00406dc2
mov edx, edi
mov ecx, esi
call fcn.0041800b
push esi
lea ecx, [ebp - 0x2c]
call fcn.00407094
xor esi, esi
lea ecx, [ebp - 0x2c]
push str.:Zone.Identifier
mov dword [ebp - 4], esi
call fcn.004072c2
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, 0xffffffff
jne 0x41824d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push str.openFile
mov edx, str.readZoneIdError
mov ecx, edi
mov esi, eax
call fcn.00417ee4
push esi
mov edx, str.readZoneIdErrorCode
mov ecx, edi
call fcn.00417f11
jmp 0x41838d
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
mov dword [ebp + 8], 0xf4240
mov ecx, edi
test eax, eax
jne 0x41827b
push str.unknown
mov edx, str.zoneIdFileSize
call fcn.00417ee4
push str.unknown
jmp 0x4182b6
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.00417f61
cmp dword [ebp - 0x1c], 0
jg 0x4182b1
jl 0x418298
mov ecx, 0xf4240
cmp dword [ebp - 0x20], ecx
jae 0x4182b1
push str.true
mov edx, str.zoneIdBufferLargeEnough
mov ecx, edi
call fcn.00417ee4
mov eax, dword [ebp - 0x20]
mov dword [ebp + 8], eax
jmp 0x4182c2
push str.false
mov edx, str.zoneIdBufferLargeEnough
mov ecx, edi
call fcn.00417ee4
push dword [ebx + 4]
call fcn.0041928c
pop ecx
push dword [ebp + 8]
call fcn.004193c2
and dword [ebx + 8], 0
pop ecx
push 0
lea ecx, [ebp - 0x14]
mov dword [ebx + 4], eax
push ecx
mov ecx, dword [ebp + 8]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x418333
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push str.readFile
mov edx, str.readZoneIdError
mov ecx, edi
mov esi, eax
call fcn.00417ee4
push esi
mov edx, str.readZoneIdErrorCode
mov ecx, edi
call fcn.00417f11
push dword [ebx + 4]
call fcn.0041928c
and dword [ebx + 4], 0
and dword [ebx + 8], 0
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x41838d
mov eax, dword [ebp - 0x14]
push 0
mov dword [ebx + 8], eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 0xd]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, edi
test esi, esi
je 0x418371
cmp dword [ebp - 0x14], 0
jne 0x41836a
mov eax, str.false
jmp 0x418376
mov eax, str.true
jmp 0x418376
mov eax, str.unknown
push eax
mov edx, str.zoneIdTruncated
call fcn.00417ee4
push str._n_MozillaZoneIdentifierStartSentinel__n
mov ecx, edi
call fcn.00406dc2
push dword [ebp - 0x2c]
call fcn.0041928c
pop ecx
call fcn.00428091
ret 4
Function at 0x419eee
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x419f2d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x419f2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x419f2d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x419f2d
cmp dword [ecx + 0x74], 0xe
jbe 0x419f2d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x420916
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b68c
push 0x42b684
push str.FlsAlloc
push 0x1f
call fcn.004207f2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42094a
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a1b8]
call esi
jmp 0x420950
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x420994
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b69c
push 0x42b694
push str.FlsGetValue
push 0x21
call fcn.004207f2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4209cb
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a1b8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsGetValue]

Function at 0x4209d3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b6a4
push 0x42b69c
push str.FlsSetValue
push 0x22
call fcn.004207f2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x420a0d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42a1b8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsSetValue]