joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6e04a9b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6e16e064
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6e16e05c]
sub esp, 4
test ebx, ebx
je 0x6e04aa05
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6e04a9fe
test esi, esi
je 0x6e04a9fe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6e04a9e0
mov dword [esp], 0x6e16e064
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6e04ad30
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x6e040000], 0x5a4d
jne 0x6e04ad55
mov ecx, dword [0x6e04003c]
cmp dword [ecx + 0x6e040000], 0x4550
lea edx, [ecx + 0x6e040000]
je 0x6e04ad60
ret
cmp word [ecx + 0x6e040018], 0x10b
jne 0x6e04ad55
push esi
movzx eax, word [ecx + 0x6e040014]
push ebx
movzx esi, word [ecx + 0x6e040006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x6e040000
test esi, esi
je 0x6e04ada8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6e04ad9e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x6e04adaa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x6e04ad90
xor eax, eax
pop ebx
pop esi
ret

Function at 0x6e04b320
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [0x6e16e060]
test eax, eax
jne 0x6e04aa30
ret
push ebx
sub esp, 0x18
mov dword [esp + 4], 0xc
mov dword [esp], 1
call sub.msvcrt.dll_calloc
mov ebx, eax
test eax, eax
je 0x6e04aa90
mov eax, dword [esp + 0x20]
mov dword [esp], 0x6e16e064
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x6e16e05c]
mov dword [0x6e16e05c], ebx
sub esp, 4
mov dword [ebx + 8], eax
mov dword [esp], 0x6e16e064
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
sub esp, 4
add esp, 0x18
pop ebx
ret
or eax, 0xffffffff
jmp 0x6e04aa8b
push esi
push ebx
sub esp, 4
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x6e04b350
mov dword [esi], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
add esp, 4
pop ebx
pop esi
jmp 0x6e05ad80
add esp, 4
pop ebx
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 8]
test eax, eax
jne 0x6e05ad90
xor eax, eax
ret
jmp 0x6e04aa20

Function at 0x6e04b390
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x6e04b3d0
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x6e04b3f8
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x6e05add8
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0x5c
mov eax, dword [esp + 0x60]
mov dword [esp + 0x1c], eax
mov eax, dword [0x6e16e02c]
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp], 1
mov eax, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
call eax
sub esp, 4
test eax, eax
sete al
test al, al
je 0x6e05ae40
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.6e0a9900
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2b]
mov dword [esp + 4], edx
mov dword [esp], 0x6e128432
mov ecx, eax
call fcn.6e0e6b20
sub esp, 8
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.6e0a9930
jmp 0x6e05afb0
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_OpenClipboard]
call eax
sub esp, 4
test eax, eax
sete al
test al, al
je 0x6e05ae92
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.6e0a9900
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2b]
mov dword [esp + 4], edx
mov dword [esp], 0x6e128432
mov ecx, eax
call fcn.6e0e6b20
sub esp, 8
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.6e0a9930
jmp 0x6e05afb0
mov dword [esp], 1
mov eax, dword [sym.imp.USER32.dll_GetClipboardData]
call eax
sub esp, 4
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x2c], 0
jne 0x6e05aeed
mov eax, dword [sym.imp.USER32.dll_CloseClipboard]
call eax
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.6e0a9900
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2b]
mov dword [esp + 4], edx
mov dword [esp], 0x6e128432
mov ecx, eax
call fcn.6e0e6b20
sub esp, 8
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.6e0a9930
jmp 0x6e05afb0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GlobalLock]
call eax
sub esp, 4
mov dword [esp + 0x30], eax
cmp dword [esp + 0x30], 0
jne 0x6e05af45
mov eax, dword [sym.imp.USER32.dll_CloseClipboard]
call eax
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.6e0a9900
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2b]
mov dword [esp + 4], edx
mov dword [esp], 0x6e128432
mov ecx, eax
call fcn.6e0e6b20
sub esp, 8
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.6e0a9930
jmp 0x6e05afb0
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.6e0a9900
lea eax, [esp + 0x34]
lea edx, [esp + 0x2b]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x30]
mov dword [esp], edx
mov ecx, eax
call fcn.6e0e6b20
sub esp, 8
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.6e0a9930
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call eax
sub esp, 4
mov eax, dword [sym.imp.USER32.dll_CloseClipboard]
call eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x34]
mov dword [esp], edx
mov ecx, eax
call fcn.6e0e6a50
sub esp, 4
lea eax, [esp + 0x34]
mov ecx, eax
call fcn.6e0e7640
mov eax, dword [esp + 0x4c]
sub eax, dword [0x6e16e02c]
je 0x6e05afc1
call fcn.6e0415c0
mov eax, dword [esp + 0x1c]
add esp, 0x5c
ret
Function at 0x6e05f590
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x80]
mov esi, 0x6e129e11
push ebx
sub esp, 0x9c
mov eax, dword [str.not_enough_space_for_format_expansion__Please_submit_full_bug_report_at_https:__gcc.gnu.org_bugs__:_n]
mov dword [ebp - 0x81], eax
mov eax, dword [0x6e129e75]
mov dword [ebp - 0x1c], eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
lea eax, [edx + 0x84]
and eax, 0xfffffff0
call fcn.6e04b010
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x81]
mov dword [ebp - 0x8c], edx
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
lea eax, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x8c]
mov byte [ebx + edx + 0x68], 0
mov dword [esp], ebx
call fcn.6e11eae0
nop
nop
nop
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x6e12726c], 0
jne 0x6e05f6b6
mov byte [0x6e12726c], 1
call fcn.6e11cbd0
test eax, eax
je 0x6e05f684
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call fcn.6e04a220
mov dword [esp], 2
mov esi, dword [fcn.6e05ab80]
mov edi, eax
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp], 2
test edx, edx
je 0x6e05f674
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x6e12a555
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x6e11f360
jmp 0x6e11f358
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x6e05f63a
mov dword [esp], 2
call dword [0x6e126178]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sub.msvcrt.dll_fwrite
jmp 0x6e11f353
mov dword [esp], 2
call dword [0x6e126178]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x6e12a504
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
call sub.msvcrt.dll_abort
mov dword [esp], edi
call fcn.6e05a428
call fcn.6e11cfa0
call fcn.6e11cab0
call fcn.6e11cc20
jmp 0x6e11f353
Function at 0x6e070bd4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
sub esp, 0x68
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], eax
mov eax, edx
mov byte [esp + 0x10], al
mov eax, dword [0x6e16e02c]
mov dword [esp + 0x5c], eax
xor eax, eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.6e1184f0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x44]
mov ecx, eax
call fcn.6e0e6ee0
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x14]
je 0x6e070c78
mov eax, dword [esp + 0x18]
movzx eax, byte [eax]
movsx edx, al
mov eax, dword [esp + 0x28]
mov dword [esp], edx
mov ecx, eax
call fcn.6e06a10c
sub esp, 4
movsx edx, al
mov eax, dword [esp + 0x28]
mov dword [esp + 4], 0
mov dword [esp], edx
mov ecx, eax
call fcn.6e069ff0
sub esp, 8
movsx edx, al
lea eax, [esp + 0x44]
mov dword [esp], edx
mov ecx, eax
call fcn.6e0e7a60
sub esp, 4
add dword [esp + 0x18], 1
jmp 0x6e070c1c
mov dword [esp + 0x2c], str.dwsmaklthrtter
mov dword [esp + 0x24], 0x6e132ec0
mov dword [esp + 0x30], 0x6e132f38
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x30]
je 0x6e070d80
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
mov dword [esp + 4], eax
lea eax, [esp + 0x44]
mov dword [esp], eax
call fcn.6e119074
test al, al
je 0x6e070d76
cmp byte [esp + 0x10], 0
je 0x6e070d41
lea eax, [esp + 0x40]
mov dword [esp + 4], 0
mov dword [esp], 0
mov ecx, eax
call fcn.6e0eb530
sub esp, 8
lea eax, [esp + 0x38]
mov dword [esp + 4], 0
mov dword [esp], 3
mov ecx, eax
call fcn.6e0eb530
sub esp, 8
mov eax, dword [esp + 0x34]
add eax, 4
mov edx, dword [esp + 0x38]
mov dword [esp], edx
mov ecx, eax
call fcn.6e070a40
sub esp, 4
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esp], edx
mov ecx, eax
call fcn.6e070b18
sub esp, 4
test al, al
je 0x6e070d41
mov eax, 1
jmp 0x6e070d46
mov eax, 0
test al, al
je 0x6e070d6d
lea eax, [esp + 0x40]
mov dword [esp + 4], 0
mov dword [esp], 4
mov ecx, eax
call fcn.6e0eb530
sub esp, 8
mov ebx, dword [esp + 0x40]
jmp 0x6e070da1
mov eax, dword [esp + 0x34]
mov ebx, dword [eax + 4]
jmp 0x6e070da1
add dword [esp + 0x24], 8
jmp 0x6e070c90
lea eax, [esp + 0x40]
mov dword [esp + 4], 0
mov dword [esp], 0
mov ecx, eax
call fcn.6e0eb530
sub esp, 8
mov ebx, dword [esp + 0x40]
lea eax, [esp + 0x44]
mov ecx, eax
call fcn.6e0e7640
mov eax, ebx
mov ebx, dword [esp + 0x5c]
sub ebx, dword [0x6e16e02c]
je 0x6e070dbf
call fcn.6e0415c0
add esp, 0x68
pop ebx
ret 0xc
Function at 0x6e070f40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov eax, dword [0x6e16e02c]
mov dword [esp + 0x5c], eax
xor eax, eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.6e1184f0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x44]
mov ecx, eax
call fcn.6e0e6ee0
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x10]
je 0x6e070fcd
mov eax, dword [esp + 0x14]
movzx eax, byte [eax]
movsx edx, al
mov eax, dword [esp + 0x34]
mov dword [esp + 4], 0
mov dword [esp], edx
mov ecx, eax
call fcn.6e069ff0
sub esp, 8
movsx edx, al
lea eax, [esp + 0x44]
mov dword [esp], edx
mov ecx, eax
call fcn.6e0e7a60
sub esp, 4
add dword [esp + 0x14], 1
jmp 0x6e070f85
mov dword [esp + 0x38], 0x6e127280
mov dword [esp + 0x30], 0x6e127280
mov dword [esp + 0x3c], 0x6e127480
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x3c]
je 0x6e07107b
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
mov dword [esp + 4], eax
lea eax, [esp + 0x44]
mov dword [esp], eax
call fcn.6e119074
test al, al
je 0x6e071071
lea eax, [esp + 0x2f]
mov ecx, eax
call fcn.6e0a9900
mov eax, dword [esp + 0x40]
sub eax, 0x6e127280
sar eax, 2
movsx edx, al
mov eax, dword [esp + 0x34]
mov dword [esp], edx
mov ecx, eax
call fcn.6e069f20
sub esp, 4
movsx edx, al
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x2f]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], 1
mov ecx, eax
call fcn.6e0e6e40
sub esp, 0xc
lea eax, [esp + 0x2f]
mov ecx, eax
call fcn.6e0a9930
jmp 0x6e071086
add dword [esp + 0x30], 4
jmp 0x6e070fe5
mov eax, dword [esp + 0x1c]
mov ecx, eax
call fcn.6e0e6ee0
lea eax, [esp + 0x44]
mov ecx, eax
call fcn.6e0e7640
mov eax, dword [esp + 0x5c]
sub eax, dword [0x6e16e02c]
je 0x6e0710a2
call fcn.6e0415c0
mov eax, dword [esp + 0x1c]
add esp, 0x6c
ret 0xc
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x50cb064a
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x284a16fa
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x41cef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov edi, dword [esi - 0x7ceb137d]
jge 0x41cf09
dec edi
jl 0x41cf4c
mov dword [ebp + 0x10], 0xee00004e
sti
inc ebp
or ah, bl
sbb eax, 0x40c230
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x20]
push esi
xor dh, 0x57
xchg edi, eax
std
mov dword [ecx - 4], esi
mov dword [ecx], esi
cmc
les eax, [0xcc7a0f8b]
fld qword [ebp + 8]
mov fs, eax
fucomp st(2)
or bh, al
add dword [ecx], eax
int 0
add byte [ebx + 0x558b0c6b], cl
or byte [ebp + 0x5150ec45], cl
push edx
push dword [ebx + 0x405018]
frstor dword [ecx - 0x13ba229a]
fcomp qword [0x40c230]
ret 0x40
sbb eax, 0x40c230
xor dl, al
inc eax
add byte [ebp + 7], al
inc ebp
pop es
cmp dl, byte [ecx]
loopne 0x41cf4d
jno 0x41cf9d
jnp 0x41cfcd
lea esi, [ebx + 0x50]
cmp esi, ebx
jbe 0x41cfba
jbe 0x41cfa9
in al, dx
xor dword [ecx + 0x40c230], ebp
fnstsw ax
test ah, 0x1a
jnp 0x41cfba
fstp qword [ecx + 0x100ddcec]
ret
add bl, al
call 0x361cb7a4
add byte [eax], al
mov ebx, dword [ebp + 0x18]
mov cl, 0x30
invalid
and al, byte [ebx + 0x50]
cmp esi, eax
jae 0x41d01d
mov dl, byte [esi]
pop edx
pop ss
inc edi
or bh, byte [ebx]
invalid
fld qword [ebp - 0x5e]
fcomp qword [0x40c2eb]
fnstsw ax
and eax, 0x2500
jne 0x41d01d
invalid
mov ecx, dword [esi]
adc byte [ebp + 0x451a1893], cl
mov ebx, 0x375c085
add edi, dword [0x144d49fc]
cmp ebp, edi
jae 0x41cfc3
test dword [eax + edx - 0x762708a1], ebx
add esi, eax
add ebp, dword [edx + 0x5b5e698b]
mov esp, ebp
pop ebp
ret
Function at 0x4020f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402107
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402138
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x402134
cmp esi, eax
jae 0x402138
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x402124
cmp esi, eax
jb 0x40213e
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x403750
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x473388
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x482534]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
call fcn.004027b0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4037a4
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x14]
call fcn.00402af0
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push edi
mov ecx, esi
mov word [esi + 4], di
call fcn.004027b0
cmp dword [esp + 0x24], 8
jb 0x4037ea
mov eax, dword [esp + 0x10]
push eax
call fcn.00404706
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x404449
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x482534]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00404388
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00408780
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x404498
cmp dword [ebp - 0x1c], 5
jb 0x4044b0
jmp 0x4044ac
cmp dword [ebp - 0x10], 1
jne 0x4044b0
cmp dword [ebp - 0x1c], 4
ja 0x4044ac
jne 0x4044b0
cmp dword [ebp - 0x18], 0
jbe 0x4044b0
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4742ec
call fcn.0040421e
test eax, eax
jge 0x4044d1
mov byte [0x4867b0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040470b
add ebp, 0x78
leave
ret

Function at 0x40470b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x482534]
jne 0x404715
repz ret
jmp fcn.00408c11
Function at 0x40a93f
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x482560]
je 0x40a95a
inc edi
cmp edi, 0x17
jb 0x40a94b
cmp edi, 0x17
jae 0x40aada
push ebp
push 3
call fcn.00410a54
cmp eax, 1
pop ecx
je 0x40aaa6
push 3
call fcn.00410a54
test eax, eax
pop ecx
jne 0x40a98e
cmp dword [0x482388], 1
je 0x40aaa6
cmp ebx, 0xfc
je 0x40aad9
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x483de8
push ebp
call fcn.0040ab4e
add esp, 0xc
test eax, eax
je 0x40a9c4
push esi
push esi
push esi
push esi
push esi
call fcn.00404792
add esp, 0x14
push 0x104
mov esi, 0x483e01
push esi
push 0
mov byte [0x483f05], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40aa08
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040ab4e
add esp, 0xc
test eax, eax
je 0x40aa08
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00404792
add esp, 0x14
push esi
call fcn.00406800
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40aa4d
push esi
call fcn.00406800
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4840fc
push 0x4752ac
sub ecx, eax
push ecx
push eax
call fcn.0040fba7
add esp, 0x14
test eax, eax
je 0x40aa4d
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00404792
add esp, 0x14
jmp 0x40aa4f
xor esi, esi
push 0x4752a8
push ebx
push ebp
call fcn.0040fb36
add esp, 0xc
test eax, eax
je 0x40aa6f
push esi
push esi
push esi
push esi
push esi
call fcn.00404792
add esp, 0x14
push dword [edi*8 + 0x482564]
push ebx
push ebp
call fcn.0040fb36
add esp, 0xc
test eax, eax
je 0x40aa91
push esi
push esi
push esi
push esi
push esi
call fcn.00404792
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00410897
add esp, 0xc
jmp 0x40aad9
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40aad9
cmp ebp, 0xffffffff
je 0x40aad9
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x482564]
push dword [esi]
call fcn.00406800
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret