joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4340c4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x4340e0
cmp dword [esi + 4], 0
je 0x43410d
test byte [ebx + 0x55], 1
jne 0x4340ff
mov eax, ebx
call fcn.00432c64
test eax, eax
jne 0x4340ff
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43421d
mov edx, esi
mov eax, ebx
call fcn.00433be8
jmp 0x43421d
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x434216
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00435f34
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00430900
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004340c4
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00435f34
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43421d
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43a6e8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45b0e4]
cmp byte [eax + 0xc], 0
je 0x43a855
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43a84e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45cb64], 0
jne 0x43a73c
push 0x43a85c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43a864
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cb64], eax
cmp dword [0x459b64], 0
jne 0x43a837
push 0x43a874
call sub.kernel32.dll_LoadLibraryA
mov dword [0x459b64], eax
cmp dword [0x459b64], 0
je 0x43a837
push 0x43a880
mov eax, dword [0x459b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cb68], eax
push 0x43a890
mov eax, dword [0x459b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cb6c], eax
push 0x43a8a4
mov eax, dword [0x459b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cb70], eax
push 0x43a8bc
mov eax, dword [0x459b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cb74], eax
push 0x43a8d4
mov eax, dword [0x459b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cb78], eax
push 0x43a8e8
mov eax, dword [0x459b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cb7c], eax
push 0x43a900
mov eax, dword [0x459b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cb80], eax
push 0x43a918
mov eax, dword [0x459b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cb84], eax
push 0x43a934
mov eax, dword [0x459b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cb88], eax
push 0x43a940
mov eax, dword [0x459b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cb8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a855
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43eb98
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403e10
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43ebe7
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404080
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4462fc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44634c]
test si, 4
je 0x446310
or bl, 1
test si, 8
je 0x44631a
or bl, 4
test si, 1
je 0x446324
or bl, 8
test si, 2
je 0x44632e
or bl, 0x10
test si, 0x10
je 0x446338
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x446347
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x446350
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x446388]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x446369
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x446378
or bl, 4
test esi, 0x20000000
je 0x446383
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44ca30
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44ca42
add esp, 0xfffffff0
call fcn.004033e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00418fe4
mov eax, dword [0x45abb0]
mov dword [eax + 4], ebx
mov dword [eax], 0x44cdd4
mov eax, dword [0x45abbc]
mov dword [eax + 4], ebx
mov dword [eax], 0x44cde0
mov eax, ebx
call fcn.0044cdec
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411274]
call fcn.004030a8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411274]
call fcn.004030a8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411274]
call fcn.004030a8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411274]
call fcn.004030a8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411274]
call fcn.004030a8
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x449208
push eax
push 0
push 0
mov eax, dword [0x45ade8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41aa10]
call fcn.0041be54
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41aa10]
call fcn.0041be54
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41aa10]
call fcn.0041be54
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044d20c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44d0e8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44d0e8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44d0e8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44cb7f
call fcn.0040343c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44cecc
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44d077
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44d058
mov dl, 1
mov eax, dword [0x411690]
call fcn.004030a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e10
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44d047
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043aa48
test al, al
je 0x44d03a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44d088
lea eax, [ebp - 0x254]
call fcn.004087b4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44d03a
xor eax, eax
push ebp
push 0x44d033
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44d0c0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44d01c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404080
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44d01c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404080
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d03a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44cf3d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415184
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d07e
lea eax, [ebp - 0x260]
call fcn.00403e10
ret

Function at 0x44d9ac
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x45cbb0]
cmp byte [eax + 0xa5], 0
jne 0x44da1d
cmp dword [0x45cbc8], 0
jne 0x44d9de
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44d968
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45cbc8], eax
cmp dword [0x45cbc4], 0
jne 0x44d9f9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45cbc4], eax
cmp dword [0x45cbcc], 0
jne 0x44da1d
push esp
push 0
push 0
push 0x44d90c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45cbcc], eax
pop edx
ret
Function at 0x44db14
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44db2b
add esp, 0xfffffff0
call fcn.004033e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00418fe4
mov eax, dword [0x45adc4]
cmp word [eax + 2], 0
jne 0x44db53
mov eax, dword [0x45adc4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044f1ec
mov eax, dword [0x45aee8]
cmp word [eax + 2], 0
jne 0x44db6d
mov eax, dword [0x45aee8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044f3e4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411274]
call fcn.004030a8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411274]
call fcn.004030a8
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b1c0]
call fcn.00420f00
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44dcf4
mov eax, dword [0x45ac68]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004212d0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44f984
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45ac68]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040be64
test eax, eax
je 0x44dc62
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004081a8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040be8c
test eax, eax
je 0x44dc76
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404080
mov eax, dword [0x45aa7c]
cmp byte [eax], 0
jne 0x44dcaa
mov eax, ebx
call fcn.0044de1c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0044fb60
mov eax, ebx
call fcn.00450524
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44dcea
call fcn.0040343c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e09c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45cbb0]
cmp dword [eax + 0x30], 0
je 0x44e146
cmp dword [ebx + 0x94], 0
jne 0x44e140
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44e02c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44e140
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44e106
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44e140
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004135dc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44e115
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44eca8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44ecdd
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f00
jmp 0x44ecea
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403e64
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44fd3c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44fd7d
mov eax, esi
call fcn.0043620c
test al, al
je 0x44fd7d
mov eax, dword [ebx + 0x84]
call fcn.00435f34
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44fd7d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00435f34
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4090ad
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4090ec
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4090ec
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4090ec
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4090ec
cmp dword [ecx + 0x74], 0xe
jbe 0x4090ec
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4110bb
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 0x411158
push ebx
push esi
call fcn.00411084
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.00410fcd
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x411105
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x411157
push edi
push eax
call fcn.0040fb85
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x411125
call fcn.0040de2b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x411156
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00410fcd
add esp, 0x20
test eax, eax
jne 0x411144
push edi
call fcn.0040de2b
jmp 0x41114c
push ebx
call fcn.0040de2b
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 0x412595
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45cc50
push 0x45cc48
push str.FlsAlloc
push 0x1e
call fcn.00412456
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4125c9
push dword [ebp + 8]
mov ecx, esi
call dword [0x419124]
call esi
jmp 0x4125cf
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x412613
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45cc60
push 0x45cc58
push str.FlsGetValue
push 0x20
call fcn.00412456
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41264a
push dword [ebp + 8]
mov ecx, esi
call dword [0x419124]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4143c2
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 + 0x462078]
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 0x414402
cmp byte [ebx], 0xa
jne 0x414402
or byte [eax + edi + 0x28], 4
jmp 0x414407
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x414505
mov al, byte [edx]
cmp al, 0x1a
je 0x4144e7
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x414436
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41445b
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x414465
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 0x414418
jmp 0x414505
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 0x4144e2
cmp dword [ebp - 0xc], 0
je 0x4144e2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x462078]
test byte [eax + edi + 0x28], 0x48
je 0x4144bc
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4144a7
mov byte [esi], dl
jmp 0x4144b8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x462078]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x414505
cmp byte [ebp - 1], 0xa
jne 0x4144cb
cmp esi, ebx
jne 0x4144cb
mov byte [esi], 0xa
jmp 0x414504
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004141bb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x414505
mov byte [esi], 0xd
jmp 0x414504
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x462078]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414501
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x414505
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41450e
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 + 0x462078]
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 0x414551
cmp word [esi], dx
jne 0x414551
or byte [edi + eax + 0x28], 4
jmp 0x414556
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 0x4146a9
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 0x414689
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x414598
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4145ce
cmp eax, edx
jae 0x4145da
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 0x414570
jmp 0x4146a9
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 0x414685
cmp dword [ebp - 0x14], 0
je 0x414685
mov eax, dword [ebx*4 + 0x462078]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41465d
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x414626
mov word [esi], cx
jmp 0x414659
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x462078]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x462078]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x462078]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4146a9
pop ebx
cmp word [ebp - 4], bx
jne 0x41466e
cmp esi, dword [ebp + 0xc]
jne 0x41466e
mov word [esi], bx
jmp 0x4146a6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004141bb
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4146a9
push 0xd
jmp 0x4146a2
mov ecx, dword [ebx*4 + 0x462078]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4146a0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4146a9
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