joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43aee0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47bab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00472a38
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043a880
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00472966
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0046f150
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0046f150
push 1
push 0
push 0
mov ecx, esi
call fcn.0046f0f8
push 1
push 0
push 1
mov ecx, esi
call fcn.0046f0f8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00472aaa
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43b060
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47bad8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00472a38
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043a880
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00472966
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43b124
cmp dword [esp + 0x40], 1
jne 0x43b122
cmp ecx, eax
jge 0x43b124
mov eax, ecx
cmp eax, 0xc8
jge 0x43b130
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043aee0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00472aaa
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43b8a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47bb43
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046d570
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00472ce0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00474238
test eax, eax
je 0x43b9bc
mov ecx, dword [esp + 0x3c]
call fcn.00472d0d
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43b980
push edi
mov ecx, esi
call fcn.004702cf
mov ecx, esi
call fcn.0043bb20
cmp dword [esp + 0x38], 1
jne 0x43b9b5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00470439
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43e3f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43e423
push esi
call fcn.004414e0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43e41c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43e4a9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43e492
mov eax, dword [esi + 8]
test eax, eax
je 0x43e447
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43e48e
cmp eax, 2
je 0x43e492
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43e43a
cmp eax, 3
je 0x43e46d
cmp eax, 1
jne 0x43e43a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43e43a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43e43a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043e4d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43e4b8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043e4d0
add esp, 4
pop esi
ret
Function at 0x44c7e0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x44c82a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x44c859
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x44c89b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x450b50
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x450bf3
test eax, eax
jbe 0x450bf3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x450bf3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x450b9e
xor esi, esi
jmp 0x450ba4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x450bcf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00452d70
add esi, eax
push esi
mov ebx, esi
call fcn.00452d70
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x450bb0
pop ebp
test edi, edi
pop edi
jne 0x450bf3
test ebx, ebx
je 0x450bf3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0045c8e0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x450d35
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x450e4d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x450e4d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046d9c2
mov esi, eax
test esi, esi
je 0x450e4d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x450e4d
mov ecx, esi
call fcn.00450ca0
cmp edi, eax
jge 0x450e4d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x450dd3
mov dword [esp + 0x34], 1
jmp 0x450e2e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x450e4d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0044f520
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x46e366
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46e39e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046c41a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046c3f2
jmp 0x46e3aa
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46fa58
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46fa9a
call fcn.00475744
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46fa9a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46fa91
xor eax, eax
jmp 0x46faa2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046faa8
pop edi
pop esi
pop ebx
ret 4

Function at 0x475c74
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 0x475ca2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x475cc0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00475bda
jmp 0x475cc0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x475cc0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00475bda
test edi, edi
mov eax, edi
jne 0x475caa
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4011e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
call ebx
mov dword [0x41aaa4], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x401213
fld qword [0x41aab0]
fadd qword [0x4081d8]
fstp qword [0x41aab0]
fld qword [0x41aab0]
fsin
mov edi, dword [sym.imp.GDI32.dll_SetPixelV]
xor esi, esi
fstp qword [esp + 0x18]
fld qword [0x41aab0]
fcos
fstp qword [esp + 0x10]
mov ecx, dword [0x409044]
mov edx, dword [esi + 0x409a2c]
mov eax, dword [esi + 0x409a28]
push ecx
mov ecx, dword [0x409a08]
push edx
push eax
push ecx
call edi
fld qword [esp + 0x18]
fld qword [esp + 0x10]
fld st(1)
fmul qword [esi + 0x412280]
fld st(1)
fmul qword [esi + 0x412278]
faddp st(1)
fstp qword [esi + 0x409a10]
fld st(0)
fmul qword [esi + 0x412280]
fld st(2)
fmul qword [esi + 0x412278]
fsubp st(1)
fstp qword [esi + 0x409a18]
fld st(0)
fmul qword [esi + 0x412288]
fld st(2)
fmul qword [esi + 0x409a10]
fsubp st(1)
fstp qword [esi + 0x409a20]
fld st(1)
fmul qword [esi + 0x412288]
fld st(1)
fmul qword [esi + 0x409a10]
faddp st(1)
fstp qword [esi + 0x409a10]
fld st(1)
fmul qword [esi + 0x409a20]
fxch st(1)
fmul qword [esi + 0x409a18]
faddp st(1)
fld qword [esp + 0x10]
fmul qword [esi + 0x409a20]
fxch st(2)
fmul qword [esi + 0x409a18]
fsubp st(2)
fxch st(1)
fstp qword [esi + 0x409a20]
fstp qword [esi + 0x409a18]
fld qword [esi + 0x409a10]
fmul qword [0x4081d0]
fld qword [esi + 0x409a20]
fadd qword [0x4081c8]
fdivp st(1)
fadd qword [0x4081c0]
call fcn.00401e30
mov dword [esi + 0x409a28], eax
fld qword [esi + 0x409a18]
fmul qword [0x4081d0]
fld qword [esi + 0x409a20]
fadd qword [0x4081c8]
fdivp st(1)
fsubr qword [0x4081b8]
call fcn.00401e30
mov ecx, eax
mov edx, dword [0x409048]
mov dword [esi + 0x409a2c], ecx
fld qword [esi + 0x409a20]
fcomp qword [0x4081b0]
fnstsw ax
test ah, 1
je 0x401364
mov edx, dword [0x40904c]
mov eax, dword [esi + 0x409a28]
push edx
push ecx
mov ecx, dword [0x409a08]
push eax
push ecx
call edi
add esi, 0x20
cmp esi, 0x8820
jl 0x401233
call ebx
sub eax, dword [0x41aaa4]
cmp eax, 0xa
jae 0x40139f
call ebx
sub eax, dword [0x41aaa4]
cmp eax, 0xa
jb 0x401392
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401c00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x18
push ebx
push esi
push edi
mov esi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
mov eax, dword [esp + 0x2c]
and eax, 0xffff
push eax
push ebx
call dword [sym.imp.USER32.dll_LoadBitmapA]
test eax, eax
mov dword [esi + 0x14], eax
jne 0x401c35
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x18
ret 8
lea ecx, [esp + 0xc]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
and ecx, 0xffff
push 0x4090c8
push ecx
push ebx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x401c79
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x18
ret 8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x401c92
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x18
ret 8
push ebx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 0
call dword [sym.imp.GDI32.dll_ExtCreateRegion]
push ebx
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x401cc1
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x18
ret 8
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test eax, eax
mov dword [esi + 0x10], eax
jne 0x401cdb
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x18
ret 8
mov edx, dword [esi + 0x14]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x18], eax
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x18
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4029e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004054ce
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x402a0a
test byte [esp + 8], 2
je 0x402a0a
mov dword [0x41aae0], 0xd
mov dword [0x41aae4], 5
jmp 0x4029e5
xor eax, eax
ret
Function at 0x4035ad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4091e8
cmp edx, dword [eax]
je 0x4035cf
add eax, 8
inc ecx
cmp eax, 0x409278
jl 0x4035c0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4091e8]
jne 0x4036fd
mov eax, dword [0x41aacc]
cmp eax, 1
je 0x4036d7
test eax, eax
jne 0x403600
cmp dword [0x409108], 1
je 0x4036d7
cmp edx, 0xfc
je 0x4036fd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403637
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004048f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404f20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40367a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404f20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x408584
push edi
call fcn.00405e40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004048f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404900
lea eax, [ebp - 0xa0]
push 0x408564
push eax
call fcn.00404900
push dword [esi + 0x4091ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404900
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405db5
add esp, 0x2c
pop edi
jmp 0x4036fd
lea eax, [ebp + 8]
lea esi, [esi + 0x4091ec]
push 0
push eax
push dword [esi]
call fcn.00404f20
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 0x406744
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406769
mov eax, dword [0x40a8e8]
cmp eax, 0xffffffff
je 0x406760
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8e8], 0xffffffff
jmp 0x4067dc
cmp dword [0x43b9c0], ebx
je 0x4067dc
cmp byte [0x43b5c0], bl
je 0x4067a8
cmp dword [0x40a8e8], 0xffffffff
jne 0x4067b1
push 4
push 0x40000000
push 0x43b5c0
call fcn.0040610c
cmp eax, 0xffffffff
mov dword [0x40a8e8], eax
je 0x4067dc
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8e8], 0xffffffff
je 0x4067dc
push esi
mov esi, 0x43fa00
push 0x40aab8
push esi
call fcn.00406459
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.0040644c
push eax
push esi
push dword [0x40a8e8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4068a2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x43b1bc], esi
push edi
jne 0x4068dc
mov ecx, 0x43b1b8
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4068b8
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x43b5b8
jl 0x4068b3
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406911
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43b1b8]
xor eax, esi
inc ecx
dec edx
jne 0x4068f4
pop edi
pop esi
not eax
ret 0xc

Function at 0x40300d
Capabilities:
Terminate process

Disassembly:
mov dword [0x402020], eax
call dword [sym.imp.kernel32.dll_GetTickCount]
call dword [sym.imp.kernel32.dll_GetVersion]
mov edx, eax
xor edi, edi
xor esi, esi
push dword [0x4035d8]
call dword [sym.imp.winmm.dll_waveInClose]
add eax, 6
test eax, 0xb
jne 0x403046
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
ret
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40701c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x407028
push 0x407024
push 0x407020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x407028]
push dword [0x407024]
push dword [0x407020]
mov dword [0x407014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x4018c8
Capabilities:
Allocate or change rwx memory
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push edi
and dword [ebp - 0x124], 0
xor edi, edi
mov byte [ebp - 0x104], 0
mov dword [ebp - 0x11c], 0x14
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringW
movzx eax, word [ebp - 0x118]
mov edi, eax
sub edi, 0x41
and dword [ebp - 0x120], 0
lea eax, [ebp - 0x120]
push eax
mov eax, edi
or al, 0x40
push eax
lea eax, [0x404615]
lea edx, [fcn.00401958]
sub eax, edx
push eax
push fcn.00401958
call sub.KERNEL32.dll_VirtualProtect
mov eax, edi
pop edi
leave
ret