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

Disassembly:
push ebp
lea ebp, [esp - 0x238]
sub esp, 0x2b8
mov eax, dword [0x43cddc]
xor eax, ebp
mov dword [ebp + 0x234], eax
push esi
push 0x208
xor esi, esi
lea eax, [ebp + 0x2c]
push esi
push eax
call fcn.00410610
add esp, 0xc
lea eax, [ebp + 0x2c]
push eax
push esi
push esi
push 0x2c
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x40ea14
xor eax, eax
mov ecx, dword [ebp + 0x234]
xor ecx, ebp
pop esi
call fcn.0040ffe6
add ebp, 0x238
leave
ret
xor eax, eax
push ebx
mov word [ebp + 0x10], ax
push edi
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x24], 7
mov dword [ebp + 0x20], esi
call fcn.0040f362
push str.JavaJava_Updatejucheck.exe
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041fd98
add esp, 0xc
xor ebx, ebx
push esi
inc ebx
push ebx
lea ecx, [ebp + 0x10]
call fcn.0040ec7c
push 0x22
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x10]
push 0x22
push eax
call fcn.0040f585
add esp, 0xc
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041fd98
add esp, 0xc
push esi
push ebx
lea ecx, [ebp + 0x10]
call fcn.0040ec7c
push 0x40
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00410610
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [ebp - 0x3c], esi
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
cmp dword [ebp + 8], 8
stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0x44
mov eax, ecx
jae 0x40eaae
lea eax, [ebp - 0xc]
cmp dword [ebp + 8], 8
mov edx, dword [ebp + 4]
lea eax, [eax + edx*2]
jae 0x40eabd
lea ecx, [ebp - 0xc]
push dword [ebp - 0x2c]
mov dword [ebp + 0x1c], esi
push eax
push ecx
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x24], esi
call fcn.0040f604
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 0x1c]
mov dword [ebp - 0x2c], esi
call fcn.0040f30c
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40eaee
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push esi
push esi
push 0x8000000
push ebx
push esi
push esi
push dword [ebp + 0x1c]
push eax
call fcn.0040b3a3
add esp, 0x28
test eax, eax
jne 0x40eb37
xor edi, edi
lea ecx, [ebp + 0x1c]
call fcn.0040eea9
push esi
push ebx
lea ecx, [ebp - 0xc]
call fcn.0040ec7c
push esi
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040ec7c
mov eax, edi
pop edi
pop ebx
jmp 0x40e9fe
mov edi, ebx
jmp 0x40eb12

Function at 0x40ffe6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43cddc]
jne 0x40fff0
repz ret
jmp fcn.00417613
Function at 0x4183e3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x418457
push edi
push dword [ebp + 8]
push dword [0x448eb4]
call fcn.0042171e
mov edi, eax
test edi, edi
je 0x418456
push ebx
mov ebx, dword [ebp + 0x10]
cmp ebx, 0x19
jne 0x418419
push esi
call fcn.004313b0
jmp 0x418424
cmp ebx, 2
jne 0x418426
push esi
call fcn.00431440
mov esi, eax
push 0
lea eax, [ebp - 4]
push eax
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp ebx, 0x19
jne 0x41844a
push esi
call fcn.00431430
jmp 0x418455
cmp ebx, 2
jne 0x418455
push esi
call fcn.004314f0
pop ebx
pop edi
mov eax, dword [ebp - 4]
pop esi
leave
ret 0xc
Function at 0x418d0a
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x418d59
push dword [esp + 0x10]
push 0x418c88
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x448af4]
cmp esi, ebx
je 0x418dad
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x418d51
cmp byte [esi + 0x10], bl
je 0x418d51
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, edi
cmp edi, ebx
jne 0x418d2e
jmp 0x418dad
mov esi, dword [0x448af4]
cmp esi, ebx
je 0x418dad
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x418da6
cmp byte [esi + 0x11], bl
je 0x418d83
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x418d99
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x448af4
call fcn.00421fa1
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x418d64
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x41a0ad
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 1
jne 0x41a0cf
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.WSOCK32.DLL_send]
jmp 0x41a10e
push 2
pop eax
mov word [ebp - 0x10], ax
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], eax
movzx eax, word [esi + 8]
push eax
call dword [sym.imp.WSOCK32.DLL_htons]
mov word [ebp - 0xe], ax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x41a0f6
mov eax, dword [eax]
jmp 0x41a0f9
mov eax, dword [esi + 0x10]
push 0x10
lea ecx, [ebp - 0x10]
push ecx
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WSOCK32.DLL_sendto]
pop esi
leave
ret 0xc

Function at 0x41a590
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x448b1c], 0
jne 0x41a59e
call fcn.0041a530
mov eax, dword [0x448b18]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push eax
call esi
test eax, eax
jne 0x41a5c2
call fcn.0041a530
mov ecx, dword [0x448b18]
push ecx
call esi
mov ecx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ecx*4 + 0x4c]
mov ebp, dword [esp + 0x14]
mov esi, dword [eax + ecx*4 + 8]
mov ebx, dword [eax + edi*4 + 8]
inc ebp
ror edx, 0xd
add edx, dword [eax + edi*4 + 0x4c]
ror esi, 5
add esi, ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0x4c], esi
dec edi
dec ecx
jns 0x41a5f5
mov ecx, 0x10
test edi, edi
jns 0x41a5fe
mov edi, 0x10
mov dword [eax], ecx
mov dword [eax + 4], edi
mov eax, edx
test ebp, ebp
je 0x41a60d
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41a620
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x448b1c], 0
jne 0x41a62e
call fcn.0041a530
mov eax, dword [0x448b18]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push eax
call esi
test eax, eax
jne 0x41a652
call fcn.0041a530
mov ecx, dword [0x448b18]
push ecx
call esi
mov ecx, dword [esp + 0x14]
lea edx, [eax + 8]
mov esi, 0x11
mov edi, edi
mov edi, ecx
imul edi, edi, 0x53a9b4fb
mov ecx, 1
sub ecx, edi
mov dword [edx + 0x44], ecx
imul ecx, ecx, 0x53a9b4fb
mov edi, 1
sub edi, ecx
mov ecx, edi
mov dword [edx], ecx
add edx, 4
dec esi
jne 0x41a660
mov dword [eax], esi
mov dword [eax + 4], 0xa
lea ebp, [esi + 0x1f]
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov edx, dword [eax + ecx*4 + 0x4c]
mov edi, dword [eax + ecx*4 + 8]
mov ebx, dword [eax + esi*4 + 8]
ror edx, 0xd
add edx, dword [eax + esi*4 + 0x4c]
ror edi, 5
add edi, ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0x4c], edi
dec esi
dec ecx
jns 0x41a6c3
mov ecx, 0x10
test esi, esi
jns 0x41a6cc
mov esi, 0x10
dec ebp
mov dword [eax], ecx
mov dword [eax + 4], esi
jne 0x41a695
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x41b2c3
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x448f38]
call fcn.0042171e
mov edi, eax
test edi, edi
je 0x41b325
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x41b2ec
push dword [esp + 0xc]
push edi
call eax
jmp 0x41b325
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthA]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.004224c0
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextA]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
call fcn.00422560
pop esi
pop ebx
pop edi
ret 8

Function at 0x41cd01
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x41cd7d
push 9
call esi
test bl, al
je 0x41cd7d
push 0x11
call esi
test bl, al
jne 0x41cd7d
push 0x10
call esi
test bl, al
jne 0x41cd7d
push 0x12
call esi
test bl, al
jne 0x41cd7d
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x41cd7d
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x41cd7d
xor eax, eax
jmp 0x41cdff
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x41cda6
push 0x11
call esi
test bl, al
jne 0x41cd9e
push 0x10
call esi
test bl, al
jne 0x41cd9e
push 0x12
call esi
test bl, al
je 0x41cda6
push 1
push ebp
call fcn.0041ccba
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x41cdbc
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x41cdfc
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x41cdfc
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x41cdfc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x41cdfc
dec esi
push esi
push dword [0x448f40]
call fcn.0042171e
test eax, eax
je 0x41cdfc
mov eax, dword [eax + 8]
jmp 0x41cdfe
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x41d629
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x41d652
test byte [esp + 8], 2
je 0x41d646
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x41d654
xor eax, eax
ret 8

Function at 0x41d665
Capabilities:
Copy file

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x41d684
cmp dword [esp + 8], eax
je 0x41d684
push eax
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x41d686
xor eax, eax
ret 8
Function at 0x41d699
Capabilities:
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x248
push ebx
push esi
or esi, 0xffffffff
xor ebx, ebx
push edi
mov edi, esi
cmp eax, ebx
je 0x41d7da
cmp byte [eax], bl
je 0x41d7da
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], bl
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea ecx, [ebp + eax - 0x109]
cmp eax, 2
je 0x41d6f4
cmp eax, 3
jne 0x41d733
cmp byte [ebp - 0x107], 0x3a
jne 0x41d733
cmp eax, 2
jne 0x41d715
lea eax, [ebp - 0x108]
push 0x43d1c4
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x41d7da
or esi, 0xffffffff
jmp 0x41d7d7
mov al, byte [ecx]
cmp al, 0x5c
je 0x41d73d
cmp al, 0x2f
jne 0x41d742
mov byte [ecx], bl
dec ecx
jmp 0x41d733
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
or ebx, 0xffffffff
cmp eax, ebx
je 0x41d788
test byte [ebp - 0x248], 0x10
je 0x41d76d
push 0xfffffffffffffffe
pop edi
mov esi, ebx
jmp 0x41d77f
mov esi, dword [ebp - 0x22c]
xor edi, edi
or edi, dword [ebp - 0x228]
xor edx, edx
or esi, edx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41d7da
cmp byte [ebp - 0x108], 0x5c
jne 0x41d79a
cmp byte [ebp - 0x107], 0x5c
je 0x41d7ac
cmp byte [ebp - 0x108], 0x2e
jne 0x41d7da
cmp byte [ebp - 0x107], 0x2e
jne 0x41d7da
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, ebx
je 0x41d7c3
test al, 0x10
je 0x41d7da
jmp 0x41d7d5
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x41d7da
mov esi, ebx
push 0xfffffffffffffffe
pop edi
mov eax, edi
pop edi
mov edx, esi
pop esi
pop ebx
leave
ret 4

Function at 0x41d7fe
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x41d86e
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea eax, [ebp + eax - 0x108]
jmp 0x41d850
mov dl, byte [eax - 1]
cmp dl, 0x20
je 0x41d84f
cmp dl, 0x5c
je 0x41d84f
cmp dl, 0x2f
jne 0x41d85a
dec eax
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x41d83d
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x41d870
xor eax, eax
leave
ret 4

Function at 0x41d8d0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esi + 0x14], eax
jne 0x41d905
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4
Function at 0x41dd50
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x448f58]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.0042171e
mov esi, eax
test esi, esi
je 0x41de17
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
test ecx, ecx
je 0x41ddcf
cmp byte [ecx], 0
je 0x41ddcf
cmp dword [esi + 4], 0
mov eax, ecx
push edi
lea edi, [eax + 1]
je 0x41ddb7
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41dda0
sub eax, edi
push eax
push ecx
push esi
call fcn.0041e090
mov dword [esp + 0xc], eax
jmp 0x41ddce
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41ddb7
push 0
lea edx, [esp + 0x10]
push edx
sub eax, edi
push eax
mov eax, dword [esi]
push ecx
push eax
call ebp
pop edi
cmp dword [esi + 4], 0
je 0x41ddf2
push 2
push 0x43d098
push esi
call fcn.0041e090
mov ecx, eax
mov eax, dword [esp + 8]
pop ebp
add eax, ecx
pop esi
add esp, 8
ret 8
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x10]
push ecx
push 2
push 0x43d098
push edx
call ebp
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
pop ebp
add eax, ecx
pop esi
add esp, 8
ret 8
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 8

Function at 0x41de30
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test esi, esi
je 0x41de77
cmp byte [esi], al
je 0x41de77
mov eax, dword [esp + 0xc]
mov ecx, dword [0x448f58]
push eax
push ecx
call fcn.0042171e
test eax, eax
je 0x41dea5
cmp dword [eax + 4], 0
mov ecx, esi
push edi
lea edi, [ecx + 1]
je 0x41de80
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x41de65
sub ecx, edi
push ecx
push esi
push eax
call fcn.0041e090
pop edi
pop esi
pop ecx
ret 8
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x41de80
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
sub ecx, edi
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 8
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 8

Function at 0x41deb0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x448f58]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
call fcn.0042171e
mov esi, eax
test esi, esi
je 0x41df33
cmp dword [esi + 4], 0
je 0x41df02
push 1
lea edx, [esp + 8]
push edx
push esi
call fcn.0041e190
test eax, eax
je 0x41def6
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
mov edx, dword [esi]
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41df3e
cmp dword [esp + 8], 0
je 0x41df3e
mov eax, dword [esi]
push 1
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4
Function at 0x41df50
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebx
push ebp
push edi
push eax
push 0x1000
mov dword [esp + 0x1c], 0x1000
call fcn.004224c0
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x448f58]
push ecx
mov edi, eax
push edx
mov ebp, edi
call fcn.0042171e
mov ebx, eax
test ebx, ebx
je 0x41e069
push esi
lea ecx, [ecx]
mov byte [esp + 0x13], 0
cmp dword [ebx + 4], 0
je 0x41dfae
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.0041e190
mov dword [esp + 0x14], eax
jmp 0x41dfc5
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, byte [esp + 0x13]
test al, al
je 0x41dfd5
mov byte [ebp], al
mov al, byte [esp + 0x13]
inc ebp
mov ecx, dword [esp + 0x18]
mov esi, ebp
sub esi, edi
cmp esi, ecx
jl 0x41dfff
mov edx, dword [esp + 0x24]
add ecx, 0x1000
push edx
push ecx
mov dword [esp + 0x20], ecx
call fcn.004224c0
mov edi, eax
mov al, byte [esp + 0x13]
lea ebp, [esi + edi]
test al, al
je 0x41e068
cmp dword [esp + 0x14], 0
je 0x41e016
cmp al, 0xd
je 0x41e016
cmp al, 0xa
jne 0x41df90
dec ebp
cmp al, 0xd
jne 0x41e068
cmp dword [ebx + 4], 0
je 0x41e030
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.0041e190
jmp 0x41e047
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x41e068
cmp dword [ebx + 4], 0
je 0x41e059
inc dword [ebx + 0xc]
jmp 0x41e068
mov ecx, dword [ebx]
push 1
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop esi
sub edi, ebp
add edi, dword [esp + 0x14]
mov byte [ebp], 0
push edi
call fcn.00422560
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x41e090
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x41e0c5
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x41e13a
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
dec ecx
je 0x41e127
dec ecx
je 0x41e112
sub ecx, 2
je 0x41e0ff
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.0041d8d0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x41e167
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x41e190
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 0
push edi
jne 0x41e1b1
push esi
call fcn.0041d8d0
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ebx, edi
jl 0x41e226
mov eax, dword [esi + 0x10]
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x41e213
dec ecx
je 0x41e1fe
sub ecx, 2
je 0x41e1eb
push edi
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov dword [edx], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ax, word [eax]
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov dl, byte [eax]
mov eax, dword [esp + 0x14]
mov byte [eax], dl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esi + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
sub ecx, ebx
add ecx, dword [esi + 4]
push ebx
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
push 0
cmp edi, eax
jl 0x41e26f
mov eax, dword [esi]
lea edx, [esp + 0x18]
push edx
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
pop esi
add eax, ebx
pop ebx
ret 0xc
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp edi, eax
jle 0x41e292
mov edi, eax
mov ecx, dword [esi + 4]
push edi
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
add esp, 0xc
pop ebp
lea eax, [ebx + edi]
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x41f989
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x448fd4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [ebp + 0x14]
mov esi, eax
cmp ecx, dword [esi + 0xac]
je 0x41f9b1
push ecx
push esi
mov dword [esi + 0xac], ecx
call dword [esi + 0x40]
mov eax, dword [esi + 0xc]
push dword [ebp + 0x10]
test eax, eax
je 0x41f9d4
mov ecx, dword [esi + 0x90]
add ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [esi + 0x8c]
add ecx, dword [ebp + 8]
push ecx
push esi
call eax
jmp 0x41f9ef
push dword [ebp + 0x10]
mov eax, dword [esi + 0x90]
add eax, dword [ebp + 0xc]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [ebp + 8]
push eax
push esi
call dword [esi + 0x38]
pop esi
pop ebp
ret 0x10