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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4303ed
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x45bb80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
lea ecx, [ebp - 0x28]
push 0x30
push esi
call fcn.00410940
cmp dword [ebp - 0x14], 7
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
cmova ecx, dword [ebp - 0x28]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x4118d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.00413360
cmp dword [ebp - 0x2c], 0xf
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
cmova ecx, dword [ebp - 0x40]
push ecx
push esi
push str.GetCurrentDirectoryW_failed:__ld__s
push str.filesystem
call fcn.004117e0
mov ecx, dword [ebp - 0x2c]
add esp, 0x18
mov byte [ebx], 0
cmp ecx, 0xf
jbe 0x4118ce
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4118c4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411972
push ecx
push edx
call fcn.00413fea
add esp, 8
xor ebx, ebx
jmp 0x41191f
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004135f0
add esp, 8
cmp byte [ebp - 0x44], 0
mov byte [ebx], 0
jne 0x4118f7
xor ebx, ebx
jmp 0x411917
cmp dword [ebp - 0x48], 0xf
lea ecx, [ebp - 0x5c]
mov eax, dword [ebp + 0xc]
cmova ecx, dword [ebp - 0x5c]
dec eax
push eax
push ecx
push ebx
call fcn.0041c960
push ebx
call fcn.004131c0
add esp, 0x10
lea ecx, [ebp - 0x5c]
call fcn.00410c60
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x411955
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41194b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411977
push ecx
push edx
call fcn.00413fea
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004141f6
mov esp, ebp
pop ebp
ret
call fcn.004177ef
call fcn.004177ef
int3
Function at 0x411980
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x45bb80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004134b0
add esp, 8
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 7
cmova eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4119c3
test al, 0x10
je 0x4119c3
mov esi, 1
jmp 0x4119c5
xor esi, esi
mov ecx, dword [ebp - 8]
cmp ecx, 7
jbe 0x4119fb
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4119f1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411a0c
push ecx
push edx
call fcn.00413fea
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004141f6
mov esp, ebp
pop ebp
ret
call fcn.004177ef
int3
Function at 0x411b50
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43043b
mov eax, dword fs:[0]
push eax
sub esp, 0x490
mov eax, dword [0x45bb80]
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, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x480], eax
mov eax, dword [ebp + 0x14]
push str._s_
mov dword [ebp - 0x47c], eax
lea eax, [ebp - 0x210]
push 0x200
push eax
call fcn.00412d70
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.004134b0
add esp, 0x18
cmp dword [ebp - 0x214], 7
lea ecx, [ebp - 0x478]
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 0
cmova eax, dword [ebp - 0x228]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x411d13
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop word [eax + eax]
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x49c]
push eax
call fcn.004135f0
add esp, 8
cmp byte [ebp - 0x484], 0
mov byte [ebp - 4], 1
jne 0x411c3a
push edi
push str.ERROR:_file_folder_name_containing_invalid_UTF_16_found_in_folder__s
push str.filesystem
push 0
call fcn.00410150
add esp, 0x10
jmp 0x411c72
cmp dword [ebp - 0x488], 0xf
lea ecx, [ebp - 0x49c]
push dword [ebp - 0x47c]
cmova ecx, dword [ebp - 0x49c]
mov eax, dword [ebp - 0x478]
push dword [ebp + 0x10]
shr eax, 4
and eax, 1
push eax
push ecx
call dword [ebp - 0x480]
add esp, 0x10
test eax, eax
jne 0x411ccd
cmp byte [ebp - 0x484], 0
mov byte [ebp - 4], 0
je 0x411cb9
mov ecx, dword [ebp - 0x488]
cmp ecx, 0xf
jbe 0x411cb9
mov edx, dword [ebp - 0x49c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x411caf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411d6b
push ecx
push edx
call fcn.00413fea
add esp, 8
lea eax, [ebp - 0x478]
push eax
push esi
call ebx
test eax, eax
jne 0x411c00
jmp 0x411d0c
cmp byte [ebp - 0x484], 0
je 0x411d0c
mov ecx, dword [ebp - 0x488]
cmp ecx, 0xf
jbe 0x411d0c
mov edx, dword [ebp - 0x49c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x411d02
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411d6b
push ecx
push edx
call fcn.00413fea
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x214]
cmp ecx, 7
jbe 0x411d4f
mov edx, dword [ebp - 0x228]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x411d45
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411d70
push ecx
push edx
call fcn.00413fea
add esp, 8
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.004141f6
mov esp, ebp
pop ebp
ret
call fcn.004177ef
call fcn.004177ef
int3
Function at 0x412120
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x45bb80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004134b0
add esp, 8
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 7
cmova eax, dword [ebp - 0x1c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41216b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41216b
or esi, 0xffffffff
jmp 0x41216d
xor esi, esi
mov ecx, dword [ebp - 8]
cmp ecx, 7
jbe 0x4121a3
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x412199
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4121b4
push ecx
push edx
call fcn.00413fea
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004141f6
mov esp, ebp
pop ebp
ret
call fcn.004177ef
int3

Function at 0x4121c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x45bb80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x7ff
push eax
lea eax, [ebp - 0x804]
mov byte [ebp - 0x804], 0
push eax
call fcn.0041c960
lea eax, [ebp - 0x804]
add esp, 0xc
lea edx, [eax + 1]
nop dword [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412200
push ebx
sub eax, edx
push esi
push edi
test eax, eax
jle 0x412244
dec eax
lea esi, [ebp - 0x804]
add esi, eax
mov cl, byte [esi]
and cl, 0xc0
cmp cl, 0x80
jne 0x412227
test eax, eax
jne 0x412210
lea eax, [ebp - 0x820]
mov dword [ebp - 0x820], esi
push eax
call fcn.00413080
add esp, 4
cmp eax, 0xffffffff
jne 0x412244
mov byte [esi], 0
mov al, byte [ebp - 0x803]
lea esi, [ebp - 0x803]
test al, al
je 0x4122bf
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp al, 0x2f
jne 0x4122b7
cmp byte [esi + 1], 0
je 0x4122b7
lea eax, [ebp - 0x804]
mov byte [esi], 0
push eax
lea eax, [ebp - 0x81c]
push eax
call fcn.004134b0
add esp, 8
lea eax, [ebp - 0x81c]
cmp dword [ebp - 0x808], 7
cmova eax, dword [ebp - 0x81c]
push 0
push eax
call ebx
test eax, eax
jne 0x4122a9
call edi
cmp eax, 0xb7
jne 0x4122d2
lea ecx, [ebp - 0x81c]
call fcn.0040b830
mov byte [esi], 0x2f
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x412260
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004141f6
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x81c]
call fcn.0040b830
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004141f6
mov esp, ebp
pop ebp
ret
Function at 0x412300
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x45bb80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004134b0
add esp, 8
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 7
cmova eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 8]
neg eax
sbb esi, esi
cmp ecx, 7
jbe 0x41236d
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x412363
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41237f
push ecx
push edx
call fcn.00413fea
add esp, 8
mov ecx, dword [ebp - 4]
lea eax, [esi + 1]
xor ecx, ebp
pop esi
call fcn.004141f6
mov esp, ebp
pop ebp
ret
call fcn.004177ef
int3

Function at 0x412390
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x45bb80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004134b0
add esp, 8
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 7
cmova eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 8]
neg eax
sbb esi, esi
neg esi
cmp ecx, 7
jbe 0x4123ff
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4123f5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412411
push ecx
push edx
call fcn.00413fea
add esp, 8
mov ecx, dword [ebp - 4]
lea eax, [esi - 1]
xor ecx, ebp
pop esi
call fcn.004141f6
mov esp, ebp
pop ebp
ret
call fcn.004177ef
int3
Function at 0x412420
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4304cd
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x45bb80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004134b0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push esi
push eax
call fcn.004134b0
add esp, 0x10
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x40]
cmova ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 7
push 3
cmova eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x14]
neg eax
sbb esi, esi
cmp ecx, 7
jbe 0x4124c7
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4124bd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41252e
push ecx
push edx
call fcn.00413fea
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 7
jbe 0x412511
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x412507
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41252e
push ecx
push edx
call fcn.00413fea
add esp, 8
lea eax, [esi + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004141f6
mov esp, ebp
pop ebp
ret
call fcn.004177ef
int3

Function at 0x412670
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004126d0
add esp, 8
mov esi, eax
test byte [ebp + 0xc], 8
je 0x4126c6
test esi, esi
je 0x4126c6
push esi
push 3
lea eax, [ebp - 4]
push 1
push eax
call fcn.0041e056
add esp, 0x10
cmp eax, 3
jne 0x4126b7
cmp byte [ebp - 4], 0xef
jne 0x4126b7
cmp byte [ebp - 3], 0xbb
jne 0x4126b7
cmp byte [ebp - 2], 0xbf
je 0x4126c4
push 0
push 0
push esi
call fcn.0041e3f9
add esp, 0xc
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x412870
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.0041e056
add esp, 0x10
pop ebp
ret
Function at 0x412890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 2
push 0
push ebx
call fcn.0041e3f9
push ebx
call fcn.0041ea58
push 0
push 0
push ebx
mov esi, eax
call fcn.0041e3f9
mov eax, 0x400
test esi, esi
cmovs esi, eax
lea edi, [esi + 1]
push edi
call fcn.0041785b
push dword [ebp + 8]
mov ebx, eax
push edi
push 1
push ebx
call fcn.0041e056
add esp, 0x30
mov dword [ebp - 4], eax
cmp eax, esi
jae 0x4128f0
lea ecx, [eax + 1]
push ecx
push ebx
call fcn.0041b368
mov esi, dword [ebp - 4]
jmp 0x412950
jbe 0x412955
lea edi, [eax + eax]
mov esi, eax
push edi
push ebx
call fcn.0041b368
push dword [ebp + 8]
mov ebx, eax
mov eax, esi
push eax
push 1
lea ecx, [eax + ebx]
push ecx
call fcn.0041e056
add esp, 0x18
test eax, eax
je 0x412946
add esi, eax
cmp esi, edi
jne 0x41292c
add edi, edi
push edi
push ebx
call fcn.0041b368
add esp, 8
mov ebx, eax
push dword [ebp + 8]
mov eax, edi
sub eax, esi
push eax
lea eax, [ebx + esi]
push 1
push eax
call fcn.0041e056
add esp, 0x10
test eax, eax
jne 0x412918
lea eax, [esi + 1]
push eax
push ebx
call fcn.0041b368
mov ebx, eax
add esp, 8
mov eax, dword [ebp + 0xc]
mov byte [ebx + esi], 0
pop edi
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x412970
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 2
push 0
push ebx
call fcn.0041e3f9
push ebx
call fcn.0041ea58
push 0
push 0
push ebx
mov esi, eax
call fcn.0041e3f9
mov eax, 0x400
test esi, esi
cmovs esi, eax
lea edi, [esi + 1]
push edi
call fcn.0041785b
push dword [ebp + 8]
mov ebx, eax
push edi
push 1
push ebx
call fcn.0041e056
add esp, 0x30
mov dword [ebp - 4], eax
cmp eax, esi
jae 0x4129d0
lea ecx, [eax + 1]
push ecx
push ebx
call fcn.0041b368
mov esi, dword [ebp - 4]
jmp 0x412a30
jbe 0x412a35
lea edi, [eax + eax]
mov esi, eax
push edi
push ebx
call fcn.0041b368
push dword [ebp + 8]
mov ebx, eax
mov eax, esi
push eax
push 1
lea ecx, [eax + ebx]
push ecx
call fcn.0041e056
add esp, 0x18
test eax, eax
je 0x412a26
add esi, eax
cmp esi, edi
jne 0x412a0c
add edi, edi
push edi
push ebx
call fcn.0041b368
add esp, 8
mov ebx, eax
push dword [ebp + 8]
mov eax, edi
sub eax, esi
push eax
lea eax, [ebx + esi]
push 1
push eax
call fcn.0041e056
add esp, 0x10
test eax, eax
jne 0x4129f8
lea eax, [esi + 1]
push eax
push ebx
call fcn.0041b368
mov ebx, eax
add esp, 8
xor eax, eax
mov byte [ebx + esi], 0
test esi, esi
je 0x412a4b
nop
cmp byte [eax + ebx], 0
je 0x412a54
inc eax
cmp eax, esi
jb 0x412a40
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00417840
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413220
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 8
call fcn.0041785b
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
push 0
push 0
push eax
push 0x413280
push 0
push 0
mov dword [eax + 4], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
push str.CreateThread_failure
setne cl
movzx ecx, cl
push ecx
push 0x330
push str.D:_acactuscactus_src_base_system.cpp
call fcn.004116d0
add esp, 0x10
mov eax, esi
pop esi
pop ebp
ret

Function at 0x414e76
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x414eb5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x414eb5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x414eb5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x414eb5
cmp dword [ecx + 0x74], 0xe
jbe 0x414eb5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41e851
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00414210
mov eax, dword [0x45bb80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041de56
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41e893
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41e9ef
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004142d0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x463838]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041b1a0
mov ecx, dword [esi*4 + 0x463838]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x41e9e8
cmp eax, dword [ecx + edi + 0x24]
jne 0x41e9e8
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e9e8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041b1a0
add esp, 0x14
test edx, edx
jl 0x41e9e8
jg 0x41e95e
test eax, eax
jb 0x41e9e8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41e9e8
jl 0x41e978
cmp dword [ebp - 0x1008], eax
ja 0x41e9e8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41e996
test ebx, ebx
je 0x41e9cf
cmp ecx, edi
jae 0x41e9cf
mov al, byte [ecx]
cmp al, 0xd
jne 0x41e9b0
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41e9bc
cmp byte [ecx + 1], 0xa
jne 0x41e9bc
inc ecx
jmp 0x41e9bc
movzx eax, al
movsx eax, byte [eax + 0x45bd50]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41e996
cmp edx, ebx
jne 0x41e996
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41e9ed
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004141f6
leave
ret
Function at 0x42262f
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 + 0x463838]
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 0x42266f
cmp byte [ebx], 0xa
jne 0x42266f
or byte [edi + eax + 0x28], 4
jmp 0x422674
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 0x422773
mov dl, byte [eax]
cmp dl, 0x1a
je 0x422756
inc eax
cmp dl, 0xd
je 0x4226a0
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4226c6
cmp eax, ecx
jae 0x4226d4
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 0x422688
jmp 0x422773
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 0x422751
cmp dword [ebp - 0x10], 0
je 0x422751
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x463838]
test byte [eax + edi + 0x28], 0x48
je 0x42272b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x422716
mov byte [esi], dl
jmp 0x422727
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x463838]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x422773
cmp byte [ebp - 1], 0xa
jne 0x42273a
cmp esi, ebx
jne 0x42273a
mov byte [esi], 0xa
jmp 0x422772
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041b1be
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x422773
mov byte [esi], 0xd
jmp 0x422772
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x463838]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x422770
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x422773
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42277c
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 + 0x463838]
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 0x4227c2
cmp word [ebx], dx
jne 0x4227c2
or byte [eax + edi + 0x28], 4
jmp 0x4227c7
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 0x42292a
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 0x42290a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x422808
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42283e
cmp eax, edx
jae 0x42284c
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 0x4227e3
jmp 0x42292a
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 0x422905
cmp dword [ebp - 0x18], 0
je 0x422905
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x463838]
test byte [eax + edi + 0x28], 0x48
je 0x4228db
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 0x42289f
mov word [esi], cx
jmp 0x4228d6
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x463838]
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 + 0x463838]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x463838]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x42292a
pop eax
cmp word [ebp - 4], ax
jne 0x4228eb
cmp esi, ebx
jne 0x4228eb
mov word [esi], ax
jmp 0x422927
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041b1be
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x42292a
push 0xd
pop eax
jmp 0x4228e6
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x463838]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x422924
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x42292a
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret