joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cf8c4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4cf8f2
mov eax, ebx
call fcn.004d0378
cmp dword [ebx + 0x40], 0
je 0x4cf8eb
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4cf963
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4cf955
cmp dword [ebx + 8], 0
je 0x4cf914
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4cf926
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4cf955
cmp dword [ebx + 8], 0
je 0x4cf907
cmp eax, 3
je 0x4cf939
dec eax
jne 0x4cf907
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4cf907
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4cf907
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4cf981
cmp dword [ebx + 0x14], 0xcc
je 0x4cf981
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004cf98c
pop ebx
ret

Function at 0x4e7bec
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x4e7c06
add esp, 0xfffffff0
call fcn.00404174
mov esi, ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x4e7ca4
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, edi
call fcn.00403de0
mov dword [edi + 0x20], esi
mov dl, 1
mov eax, dword [0x42f5b4]
call fcn.00430e08
mov esi, eax
mov dword [edi + 0x10], esi
mov eax, edi
call fcn.004e80a0
mov edx, eax
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [edi + 0x10]
mov dword [eax + 0xc], edi
mov dword [eax + 8], 0x4e7f40
mov dl, 1
mov eax, dword [0x41e23c]
call fcn.00403de0
mov dword [edi + 4], eax
lea eax, [ebp - 0x10]
call fcn.0041b460
lea edx, [ebp - 0x10]
lea eax, [edi + 0x30]
call fcn.00413424
mov byte [edi + 0x28], 1
movzx edx, byte [0x4e7ccc]
mov ax, 0x2e
call fcn.004525a8
mov word [edi + 0x26], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e7cab
lea eax, [ebp - 0x10]
call fcn.0041300c
ret

Function at 0x4e8e48
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
test dl, dl
je 0x4e8e60
push 5
mov eax, ebx
call fcn.00466604
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret
push 0
mov eax, ebx
call fcn.00466604
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret

Function at 0x4ec8d4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
movzx ebx, byte [0x4ec910]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4ec8eb
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4ec8fa
or bl, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4ec909
or bl, 2
mov eax, ebx
pop ebx
ret
Function at 0x50a2bc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x33c], 0
jne 0x50a308
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4e299c]
call fcn.004e9088
mov esi, eax
mov dword [ebx + 0x33c], esi
xor edx, edx
mov eax, esi
call fcn.0045e4e8
mov edx, ebx
mov eax, dword [ebx + 0x33c]
mov ecx, dword [eax]
call dword [ecx + 0x6c]
push 0
mov eax, dword [ebx + 0x33c]
call fcn.00466604
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x33c]
pop esi
pop ebx
ret

Function at 0x50c17c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x358], 0
jne 0x50c21c
mov esi, dword [ebx + 0x388]
test esi, esi
je 0x50c1a8
mov ecx, ebx
mov dl, 1
mov eax, esi
call dword [eax + 0x2c]
mov dword [ebx + 0x358], eax
jmp 0x50c1bc
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4e2bdc]
call fcn.004e9d30
mov dword [ebx + 0x358], eax
xor edx, edx
mov eax, dword [ebx + 0x358]
call fcn.0045e4e8
mov dl, 1
mov eax, dword [ebx + 0x358]
call fcn.004667f0
mov edx, ebx
mov eax, dword [ebx + 0x358]
mov ecx, dword [eax]
call dword [ecx + 0x6c]
push 0
mov eax, dword [ebx + 0x358]
call fcn.00466604
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x358]
mov dword [eax + 0xd4], ebx
mov dword [eax + 0xd0], 0x50c250
mov dword [eax + 0x2f4], ebx
mov dword [eax + 0x2f0], 0x50c228
mov eax, dword [ebx + 0x358]
pop esi
pop ebx
ret
Function at 0x5526cc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x6cc], 0
jne 0x552766
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4e2bdc]
call fcn.004e9d30
mov esi, eax
mov dword [ebx + 0x6cc], esi
mov byte [esi + 0x300], 1
xor edx, edx
mov eax, esi
call fcn.0045e4e8
mov dl, 1
mov eax, dword [ebx + 0x6cc]
call fcn.004667f0
mov edx, ebx
mov eax, dword [ebx + 0x6cc]
mov ecx, dword [eax]
call dword [ecx + 0x6c]
push 0
mov eax, dword [ebx + 0x6cc]
call fcn.00466604
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x6cc]
mov dword [eax + 0xd4], ebx
mov dword [eax + 0xd0], 0x552770
mov dword [eax + 0x20c], ebx
mov dword [eax + 0x208], 0x5527c4
mov dword [eax + 0x214], ebx
mov dword [eax + 0x210], 0x5527d8
mov eax, dword [ebx + 0x6cc]
pop esi
pop ebx
ret
Function at 0x553dc0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.004fa2c8
test al, al
jne 0x553f75
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x240]
test al, al
jne 0x553df3
cmp byte [ebx + 0x240], 0
je 0x553e03
cmp byte [0x5ade8a], 0
jne 0x553e03
mov byte [ebx + 0x4dc], 1
cmp byte [ebx + 0x4dc], 0
je 0x553e12
cmp dword [esi + 4], 0
je 0x553e3f
test byte [ebx + 0x55], 1
jne 0x553e31
mov eax, ebx
call fcn.00462604
test eax, eax
jne 0x553e31
mov edx, esi
mov eax, ebx
call fcn.00468704
jmp 0x553f75
mov edx, esi
mov eax, ebx
call fcn.00463cd8
jmp 0x553f75
push 0
call sub.user32.dll_GetDC
mov edi, eax
mov eax, ebx
call fcn.0045df78
push eax
mov eax, ebx
call fcn.0045df34
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 edx, edx
push ebp
push 0x553f6e
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x50]
push eax
mov eax, ebx
call fcn.00466604
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x48]
push eax
call sub.gdi32.dll_CreateRectRgn
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
call fcn.004e0498
push eax
mov ecx, eax
mov edx, 0x14
mov eax, ebx
call fcn.0045f8d8
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectClipRgn
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00553dc0
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x60]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x54]
push eax
lea edx, [ebp - 0x70]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x68]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x50]
push eax
mov eax, ebx
call fcn.00466604
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x553f75
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 0x56c45f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareBorlandDatabase_Engine
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x56c4b7
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push str.DLLPATH
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x56c4ad
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x56c4bb
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x5911a8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x591227
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x104
call fcn.00405550
mov eax, dword [ebx]
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
test esi, esi
je 0x5911e2
sub esi, 4
mov esi, dword [esi]
mov eax, dword [ebx]
call fcn.004052c0
push eax
push esi
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
xchg edx, eax
call fcn.00405550
lea ecx, [ebp - 8]
mov edx, dword [ebx]
mov eax, dword [0x579558]
call fcn.00578a50
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00404e84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59122e
lea eax, [ebp - 8]
call fcn.00404e30
ret
Function at 0x4151a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, edx
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
xor esi, esi
lea edx, [eax + edx*2]
movzx ebx, byte [eax + 1]
cmp byte [eax], ch
lea eax, [eax + 2]
lea edi, [esi + ebx]
jne 0x4151f0
cmp edi, esi
jb 0x415258
cmp edi, dword [esp + 0x1c]
ja 0x41526b
add esi, dword [esp + 0x18]
nop word [eax + eax]
test ebx, ebx
je 0x4151f2
dec ebx
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x4151e0
jmp 0x41524f
ja 0x4151f8
cmp eax, edx
mov esi, edi
jne 0x4151b3
mov edi, dword [esp + 0x24]
movzx ecx, cx
mov al, 1
add edi, ebp
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [ebp]
lea esi, [ebp + 1]
test dl, dl
js 0x415230
mov ebp, esi
sub ecx, edx
jns 0x415247
jmp 0x415251
cmp esi, edi
je 0x415280
movzx esi, byte [ebp + 1]
and edx, 0x7f
add ebp, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x415251
xor al, 1
cmp ebp, edi
jne 0x415210
jmp 0x415251
xor eax, eax
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0xa50fec
call fcn.00447800
add esp, 4
ud2
mov edx, dword [esp + 0x1c]
mov ecx, edi
push 0xa50fec
call fcn.004475f0
add esp, 4
ud2
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_114fb86ca08cfa6a99087e0f0bc264d03590dc37library_alloc_srccollections_btree_navigate.rs
mov edx, 0x2b
push 0xa50fdc
call fcn.00447660
add esp, 4
ud2
Function at 0x41db70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x439830
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
cmp eax, 3
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
je 0x41dbae
test eax, eax
jne 0x41dd2a
mov ebx, dword [0xa609d8]
test ebx, ebx
je 0x41dd2a
mov dword [ebp - 0x20], 0
jmp 0x41dbd7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x41dc08
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x41dd7b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41dbd0
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x41dbd0
test byte [ebp - 0x20], 1
je 0x41dd2a
mov ebx, dword [0xa609d8]
test ebx, ebx
je 0x41dd2a
mov dword [ebp - 0x20], 0
jmp 0x41dc37
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x41dc68
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x41dd7b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41dc30
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x41dc30
test byte [ebp - 0x20], 1
je 0x41dd2a
mov ebx, dword [0xa609d8]
test ebx, ebx
je 0x41dd2a
mov dword [ebp - 0x20], 0
jmp 0x41dc97
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x41dcc8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x41dd7b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41dc90
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x41dc90
test byte [ebp - 0x20], 1
je 0x41dd2a
mov ebx, dword [0xa609d8]
test ebx, ebx
je 0x41dd2a
mov dword [ebp - 0x20], 0
jmp 0x41dcf7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x41dd24
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x41dd7b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41dcf0
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x41dcf0
test byte [ebp - 0x20], 1
jne 0x41dd44
movzx eax, byte [0xa5cc80]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ebx, dword [0xa609d8]
jmp 0x41dd4f
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x41dd2a
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x41dd7b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41dd4c
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x41dd4c
mov dword [ebp - 0x10], 0
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_114fb86ca08cfa6a99087e0f0bc264d03590dc37library_alloc_srccollections_btree_navigate.rs
mov edx, 0x2b
push 0xa579bc
call fcn.00447660
add esp, 4
ud2
Function at 0x41e7c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0xa6004c]
test eax, eax
je 0x41e7e8
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x41e7fe
cmp dword [eax + 4], 0
mov edi, eax
je 0x41e7fe
add edi, 8
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0xa6004c
call fcn.00448120
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x41e7d8
mov eax, dword [0xa6004c]
test eax, eax
je 0x41e8b9
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x41e8d3
mov esi, eax
test eax, eax
jne 0x41e879
movzx eax, byte [0xa60948]
mov eax, dword [0xa609c8]
test eax, eax
jne 0x41e845
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x41e8e6
mov dword [0xa609c8], eax
push 0x10
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41e8e6
mov dword [eax], 0xa6004c
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0xa6004c]
test eax, eax
je 0x41e8da
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esi + 0xc]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
je 0x41e7e3
test ecx, ecx
je 0x41e7e3
lock dec dword [ecx]
jne 0x41e7e3
call fcn.0041e910
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0xa6004c
call fcn.00448120
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x41e81c
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0xa6004c
call fcn.00448120
jmp 0x41e871
mov ecx, 4
mov edx, 0x10
call fcn.00447430
ud2

Function at 0x41f4c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0xa6005c]
test eax, eax
je 0x41f564
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x41f4e3
cmp byte [eax + 4], 0
mov esi, eax
jne 0x41f55d
mov eax, dword [0xa6005c]
test eax, eax
je 0x41f583
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x41f59d
mov esi, eax
test eax, eax
jne 0x41f557
movzx eax, byte [0xa60948]
mov eax, dword [0xa609c8]
test eax, eax
jne 0x41f52a
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x41f5af
mov dword [0xa609c8], eax
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41f5af
mov dword [eax], 0xa6005c
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0xa6005c]
test eax, eax
je 0x41f5a3
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov word [esi + 4], 1
add esi, 5
mov eax, esi
pop esi
ret
mov ecx, 0xa6005c
call fcn.00448120
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x41f4db
jmp 0x41f4e3
mov ecx, 0xa6005c
call fcn.00448120
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x41f501
xor esi, esi
mov eax, esi
pop esi
ret
mov ecx, 0xa6005c
call fcn.00448120
jmp 0x41f54f
mov ecx, 4
mov edx, 8
call fcn.00447430
ud2
Function at 0x420360
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
sub esp, 0x34
mov eax, dword [esp + 0x40]
mov esi, ecx
mov ecx, dword [esp + 0x44]
mov edi, edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x103
lea edx, [esp + 4]
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x4203b4
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
cmp eax, 0x103
je 0x4203d7
test eax, eax
js 0x4203c3
mov eax, dword [esp + 8]
mov dword [esi + 4], eax
mov al, 4
jmp 0x4203cf
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
xor eax, eax
mov byte [esi], al
add esp, 0x34
pop esi
pop edi
ret
mov eax, esp
mov dword [esp + 0x1c], 0xa57308
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], 0
push eax
push ecx
push edx
call fcn.0041e1c0
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
call fcn.0041e320
mov ecx, 7
int 0x29
ud2
Function at 0x420a20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0xa6003c]
test eax, eax
je 0x420a42
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x420a58
cmp dword [eax + 4], 0
je 0x420a58
add eax, 8
pop esi
ret
mov ecx, 0xa6003c
call fcn.00448120
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x420a37
mov eax, dword [0xa6003c]
test eax, eax
je 0x420ade
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x420af8
mov esi, eax
test eax, eax
jne 0x420ac7
movzx eax, byte [0xa60948]
mov eax, dword [0xa609c8]
test eax, eax
jne 0x420a97
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x420b08
mov dword [0xa609c8], eax
push 0x10
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x420b08
mov dword [eax], 0xa6003c
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0xa6003c]
test eax, eax
je 0x420afc
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
lea eax, [esi + 8]
mov byte [esi + 0xc], 0
pop esi
ret
mov ecx, 0xa6003c
call fcn.00448120
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x420a72
xor eax, eax
pop esi
ret
mov ecx, 0xa6003c
call fcn.00448120
jmp 0x420abf
mov ecx, 4
mov edx, 0x10
call fcn.00447430
ud2
Function at 0x426c20
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
sub esp, 0x34
mov eax, dword [esp + 0x40]
mov esi, ecx
mov ecx, dword [esp + 0x44]
mov edi, edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x103
lea edx, [esp + 4]
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x426c6d
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
cmp eax, 0xc0000011
jne 0x426c7d
mov dword [esi + 4], 0
jmp 0x426c8f
cmp eax, 0x103
je 0x426cab
test eax, eax
js 0x426c98
mov eax, dword [esp + 8]
mov dword [esi + 4], eax
mov byte [esi], 4
add esp, 0x34
pop esi
pop edi
ret
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov byte [esi], 0
mov dword [esi + 4], eax
add esp, 0x34
pop esi
pop edi
ret
mov eax, esp
mov dword [esp + 0x1c], 0xa57308
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], 0
push eax
push ecx
push edx
call fcn.0041e1c0
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
call fcn.0041e320
mov ecx, 7
int 0x29
ud2

Function at 0x42a510
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0xa6006c]
test eax, eax
je 0x42a538
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x42a54e
cmp dword [eax + 4], 0
mov edi, eax
je 0x42a54e
add edi, 8
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0xa6006c
call fcn.00448120
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x42a528
mov eax, dword [0xa6006c]
test eax, eax
je 0x42a602
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x42a61c
mov esi, eax
test eax, eax
jne 0x42a5c9
movzx eax, byte [0xa60948]
mov eax, dword [0xa609c8]
test eax, eax
jne 0x42a595
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x42a62f
mov dword [0xa609c8], eax
push 0xc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42a62f
mov dword [eax], 0xa6006c
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0xa6006c]
test eax, eax
je 0x42a623
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x42a533
test ecx, ecx
je 0x42a533
lock dec dword [ecx]
jne 0x42a533
call fcn.0042a640
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0xa6006c
call fcn.00448120
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x42a56c
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0xa6006c
call fcn.00448120
jmp 0x42a5c1
mov ecx, 4
mov edx, 0xc
call fcn.00447430
ud2
Function at 0x4315b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea ecx, [esp + 0xc]
push dword [esp + 0x38]
call fcn.00421220
add esp, 4
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test edx, edx
je 0x431615
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
mov ecx, esp
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.00431750
mov edi, dword [esp]
test edi, edi
je 0x431624
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x431639
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebp
jmp 0x431631
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], 0
mov ecx, esp
call fcn.00421410
mov dword [esi], 0
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
mov dword [esi], 0
je 0x431631
push edi
push 0
push dword [0xa609c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x431631