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

Disassembly:
push 0xffffffffffffffff
push 0x46e488
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.004673e0
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00440b80
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.0046730e
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.00463bd2
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.00463bd2
push 1
push 0
push 0
mov ecx, esi
call fcn.00463b7a
push 1
push 0
push 1
mov ecx, esi
call fcn.00463b7a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00467452
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x441360
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46e4a8
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.004673e0
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00440b80
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.0046730e
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 0x441424
cmp dword [esp + 0x40], 1
jne 0x441422
cmp ecx, eax
jge 0x441424
mov eax, ecx
cmp eax, 0xc8
jge 0x441430
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004411e0
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.00467452
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x441bb0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46e513
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.00461ff2
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.00467688
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00468ba4
test eax, eax
je 0x441ccc
mov ecx, dword [esp + 0x3c]
call fcn.004676b5
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 0x441c90
push edi
mov ecx, esi
call fcn.00464d19
mov ecx, esi
call fcn.00441e30
cmp dword [esp + 0x38], 1
jne 0x441cc5
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.00464e54
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 0x4446f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x444723
push esi
call fcn.004477e0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44471c
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 0x4447a9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x444792
mov eax, dword [esi + 8]
test eax, eax
je 0x444747
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 0x44478e
cmp eax, 2
je 0x444792
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44473a
cmp eax, 3
je 0x44476d
cmp eax, 1
jne 0x44473a
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 0x44473a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44473a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004447d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4447b8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004447d0
add esp, 4
pop esi
ret

Function at 0x462de8
Capabilities:
Get graphical window text

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

Function at 0x4644d6
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 0x464518
call fcn.00469f8f
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x464518
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46450f
xor eax, eax
jmp 0x464520
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00464526
pop edi
pop esi
pop ebx
ret 4

Function at 0x46a4bf
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 0x46a4ed
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46a50b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046a425
jmp 0x46a50b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46a50b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046a425
test edi, edi
mov eax, edi
jne 0x46a4f5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Identify system language via api
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov dword [esp + 0x14], 0xa29a29d5
mov eax, 0xa29a29d5
mov esi, dword [esp + 0x18]
movzx edi, word [esp + 2]
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
cmp eax, 0x2a7a1c86
jle 0x40106a
cmp eax, 0x4af1adba
jle 0x4010d0
cmp eax, 0x4af1adbb
je 0x4010eb
cmp eax, 0x5e2f3263
je 0x401124
cmp eax, 0x790d5859
jne 0x401027
mov eax, dword [esp + 8]
movzx edi, word [esp + eax*2 + 0x20]
mov eax, 0x4af1adbb
mov ebp, dword [esp + 8]
jmp 0x401027
cmp eax, 0xb245516b
jle 0x40109f
cmp eax, 0xb245516c
je 0x401141
cmp eax, 0x29885649
jne 0x4011ce
movzx eax, word [esp + 0xe]
mov word [esp + 0x24], ax
call ebx
mov word [esp + 0x26], ax
mov eax, 0x2a7a1c87
jmp 0x401027
cmp eax, 0xa29a29d5
je 0x401166
cmp eax, 0xab7efe50
jne 0x4011db
imul eax, esi, 0x16000
add eax, 0xc4a000
shr eax, 2
lea esi, [eax + eax*4]
mov eax, 0xa29a29d5
jmp 0x401027
cmp eax, 0x2a7a1c87
je 0x401191
cmp eax, 0x3146f308
je 0x401203
jmp 0x401027
mov dword [esp + 0x1c], ebp
movsx ecx, di
cmp ecx, 0x43e
jle 0x4011b3
cmp ecx, 0x818
jg 0x4011e8
lea ecx, [edi - 0x43f]
cmp cx, 4
ja 0x401203
mov edx, 0x13
jmp 0x4011c7
mov eax, dword [esp + 4]
lea eax, [eax + eax*8]
shl eax, 4
add eax, 0xfffff809
mov dword [esp + 4], eax
mov eax, 0x29885649
jmp 0x401027
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 8], eax
mov ecx, dword [esp + 8]
mov eax, 0xd683e227
cmp ecx, 4
je 0x401027
mov eax, 0x790d5859
jmp 0x401027
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [esp + 0xc], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov word [esp + 0x22], ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [esp + 0xe], ax
mov eax, 0x5e2f3263
jmp 0x401027
imul eax, dword [esp + 4], 0xee00
shr eax, 1
or eax, 0x1c
mov dword [esp + 4], eax
mov eax, 0x4af1adbb
xor ebp, ebp
movzx edi, word [esp + 0xc]
jmp 0x401027
lea ecx, [edi - 0x419]
cmp cx, 0x13
ja 0x401203
movzx ecx, cx
mov edx, 0xc8401
bt edx, ecx
jae 0x401203
jmp 0x401226
cmp eax, 0xd683e227
jne 0x401027
jmp 0x40120d
cmp eax, 0x839ecce6
jne 0x401027
jmp 0x401226
movzx ecx, di
cmp ecx, 0x819
je 0x401226
cmp ecx, 0x82c
je 0x401226
cmp ecx, 0x843
je 0x401226
mov eax, 0xb245516c
jmp 0x401027
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
mov word [esp + 2], di
mov dword [esp + 0x10], ebp
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
mov word [esp + 2], di
mov dword [esp + 0x10], ebp
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4012b0
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
push 0x46f2ee
push ecx
call fcn.00459e51
add esp, 8
xor esi, esi
test eax, eax
je 0x40133d
mov edi, eax
push 2
push 0
push eax
call fcn.00458289
add esp, 0xc
push edi
call fcn.004585d8
add esp, 4
test eax, eax
js 0x401334
mov ebp, eax
push edi
call fcn.0045b9e6
add esp, 4
lea eax, [ebp + 1]
push eax
call dword [0x47c044]
add esp, 4
test eax, eax
je 0x401334
mov ebx, eax
push edi
push ebp
push 1
push eax
call fcn.0045b066
add esp, 0x10
test eax, eax
je 0x401322
mov ebp, eax
push edi
call fcn.0045abb3
add esp, 4
test eax, eax
je 0x401344
push edi
call fcn.0045aa2e
add esp, 4
push ebx
call dword [0x47c040]
jmp 0x40133a
push edi
call fcn.0045aa2e
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push edi
call fcn.0045aa2e
add esp, 4
mov byte [ebx + ebp], 0
mov esi, ebx
jmp 0x40133d

Function at 0x40255c
Capabilities:
Hash data using djb2

Disassembly:
push ebx
push edi
push esi
test edx, edx
je 0x402584
mov edi, 0x1505
xor esi, esi
movzx ebx, byte [ecx + esi]
test ebx, ebx
je 0x40258b
mov eax, edi
shl eax, 5
add eax, edi
add eax, ebx
inc esi
mov edi, eax
cmp edx, esi
jne 0x40256a
jmp 0x40258d
mov eax, 0x1505
jmp 0x40258d
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x40cd70
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov ebp, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov edi, esp
mov ecx, 5
mov esi, 0x46f6c8
rep movsd dword es:[edi], dword [esi]
cmp ebp, 0x40
jb 0x40cdf0
shr ebp, 6
xor ebx, ebx
mov esi, edx
xor edi, edi
movzx eax, byte [esi + edi]
mov dword [esp + edi + 0x14], eax
movzx ecx, byte [esi + edi + 1]
shl ecx, 8
or ecx, eax
mov dword [esp + edi + 0x14], ecx
movzx eax, byte [esi + edi + 2]
shl eax, 0x10
or eax, ecx
mov dword [esp + edi + 0x14], eax
movzx ecx, byte [esi + edi + 3]
shl ecx, 0x18
or ecx, eax
mov dword [esp + edi + 0x14], ecx
add edi, 4
cmp edi, 0x40
jne 0x40cd9b
mov ecx, esp
lea edx, [esp + 0x14]
call fcn.0040ce8a
inc ebx
lea edx, [esi + edi]
cmp ebx, ebp
jne 0x40cd97
add esi, edi
mov edx, esi
mov ebp, dword [esp + 0x6c]
xor ebx, ebx
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov esi, ebp
and esi, 0x3f
je 0x40ce24
xor eax, eax
movzx edi, byte [edx + eax]
mov ecx, ebx
and cl, 0x18
shl edi, cl
mov ecx, eax
and ecx, 0xfffffffc
xor dword [esp + ecx + 0x14], edi
inc eax
add ebx, 8
cmp esi, eax
jne 0x40ce08
lea ebx, [ebp*8]
mov ecx, ebx
and cl, 0x18
or cl, 7
xor eax, eax
inc eax
shl eax, cl
mov ecx, ebp
and ecx, 0x3c
xor dword [esp + ecx + 0x14], eax
cmp esi, 0x38
jb 0x40ce5c
mov ecx, esp
lea edi, [esp + 0x14]
mov edx, edi
call fcn.0040ce8a
xor eax, eax
mov ecx, 0xe
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x70]
lea edx, [esp + 0x14]
mov dword [edx + 0x38], ebx
shr ebp, 0x1d
mov dword [edx + 0x3c], ebp
mov ecx, esp
call fcn.0040ce8a
xor eax, eax
mov ecx, dword [esp + eax*4]
mov dword [esi + eax*4], ecx
inc eax
cmp eax, 5
jne 0x40ce76
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x414e48
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x414f47
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x414f40
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov ebp, esi
sub ebp, eax
xor edx, edx
cmp ebp, 8
mov dword [esp], esi
jb 0x414ef1
xor esi, esi
mov eax, esi
movzx edx, byte [ebx + esi]
add edx, edi
add ecx, edx
movzx esi, byte [ebx + esi + 1]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 2]
add edx, esi
add ecx, edx
movzx esi, byte [ebx + eax + 3]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 4]
add edx, esi
add ecx, edx
movzx esi, byte [ebx + eax + 5]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 6]
add edx, esi
add ecx, edx
movzx edi, byte [ebx + eax + 7]
add edi, edx
add ecx, edi
lea esi, [eax + 8]
add eax, 0xf
cmp eax, ebp
jb 0x414e91
mov edx, ebp
and edx, 0x1ff8
add ebx, esi
mov esi, dword [esp]
mov eax, ebp
sub eax, edx
jbe 0x414f0b
xor edx, edx
movzx esi, byte [ebx + edx]
add edi, esi
add ecx, edi
inc edx
cmp eax, edx
jne 0x414ef9
add ebx, eax
mov esi, dword [esp]
mov eax, edi
mov edx, 0x80078071
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
sub edi, eax
mov eax, ecx
mov edx, 0x80078071
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
sub esi, ebp
mov ebp, 0x15b0
jne 0x414e85
shl ecx, 0x10
or ecx, edi
jmp 0x414f4a
xor ecx, ecx
inc ecx
mov eax, ecx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
not ebx
cmp ecx, 4
jb 0x414fc9
mov eax, 0xff
mov esi, ebx
shr esi, 8
movzx edi, byte [edx]
and ebx, eax
xor ebx, edi
xor esi, dword [ebx*4 + 0x46f8e0]
mov edi, esi
shr edi, 8
movzx ebx, byte [edx + 1]
and esi, eax
xor esi, ebx
xor edi, dword [esi*4 + 0x46f8e0]
mov esi, edi
shr esi, 8
movzx ebx, byte [edx + 2]
and edi, eax
xor edi, ebx
xor esi, dword [edi*4 + 0x46f8e0]
mov ebx, esi
shr ebx, 8
movzx edi, byte [edx + 3]
and esi, eax
xor esi, edi
xor ebx, dword [esi*4 + 0x46f8e0]
add edx, 4
add ecx, 0xfffffffc
cmp ecx, 3
ja 0x414f6f
test ecx, ecx
je 0x414fed
xor esi, esi
mov eax, ebx
shr eax, 8
movzx edi, byte [edx + esi]
movzx ebx, bl
xor ebx, edi
xor eax, dword [ebx*4 + 0x46f8e0]
inc esi
mov ebx, eax
cmp ecx, esi
jne 0x414fd1
jmp 0x414fef
mov eax, ebx
not eax
pop esi
pop edi
pop ebx
ret
Function at 0x41dfe5
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
push esi
call fcn.00458608
add esp, 4
test edi, edi
js 0x41e019
mov ecx, dword [esp + 0x10]
xor eax, ecx
xor edx, edi
or edx, eax
je 0x41e01d
push 0
push edi
push ecx
push esi
call fcn.004582c3
add esp, 0x10
test eax, eax
je 0x41e01d
xor eax, eax
jmp 0x41e030
push esi
push dword [esp + 0x20]
push 1
push dword [esp + 0x24]
call fcn.0045b066
add esp, 0x10
pop esi
pop edi
ret
Function at 0x41ecc5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x468
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x41edcb
mov esi, dword [ebp + 0xc]
mov eax, 0xfffffff6
cmp dword [ebx + 0x10], esi
jbe 0x41ede3
mov ecx, dword [ebx + 0x48]
mov eax, dword [ecx]
test eax, eax
je 0x41edd0
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + esi*4]
lea edi, [eax + ecx]
add edi, 0x2e
movzx edx, word [edi - 0x12]
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x41ed2c
push eax
mov dword [esp + 8], edx
call fcn.0045b269
mov edx, dword [esp + 8]
add esp, 4
mov dword [ebx + 0x5c], 0
mov ecx, edi
call fcn.0041edeb
mov dword [ebx + 0x5c], eax
test eax, eax
je 0x41edd7
lea eax, [esp + 8]
push eax
push esi
push ebx
call fcn.0041a2a5
add esp, 0xc
test eax, eax
je 0x41edde
mov dword [ebx + 0x58], esi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [ebx + 0x6c], ecx
mov dword [ebx + 0x68], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov dword [ebx + 0x60], ecx
mov dword [ebx + 0x64], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x70], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x78], ecx
mov dword [ebx + 0x7c], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [ebx + 0xa4], ecx
mov dword [ebx + 0xa0], eax
movzx eax, word [esp + 0x1e]
mov word [ebx + 0xa8], ax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
mov dword [ebx + 0x4e008], ecx
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0x4e014], eax
mov dword [ebx + 0x4e010], ecx
xor eax, eax
jmp 0x41ede3
xor eax, eax
dec eax
jmp 0x41ede3
mov eax, 0xfffffff5
jmp 0x41ede3
mov eax, 0xfffffffe
jmp 0x41ede3
mov eax, 0xfffffffd
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4288a0
Capabilities:
Get disk information

Disassembly:
push esi
push eax
xor eax, eax
mov esi, esp
mov dword [esi], eax
push eax
push eax
push eax
push eax
push esi
push eax
push eax
push 0x47171c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [esi]
add esp, 4
pop esi
ret

Function at 0x42960f
Capabilities:
Get hostname

Disassembly:
push edi
push esi
push eax
mov eax, 0x400
mov edi, esp
mov dword [edi], eax
push eax
call fcn.0045b614
add esp, 4
mov esi, eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov eax, esi
add esp, 4
pop esi
pop edi
ret

Function at 0x435dcf
Capabilities:
Create process on windows
Decompress data using ucl
Encode data using base64
Get disk information
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push eax
call fcn.0040b508
mov dword [esp], 0x953ec525
mov eax, 0x953ec525
cmp eax, 0x953ec525
jne 0x435de1
call fcn.0042379c
pop eax
jmp fcn.0042c15c
Function at 0x448b99
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x448bd8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x448bd8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x448bd8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x448bd8
cmp dword [ecx + 0x74], 0xe
jbe 0x448bd8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x457655
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004578ac
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4577cd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4577cd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x45777c
jg 0x4576ae
test eax, eax
je 0x457772
push 1
push 0x1000
call fcn.0046035d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4576d4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x457769
push 0x8000
push ebx
call fcn.00459a58
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x457700
jg 0x4576fb
cmp ecx, 0x1000
jb 0x457700
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00461601
add esp, 0x10
cmp eax, 0xffffffff
je 0x457745
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4576fb
jl 0x45772c
test ecx, ecx
jne 0x4576ed
push dword [ebp - 0xc]
push ebx
call fcn.00459a58
push esi
call fcn.0045e8e4
add esp, 0xc
xor edi, edi
jmp 0x4577de
cmp byte [edi + 0x24], 0
je 0x45775c
cmp dword [edi + 0x20], 5
jne 0x45775c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x457767
mov edi, dword [edi + 0x18]
jmp 0x457769
xor edi, edi
push esi
call fcn.0045e8e4
pop ecx
jmp 0x4577de
test ecx, ecx
jg 0x45773e
jl 0x45777c
test eax, eax
jae 0x45773e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004620f7
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x45779f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x45773e
jmp 0x4577d6
push ebx
call fcn.00461196
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x45773e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4577de
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4577db
mov edi, dword [edi + 0x18]
jmp 0x4577de
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004620f7
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret