joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4051c2
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4271a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x4051e3
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x405279
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
push edi
lea eax, [ebp - 0x24]
push 0x41e628
push eax
call fcn.00404e07
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x405217
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
push ecx
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40524a
inc edi
jmp 0x4051fb
push 0
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x128]
push eax
call fcn.0040c210
pop ecx
push eax
lea eax, [ebp - 0x128]
mov ecx, esi
push eax
call fcn.004057ad
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00408783
leave
ret

Function at 0x4053fb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x4271a0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x103
jb 0x40542f
xor eax, eax
jmp 0x40547b
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x208
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
test eax, eax
lea ecx, [ebp - 0x108]
lea esi, [ebp - 0x310]
cmove esi, ecx
push esi
call fcn.0040c210
pop ecx
push eax
push esi
mov ecx, edi
call fcn.004057ad
xor eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00408783
leave
ret
Function at 0x405e50
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [0x42ad4e]
test edi, edi
jg 0x405e66
and dword [0x42ae88], 0
xor eax, eax
pop edi
ret
mov eax, 0x800
cmp edi, eax
push esi
cmova edi, eax
push edi
push dword [0x42ae90]
push dword [0x427c04]
call dword [sym.imp.KERNEL32.dll__lread]
cmp dword [0x427c20], 0
mov esi, eax
mov dword [0x42ae88], esi
je 0x405ee4
cmp esi, 0xffffffff
je 0x405ee4
cmp esi, edi
je 0x405ef5
test esi, esi
js 0x405ee4
mov ax, word [0x427024]
push dword [0x427c24]
inc ax
movzx eax, ax
push eax
call fcn.004039f4
mov esi, dword [0x42ae88]
test esi, esi
jne 0x405ede
push edi
push dword [0x42ae90]
push dword [0x427c04]
call dword [sym.imp.KERNEL32.dll__lread]
mov esi, eax
mov dword [0x42ae88], esi
cmp esi, 0xffffffff
cmovne edi, esi
cmp esi, edi
je 0x405ef5
push 2
call fcn.00401740
mov esi, dword [0x42ae88]
sub dword [0x42ad4e], esi
cmp dword [0x427c14], 0
mov edi, dword [0x42ae90]
mov dword [0x42ae8c], edi
je 0x405f31
test esi, esi
je 0x405f31
call fcn.00407cc8
xor byte [edi], al
movzx eax, byte [edi]
push eax
call fcn.00407da4
inc edi
pop ecx
sub esi, 1
jne 0x405f14
mov esi, dword [0x42ae88]
lea eax, [esi - 1]
mov dword [0x42ae88], eax
mov eax, esi
pop esi
pop edi
ret
Function at 0x407d1a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4271a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [0x427c1c]
mov esi, dword [ebp + 8]
call fcn.00407ce2
push 0xc
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.004037d2
add esp, 0x10
xor esi, esi
call fcn.00407cc8
xor byte [ebp + esi - 0x10], al
movzx eax, byte [ebp + esi - 0x10]
push eax
call fcn.00407da4
inc esi
pop ecx
cmp esi, 0xc
jl 0x407d4a
cmp dword [0x427c18], 0
movzx edx, byte [ebp - 5]
pop esi
je 0x407d88
movzx eax, byte [0x42ad47]
cmp dx, ax
jne 0x407d83
xor eax, eax
jmp 0x407d98
or eax, 0xffffffff
jmp 0x407d98
movzx ecx, byte [0x42ad4d]
xor eax, eax
cmp dx, cx
sete al
dec eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408783
leave
ret

Function at 0x407da4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x42a420]
mov eax, dword [esp + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42a6a0]
movzx eax, cl
add eax, dword [0x42a424]
imul eax, eax, 0x8088405
mov dword [0x42a420], ecx
mov ecx, dword [0x42a428]
inc eax
mov dword [0x42a424], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42a6a0]
mov dword [0x42a428], ecx
ret

Function at 0x409036
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x414f43
push ebx
push esi
call fcn.00414e6f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004126a3
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x414ef0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x414f42
push edi
push eax
call fcn.00412858
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x414f10
call fcn.0041281e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x414f41
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004126a3
add esp, 0x20
test eax, eax
jne 0x414f2f
push edi
call fcn.0041281e
jmp 0x414f37
push ebx
call fcn.0041281e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x415b5f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420a38
push 0x420a30
push str.FlsAlloc
push 0x1f
call fcn.00415a7b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415b93
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e228]
call esi
jmp 0x415b99
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x415bdd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420a48
push 0x420a40
push str.FlsGetValue
push 0x21
call fcn.00415a7b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415c14
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e228]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x415c1c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420a50
push 0x420a48
push str.FlsSetValue
push 0x22
call fcn.00415a7b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415c56
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41e228]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41c9f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41ca1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41ca1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x191820df
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x1a884531
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x833380
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2fd000]
push edi
jmp 0x83339a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8333a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x833390
mov eax, 1
add ebx, ebx
jne 0x8333b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8333c4
jne 0x8333e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8333e3
dec eax
add ebx, ebx
jne 0x8333d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8333a8
add ebx, ebx
jne 0x8333df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x833435
xor ecx, ecx
sub eax, 3
jb 0x8333fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x83346a
sar eax, 1
mov ebp, eax
jmp 0x833406
add ebx, ebx
jne 0x833406
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8333d4
inc ecx
add ebx, ebx
jne 0x833414
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8333d4
add ebx, ebx
jne 0x833421
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x833416
jne 0x833432
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x833416
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x833454
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x833446
jmp 0x833396
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x833454
add edi, ecx
jmp 0x833396
pop esi
mov edi, esi
mov ecx, 0x87a8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x833472
cmp byte [edi], 0x37
jne 0x833472
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x833477
lea edi, [esi + 0x42f000]
mov eax, dword [edi]
or eax, eax
je 0x8334ef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x445078]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4451b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8334a4
mov ecx, edi
jns 0x8334d3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4451bc]
or eax, eax
je 0x8334e9
mov dword [ebx], eax
add ebx, 4
jmp 0x8334c1
call dword [esi + 0x4451cc]
mov ebp, dword [esi + 0x4451c0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x833523
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x8d4058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008d41a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x8d407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8d406a
add dl, dl
jne 0x8d4089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8d40dc
xor eax, eax
add dl, dl
jne 0x8d4096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8d417d
add dl, dl
jne 0x8d40a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d40b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d40bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d40c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8d40d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8d4075
mov eax, 1
add dl, dl
jne 0x8d40ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d40f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8d40e1
sub eax, ebx
mov ebx, 1
jne 0x8d4128
mov ecx, 1
add dl, dl
jne 0x8d410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8d4119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8d4105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8d4075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8d413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8d414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8d4136
cmp eax, 0x7d00
jae 0x8d416d
cmp eax, 0x500
jb 0x8d4168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8d4075
cmp eax, 0x7f
ja 0x8d4170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8d4075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8d419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x8d4075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4027f4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ecx
xor eax, eax
push eax
push eax
push eax
push 0x402729
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
call fcn.00403d3d
push dword [esp + 4]
push ecx
push dword [esp + 0xc]
push ecx
push dword [esp + 0x14]
mov ecx, 0x452cc0
call fcn.0040285e
pop ecx
mov ecx, eax
call fcn.0040285e
pop ecx
mov ecx, eax
call fcn.0040285e
push eax
call fcn.00403c92
pop ecx
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x408657
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x408678
jl 0x40866f
test edi, edi
jne 0x408678
xor eax, eax
xor edx, edx
jmp 0x408739
cmp dword [ebx + 0x38], 0
je 0x40868d
push eax
push edi
push dword [ebp + 8]
call fcn.0040873f
jmp 0x408739
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4086d4
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4086d4
cmp eax, edi
jb 0x4086ae
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040b950
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4086da
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40872e
mov ecx, ebx
call fcn.00407eee
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x408719
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041689b
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40872e
jmp 0x4086ec
test edx, edx
je 0x40872e
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041689b
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40b72e
Capabilities:
Parse pe header

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

Function at 0x41df31
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f398
push 0x42f390
push str.FlsAlloc
push 0x1e
call fcn.0041dd9e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41df65
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b144]
call esi
jmp 0x41df6b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x41f4b5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f157

Function at 0x41f4c0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f2e6

Function at 0x41f8ba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040b8a0
mov eax, dword [0x436040]
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.0041cb8f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41f8fc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41fa58
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042a250
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 + 0x453670]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00420a8a
mov ecx, dword [esi*4 + 0x453670]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41fa51
cmp eax, dword [edi + ecx + 0x24]
jne 0x41fa51
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41fa51
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00420a8a
add esp, 0x14
test edx, edx
jl 0x41fa51
jg 0x41f9c7
test eax, eax
jb 0x41fa51
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41fa51
jl 0x41f9e1
cmp dword [ebp - 0x1008], eax
ja 0x41fa51
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41f9ff
test ebx, ebx
je 0x41fa38
cmp ecx, edi
jae 0x41fa38
mov al, byte [ecx]
cmp al, 0xd
jne 0x41fa19
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41fa25
cmp byte [ecx + 1], 0xa
jne 0x41fa25
inc ecx
jmp 0x41fa25
movzx eax, al
movsx eax, byte [eax + 0x436300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41f9ff
cmp edx, ebx
jne 0x41f9ff
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41fa56
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040aa76
leave
ret
Function at 0x41ff28
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x453670]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ff68
cmp byte [ebx], 0xa
jne 0x41ff68
or byte [eax + edi + 0x28], 4
jmp 0x41ff6d
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42006b
mov al, byte [edx]
cmp al, 0x1a
je 0x42004d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41ff9c
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ffc1
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ffcb
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41ff7e
jmp 0x42006b
push 0
lea eax, [ebp - 0xc]
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 0x420048
cmp dword [ebp - 0xc], 0
je 0x420048
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x453670]
test byte [eax + edi + 0x28], 0x48
je 0x420022
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42000d
mov byte [esi], dl
jmp 0x42001e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x453670]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42006b
cmp byte [ebp - 1], 0xa
jne 0x420031
cmp esi, ebx
jne 0x420031
mov byte [esi], 0xa
jmp 0x42006a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00420aa8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42006b
mov byte [esi], 0xd
jmp 0x42006a
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x453670]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420067
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42006b
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x420074
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x453670]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4200b7
cmp word [esi], dx
jne 0x4200b7
or byte [edi + eax + 0x28], 4
jmp 0x4200bc
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x42020f
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4201ef
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4200fe
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x420134
cmp eax, edx
jae 0x420140
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4200d6
jmp 0x42020f
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4201eb
cmp dword [ebp - 0x14], 0
je 0x4201eb
mov eax, dword [ebx*4 + 0x453670]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4201c3
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x42018c
mov word [esi], cx
jmp 0x4201bf
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x453670]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x453670]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x453670]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x42020f
pop ebx
cmp word [ebp - 4], bx
jne 0x4201d4
cmp esi, dword [ebp + 0xc]
jne 0x4201d4
mov word [esi], bx
jmp 0x42020c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00420aa8
add esp, 0x10
cmp word [ebp - 4], bx
je 0x42020f
push 0xd
jmp 0x420208
mov ecx, dword [ebx*4 + 0x453670]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420206
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42020f
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret