joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e8d0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0
push eax
push 0x4c0dcc
push 1
push 0
push 0x4cdf78
mov dword [ebp - 8], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x41e908
xor bl, bl
jmp 0x41e991
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp - 8]
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x41e91e
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xc]
call fcn.0043e170
mov ecx, dword [esi]
lea edx, [ebp - 4]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push dword [eax]
push esi
call dword [ecx + 0xc]
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.0043e190
test esi, esi
pop esi
js 0x41e982
cmp byte [ebp + 8], 0
je 0x41e96f
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x41e982
mov eax, dword [ebp + 0x10]
mov bl, 1
mov ecx, dword [ebp - 4]
mov dword [ebp - 4], 0
mov dword [eax], ecx
jmp 0x41e991
mov eax, dword [ebp - 4]
xor bl, bl
test eax, eax
je 0x41e991
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x41e99e
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41fdc0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00496a10
push dword [ebp + 8]
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.0049e683
add esp, 0x18
cmp word [ebp - 0x21e], 0x3a
jne 0x41fe10
cmp word [ebp - 0x21c], 0x5c
jne 0x41fe10
xor eax, eax
mov word [ebp - 0x21a], ax
lea eax, [ebp - 0x18]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0xc], 0
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x41feb1
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.00494d80
movss xmm1, dword [0x4c103c]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
cvtsd2ss xmm0, xmm0
mulss xmm0, xmm1
mulss xmm0, xmm1
mulss xmm0, xmm1
movss dword [eax], xmm0
call fcn.00494d80
movss xmm1, dword [0x4c103c]
mov eax, dword [ebp + 0x10]
cvtsd2ss xmm0, xmm0
mulss xmm0, xmm1
mulss xmm0, xmm1
mulss xmm0, xmm1
movss dword [eax], xmm0
mov al, 1
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x421a60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
and byte [esi + 0xc], 9
mov al, byte [esi + 0xc]
test al, 1
je 0x421a9b
test al, 8
jne 0x421a9b
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x421a9b
or byte [esi + 0xc], 4
mov cl, byte [esi + 0xc]
test eax, 0x21000000
jne 0x421a9b
or cl, 2
mov byte [esi + 0xc], cl
test byte [esi + 0xc], 2
je 0x421abb
push 8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.00421ad0
pop esi
pop ebp
ret 4
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 4
Function at 0x426930
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x42689f
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x42689a
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x426884
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x42688c
cmp edx, ebx
jne 0x4269da
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
inc ebp
or byte [edx], al
inc ebp
or byte [edx], al
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x42685b
add eax, dword [eax + 4]
jmp 0x426848
mov dword [ebp + 0xc], ebx
jmp 0x4268aa
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4268c2
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4268e0
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x42693e
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x426925
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x42692e
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x426938
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x42691a
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4268a4
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x42698b
dec eax
je 0x426982
sub eax, 3
je 0x426979
mov dword [ebp - 4], 0x40
jmp 0x4269a8
mov dword [ebp - 4], 4
jmp 0x42698e
mov dword [ebp - 4], 0x20
jmp 0x42698e
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4269da
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x42695a
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004261eb
mov edx, eax
mov eax, dword [0x1475ff5a]
push 1
push esi
call edi
mov eax, esi
jmp 0x4269e6
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4275d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add ebx, esp
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.0042615c
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x4275f8
Function at 0x42a300
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00429150
test al, al
jne 0x42a372
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00429150
test al, al
jne 0x42a372
cmp dword [edi + 0x10], 0x104
jae 0x42a372
cmp dword [esi + 0x10], 0x104
jae 0x42a372
cmp dword [esi + 0x14], 8
jb 0x42a33b
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x42a343
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x42a372
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42a372
test al, 1
je 0x42a36c
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
mov al, 1
pop esi
pop ebp
ret
pop edi
xor al, al
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4de4e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
cmp dword [esi + 0x14], 8
jb 0x42a3aa
mov ebx, dword [esi]
jmp 0x42a3ac
mov ebx, esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42a3ec
test al, 0x10
je 0x42a3cf
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x42a3d9
mov dword [edi], 0xfffffff7
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00428100
cmp dword [esi + 0x14], 8
jb 0x42a401
mov ecx, dword [esi]
jmp 0x42a403
mov ecx, esi
push dword [esi + 0x10]
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push ecx
cmovae eax, dword [ebp - 0x1c]
push dword [ebp - 0xc]
push eax
call fcn.0040c040
add esp, 0x10
test eax, eax
jne 0x42a430
test edi, edi
je 0x42a47a
mov dword [edi], 0xfffffffc
xor bl, bl
jmp 0x42a480
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.0042a380
add esp, 8
test al, al
je 0x42a47a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42a47e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x42a46b
push esi
call fcn.0042a7a0
add esp, 4
test al, al
jne 0x42a47e
test edi, edi
je 0x42a47a
push ebx
call fcn.00441d20
add esp, 4
mov dword [edi], eax
xor bl, bl
jmp 0x42a480
mov bl, 1
lea ecx, [ebp - 0x1c]
call fcn.00401f50
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049510d
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x42a7ae
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42a7c2
shr eax, 4
and eax, 1
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x42aa80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x4de4e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x42ab35
lea eax, [ebp - 0x228]
push eax
sub esp, 8
lea eax, [ebp - 0x210]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x210], 0
jne 0x42aad8
xor eax, eax
jmp 0x42aaf0
lea eax, [ebp - 0x210]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42aae1
sub eax, esi
sar eax, 1
lea ecx, [ebp - 0x240]
mov dword [edx + 4], eax
call fcn.00427600
mov ecx, eax
call fcn.00429350
push eax
mov ecx, edi
call fcn.00427680
lea ecx, [ebp - 0x228]
call fcn.00401f50
lea ecx, [ebp - 0x240]
call fcn.00401f50
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0049510d
mov esp, ebp
pop ebp
ret

Function at 0x42ac00
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 0x10], 0x104
jae 0x42ac98
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x10], 0x104
jae 0x42ac98
cmp dword [edi + 0x14], 8
jb 0x42ac2b
mov eax, dword [edi]
jmp 0x42ac2d
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x42ac37
mov ecx, dword [esi]
jmp 0x42ac39
mov ecx, esi
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x42ac4d
pop edi
mov al, 1
pop esi
pop ebp
ret
push ebx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
mov dword [ebp + 8], eax
jb 0x42ac63
mov eax, dword [esi]
jmp 0x42ac65
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42ac88
shr eax, 4
and al, 1
je 0x42ac88
push edi
push esi
call fcn.00429f70
mov bl, al
add esp, 8
test bl, bl
jne 0x42ac91
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, bl
pop ebx
pop edi
pop esi
pop ebp
ret
pop edi
xor al, al
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x42ad3e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret
Function at 0x42add0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], 0
cmp dword [eax + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
jb 0x42adf0
mov eax, dword [eax]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
call fcn.0042ad50
mov eax, dword [ebp - 4]
test eax, eax
je 0x42ae44
cmp eax, 0xffffffff
je 0x42ae44
push 0
lea ecx, [ebp - 8]
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42ae41
mov esi, dword [ebp - 8]
cmp esi, edi
jne 0x42ae41
mov eax, dword [ebp - 4]
jmp 0x42ae47
mov eax, dword [ebp - 4]
or esi, 0xffffffff
test eax, eax
je 0x42ae71
cmp eax, 0xffffffff
je 0x42ae71
call fcn.00429770
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
call fcn.00429d70
push dword [ebp - 4]
call fcn.00429a00
add esp, 0x14
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x409448
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x409457
pop dword [ebp - 4]
mov eax, 0xa50fd974
sub eax, 0xa4cf451d
sub dword [ebp - 4], eax
push 0x40
push 0x1000
push 0x3a57c
push 0
mov eax, 0xadf699b8
sub eax, 0xadb5b898
add eax, dword [ebp - 4]
call dword [eax]
mov ecx, 0x4b8c
xor edx, edx
add edx, eax
mov ebx, 0xbaaf004f
sub ebx, 0xba6d884f
add ebx, dword [ebp - 4]
mov esi, 0x78b9384
mov edi, dword [ebx]
xor edi, esi
mov dword [edx], edi
add edx, 0xfa97441
add edx, 0xf0568bc3
add ebx, 4
loop 0x4094ac
add eax, 0x4aa77368
add eax, 0xb559ad9b
mov ebx, eax
add eax, 5
mov ecx, 0x5b8923ff
sub ecx, 0x5b4923ff
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x100076b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x100076bf
pop dword [ebp - 0x28]
mov eax, 0x70d61e87
add eax, 0x9f2a5838
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x857c8255
add dword [ebp - 0x38], 0xc8d5c2f6
mov dword [ebp - 0x34], 0x1e058faa
add dword [ebp - 0x34], 0x142dbc9b
mov dword [ebp - 0x30], 0x6dac150f
sub dword [ebp - 0x30], 0x215fd0e1
mov dword [ebp - 0x2c], 0x2ddc9775
add dword [ebp - 0x2c], 0xd223688b
lea eax, [ebp - 0x38]
push eax
mov eax, 0xf5f5c3ba
sub eax, 0xe5f4d30a
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x31d3a9b6
sub dword [ebp - 0x38], 0xbd614060
mov dword [ebp - 0x34], 0x8c8c0ceb
sub dword [ebp - 0x34], 0x4b1fab76
mov dword [ebp - 0x30], 0x3d184e29
sub dword [ebp - 0x30], 0xd9a8e1bd
mov dword [ebp - 0x2c], 0x6dd98d85
add dword [ebp - 0x2c], 0x9226727b
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x236a8cad
sub eax, 0x13699c05
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x365f8
push 0
call eax
mov ecx, 0x40bca550
add ecx, 0xbf439923
mov esi, eax
mov edx, 0xdbd00bc6
sub edx, 0xcbcdd3c6
add edx, dword [ebp - 0x28]
mov edi, 0xa4bdda07
sub dword [ebp - 0x24], ebx
mov ebx, dword [edx]
xor dword [ebp - 0x1c], ebx
sub ebx, edi
mov dword [ebp - 0x14], 0x46450f2a
mov dword [esi], ebx
add dword [ebp - 8], 0x419f3353
add esi, 4
add edx, 0x660b3948
sub edx, 0x660b3944
loop 0x100077db
add eax, 0x2d2b2e02
sub eax, 0x2d2a4163
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xa6b2ff4b
sub ecx, 0x96b2ff4b
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x1000b110
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
cmp eax, 0x1a
jl 0x1000b168
mov eax, dword [esi + 8]
cmp eax, dword [esi]
jl 0x1000b168
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
push 0x10
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
push eax
push dword [esi + 4]
push dword [esi]
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, edi
call fcn.100076b0
push 1
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
ret 4

Function at 0x1000b700
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0xd
push dword [ecx + 0x38]
call dword [sym.imp.USER32.dll_SendMessageA]
pop ebp
ret 8
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x41a87e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x41a88d
pop dword [ebp - 0x44]
mov eax, 0xccccec3
add eax, 0xf374d9ca
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xbeefa4d5
add dword [ebp - 0x54], 0x8f62a076
mov dword [ebp - 0x50], 0xa03d2b7
add dword [ebp - 0x50], 0x282f798e
mov dword [ebp - 0x4c], 0xd7ff966f
add dword [ebp - 0x4c], 0x744cadbf
mov dword [ebp - 0x48], 0xb3b70bf8
add dword [ebp - 0x48], 0x4c48f408
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xbcd4fd76
add dword [ebp - 0x54], 0xb79d6be0
mov dword [ebp - 0x50], 0x8d6760fd
sub dword [ebp - 0x50], 0x4bfaff88
mov dword [ebp - 0x4c], 0xadbf9f9d
sub dword [ebp - 0x4c], 0x4a503331
mov dword [ebp - 0x48], 0x4110d521
sub dword [ebp - 0x48], 0x4110d521
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x8b5b04e1
sub eax, 0x8b18d3bd
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x41e51
push 0
call eax
mov ecx, 0x3cc31e23
add ecx, 0xc33d35e1
mov edi, eax
mov edx, 0x434400
add edx, dword [ebp - 0x44]
mov esi, 0x3e66afa4
add esi, 0x4715cb9e
sub dword [ebp - 8], edi
mov ebx, dword [edx]
xor dword [ebp - 0x24], edi
add ebx, esi
sub dword [ebp - 0x10], 0x58bee000
mov dword [edi], ebx
add dword [ebp - 0x14], 0xd5155c8c
add edi, 0x6055b38
sub edi, 0x6055b34
add edx, 4
loop 0x41a9a4
add eax, 0x142e3
xor ebx, ebx
add ebx, eax
add eax, 0x9ca1622f
add eax, 0x635e9dd6
mov ecx, 0x400000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x10008ec9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x10008ed8
pop dword [ebp - 0x4c]
mov eax, 0xdf1622fe
add eax, 0x30ea6bda
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x8d086ecd
add dword [ebp - 0x5c], 0xc149d67e
mov dword [ebp - 0x58], 0xfe4eb301
add dword [ebp - 0x58], 0x33e49944
mov dword [ebp - 0x54], 0xd9be0c28
add dword [ebp - 0x54], 0x728e3806
mov dword [ebp - 0x50], 0x489db4a0
add dword [ebp - 0x50], 0xb7624b60
lea eax, [ebp - 0x5c]
push eax
mov eax, 0xf81db0cc
sub eax, 0xe81cf0a8
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xc1c85810
sub dword [ebp - 0x5c], 0x4d55eeba
mov dword [ebp - 0x58], 0x2613e83
sub dword [ebp - 0x58], 0xc0f4dd0e
mov dword [ebp - 0x54], 0xaf679fa4
add dword [ebp - 0x54], 0xb407ccc8
mov dword [ebp - 0x50], 0x4aeaf83
add dword [ebp - 0x50], 0xfb51507d
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0xfdc6fe18
add eax, 0x1239c214
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3806c
push 0
call eax
mov ecx, 0x482d
xor edx, edx
add edx, eax
mov ebx, 0x382d0b35
add ebx, 0xd7d768cb
add ebx, dword [ebp - 0x4c]
mov esi, 0x1e7459d8
xor dword [ebp - 0x48], edi
mov edi, dword [ebx]
add edi, esi
add dword [ebp - 0x1c], esi
mov dword [edx], edi
sub dword [ebp - 0x3c], 0xea10821e
add edx, 0x3901f35
sub edx, 0x3901f31
add ebx, 4
loop 0x10008ff0
add eax, 0xc7070d77
sub eax, 0xc705f9f0
xor ebx, ebx
add ebx, eax
add eax, 0x5dede370
sub eax, 0x5dede36b
mov ecx, 0x10000000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x40172e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x30]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call eax
sub esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
ja 0x401757
mov eax, 0
jmp 0x40175c
mov eax, 1
leave
ret

Function at 0x40175e
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0x50], 0x40
lea eax, [ebp - 0x50]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
call eax
sub esp, 4
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
shrd eax, edx, 0x14
shr edx, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x7ff
ja 0x40179b
mov eax, 0
jmp 0x4017a0
mov eax, 1
leave
ret
Function at 0x40b3c0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp sym._mark_section_writable

Function at 0x40b420
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4143a0]
test esi, esi
jle 0x40b50d
mov edi, dword [0x4143a4]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x40b454
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x40b506
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x40b440
mov dword [esp], eax
mov esi, eax
call sym.___mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x40b54a
mov esi, dword [0x4143a4]
lea ebx, [ebx + ebx*2]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call sym.__GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x4143a4]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40b52a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x40b4ff
sub eax, 0x40
and eax, 0xffffffbf
je 0x40b4ff
mov eax, dword [esp + 0x20]
add ebx, dword [0x4143a4]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x40b514
add dword [0x4143a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x40b45e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
mov eax, dword [0x4143a4]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
lea esi, [esi]