joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4283aa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x428436
cmp dword [esi + 0x20], 0
je 0x428436
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x428436
cmp dword [ebp + 8], 0
je 0x428436
xor edi, edi
mov ebx, edi
call fcn.0043005b
push 0x69bc68
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
test eax, eax
je 0x42841a
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x428436
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.0045f21e
mov edi, eax
add esp, 0xc
test edi, edi
je 0x428432
mov ecx, esi
call fcn.004280bc
mov eax, edi
jmp 0x428438
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42db49
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x66c1c1
call fcn.00603707
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x42db6f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x42dbc9
lea ecx, [ebp - 0x10]
call fcn.004027d0
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x68edb4]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0063ef64
push eax
call fcn.0040b820
add esp, 0x14
test esi, esi
je 0x42dbbc
push esi
call fcn.0063f050
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00421ef2
mov eax, ebx
call fcn.006036d5
ret 8

Function at 0x42e693
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x84], ebx
test ebx, 0xffff0000
jne 0x42e6be
cmp dword [edi + 0x80], 0
jne 0x42e6be
movzx eax, bx
mov dword [edi + 0x80], eax
call fcn.0043005b
push 5
push ebx
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0042e92c
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42e6eb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call fcn.0043005b
push 5
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42e71e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push edi
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.0042e731
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x43eab4
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x43eb07
push esi
push dword [ebp + 8]
call fcn.0043ec9a
mov edi, eax
test edi, edi
je 0x43eb02
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x43eb02
mov eax, dword [ebp - 8]
jmp 0x43eb19
mov eax, dword [ebp + 0x10]
jmp 0x43eb19
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc

Function at 0x4408af
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x4408f4
call fcn.0043005b
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4408f1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44093b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x440917
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x68edb4]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x440938
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x68edb4]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x4437b8
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret 8

Function at 0x44e503
Capabilities:
Delete registry key

Disassembly:
push 8
mov eax, 0x66ea50
call fcn.00603707
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406f30
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp esi, 0x80000000
jne 0x44e565
call fcn.004300a9
cmp eax, 1
jne 0x44e565
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareClasses_
push eax
call fcn.0040a240
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00423997
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.00421ef2
inc esi
push dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
push esi
test ecx, ecx
je 0x44e577
call fcn.0043f729
jmp 0x44e57d
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp - 0x10]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.00421ef2
mov eax, esi
call fcn.006036d5
ret 0xc
Function at 0x44e6c8
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0x66eae6
call fcn.00603707
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406f30
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp esi, 0x80000000
jne 0x44e726
call fcn.004300a9
cmp eax, 1
jne 0x44e726
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareClasses_
push eax
call fcn.0040a240
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00423997
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00421ef2
inc esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00421ef2
mov eax, esi
call fcn.006036d5
ret 0x10

Function at 0x44e74d
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x66eb18
call fcn.00603707
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406f30
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp esi, 0x80000000
jne 0x44e7ab
call fcn.004300a9
cmp eax, 1
jne 0x44e7ab
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareClasses_
push eax
call fcn.0040a240
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00423997
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00421ef2
inc esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00421ef2
mov eax, esi
call fcn.006036d5
ret 0x14

Function at 0x454c17
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0042d677
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x454c53
call fcn.0045537e
mov dword [esi + 0xc], 1
jmp 0x454c58
call fcn.0045537e
cmp dword [esi], 0
je 0x454ca3
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x454c7e
push edi
call fcn.00427652
lea ecx, [edi + 1]
push ecx
jmp 0x454c8d
push 0xff
call fcn.00421de2
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0042a258
pop edi
jmp 0x454cc7
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x454cc7
push dword [esi]
push dword [ebp - 4]
call fcn.0045923e
pop esi
leave
ret 0xc
Function at 0x455200
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0045537e
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x455248
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00427652
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0042a258
jmp 0x455253
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0045923e
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x462623
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x462679
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x462652
call fcn.0043172b
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x462667
call fcn.0043172b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x462679
call fcn.0043172b
call fcn.0043005b
cmp dword [eax + 0x3c], 0
je 0x46268e
push edi
mov ecx, ebx
call fcn.00461c3d
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00462963
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4626b7
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4626c3
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x464cfc
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
je 0x464d43
push 0x69cbf4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x464d52
push str.MoveFileTransactedA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x464d52
push dword [esi]
mov ecx, edi
push 2
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x68edb4]
call edi
jmp 0x464d54
cmp dword [esi + 4], ebx
je 0x464d52
pop edi
pop esi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileA]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x467d54
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.006436aa
pop ecx
test eax, eax
jne 0x467d96
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0043f1b2
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x467d5c
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret
Function at 0x47c0b8
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x47c0f9
push 0x69cbf4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x47c108
push str.SetFileAttributesTransactedA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x47c108
push dword [esi]
mov ecx, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x68edb4]
call edi
jmp 0x47c10a
cmp dword [esi + 4], 0
je 0x47c108
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x497d33
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.004f7f4b
call fcn.004300af
cmp dword [eax + 0x14], 0
jne 0x497d4e
mov ecx, esi
pop esi
jmp fcn.00497013
pop esi
ret

Function at 0x499052
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00429dad
call fcn.004300af
cmp dword [eax + 0x14], 0
jne 0x49906d
mov ecx, esi
pop esi
jmp fcn.0049884a
pop esi
ret

Function at 0x4a2fa4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x4a2fbd
call fcn.0043005b
mov esi, dword [eax + 0xc]
push 0x6aab14
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4a2fff
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4a2fff
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4a2fff
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004a3008
jmp 0x4a3001
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x5e9349
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x5e93c0
cmp dword [ebp + 0xc], 0
je 0x5e93c0
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x5e9370
call fcn.0043005b
mov eax, dword [eax + 0xc]
test eax, eax
je 0x5e93c0
push dword [ebp + 0xc]
mov dword [edi + 8], eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x5e93c0
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x5e93c0
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5e93c0
mov ecx, dword [edi]
push eax
mov esi, dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push eax
mov ecx, esi
call dword [0x68edb4]
mov ecx, edi
call esi
jmp 0x5e93c2
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x5fc33d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00605ec0
mov eax, dword [ebp + 8]
add esp, 0xc
and dword [ebp - 0x34], 0
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
leave
ret 0x14

Function at 0x64746f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00602c80
mov eax, dword [0x71cf78]
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.00646981
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x6474b1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x64760d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00603210
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 + 0x7368f0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0064e3fd
mov ecx, dword [esi*4 + 0x7368f0]
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 0x647606
cmp eax, dword [edi + ecx + 0x24]
jne 0x647606
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 0x647606
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0064e3fd
add esp, 0x14
test edx, edx
jl 0x647606
jg 0x64757c
test eax, eax
jb 0x647606
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x647606
jl 0x647596
cmp dword [ebp - 0x1008], eax
ja 0x647606
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x6475b4
test ebx, ebx
je 0x6475ed
cmp ecx, edi
jae 0x6475ed
mov al, byte [ecx]
cmp al, 0xd
jne 0x6475ce
lea eax, [edi - 1]
cmp ecx, eax
jae 0x6475da
cmp byte [ecx + 1], 0xa
jne 0x6475da
inc ecx
jmp 0x6475da
movzx eax, al
movsx eax, byte [eax + 0x71d360]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x6475b4
cmp edx, ebx
jne 0x6475b4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x64760b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.006026e7
leave
ret
Function at 0x6502ae
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6d6bdc
push 0x6d6bd4
push 0x6d48a8
push 0x1e
call fcn.0064ff7e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x6502e2
push dword [ebp + 8]
mov ecx, esi
call dword [0x68edb4]
call esi
jmp 0x6502e8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x65032c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6d6bec
push 0x6d6be4
push 0x6d48cc
push 0x20
call fcn.0064ff7e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x650363
push dword [ebp + 8]
mov ecx, esi
call dword [0x68edb4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x657335
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 + 0x7368f0]
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 0x657375
cmp byte [ebx], 0xa
jne 0x657375
or byte [eax + edi + 0x28], 4
jmp 0x65737a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x657478
mov al, byte [edx]
cmp al, 0x1a
je 0x65745a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x6573a9
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x6573ce
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x6573d8
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 0x65738b
jmp 0x657478
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 0x657455
cmp dword [ebp - 0xc], 0
je 0x657455
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x7368f0]
test byte [eax + edi + 0x28], 0x48
je 0x65742f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x65741a
mov byte [esi], dl
jmp 0x65742b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x7368f0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x657478
cmp byte [ebp - 1], 0xa
jne 0x65743e
cmp esi, ebx
jne 0x65743e
mov byte [esi], 0xa
jmp 0x657477
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0064e41b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x657478
mov byte [esi], 0xd
jmp 0x657477
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x7368f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x657474
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x657478
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x657481
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 + 0x7368f0]
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 0x6574c4
cmp word [esi], dx
jne 0x6574c4
or byte [edi + eax + 0x28], 4
jmp 0x6574c9
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 0x65761c
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 0x6575fc
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x65750b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x657541
cmp eax, edx
jae 0x65754d
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 0x6574e3
jmp 0x65761c
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 0x6575f8
cmp dword [ebp - 0x14], 0
je 0x6575f8
mov eax, dword [ebx*4 + 0x7368f0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x6575d0
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x657599
mov word [esi], cx
jmp 0x6575cc
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x7368f0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x7368f0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x7368f0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x65761c
pop ebx
cmp word [ebp - 4], bx
jne 0x6575e1
cmp esi, dword [ebp + 0xc]
jne 0x6575e1
mov word [esi], bx
jmp 0x657619
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0064e41b
add esp, 0x10
cmp word [ebp - 4], bx
je 0x65761c
push 0xd
jmp 0x657615
mov ecx, dword [ebx*4 + 0x7368f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x657613
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x65761c
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
Function at 0x658129
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00657d10

Function at 0x658134
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00657e9f