joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404850
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x44f014]
xor eax, esp
mov dword [esp + 8], eax
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [ebx + 0x8c], 1
jne 0x4048f2
xor eax, eax
cmp dword [ebx + 0x60], 8
mov word [esp + 0xc], ax
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x4c]
jb 0x40488b
mov eax, dword [eax]
push str.rb__ccsUTF_8
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0042018d
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x4048f2
push eax
push 2
lea eax, [esp + 0x14]
push 1
push eax
call fcn.0042192b
push dword [esp + 0x20]
call fcn.004202f9
mov ax, word [esp + 0x20]
add esp, 0x14
cmp al, 0xff
jne 0x4048cf
cmp ah, 0xfe
je 0x4048f2
cmp ah, 0xff
jne 0x4048d8
cmp al, 0xfe
je 0x4048f2
mov eax, dword [edi]
test eax, eax
je 0x4048eb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
mov ecx, ebx
call fcn.00407760
lea esi, [ebx + 0x4c]
push 1
mov ecx, esi
call fcn.00413540
add esp, 4
test eax, eax
je 0x40491f
cmp eax, 1
jne 0x404971
push ecx
mov ecx, esi
call fcn.0040f690
add esp, 4
test al, al
je 0x404971
mov dword [edi], 0xffffffff
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x404929
mov eax, dword [esi]
push 0
push 0x200080
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x4049c8
cmp dword [esi + 0x14], 8
jb 0x404951
mov esi, dword [esi]
push 0
push 0x200080
push 1
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x404987
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00416ec0
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 0x8c], 1
push 0
jne 0x4049a9
mov ecx, 0xfeff
mov word [esp + 0x10], cx
lea ecx, [esp + 0x14]
push ecx
push 2
lea ecx, [esp + 0x18]
jmp 0x4049c0
lea ecx, [esp + 0x14]
mov word [esp + 0x10], 0xbbef
push ecx
mov byte [esp + 0x16], 0xbf
lea ecx, [esp + 0x14]
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00416ec0
mov esp, ebp
pop ebp
ret 4
Function at 0x4049e0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438b8b
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x44f014]
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 edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404af5
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x238], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x234], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404a55
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00402040
xor bl, bl
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
push 0
cmovae eax, dword [ebp - 0x248]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x404aa8
cmp eax, 0xb7
je 0x404aa8
cmp eax, 0x50
jne 0x404aaa
mov bl, 1
mov ecx, dword [ebp - 0x234]
cmp ecx, 8
jb 0x404aea
mov edx, dword [ebp - 0x248]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404ae0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404c70
push ecx
push edx
call fcn.00417151
add esp, 8
test bl, bl
jne 0x404af5
xor al, al
jmp 0x404c52
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x220], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x21c], 0
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404b20
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00402040
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404b70
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x260]
call fcn.00402040
lea edx, [ebp - 0x260]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.004106e0
mov byte [ebp - 4], 0
mov bl, al
mov ecx, dword [ebp - 0x24c]
cmp ecx, 8
jb 0x404be7
mov edx, dword [ebp - 0x260]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404bdd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404c75
push ecx
push edx
call fcn.00417151
add esp, 8
test bl, bl
je 0x404c14
lea ecx, [edi + 0x4c]
lea eax, [ebp - 0x230]
cmp ecx, eax
je 0x404c12
cmp dword [ebp - 0x21c], 8
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.0040a120
mov bl, 1
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x404c50
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404c46
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404c7a
push ecx
push edx
call fcn.00417151
add esp, 8
invalid
Function at 0x404f50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x44f014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x404f70
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
sar esi, 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
add esi, esi
push esi
push edi
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 4
push 0x449c24
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416ec0
mov esp, ebp
pop ebp
ret 4

Function at 0x404fe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x44f014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x405000
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push esi
push edi
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 2
push 0x449c2c
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416ec0
mov esp, ebp
pop ebp
ret 4
Function at 0x40afc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4391c0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x44f014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00416ece
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00416824
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
Function at 0x40e070
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4394a7
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x44f014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x234], 0
mov dword [esi + 0x64], 0x1e
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40e4b1
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e0f3
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.0040a120
lea eax, [esi + 0x34]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00403380
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x264]
push 6
push str..trace
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
call fcn.00402040
lea edx, [ebp - 0x264]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24c]
call fcn.00410820
mov byte [ebp - 4], 1
mov bl, al
mov ecx, dword [ebp - 0x250]
cmp ecx, 8
jb 0x40e1b3
mov edx, dword [ebp - 0x264]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40e1a9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e50a
push ecx
push edx
call fcn.00417151
add esp, 8
test bl, bl
je 0x40e454
lea edx, [ebp - 0x24c]
lea ecx, [ebp - 0x234]
call fcn.004106e0
test al, al
je 0x40e454
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x40e201
mov eax, 0xa
mov dword [esi + 0x64], eax
jmp 0x40e454
push 6
push str..debug
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
call fcn.00402040
lea edx, [ebp - 0x264]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x234]
call fcn.00410820
mov byte [ebp - 4], 1
mov bl, al
mov ecx, dword [ebp - 0x250]
cmp ecx, 8
jb 0x40e28c
mov edx, dword [ebp - 0x264]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40e282
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e50f
push ecx
push edx
call fcn.00417151
add esp, 8
test bl, bl
je 0x40e2bd
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x40e2bd
mov eax, 0x14
mov dword [esi + 0x64], eax
jmp 0x40e454
lea ecx, [ebp - 0x234]
call fcn.004108c0
test al, al
je 0x40e454
push 9
push str.asu.trace
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
call fcn.00402040
lea edx, [ebp - 0x264]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x234]
call fcn.004106e0
mov byte [ebp - 4], 1
mov bl, al
mov ecx, dword [ebp - 0x250]
cmp ecx, 8
jb 0x40e35b
mov edx, dword [ebp - 0x264]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40e351
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
invalid
invalid
Function at 0x40e34d
Capabilities:
Check if file exists

Disassembly:
ret
Function at 0x40f690
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push edi
mov edi, ecx
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x40f69d
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f84b
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40f6b6
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40f6c7
mov eax, dword [edi]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
invalid
xchg esp, eax
Function at 0x410a60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.00417f10
mov eax, dword [0x44f014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, edx
mov edi, ecx
push 1
mov ecx, esi
call fcn.00413540
add esp, 4
test eax, eax
je 0x410ab3
cmp eax, 1
jne 0x410aa1
push ecx
mov ecx, esi
call fcn.0040f690
add esp, 4
test al, al
jne 0x410ab3
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416ec0
mov esp, ebp
pop ebp
ret
push ebx
xor ebx, ebx
cmp dword [edi + 0x14], 8
jb 0x410abe
mov edi, dword [edi]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esi + 0x14], 8
mov edi, eax
jb 0x410ae1
mov esi, dword [esi]
push 0
push 0x200080
push 4
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x410b20
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416ec0
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x2008]
push eax
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410b5f
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 0x2008]
lea eax, [ebp - 0x2004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x410b67
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp dword [ebp - 0x2008], 0x1000
je 0x410b20
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
test ebx, ebx
pop ebx
sete al
xor ecx, ebp
pop edi
pop esi
call fcn.00416ec0
mov esp, ebp
pop ebp
ret
Function at 0x413540
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4399a5
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x44f014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x413577
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x413594
test eax, 0x400
je 0x413594
mov eax, 1
jmp 0x41379e
cmp byte [ebp + 8], 0
je 0x4135ea
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4135a4
mov eax, dword [esi]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4135ea
lea eax, [ebp - 0x78]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x4135ea
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x50], 1
jbe 0x4135ea
mov eax, 3
jmp 0x41379e
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403380
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.00403380
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040f5c0
test al, al
je 0x4136ab
nop word [eax + eax]
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov edi, dword [ebp - 0x2c]
lea esi, [ebp - 0x44]
mov ebx, dword [ebp - 0x44]
cmovae ecx, edi
cmp dword [ebp - 0x30], 8
mov edx, dword [ebp - 0x34]
cmovae esi, ebx
cmp edx, dword [ebp - 0x1c]
jne 0x413663
test edx, edx
je 0x4136b1
sub esi, ecx
nop dword [eax + eax]
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x413663
add ecx, 2
sub edx, 1
jne 0x413650
jmp 0x4136b1
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x413684
test eax, 0x400
jne 0x413722
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
push eax
call fcn.0040a120
lea ecx, [ebp - 0x2c]
call fcn.0040f5c0
test al, al
jne 0x413620
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x30]
cmp ecx, 8
jb 0x4136eb
lea ecx, [ecx*2 + 2]
invalid
Function at 0x417cad
Capabilities:
Parse pe header

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

Function at 0x42a50a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43f5c4
push 0x43f5bc
push str.FlsAlloc
push 0x1f
call fcn.0042a375
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42a53e
push dword [ebp + 8]
mov ecx, esi
call dword [0x43b228]
call esi
jmp 0x42a544
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42a588
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43f5d4
push 0x43f5cc
push str.FlsGetValue
push 0x21
call fcn.0042a375
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42a5bf
push dword [ebp + 8]
mov ecx, esi
call dword [0x43b228]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42a5c7
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43f5dc
push 0x43f5d4
push str.FlsSetValue
push 0x22
call fcn.0042a375
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42a601
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43b228]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42b353
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x450d38]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42b393
cmp byte [ebx], 0xa
jne 0x42b393
or byte [edi + eax + 0x28], 4
jmp 0x42b398
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x42b497
mov dl, byte [eax]
cmp dl, 0x1a
je 0x42b47a
inc eax
cmp dl, 0xd
je 0x42b3c4
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x42b3ea
cmp eax, ecx
jae 0x42b3f8
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x42b3ac
jmp 0x42b497
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42b475
cmp dword [ebp - 0x10], 0
je 0x42b475
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x450d38]
test byte [eax + edi + 0x28], 0x48
je 0x42b44f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42b43a
mov byte [esi], dl
jmp 0x42b44b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x450d38]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42b497
cmp byte [ebp - 1], 0xa
jne 0x42b45e
cmp esi, ebx
jne 0x42b45e
mov byte [esi], 0xa
jmp 0x42b496
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042c2e5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42b497
mov byte [esi], 0xd
jmp 0x42b496
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x450d38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42b494
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42b497
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42b4a0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x450d38]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42b4e6
cmp word [ebx], dx
jne 0x42b4e6
or byte [eax + edi + 0x28], 4
jmp 0x42b4eb
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x42b64e
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x42b62e
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x42b52c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42b562
cmp eax, edx
jae 0x42b570
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x42b507
jmp 0x42b64e
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42b629
cmp dword [ebp - 0x18], 0
je 0x42b629
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x450d38]
test byte [eax + edi + 0x28], 0x48
je 0x42b5ff
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x42b5c3
mov word [esi], cx
jmp 0x42b5fa
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x450d38]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x450d38]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x450d38]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x42b64e
pop eax
cmp word [ebp - 4], ax
jne 0x42b60f
cmp esi, ebx
jne 0x42b60f
mov word [esi], ax
jmp 0x42b64b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042c2e5
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x42b64e
push 0xd
pop eax
jmp 0x42b60a
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x450d38]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x42b648
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x42b64e
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42b948
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x24
push ebx
push edi
cmp edx, 0xfffffffe
jne 0x42b972
call fcn.00421c1d
and dword [eax], 0
call fcn.00421c30
mov dword [eax], 9
jmp 0x42bccc
test edx, edx
js 0x42bcb4
cmp edx, dword [0x450f38]
jae 0x42bcb4
mov eax, edx
mov ecx, edx
shr ecx, 6
and eax, 0x3f
imul edi, eax, 0x38
xor ebx, ebx
mov dword [ebp - 8], ecx
inc ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ecx*4 + 0x450d38]
mov dword [ebp - 0x10], edi
mov cl, byte [edi + eax + 0x28]
mov byte [ebp - 1], cl
test bl, cl
je 0x42bcb4
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x7fffffff
jbe 0x42b9d8
call fcn.00421c1d
and dword [eax], 0
call fcn.00421c30
mov dword [eax], 0x16
jmp 0x42bcc7
test ecx, ecx
je 0x42bcb0
test byte [ebp - 1], 2
jne 0x42bcb0
cmp dword [ebp + 0xc], 0
je 0x42b9c0
push esi
mov esi, dword [edi + eax + 0x18]
mov al, byte [edi + eax + 0x29]
mov byte [ebp - 1], al
mov dword [ebp - 0x14], esi
xor esi, esi
movsx eax, al
sub eax, 1
je 0x42ba3c
sub eax, 1
jne 0x42ba32
mov eax, ecx
not eax
invalid