joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ad2ae
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 + 0x4e7ba8]
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 0x4ad2f1
cmp word [esi], dx
jne 0x4ad2f1
or byte [edi + eax + 0x28], 4
jmp 0x4ad2f6
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 0x4ad42f
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 0x4ad40f
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4ad338
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4ad36e
cmp eax, edx
jae 0x4ad37a
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 0x4ad310
jmp 0x4ad42f
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 0x4ad40b
cmp dword [ebp - 0x14], 0
je 0x4ad40b
mov eax, dword [ebx*4 + 0x4e7ba8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4ad3e3
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x4ad429
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4e7ba8]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x4e7ba8]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4e7ba8]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x4ad42c
pop ebx
cmp word [ebp - 4], bx
jne 0x4ad3f4
cmp esi, dword [ebp + 0xc]
jne 0x4ad3f4
mov word [esi], bx
jmp 0x4ad42c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004b8c40
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4ad42f
push 0xd
jmp 0x4ad428
mov ecx, dword [ebx*4 + 0x4e7ba8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4ad426
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4ad42f
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 0x4b1c1a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00499c50
mov eax, dword [0x4e3014]
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.004ab3e6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4b1c5c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4b1db8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004bc8f0
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 + 0x4e7ba8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004b8c9e
mov ecx, dword [esi*4 + 0x4e7ba8]
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 0x4b1db1
cmp eax, dword [edi + ecx + 0x24]
jne 0x4b1db1
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 0x4b1db1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004b8c9e
add esp, 0x14
test edx, edx
jl 0x4b1db1
jg 0x4b1d27
test eax, eax
jb 0x4b1db1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4b1db1
jl 0x4b1d41
cmp dword [ebp - 0x1008], eax
ja 0x4b1db1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4b1d5f
test ebx, ebx
je 0x4b1d98
cmp ecx, edi
jae 0x4b1d98
mov al, byte [ecx]
cmp al, 0xd
jne 0x4b1d79
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4b1d85
cmp byte [ecx + 1], 0xa
jne 0x4b1d85
inc ecx
jmp 0x4b1d85
movzx eax, al
movsx eax, byte [eax + 0x4e3280]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4b1d5f
cmp edx, ebx
jne 0x4b1d5f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4b1db6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00499333
leave
ret

Function at 0x4b66e6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c9668
push 0x4c9660
push 0x4c9668
push 0x1e
call fcn.004b6c42
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b671a
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x4b6720
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4b6764
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c968c
push 0x4c9684
push 0x4c968c
push 0x20
call fcn.004b6c42
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b679b
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4bb562
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4e3014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4bb5ad
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004bb6d8
test al, al
jne 0x4bb5a7
sub edx, 2
cmp edx, edi
jne 0x4bb58d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4bb5cf
lea eax, [edi + 2]
cmp edx, eax
je 0x4bb5cf
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004bb4ae
add esp, 0x10
jmp 0x4bb6c9
push esi
lea ecx, [ebp - 0x255]
call fcn.004bb6d8
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4bb612
push dword [ebp - 0x25c]
jmp 0x4bb5bf
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4bb64f
cmp word [ebp - 0x226], 0
je 0x4bb670
cmp word [ebp - 0x226], ax
jne 0x4bb64f
cmp word [ebp - 0x224], 0
je 0x4bb670
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004bb4ae
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4bb6bc
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4bb629
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4bb6a4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4bb6c9
push 0x4bb700
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004b29a0
add esp, 0x10
jmp 0x4bb699
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00499333
leave
ret
Function at 0x4bca51
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 0x4bcaee
push ebx
push esi
call fcn.004bcb3f
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.004bc99a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4bca9b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4bcaed
push edi
push eax
call fcn.00440a80
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4bcabb
call fcn.00440ad0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4bcaec
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004bc99a
add esp, 0x20
test eax, eax
jne 0x4bcada
push edi
call fcn.00440ad0
jmp 0x4bcae2
push ebx
call fcn.00440ad0
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 0x4bcaf1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4bcb02
pop esi
ret
push ebx
push edi
push esi
call fcn.004bcb3f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00440a80
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4bcb2a
push ebx
push esi
push edi
call fcn.0049b920
add esp, 0xc
push 0
call fcn.00440ad0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4bcb81
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004bcdea

Function at 0x4bfb60
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004bfb6b
Function at 0x401b60
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0xc]
sub esp, 0x100
lea ecx, [esp]
push eax
mov eax, dword [esp + 0x108]
push 0xff
push ecx
mov ecx, dword [eax]
push edx
mov edx, dword [str.Properties]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esp + 0x108]
lea eax, [esp]
push eax
call sub.MFC42.DLL_CString::operator_1
add esp, 0x100
ret 0xc
Function at 0x4022b0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4057fd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov ecx, dword [ecx + 4]
mov eax, dword [esp + 0x12c]
mov edx, dword [str.Properties]
push ebp
mov eax, dword [eax]
push esi
push edi
push ecx
lea ecx, [esp + 0x2c]
push 0xff
push ecx
push 0x4085f8
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x28]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0xc]
push 0x2c
mov dword [esp + 0x134], 0
mov esi, dword [ecx - 8]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find
mov edi, eax
lea edx, [esp + 0x20]
push edi
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Left
mov eax, esi
lea ecx, [esp + 0x14]
sub eax, edi
mov byte [esp + 0x130], 1
dec eax
push eax
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Right
push 0x2c
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 2
call sub.MFC42.DLL_CString::Find
mov ebp, eax
lea edx, [esp + 0x1c]
push ebp
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
mov eax, esi
lea ecx, [esp + 0x10]
sub eax, ebp
mov byte [esp + 0x130], 3
sub eax, edi
sub eax, 2
push eax
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Right
push 0x2c
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 4
call sub.MFC42.DLL_CString::Find
lea edx, [esp + 0x24]
push eax
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push 0x2c
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 5
call sub.MFC42.DLL_CString::ReverseFind
sub esi, eax
dec esi
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Right
mov ecx, dword [esp + 0x20]
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
push ecx
mov byte [esp + 0x134], 6
call edi
mov esi, dword [esp + 0x140]
mov edx, dword [esp + 0x20]
push edx
mov word [esi], ax
call edi
mov word [esi + 2], ax
mov eax, dword [esp + 0x2c]
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x18]
mov word [esi + 4], ax
push ecx
lea ecx, [esi + 8]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x130], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x130], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x130], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x130], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x130], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x130], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x128
ret 8
Function at 0x402ab0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x405890
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CFile::CFile
mov esi, dword [esp + 0x28]
xor ebx, ebx
push ebx
push ebx
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x2c], ebx
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x402b51
lea ecx, [esp + 0x28]
call fcn.00404e54
mov eax, dword [esi]
lea ecx, [esp + 0x28]
push eax
push str.Unable_to_open__s_file__please_that_the_file_is_exist_
push ecx
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x34]
add esp, 0xc
push ebx
push ebx
push edx
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.00404efc
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
push ebp
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFile::GetLength
mov edi, dword [esp + 0x38]
push eax
mov dword [edi], eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov ebp, eax
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push eax
push ebp
call sub.MFC42.DLL_CFile::Read
push 0x5c
mov ecx, esi
call sub.MFC42.DLL_CString::ReverseFind
mov ecx, dword [esi]
lea edx, [esp + 0x30]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::Right
mov edi, dword [esp + 0x34]
push eax
mov ecx, edi
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
push 0x2e
mov ecx, edi
call sub.MFC42.DLL_CString::Find
push eax
lea eax, [esp + 0x3c]
push eax
mov ecx, edi
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, edi
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x38]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFile::Close
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00404efc
mov ecx, dword [esp + 0x20]
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
Function at 0x40117d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x108
call fcn.00401c98
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0x419216
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
push 0x108
call fcn.00401c98
add esp, 4
mov dword [ebp - 8], eax
mov edi, eax
mov esi, 0x419216
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
mov ebx, dword [ebp - 4]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 0
add ebx, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov byte [ebx], 0
mov ebx, dword [ebp - 8]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 0
add ebx, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov byte [ebx], 0
mov eax, dword [ebp - 4]
add eax, 8
mov ecx, 0x100
xor ebx, ebx
sub bl, cl
mov byte [ebx + eax], bl
loop 0x401216
push eax
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
mov edi, dword [edx + 4]
add edx, 8
mov esi, dword [ebp - 8]
add esi, 8
mov ecx, 0x100
xor ebx, ebx
cmp ebx, edi
jb 0x40123e
xor ebx, ebx
mov ah, byte [ebx + edx]
mov byte [esi], ah
inc esi
inc ebx
loop 0x401238
pop edi
xor ebx, ebx
sub esi, 0x100
xor eax, eax
mov ecx, 0x100
mov dl, byte [eax + esi]
add bl, dl
mov dl, byte [eax + edi]
add bl, dl
mov dl, byte [eax + edi]
mov dh, byte [ebx + edi]
mov byte [eax + edi], dh
mov byte [ebx + edi], dl
inc eax
loop 0x401257
mov esi, dword [ebp + 8]
mov esi, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0xc], ecx
add esi, 8
push dword [ebp - 0xc]
call fcn.00401323
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40129f
push ebx
call fcn.00401c86
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
add edx, 8
xor eax, eax
xor ebx, ebx
push ecx
movzx ecx, al
inc cl
push edx
mov dh, byte [ecx + edi]
add bl, dh
mov dl, byte [ebx + edi]
mov byte [ecx + edi], dl
mov byte [ebx + edi], dh
add dl, dh
movzx edx, dl
mov dl, byte [edx + edi]
mov cl, byte [eax + esi]
xor cl, dl
pop edx
mov byte [eax + edx], cl
inc eax
pop ecx
loop 0x4012b4
mov ebx, dword [ebp - 4]
push ebx
call fcn.00401c86
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
call fcn.00401c86
add esp, 4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402090
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4020f9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00401f70
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x408072
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a2b4]
jne 0x40807c
repz ret
jmp fcn.0040adcb
Function at 0x40a99b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00405f78
xor ebx, ebx
cmp dword [0x41ce48], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40aa70
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40a9db
xor eax, eax
jmp 0x40ab34
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x414aa0
push edi
call esi
cmp eax, ebx
je 0x40a9d4
push eax
call fcn.00405f15
mov dword [esp], 0x414a90
push edi
mov dword [0x41ce48], eax
call esi
push eax
call fcn.00405f15
mov dword [esp], 0x414a7c
push edi
mov dword [0x41ce4c], eax
call esi
push eax
call fcn.00405f15
mov dword [0x41ce50], eax
lea eax, [ebp - 8]
push eax
call fcn.004031a8
test eax, eax
pop ecx
pop ecx
je 0x40aa3e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00408176
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40aa70
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00405f15
cmp eax, ebx
pop ecx
mov dword [0x41ce58], eax
je 0x40aa70
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405f15
pop ecx
mov dword [0x41ce54], eax
mov eax, dword [0x41ce54]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40aae9
cmp dword [0x41ce58], esi
je 0x40aae9
push eax
call fcn.00405f81
pop ecx
call eax
cmp eax, ebx
je 0x40aab6
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x41ce58]
call fcn.00405f81
pop ecx
call eax
test eax, eax
je 0x40aab6
test byte [ebp - 0x18], 1
jne 0x40aae9
lea eax, [ebp - 0xc]
push eax
call fcn.004031df
test eax, eax
pop ecx
je 0x40aad1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00408176
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40aae0
or dword [ebp + 0x10], 0x200000
jmp 0x40ab1a
or dword [ebp + 0x10], 0x40000
jmp 0x40ab1a
mov eax, dword [0x41ce4c]
cmp eax, esi
je 0x40ab1a
push eax
call fcn.00405f81
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40ab1a
mov eax, dword [0x41ce50]
cmp eax, esi
je 0x40ab1a
push dword [ebp - 4]
push eax
call fcn.00405f81
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x41ce48]
call fcn.00405f81
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x410e0e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x410e3c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x410e5a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00410d74
jmp 0x410e5a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x410e5a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00410d74
test edi, edi
mov eax, edi
jne 0x410e44
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8