joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004840
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001c006
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100281bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10006e46
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10005c71
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100053c0
Capabilities:
Check if file exists
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001c410
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100281bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
sub dword [ebp + 0xc], 1
jne 0x100054de
push 0xa
push str.wzGold.dll
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
call fcn.100046a0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, 0x10024ed4
mov byte [ebp - 4], 1
sub eax, 0x4d16b37
lea ecx, [ebp - 0x40]
push eax
call fcn.10005970
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
sete al
test al, al
je 0x10005478
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x34]
call fcn.100051b0
test al, al
je 0x100054ac
mov edx, dword [ebp - 0x18]
xor ecx, ecx
mov esi, dword [ebp - 0x1c]
sub edx, esi
je 0x100054a2
mov al, byte [esi + ecx]
xor al, 0x77
add al, 0x10
mov byte [esi + ecx], al
inc ecx
cmp ecx, edx
jb 0x10005493
sub esp, 0x10
push edx
push esi
call fcn.10002610
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x34]
mov byte [eax], 0
call fcn.100057a0
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x100054de
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.100045c0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10006c11
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10010c6f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10010aee
Function at 0x403f9b
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x114
mov eax, dword [0x42a0d4]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x120]
push ebx
mov ebx, dword [esp + 0x120]
push ebp
mov ebp, dword [esp + 0x120]
push esi
mov esi, ecx
mov edx, dword [esi + 0x310]
neg edx
sbb edx, edx
lea ecx, [esp + 0xc]
push ecx
and edx, 0x100
add edx, 0xf003f
push edx
push 0
push ebp
push 0x80000002
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404085
push edi
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x404079
test eax, eax
jne 0x404079
xor edi, edi
test ecx, ecx
jbe 0x404079
jmp 0x404010
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x34]
push eax
push edi
push ecx
mov dword [esp + 0x38], 0x100
mov byte [esp + 0x40], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x404079
mov edx, dword [esp + 0x1c]
push edx
push ebx
lea eax, [esp + 0x28]
push eax
push ebp
mov ecx, esi
call fcn.00401b40
test eax, eax
je 0x404070
lea ecx, [esp + 0x20]
push ecx
push ebp
mov ecx, esi
call fcn.00403060
cmp dword [esi + 0x304], 0
jne 0x403fd5
add edi, 1
cmp edi, dword [esp + 0x14]
jb 0x404010
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [esp + 0x11c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405d7a
add esp, 0x114
ret 0xc

Function at 0x405d7a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a0d4]
jne 0x405d84
repz ret
jmp fcn.00408188

Function at 0x407dad
Capabilities:
Encode data using xor

Disassembly:
test bl, dl
mov ecx, edx
lea ecx, [0x799d62a4]
sbb ch, 0x9d
test cl, 0x55
inc ecx
sub eax, edi
jae 0x407d99
mov bl, 0xb7
ja 0x407da3
dec ch
test esi, 0x7d1ea4c1
push 0xd1c4c9
push eax
imul eax, ebx
cmp cl, dh
into
test edx, 0x94263058
cmp eax, 0x5dd5
jae 0x407dbf
mov ecx, ebp
mov al, ch
lea ebx, [0x512]
inc esi
Function at 0x416f13
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040a0f4
xor ebx, ebx
cmp dword [0x42bd98], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x416fe8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x416f53
xor eax, eax
jmp 0x4170ac
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x416f4c
push eax
call fcn.0040a091
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42bd98], eax
call esi
push eax
call fcn.0040a091
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42bd9c], eax
call esi
push eax
call fcn.0040a091
mov dword [0x42bda0], eax
lea eax, [ebp - 8]
push eax
call fcn.0040ef79
test eax, eax
pop ecx
pop ecx
je 0x416fb6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040c5ab
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x416fe8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040a091
cmp eax, ebx
pop ecx
mov dword [0x42bda8], eax
je 0x416fe8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040a091
pop ecx
mov dword [0x42bda4], eax
mov eax, dword [0x42bda4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x417061
cmp dword [0x42bda8], esi
je 0x417061
push eax
call fcn.0040a0fd
pop ecx
call eax
cmp eax, ebx
je 0x41702e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x42bda8]
call fcn.0040a0fd
pop ecx
call eax
test eax, eax
je 0x41702e
test byte [ebp - 0x18], 1
jne 0x417061
lea eax, [ebp - 0xc]
push eax
call fcn.0040f028
test eax, eax
pop ecx
je 0x417049
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040c5ab
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x417058
or dword [ebp + 0x10], 0x200000
jmp 0x417092
or dword [ebp + 0x10], 0x40000
jmp 0x417092
mov eax, dword [0x42bd9c]
cmp eax, esi
je 0x417092
push eax
call fcn.0040a0fd
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x417092
mov eax, dword [0x42bda0]
cmp eax, esi
je 0x417092
push dword [ebp - 4]
push eax
call fcn.0040a0fd
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 [0x42bd98]
call fcn.0040a0fd
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418010
Capabilities:
Get disk information

Disassembly:
push ecx
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
push 0x4c5064
mov dword [0x4c8aec], eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ecx, dword [0x4c8aec]
add ecx, eax
test esi, esi
mov dword [0x4c8aec], ecx
je 0x418056
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 4]
pop esi
pop ecx
ret

Function at 0x418060
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [0x4c8aec], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
add dword [0x4c8aec], eax
call fcn.00418010
mov ecx, dword [0x4c8aec]
push str.shell32.lib
add ecx, eax
mov dword [0x4c8aec], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x10
mov edi, eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x4180b6
or dword [esi], 0x2000000
push str.SetCurrentProcessExplicitAppUserModelID
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, esi
pop edi
pop esi
ret
Function at 0x427d6e
Capabilities:
Encode data using xor

Disassembly:
pop es
lahf
insb byte es:[edi], dx
mov al, 2
or edi, dword [edx + 0x1097904e]
jbe 0x9d823076
xchg ebx, eax
dec ecx
pop edi
xchg esp, eax
stosb byte es:[edi], al
inc edi
mov byte [0xfa16a072], dh
sub dword [edi + 0x39641792], eax
push ecx
add edi, dword [esi - 0x1bb87992]
in al, 0x9f
popfd
pop ebx
mov bh, 0x75
xor dh, al
inc ebp
popfd
mov ecx, es
mov ebp, dword [edx]
mov ch, 0x49
test eax, 0xf2676172
adc byte [edx + edi*8], ah
sti
inc esi
xchg byte [ebx + ecx*2 - 9], dh
loopne 0x427d9d
mov edi, 0xda5f021d
pop ds
test dword [ecx - 0x585379cc], esi
jp 0x427e32
iretd
adc al, 0xda
mov ecx, 0x54166bfe
inc ecx
std
invalid
Function at 0x45623e
Capabilities:
Encode data using xor

Disassembly:
insb byte es:[edi], dx
test dword [ecx + 0x11], ecx
in al, 0x71
xor byte [edi + eax - 0x32], dh
jo 0x45624c
aas
jns 0x4562cb
jle 0x456251
add edx, dword [ebx + 0x46]
push ebx
inc esi
push esp
push 0xeb86d2ca
dec edx
retf
inc eax
mov byte [ecx], cl
and al, 0xec
test dword [esi + ebp*4], esp
pop ds
fcom dword [eax + eax]
dec eax
mov bh, 0x21
xchg dword [edi], eax
adc dword [eax - 0x43], 0xaeb647a
mov dword [ebx - 0x6d510f5a], edx
dec edx
xor esi, dword [ebx + 0xbb0fcf9]
jmp 0x4562ef
cld
mov al, 0xb
xor byte [edx], al
mov eax, 0xa799aa26
shl dword [0x46fedf00], cl
test dword [edi - 0x4e29936c], esi
xor eax, 0xdc28a633
push edi
das
ficom dword [edi - 0x4dc7e0d]
ja 0x4562e2
pushfd
mov edi, 0x3eefb20d
invalid
Function at 0x492e5e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
and al, 0x2c
push ecx
push ebx
lea eax, [esp + 0x2c]
push eax
mov edi, edx
call fcn.0049880e
mov edi, dword [eax]
mov dword [eax], 0
mov dword [esp + 0xb0], edi
mov byte [esp + 0xc0], 8
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x492e96
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
push 1
call eax
test edi, edi
je 0x492eb1
mov ecx, dword [esp + 0x2c]
mov edx, dword [edi]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0xa0]
push eax
push ecx
push ebx
mov ecx, edi
call edx
mov byte [esp + 0xc0], 6
test edi, edi
je 0x492ec8
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
push 1
mov ecx, edi
call edx
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x94]
push ecx
call dword [0x645800]
test eax, eax
jne 0x492fb4
mov edi, dword [0x645804]
lea edx, [esp + 0x90]
push edx
call edi
test eax, eax
jne 0x492f50
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x90]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x9c]
neg ecx
push ecx
neg edx
mov dword [esp + 0x38], eax
push edx
lea eax, [esp + 0x30]
push eax
call dword [0x645704]
mov edx, dword [esi + 0x20]
push 0
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [0x6457ec]
lea eax, [esp + 0xa0]
push eax
call edi
test eax, eax
jne 0x492fb4
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0xac]
Function at 0x4a2a3e
Capabilities:
Encode data using xor

Disassembly:
rol dword [edx + 0x2d], 0x25
sbb esi, ebp
stc
pop ss
and eax, 0x17f9f51b
fisttp dword [eax + 0x1e]
mov ebx, 0xd115725e
xchg esp, eax
xchg byte [esi - 0x1371bf3c], al
pop edi
sub byte [edx + 0x6bf4debc], cl
js 0x4a2ac5
mov word [ebp - 0x4e], fs
mov ebx, 0x2115672b
jg 0x4a2a41
sub dword [eax - 0x18], 0xffffff91
or eax, 0x4465c13b
add ah, al
push edx
mov eax, dword [ebx]
test byte ds:[ebp + 0x26], 0x8d
sub eax, 0x23a26f5a
jnp 0x4a2ae0
test eax, 0x1d905a92
cwde
inc edx
pushal
invalid
aam 0xb
invalid
lds esi, [edx]
xor dword [eax], esp
push es
add byte [ebp - 0x43db06ce], ch
mov al, byte [0xfb6b3aa2]
jl 0x4a2ae2
add dh, byte [0xd7c16c2d]
lcall 0x1f50, 0x30be788b
sbb al, 0x6d
popal
int3
Function at 0x4b0e8e
Capabilities:
Parse pe header

Disassembly:
xchg byte [edx + 0x66], ch
jbe 0x4b0e7a
sub byte [esi - 0x7e], ah
push ebp
mov word [ecx + edx], cs
mov ch, bl
cld
inc esi
retf 0xb020
imul ebx, dword [eax + 0x6b764629], 1
sahf
scasb al, byte es:[edi]
mov ah, 0x8d
jnp 0x4b0e93
sbb edi, dword fs:[ebx]
sub dword [ebp + 0x74], esi
hlt
mov bh, 0x45
mov edi, 0x7a66ca62
stosb byte es:[edi], al
cli
jmp 0x890077fe
pop esi
xchg esi, eax
pop ds
add dh, byte [edi]
xchg esi, eax
std
or dword [esi - 7], esi
push sp
jno 0x4b0ed4
or bl, ah
xchg esp, eax
mov es, edi
jae 0x4b0e2f
lodsb al, byte [esi]
dec edi
mov dl, 0x5c
xor eax, 0xb639391c
in eax, 0x76
scasb al, byte es:[edi]
xlatb
or ebx, edx
sub byte [ecx], bl
adc dword [esi + 0x28a37014], 0x9a4c02ac
jge 0x4b0e59
daa
js 0x4b0f2f
sahf
push ss
cmpsb byte [esi], byte es:[edi]
aaa
and edi, ecx
nop
invalid
adc dword [edi + 0x266a1d9e], edi
xchg edx, eax
jbe 0x4b0f00
invalid
clc
jmp 0x8e712310
push esp
dec esp
xchg edi, eax
or byte [eax], bl
inc esi
cmp dl, byte [ebp - 0x23]
xor al, 0xcb
pop ebx
les esp, [edi + 0x30750c37]
cmp byte [ebx - 0x198e4366], bh
and ch, byte [eax + ebx*2 + 0x72]
lodsd eax, dword [esi]
adc al, 0xad
hlt
sub eax, 0x7199348b
jb 0x4b0f9d
and eax, 0x2026a692
and al, 0x63
stc
jbe 0x4b0ee0
xor al, 0x50
outsd dx, dword [esi]
sub edx, eax
mov byte [ebp + 0x4471afb4], dl
inc eax
push esp
and al, 0x8c
nop
mov ebx, 0xfc11f75c
inc esi
xchg esp, eax
scasd eax, dword es:[edi]
cli
sbb eax, 0x8a38967d
and ebp, dword [edx - 0x1423002a]
cmc
jae 0x4b0fa4
add dh, byte [esi + edx*2 + 0x363b2386]
push 0x75
mov ah, 0xe5
je 0x4b0faa
jne 0x4b0fa7
xor eax, 0x75721cb7
add ecx, dword [esi + 0x28]
fmul qword [edi - 0x54]
sbb dword [ebx], esi
imul esp, dword [ecx - 0x76dc9849], 0x5f19148d
and al, 0xf2
mov dword [0x972e9d7b], eax
lodsb al, byte ss:[esi]
push edi
jl 0x4b0fd0
mov ebp, esi
cmc
mov eax, 0x5f534b05
cmpsb byte [esi], byte es:[edi]
cmpsd dword [esi], dword es:[edi]
invalid
mov ebp, 0xa0f3f326
pop edx
jbe 0x4b0ff4
mov al, byte [0x7f45765a]
and bl, bh
or eax, 0xfa21b2b7
jg 0x4b0fd3
fisttp word [0xfa21b2b7]
sti
sti
or al, byte [eax - 0x44dfcbdf]
outsd dx, dword [esi]
mov bl, 0xb7
invalid
invalid
mov ch, 0x50
push ebp
pop esp
pop esp
mov ebx, 0x50d9afdd
in al, dx
mov dword [0xd84814e6], eax
and dword [edx - 0x6f7b168b], ebp
and al, 0xa8
insd dword es:[edi], dx
mov dl, 0x4d
enter 0x1054, 0xffffffffffffffaa
adc esi, ebp
xchg esp, eax
in al, 0xa3
daa
jno 0x4b0fd7
les esi, [edi + ecx*4]
rol byte [edi + 0x3d3abf7c], 0xd4
cmpsb byte [esi], byte es:[edi]
dec ecx
pop esp
dec byte [ecx - 0x50]
pop es
fldl2e
adc bl, ah
frstor dword [edx - 0xf8d7c4e]
mov eax, dword [0xca3bb35]
dec ecx
jbe 0x4b0fa7
jge 0x4b1062
xor eax, 0xae832109
insd dword es:[edi], dx
and bh, byte [ebp + 0x1a]
invalid
xchg ebp, eax
invalid
Function at 0x4bc751
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c53a0
cmp edx, dword [eax]
je 0x4bc773
add eax, 8
inc ecx
cmp eax, 0x4c5430
jl 0x4bc764
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c53a0]
jne 0x4bc8a1
mov eax, dword [0x4c9d3c]
cmp eax, 1
je 0x4bc87b
test eax, eax
jne 0x4bc7a4
cmp dword [0x4c52c8], 1
je 0x4bc87b
cmp edx, 0xfc
je 0x4bc8a1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bc7db
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bd130
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bd5c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bc81e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bd5c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c1a14
push edi
call fcn.004bf490
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bd130
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bd140
lea eax, [ebp - 0xa0]
push 0x4c19f4
push eax
call fcn.004bd140
push dword [esi + 0x4c53a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bd140
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bf404
add esp, 0x2c
pop edi
jmp 0x4bc8a1
lea eax, [ebp + 8]
lea esi, [esi + 0x4c53a4]
push 0
push eax
push dword [esi]
call fcn.004bd5c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
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.00404f50
pop edx
call fcn.004042ec
call fcn.00404f54
push 0
call fcn.004064a4
pop ecx
push 0x441034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x441093], eax
push 0
jmp fcn.0040cbb0

Function at 0x40160c
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 [0x4acd24], 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 0x401750
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 0x4016bb
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x401752
push 8
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0xc]
push ecx
call fcn.004054c8
add esp, 0xc
test eax, eax
je 0x4016d5
xor eax, eax
jmp 0x401752
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 0x4016fe
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x401752
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 0x401749
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x401752
mov eax, 1
jmp 0x401752
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402e10
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 0x402e36
lea eax, [ebp - 0x458]
push eax
call fcn.00401794
pop ecx
test eax, eax
jne 0x402ed6
push 0x400
push 0
lea edx, [ebp - 0x458]
push edx
call fcn.00405270
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 0x402e8e
xor eax, eax
jmp 0x402f54
push ebx
push 0x4810a4
call fcn.0040f4e8
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 0x402ed6
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.00405270
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.00405270
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 0x402f44
xor eax, eax
jmp 0x402f54
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 0x403390
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.00401bcc
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403446
mov eax, fcn.00401828
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403446
mov eax, fcn.00403340
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403446
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 0x403446
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 0x40340e
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 0x404c44
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 0x40670c
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 0x406728
call fcn.00407ad8
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x406743
test bl, 1
je 0x406743
mov dword [0x4930ec], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret