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

Disassembly:
push 0xffffffffffffffff
push 0x4b8aa8
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.004af602
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0047a680
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.004af530
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.004abd1f
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.004abd1f
push 1
push 0
push 0
mov ecx, esi
call fcn.004abcc7
push 1
push 0
push 1
mov ecx, esi
call fcn.004abcc7
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004af674
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x47ae60
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b8ac8
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.004af602
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0047a680
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.004af530
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 0x47af24
cmp dword [esp + 0x40], 1
jne 0x47af22
cmp ecx, eax
jge 0x47af24
mov eax, ecx
cmp eax, 0xc8
jge 0x47af30
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0047ace0
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.004af674
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x47b6b0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b8b33
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.004aa13a
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.004af8aa
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004b0e02
test eax, eax
je 0x47b7cc
mov ecx, dword [esp + 0x3c]
call fcn.004af8d7
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 0x47b790
push edi
mov ecx, esi
call fcn.004ace9e
mov ecx, esi
call fcn.0047b930
cmp dword [esp + 0x38], 1
jne 0x47b7c5
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.004ad008
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 0x47e1f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x47e223
push esi
call fcn.00481300
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x47e21c
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 0x47e2a9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x47e292
mov eax, dword [esi + 8]
test eax, eax
je 0x47e247
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 0x47e28e
cmp eax, 2
je 0x47e292
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47e23a
cmp eax, 3
je 0x47e26d
cmp eax, 1
jne 0x47e23a
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 0x47e23a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x47e23a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0047e2d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x47e2b8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0047e2d0
add esp, 4
pop esi
ret

Function at 0x48be00
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 0x48bea3
test eax, eax
jbe 0x48bea3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x48bea3
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 0x48be4e
xor esi, esi
jmp 0x48be54
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x48be7f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0048f820
add esi, eax
push esi
mov ebx, esi
call fcn.0048f820
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x48be60
pop ebp
test edi, edi
pop edi
jne 0x48bea3
test ebx, ebx
je 0x48bea3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00499280
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x48bfe5
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 0x48c0fd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x48c0fd
mov eax, dword [esi + 0x3c]
push eax
call fcn.004aa58c
mov esi, eax
test esi, esi
je 0x48c0fd
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 0x48c0fd
mov ecx, esi
call fcn.0048bf50
cmp edi, eax
jge 0x48c0fd
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 0x48c083
mov dword [esp + 0x34], 1
jmp 0x48c0de
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x48c0fd
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.0048b480
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 0x4aaf30
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4aaf68
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.004a8fba
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a8f92
jmp 0x4aaf74
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ac627
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 0x4ac669
call fcn.004b2309
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ac669
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ac660
xor eax, eax
jmp 0x4ac671
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ac677
pop edi
pop esi
pop ebx
ret 4
Function at 0x4b2839
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 0x4b2867
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b2885
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b279f
jmp 0x4b2885
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b2885
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b279f
test edi, edi
mov eax, edi
jne 0x4b286f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x414e4b
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x402bc0
call fcn.00414779
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x414e8b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x414e8b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x414ea3
cmp eax, 0x20b
je 0x414e90
mov dword [ebp - 0x1c], ebx
jmp 0x414eb7
cmp dword [ecx + 0x84], 0xe
jbe 0x414e8b
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x414eb1
cmp dword [ecx + 0x74], 0xe
jbe 0x414e8b
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x41c534], 0xffffffff
or dword [0x41c538], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x41c4b8]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x41c4b4]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41c530], eax
call fcn.0041504a
call fcn.0040b075
cmp dword [0x41bf70], ebx
jne 0x414f17
push 0x41512a
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00415118
push 0x41b628
push 0x41b624
call sub.MSVCRT.dll__initterm
push 0x41508e
call fcn.00414e39
mov eax, dword [0x41c4b0]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x41c4ac]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x414f6b
push 8
call sub.MSVCRT.dll__amsg_exit
pop ecx
push 0x41b620
push 0x41b558
call sub.MSVCRT.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x414fe9
cmp al, bl
je 0x414f95
cmp dword [ebp - 0x20], ebx
jne 0x414fe9
mov al, byte [esi]
cmp al, bl
je 0x414fa5
cmp al, 0x20
ja 0x414fa5
inc esi
mov dword [ebp - 0x24], esi
jmp 0x414f95
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x414fc1
movzx eax, word [ebp - 0x54]
jmp 0x414fc4
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00411207
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x414fe1
push esi
call dword [sym.imp.MSVCRT.dll_exit]
call dword [sym.imp.MSVCRT.dll__cexit]
jmp 0x41503e
cmp al, 0x22
jne 0x414ff8
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCRT.dll__ismbblead]
pop ecx
test eax, eax
je 0x41500b
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x414f83
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004147b4
ret
Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x40500d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40501c
pop dword [ebp - 0x14]
mov eax, 0x40501c
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xe48dc57
sub dword [ebp - 0x24], 0xbff6970c
mov dword [ebp - 0x20], 0x4d505f6b
sub dword [ebp - 0x20], 0x1b1d1326
mov dword [ebp - 0x1c], 0x4a51d207
sub dword [ebp - 0x1c], 0xfe058dd9
mov dword [ebp - 0x18], 0x2b3e9eef
add dword [ebp - 0x18], 0xd4c16111
lea eax, [ebp - 0x24]
push eax
mov eax, 0x49cb75ef
sub eax, 0x498aa5a3
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x38c7fa86
add dword [ebp - 0x24], 0x3baa6ed0
mov dword [ebp - 0x20], 0xc76bad2
sub dword [ebp - 0x20], 0xcb0a595d
mov dword [ebp - 0x1c], 0x182683d0
add dword [ebp - 0x1c], 0x4b48e89c
mov dword [ebp - 0x18], 0x70869f7b
add dword [ebp - 0x18], 0x8f796085
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xff7e6c5b
sub eax, 0xff3d9c13
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3a0c0
push 0
call eax
mov ecx, 0x4a46
xor esi, esi
add esi, eax
mov edx, 0x41b000
add edx, dword [ebp - 0x14]
mov edi, 0x664d2e85
sub dword [ebp - 8], ebx
mov ebx, dword [edx]
add ebx, edi
xor dword [ebp - 0x10], 0x20169c68
mov dword [esi], ebx
add dword [ebp - 0xc], 0x704db244
add esi, 4
add edx, 0x138e049
sub edx, 0x138e045
loop 0x405129
add eax, 0x79278c3e
add eax, 0x86d98fad
xor ebx, ebx
add ebx, eax
add eax, 0x482394c9
sub eax, 0x482394c4
mov ecx, 0x412245e
add ecx, 0xfc2ddba2
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x402520
Capabilities:
Encode data using base64 via winapi
Get common file path
Get disk information
Get hostname

Disassembly:
sub esp, 0x280
push 0x104
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x40255a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x402388
call fcn.004027d8
add esp, 8
mov eax, 1
add esp, 0x280
ret
xor eax, eax
push esi
push eax
push 0x80
push 3
push eax
push 1
push 0x80000000
lea ecx, [esp + 0x94]
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4025b5
push 0
push 0
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x1c]
push ecx
push eax
push eax
lea edx, [esp + 0x98]
push edx
mov word [esp + 0xa2], ax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x4025e4
mov dword [esp + 0xc], 0xdead
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], eax
call fcn.00402740
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0xc], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x402615
mov dword [esp + 4], eax
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x40]
push ecx
push 0x40000001
add edx, 0x1c
push edx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x1c], 0x40
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
jne 0x402664
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4023f0
call fcn.004027d8
add esp, 8
mov eax, 1
pop esi
add esp, 0x280
ret
push 0x104
lea ecx, [esp + 0x80]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40271b
cmp eax, 0x104
jae 0x40271b
lea ecx, [esp + eax*2 + 0x7c]
mov edx, ecx
movzx eax, word [ecx - 2]
sub ecx, 2
cmp ax, 0x2e
je 0x4026b5
lea esi, [esp + 0x7c]
cmp ecx, esi
jbe 0x4026b7
cmp ax, 0x2f
je 0x4026b7
cmp ax, 0x5c
jne 0x402692
jmp 0x4026b7
mov edx, ecx
mov eax, edx
lea ecx, [esp + 0x7c]
sub eax, ecx
sar eax, 1
cmp eax, 0xff
ja 0x402713
mov eax, 0x2e
mov word [edx], ax
mov ecx, 0x74
mov eax, 0x78
mov word [edx + 4], ax
mov word [edx + 2], cx
mov word [edx + 6], cx
mov ecx, dword [esp + 8]
xor eax, eax
mov word [edx + 8], ax
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x84]
call fcn.00402760
add esp, 8
test eax, eax
je 0x40271b
xor eax, eax
pop esi
add esp, 0x280
ret
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x402458
call fcn.004027d8
add esp, 8
mov eax, 1
pop esi
add esp, 0x280
ret
Function at 0x402760
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push 0
push 0x8000000
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402787
xor eax, eax
pop esi
pop ecx
ret
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push ebx
push edi
push 0
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test edi, edi
jne 0x4027b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x4027b5
mov ebx, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x4027ce
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebx
xor eax, eax
pop esi
pop ecx
ret
pop edi
pop ebx
mov eax, 1
pop esi
pop ecx
ret

Function at 0x4057c7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40cc80]
jne 0x4057d1
repz ret
jmp fcn.00409a7a

Function at 0x406c43
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00403e22
and dword [ebp - 4], 0
cmp dword [0x40d654], 0
mov ebx, eax
jne 0x406cf4
push 0x401990
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406da5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401984
push edi
call esi
test eax, eax
je 0x406da5
push eax
call fcn.00403db0
mov dword [esp], 0x401974
push edi
mov dword [0x40d654], eax
call esi
push eax
call fcn.00403db0
mov dword [esp], 0x401960
push edi
mov dword [0x40d658], eax
call esi
push eax
call fcn.00403db0
mov dword [esp], 0x401944
push edi
mov dword [0x40d65c], eax
call esi
push eax
call fcn.00403db0
pop ecx
mov dword [0x40d664], eax
test eax, eax
je 0x406cf4
push 0x40192c
push edi
call esi
push eax
call fcn.00403db0
pop ecx
mov dword [0x40d660], eax
mov eax, dword [0x40d660]
cmp eax, ebx
je 0x406d4c
cmp dword [0x40d664], ebx
je 0x406d4c
push eax
call fcn.00403e2b
push dword [0x40d664]
mov esi, eax
call fcn.00403e2b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406d4c
test edi, edi
je 0x406d4c
call esi
test eax, eax
je 0x406d43
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406d43
test byte [ebp - 0xc], 1
jne 0x406d4c
or dword [ebp + 0x10], 0x200000
jmp 0x406d85
mov eax, dword [0x40d658]
cmp eax, ebx
je 0x406d85
push eax
call fcn.00403e2b
pop ecx
test eax, eax
je 0x406d85
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406d85
mov eax, dword [0x40d65c]
cmp eax, ebx
je 0x406d85
push eax
call fcn.00403e2b
pop ecx
test eax, eax
je 0x406d85
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40d654]
call fcn.00403e2b
pop ecx
test eax, eax
je 0x406da5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406da7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403370
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x490020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403408
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4033e8
xor eax, eax
push ebp
push 0x4033e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403424
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4033e8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x490020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x490020], ax
mov esp, ebp
pop ebp
ret

Function at 0x40410c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49204c], 0
je 0x40416d
cmp word [0x492220], 0xd7b2
jne 0x404135
cmp dword [0x492228], 0
jbe 0x404135
mov eax, 0x49221c
call dword [0x492238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49006c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404194
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x490030], 0
jne 0x404189
push 0
push 0x490064
push 0x49006c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret