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

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x53e4be
mov eax, ebx
call fcn.0053ef34
cmp dword [ebx + 0x3c], 0
je 0x53e4b7
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x53e52f
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x53e521
cmp dword [ebx + 8], 0
je 0x53e4e0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x53e4f2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x53e521
cmp dword [ebx + 8], 0
je 0x53e4d3
cmp eax, 3
je 0x53e505
dec eax
jne 0x53e4d3
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 0x53e4d3
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x53e4d3
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x53e54d
cmp dword [ebx + 0x10], 0xcc
je 0x53e54d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0053e558
pop ebx
ret

Function at 0x54895c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, ecx
mov esi, edx
mov ebx, eax
mov ebp, 0x96de24
test esi, esi
jne 0x548976
xor eax, eax
jmp 0x548a78
cmp dword [ebp], 0
jne 0x548981
call fcn.005488ec
xor ebx, 0xffffffff
cmp edi, 8
jb 0x548a51
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
sub edi, 8
cmp edi, 8
jae 0x54898d
test edi, edi
jbe 0x548a73
xor eax, eax
mov al, byte [esi]
xor eax, ebx
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
dec edi
test edi, edi
ja 0x548a55
mov eax, ebx
xor eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x57e504
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x57e53c]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x57e51a
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x57e529
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x57e538
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x57f8d8
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x59bb04]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x57f8fe
push 0
mov eax, dword [0x59bb04]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x5883e4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x588445
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, 0x58845c
call fcn.004050e4
mov eax, dword [ebp - 4]
call fcn.00405298
push eax
push 0x58848c
push 0x58849c
push esi
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
seta bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58844c
lea eax, [ebp - 4]
call fcn.00404dd8
ret
Function at 0x1004bbdd
Capabilities:
Encrypt data using rc4 prga

Disassembly:
out dx, al
jge 0x1004bbbd
adc dh, byte [edi + 0x20]
shr byte [ebx - 0x14646dd4], 1
mov cl, 0x22
pop ss
lodsd eax, dword [esi]
mov esi, 0x1b79eaea
rep movsd dword es:[edi], dword [esi]
mov esp, 0xe2c0c7a2
cmp eax, 0x6b6d8cf0
pushal
and ah, byte [ecx - 0x48]
retf 0xd5f4
cmp cl, bh
cmp ebx, 2
pushfd
pushfd
lea esp, [esp + 0x10]
je 0x1005eedd
stc
bt cx, 4
cmp ebx, 3
pushal
call fcn.1005f558
loopne 0x1004bb9b
and dword [eax + ecx*2 + 0x73ceb2d5], 0x62
int3

Function at 0x1005db94
Capabilities:
Encode data using xor

Disassembly:
pushal
pushal
dec al
mov byte [esp + 8], dh
rol al, 5
cmp edi, edx
cmp al, byte [edi]
movsx ax, bl
seto ah
lea edi, [edi + 1]
bswap eax
setno ah
not ax
mov eax, dword [esp + 0x40]
pushfd
lea esp, [esp + 0x48]
ja 0x1005cd6b
push edi
pushfd
call fcn.1004c019
stc
mov ch, 0x9c
dec edx
dec eax
aad 0x7f
movsd dword es:[edi], dword [esi]
invalid
cmp dword [ebp - 0x3ca9d30b], ebx
ljmp 0xf379
jns 0x10048fba
fild dword [ebx]
wait
vmovhpd qword [ecx], xmm3
std
stc
mov dl, 0x2a
push edx
xlatb
push cs
aad 0xea
sbb al, byte [esi - 0x24]
pushfd
bound eax, qword [0x19f463ab]
inc esi
inc ebp
popfd
pushfd
mov edi, 0xd5f5e0ee
mov ebp, 0x277756ec
push esi
jbe 0x10048fc5
adc byte [edi + 0x49], 0x3b
salc
sub esp, dword [edx]
invalid
cmp ecx, dword [ebp - 4]
pushfd
call fcn.10060ee3
add byte [eax], al
add byte [eax], al
add byte [eax], al
cdq
sal dword [edi + 0x54], 1
add byte [eax], al
add byte [eax], al
mov eax, 0x1000490
add byte [eax], al
add byte [0x5000000], al
add byte [eax], al
add byte [eax], dh
nop
add al, 0
dec esi
nop
add al, 0
inc esp
nop
add al, 0
jo 0x10048fc5
add byte [eax], al
mov al, byte [0xd0000093]
xchg ebx, eax
add byte [eax], al
invalid
xor al, 0x24
lea esp, [esp + 0x30]
jne 0x100460df
pushal
dec al
pushfd
rol al, 5
bt ax, cx
stc
pushfd
pushfd
cmp al, byte [edi]
movsx eax, dl
pushfd
lea edi, [edi + 1]
mov ah, dl
call fcn.10060a02
sub dword [esi + 0x35], ecx
stosb byte es:[edi], al
dec ecx
aad 0xa4
jle 0x1005c174
test dword [ebx], ebp
adc al, 2
sti
jmp 0x46a0ee1e
stc
test dh, 0x33
test bl, dh
jmp 0x10048ffd
pushfd
mov byte [esp + 4], 0xdf
mov dword [esp + 4], eax
pushal
pushfd
lodsb al, byte [esi]
clc
xor al, 0x4a
stc
neg al
bt dx, 0xa
stc
clc
clc
ror al, 1
pushfd
test cl, ah
pushfd
add al, 0x32
cmc
not al
stc
xor al, 0x86
jmp 0x1005c199

Function at 0x1005f558
Capabilities:
Encrypt data using rc4 prga

Disassembly:
lea esp, [esp + 0x24]
jo 0x1006125f
je 0x1004d0d3
pushal
lea esp, [esp + 0x20]
jmp 0x1006126a
jmp 0x1005f53e

Function at 0x10060f0e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
lea esp, [esp + 0x44]
jbe 0x1004ba46
neg si
rol si, cl
sub ecx, 1
bsf di, sp
xor si, di
mov dword [ebp - 4], ecx
Function at 0x4010d4
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4010e6
mov eax, dword [0x44108b]
shl eax, 2
mov dword [0x44108f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004050ec
pop edx
call fcn.00404488
call fcn.004050f0
push 0
call fcn.00406640
pop ecx
push 0x441034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x441093], eax
push 0
jmp fcn.0040cd4c

Function at 0x40161c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
mov eax, dword [0x490c21]
mov edx, dword [0x490c29]
lea ecx, [ebp - 0x224]
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x490c25]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], edx
mov edx, dword [0x490c2d]
mov dword [0x4aad38], 1
mov dword [ebp - 0x18], edx
push 0x208
push ecx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x224]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401760
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov edi, eax
push 2
push 0
push 0xfffffffffffffff8
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea eax, [ebp - 4]
push 0
push eax
lea edx, [ebp - 0x14]
push 8
push edx
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x4016cb
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x401762
push 8
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0xc]
push ecx
call fcn.00405664
add esp, 0xc
test eax, eax
je 0x4016e5
xor eax, eax
jmp 0x401762
push 2
push 0
push 0xfffffffffffffff4
push ebx
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea edx, [ebp - 4]
push edx
push 4
push esi
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40170e
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x401762
push 4
push 0x1000
mov edx, dword [esi]
push edx
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [0x49016c], eax
mov eax, edi
sub eax, dword [esi]
sub eax, 0xc
push 0
push 0
push eax
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea edx, [ebp - 4]
push 0
push edx
mov eax, dword [0x49016c]
mov ecx, dword [esi]
push ecx
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x401759
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x401762
mov eax, 1
jmp 0x401762
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401838
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffba8
push ebx
push esi
cmp dword [ebp + 0xc], 0
je 0x40185e
lea eax, [ebp - 0x458]
push eax
call fcn.004017a4
pop ecx
test eax, eax
jne 0x4018fe
push 0x400
push 0
lea edx, [ebp - 0x458]
push edx
call fcn.0040540c
add esp, 0xc
lea ecx, [ebp - 0x458]
push ecx
push 0x1ff
call sub.KERNEL32.DLL_GetTempPathA
push str.YShow3D.exe
lea eax, [ebp - 0x458]
push eax
call sub.KERNEL32.DLL_lstrcatA
push 4
push 0x1000
push 0xf000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov ebx, eax
test ebx, ebx
jne 0x4018b6
xor eax, eax
jmp 0x40197c
push ebx
push 0x4810a4
call fcn.0040f62c
add esp, 8
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
lea edx, [ebp - 0x458]
push edx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x4018fe
push 0
lea eax, [ebp - 4]
push eax
push 0xf000
push ebx
push esi
call sub.KERNEL32.DLL_WriteFile
push esi
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x458]
push ecx
call sub.KERNEL32.DLL_lstrcatA
push 0x44
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.0040540c
add esp, 0xc
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], 1
push 0x10
push 0
lea edx, [ebp - 0x58]
push edx
call fcn.0040540c
add esp, 0xc
lea ecx, [ebp - 0x58]
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x458]
push ecx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
jne 0x40196c
xor eax, eax
jmp 0x40197c
push 0xffffffffffffffff
mov edx, dword [ebp - 0x58]
push edx
call sub.KERNEL32.DLL_WaitForSingleObject
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4036a8
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 0x14]
add eax, dword [ebp + 0xc]
add eax, 0x18
xor ecx, ecx
jmp 0x4036dc
mov edx, dword [eax + 8]
test edx, edx
jne 0x4036cb
mov edx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
cmp ebx, esi
jb 0x4036d8
add edx, esi
cmp ebx, edx
jb 0x4036e9
inc ecx
add eax, 0x28
mov edx, dword [ebp + 0xc]
movzx edx, word [edx + 6]
cmp ecx, edx
jb 0x4036c1
xor eax, eax
pop esi
pop ebx
pop ebp
ret
Function at 0x403724
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
je 0x40373e
xor eax, eax
jmp 0x4038be
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x403752
xor eax, eax
jmp 0x4038be
cmp word [ebx + 0x14], 0xe0
jne 0x403762
cmp word [ebx + 0x18], 0x10b
je 0x403769
xor eax, eax
jmp 0x4038be
mov dword [0x4a89e4], edi
mov ebx, dword [edi + 0x3c]
mov esi, edi
add ebx, esi
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x18], eax
push ebx
mov edx, dword [ebp - 0x18]
push edx
call fcn.004036a8
add esp, 8
test eax, eax
jne 0x403794
xor eax, eax
jmp 0x4038be
mov edx, dword [0x4a89e4]
push edx
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004036f0
add esp, 0xc
mov ebx, dword [ebx + 0x78]
test ebx, ebx
jne 0x4037c6
push 0x10
push 0
push str.Error_in_GetProcAddressDirectly__
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
jmp 0x4038be
add ebx, esi
mov edx, dword [ebx + 0x24]
add edx, esi
mov dword [ebp - 4], edx
mov ecx, dword [ebx + 0x20]
add ecx, esi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x1c]
add eax, esi
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
mov ecx, edx
shr ecx, 0x10
test cx, cx
je 0x403890
xor esi, esi
mov eax, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 0x28], edx
jmp 0x403882
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
test eax, eax
je 0x40387d
xor edx, edx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x28]
mov eax, ecx
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0xc]
mov ecx, edx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
mov edx, eax
mov dword [ebp - 0x1c], edx
jmp 0x403874
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp esi, eax
jne 0x403869
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx]
add ecx, edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x403869
test cl, cl
je 0x40385e
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x403869
add eax, 2
add edx, 2
test cl, cl
jne 0x403842
jne 0x403869
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, edi
jmp 0x4038be
inc dword [ebp - 0x14]
add dword [ebp - 0x20], 4
add dword [ebp - 0x1c], 2
mov edx, dword [ebx + 0x18]
dec edx
cmp edx, dword [ebp - 0x14]
jae 0x403828
inc esi
add dword [ebp - 0x28], 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x403800
jmp 0x4038bc
xor esi, esi
mov eax, dword [ebp - 8]
jmp 0x4038b4
mov ecx, dword [ebx + 0x10]
add ecx, esi
cmp edx, ecx
jne 0x4038b0
cmp dword [eax], 0
je 0x4038b0
mov edx, dword [eax]
shl edx, 6
add edi, edx
mov eax, edi
jmp 0x4038be
inc esi
add eax, 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x403897
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403a7c
Capabilities:
Check for software breakpoints
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401e20
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403b2f
mov eax, fcn.00401a1c
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403b2f
mov eax, fcn.00403c9c
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403b2f
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
xor ebx, ebx
mov edi, 0x20
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x403b2f
add ebx, 0x9e3779b9
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
add edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
add ecx, eax
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403af7
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403b4c
Capabilities:
Check for software breakpoints
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401e20
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403c02
mov eax, fcn.00401a1c
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403c02
mov eax, fcn.00403b4c
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403c02
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ebx, 0xc6ef3720
mov edi, 0x20
mov ecx, dword [edx]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x403c02
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
sub edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
sub ecx, eax
sub ebx, 0x9e3779b9
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403bca
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403cec
Capabilities:
Check for software breakpoints
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401e20
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403da2
mov eax, fcn.00401a1c
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403da2
mov eax, fcn.00403c9c
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403da2
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ebx, 0xc6ef3720
mov edi, 0x20
mov ecx, dword [edx]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x403da2
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
sub edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
sub ecx, eax
sub ebx, 0x9e3779b9
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403d6a
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404de0
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x4068a8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4068c4
call fcn.00407c74
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4068df
test bl, 1
je 0x4068df
mov dword [0x493110], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x406a8c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x406aab
mov eax, dword [0x492238]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x406ab8
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x406ae5
je 0x406af7
sub ecx, 0x100
je 0x406b05
sub ecx, 0x100
je 0x406b0c
sub ecx, 0x100
je 0x406afe
jmp 0x406b13
sub ecx, 0x600
je 0x406b0c
sub ecx, 0x100
je 0x406af7
jmp 0x406b13
mov edi, 1
jmp 0x406b18
mov edi, 2
jmp 0x406b18
mov edi, 4
jmp 0x406b18
mov edi, 5
jmp 0x406b18
mov edi, 3
test byte [ebp + 0xd], 1
je 0x406b3f
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x491cb0]
test al, 0x80
je 0x406b38
mov ebx, 0x80
jmp 0x406b51
mov ebx, 1
jmp 0x406b51
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x406b51
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x406b63
je 0x406b6c
dec eax
je 0x406b75
jmp 0x406b7e
mov dword [ebp - 4], 0x80000000
jmp 0x406b8d
mov dword [ebp - 4], 0x40000000
jmp 0x406b8d
mov dword [ebp - 4], 0xc0000000
jmp 0x406b8d
push 1
call fcn.00407c10
pop ecx
mov ebx, eax
jmp 0x406c7d
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x406ba9
sub eax, 0x10
je 0x406bb0
sub eax, 0x10
je 0x406bb9
sub eax, 0x10
je 0x406bc2
jmp 0x406bc2
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x406bc9
mov dword [ebp - 8], 1
jmp 0x406bc9
mov dword [ebp - 8], 2
jmp 0x406bc9
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x406c36
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x406c2b
test byte [ebp + 0xd], 1
je 0x406c26
mov ebx, 0x50
jmp 0x406c2b
mov ebx, 2
push ebx
call fcn.00407c10
pop ecx
mov ebx, eax
jmp 0x406c7d
mov edi, esi
push edi
call fcn.004069fc
pop ecx
test eax, eax
je 0x406c4a
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x406c56
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00407954
add esp, 8
mov ebx, eax
inc eax
jne 0x406c7d
push 4
call fcn.00407c10
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret