joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000afe6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10278b60]
jne 0x1000aff0
repz ret
jmp fcn.1000d14a

Function at 0x1000f0e7
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.1000a8ec
and dword [ebp - 4], 0
cmp dword [0x10279edc], 0
mov ebx, eax
jne 0x1000f198
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000f249
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000f249
push eax
call fcn.1000a87a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10279edc], eax
call esi
push eax
call fcn.1000a87a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10279ee0], eax
call esi
push eax
call fcn.1000a87a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10279ee4], eax
call esi
push eax
call fcn.1000a87a
pop ecx
mov dword [0x10279eec], eax
test eax, eax
je 0x1000f198
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000a87a
pop ecx
mov dword [0x10279ee8], eax
mov eax, dword [0x10279ee8]
cmp eax, ebx
je 0x1000f1f0
cmp dword [0x10279eec], ebx
je 0x1000f1f0
push eax
call fcn.1000a8f5
push dword [0x10279eec]
mov esi, eax
call fcn.1000a8f5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000f1f0
test edi, edi
je 0x1000f1f0
call esi
test eax, eax
je 0x1000f1e7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000f1e7
test byte [ebp - 0xc], 1
jne 0x1000f1f0
or dword [ebp + 0x10], 0x200000
jmp 0x1000f229
mov eax, dword [0x10279ee0]
cmp eax, ebx
je 0x1000f229
push eax
call fcn.1000a8f5
pop ecx
test eax, eax
je 0x1000f229
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000f229
mov eax, dword [0x10279ee4]
cmp eax, ebx
je 0x1000f229
push eax
call fcn.1000a8f5
pop ecx
test eax, eax
je 0x1000f229
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10279edc]
call fcn.1000a8f5
pop ecx
test eax, eax
je 0x1000f249
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000f24b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100103d9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.1000ff44
lea ecx, [0x10010b46]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x44], edx
mov dword [esp + 0x88], 0x170e00
mov edx, dword [0x102784c4]
mov dword [esp + 0x64], edx
mov edx, dword [0x102784c8]
mov dword [esp + 0x50], edx
mov dword [0x102784d8], 0x5bf
mov edx, dword [0x102784cc]
mov dword [esp + 0x4c], edx
mov edx, dword [0x102784d0]
mov dword [esp + 0x84], edx
mov edx, dword [0x102784d4]
mov dword [esp + 0x54], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x100104e5
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1001065e
mov dword [0x102784dc], 0x1f85
mov dword [esp + 0x18], eax
mov eax, esp
lea ecx, [esp + 0x38]
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
call eax
sub esp, 4
mov eax, 2
mov dword [0x102784d8], 0x1c7
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
mov dword [esp + 0x8c], eax
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x68], edx
mov dword [0x102784d8], 0x1307
call fcn.100112d5
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x14], ecx
je 0x1001045e
jmp 0x100104a4
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x10010508
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x100104ac
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x1c], eax
jmp 0x100104e5
Function at 0x1001065e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [0x102784dc], 0x1b1
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
xor eax, eax
mov dword [0x102784d8], 0x132c
mov dword [ebp - 0x2c], eax
jmp 0x100106ca
lea eax, [ebp - 0x20]
mov dword [0x102784d8], 0xfffefc67
mov dword [ebp - 0x30], eax
call fcn.10011675
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
mov ecx, dword [ebp - 0x30]
mov dword [esp + 4], ecx
call fcn.10010859
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
je 0x10010792
jmp 0x100106f2
mov eax, dword [ebp - 0x2c]
mov cl, byte [eax + 0x100121ed]
mov dl, byte [eax + 0x100121be]
sub dl, cl
mov byte [ebp + eax - 0x20], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x2c], eax
je 0x1001068b
jmp 0x100106ca
mov eax, dword [ebp - 0x38]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x24]
mov dword [esp + 4], ecx
mov dword [ebp - 0x40], eax
call fcn.100109df
xor eax, eax
mov ecx, dword [ebp - 0x40]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
mov dword [0x102784dc], 0x32b
add ecx, 0xffc00000
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x44], ecx
mov ecx, dword [ebp - 0x40]
mov dword [edx + 0x20], ecx
mov dword [0x102784d8], 0xc1f
cmp ecx, 0
mov dword [ebp - 0x3c], eax
je 0x10010792
mov eax, dword [ebp - 0x40]
add eax, 0x1000
mov dword [0x102784d8], 0x16db
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
jmp 0x10010792
mov eax, dword [ebp - 0x3c]
add esp, 0x54
pop ebp
ret
Function at 0x10010f25
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x102784e4], 0
mov byte [0x102784e8], 0
mov dword [0x102784d8], 0xffffeadc
mov dword [0x102784e0], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x10010f7d
xor eax, eax
mov dword [0x102784e0], 0
mov dword [ebp - 0x20], eax
jmp 0x10010fb9
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov dword [0x102784dc], 0x668
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x102784d8], 0x19bf
mov eax, dword [0x102784e0]
add eax, 1
mov dword [0x102784e0], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10010f7d
jmp 0x10010f6c
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x102784ec], 0
mov dword [0x102784d8], 0xf1e
mov edx, dword [0x102784e4]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x102784ec], edi
mov dword [0x102784d8], 0x1e0c
mov eax, edi
cdq
idiv ecx
mov dword [0x102784e4], edx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x102784e8], cl
mov dword [0x102784d8], 0x104f
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov cl, byte [0x102784e8]
mov edx, dword [0x102784e4]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov edx, dword [0x102784d8]
add edx, 0xfffff4c8
mov dword [0x102784d8], edx
mov edx, dword [0x102784e0]
add edx, 1
mov dword [0x102784e0], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x10010fb9
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1001110d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
mov eax, dword [ebp + 8]
mov ecx, dword [0x102784d8]
add ecx, 0x2480
mov dword [0x102784dc], ecx
mov dword [0x102784d8], 0xa8f
mov dword [ebp - 0x10], eax
call fcn.1001051c
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x10011165
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x102784dc]
mov edx, ecx
add edx, 0xffffe736
mov dword [0x102784d8], edx
mov eax, dword [eax + 0x78]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
add edx, dword [esi + eax + 0x20]
mov edi, dword [esi + eax + 0x24]
mov ebx, ecx
add ebx, 0xffffd011
mov dword [0x102784dc], ebx
mov ebx, dword [esi + eax + 0x18]
cmp ebx, 0
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
je 0x100111ed
jmp 0x10011223
mov eax, dword [ebp - 0x3c]
mov ecx, eax
mov edx, dword [ebp - 0x40]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x45], bh
mov byte [ebp - 0x46], cl
je 0x10011272
jmp 0x10011235
mov eax, dword [ebp - 0x2c]
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
xor edx, edx
mov esi, dword [ebp - 0x30]
mov edi, dword [esi + eax*4]
mov ebx, dword [ebp - 0x24]
add ebx, 0xffffe581
mov dword [0x102784dc], ebx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edx
jmp 0x100111be
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x34]
add ecx, edx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], eax
jmp 0x100111f8
mov eax, dword [ebp - 0x44]
add eax, 1
mov cl, byte [ebp - 0x45]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x46]
and ch, dl
cmp eax, 0x20
setb dl
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x5d], ch
mov byte [ebp - 0x5e], dl
mov al, byte [ebp - 0x5d]
mov cl, byte [ebp - 0x5e]
and al, cl
test al, 1
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], edx
jne 0x100111be
mov al, byte [ebp - 0x46]
test al, 1
jne 0x100112ad
jmp 0x1001127b
mov eax, dword [ebp - 0x58]
add eax, 2
mov dword [ebp - 0x64], eax
xor eax, eax
mov ecx, dword [ebp - 0x54]
add ecx, 1
mov edx, dword [ebp - 0x38]
cmp ecx, edx
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x4c], ecx
jb 0x100111f8
jmp 0x100111ed
mov eax, dword [ebp - 0x58]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x28]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x102784d8], 0x348a
mov dword [ebp - 0x2c], edi
jmp 0x100111ed
Function at 0x100112d5
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x34
mov dword [ebp - 0xc], 0
mov dword [0x102784dc], 0x840
mov eax, dword fs:[0x30]
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov esi, dword [0x102784d8]
mov edi, esi
add edi, 0x1f19
mov dword [0x102784dc], edi
mov edi, esi
add edi, 0x12e0
add esi, 0x883
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ecx
jmp 0x1001139d
mov dword [0x102784d8], 0x5f4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x10011409
jmp 0x1001144e
mov dword [0x102784d8], 0x1fa3
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x10011437
jmp 0x1001144e
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
add eax, 0xfffff257
mov dword [0x102784d8], eax
mov eax, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x1a], 0x6c
mov dword [ebp - 0x24], ecx
je 0x100113ea
jmp 0x1001144e
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
cmp word [ecx + eax*2], 0
mov edx, eax
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], esi
je 0x10011379
mov eax, dword [ebp - 0x30]
add eax, 1
cmp eax, 0x104
setl cl
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x35], cl
mov al, byte [ebp - 0x35]
test al, 1
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], esi
jne 0x1001139d
jmp 0x10011379
mov dword [0x102784dc], 0x342
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x10011335
jmp 0x1001144e
mov dword [0x102784dc], 0x100a
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1001144e
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x10011357
jmp 0x1001144e
mov eax, 1
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x3c], eax
je 0x1001145d
xor eax, eax
mov dword [0x102784d8], 0x23d9
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
add esp, 0x34
pop esi
pop edi
pop ebp
ret
Function at 0x10011467
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x102784dc], 0x2149
mov dword [0x102784e0], 0
mov dword [0x102784e4], 0
mov dword [0x102784f0], 0
mov dword [0x102784d8], 0x202b
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
jne 0x100114e2
mov dword [0x102784d8], 0x900
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov edi, eax
add edi, 1
mov dword [0x102784d8], 0x204a
add edx, 1
mov dword [ebp - 0x2c], eax
mov eax, edx
cdq
idiv esi
mov dword [0x102784e0], edx
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x102784e4], edx
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x30]
mov cl, byte [ecx + esi]
mov byte [0x102784e8], cl
mov dword [0x102784d8], 0x42b7
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x102784e8]
mov edx, dword [0x102784e4]
mov byte [ebx + edx], cl
mov dword [0x102784dc], 0x1159
mov edx, dword [0x102784e0]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x102784e4]
movzx ecx, byte [ebx + ecx]
add ecx, edx
mov dword [0x102784d8], 0x1178
and ecx, 0xff
mov dword [0x102784f0], ecx
mov dword [0x102784dc], 0x63f
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov ch, byte [edx + esi]
mov dword [0x102784dc], 0x1eeb
xor ch, cl
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x34], edi
je 0x100114d0
mov eax, dword [0x102784e0]
mov ecx, dword [0x102784e4]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], edx
jmp 0x100114e2
Function at 0x4495c6
Capabilities:
Encode data using xor

Disassembly:
pop eax
sub byte [ebx*8 - 0x27c67e72], dl
mov ecx, 0xb19141b6
pop eax

Function at 0x449e10
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call sub.MPR.dll_WNetCloseEnum
mov dword [esp + 8], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea ecx, [esp + 0xc]
mov edi, eax
push ecx
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetACP]
test edi, edi
mov dword [0xa4ee4c], eax
je 0x449e7b
test esi, esi
je 0x449e6a
mov edx, dword [0x64ed2c]
push 0x64ea48
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [0xa4ee4c]
pop edi
pop esi
add esp, 8
ret

Function at 0x4db79f
Capabilities:
Encode data using xor

Disassembly:
cmp ecx, dword [eax + 0x7e012ff5]
mov ah, 0x60
mov ch, dh
das
add dword [esi - 0x4c], edi
pushal
loopne 0x4db7e9
in eax, 0x4a
mov bh, 0x6f
sbb edx, edx
lahf
xor dword [esi + 0x20], esp
test dword [esi], esi
sbb edx, eax
mov esi, 0x7ef525c8
xchg byte [ebx - 0x44a4e806], bl
mov bh, ch
pop esp
xchg esi, eax
push 0x6a4c4150
jecxz 0x4db7a0
and edi, esp
retf
rol dword [edx], 1
salc
push esi
mov bl, 0x29
xor edi, ecx
xor ebx, dword [edi + 0x63]
mov byte [esi - 0x36], 0x52
fcomi st(0)
dec ebp
or ebx, 0xffffffdc
hlt
Function at 0x401000
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Write file on windows

Disassembly:
sub esp, 0x6c
mov dword [esp + 0x5c], ebx
mov ebx, eax
mov dword [esp + 0x60], esi
mov esi, edx
mov dword [esp + 0x64], edi
xor edi, edi
mov dword [esp + 0x68], ebp
mov ebp, dword [sym.imp.kernel32.dll_GetStdHandle]
mov dword [esp], 0xfffffff5
call ebp
sub esp, 4
mov dword [esp + 0x10], edi
lea edi, [esp + 0x4c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteConsoleW]
sub esp, 0x14
test eax, eax
je 0x401068
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
mov ebp, dword [esp + 0x68]
add esp, 0x6c
ret
mov ecx, dword [sym.imp.kernel32.dll_GetOEMCP]
mov dword [esp + 0x3c], ecx
call ecx
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x1c], edx
xor edx, edx
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov dword [esp + 0x14], edx
xor edx, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 0x34], eax
call eax
xor ecx, ecx
mov edx, dword fs:[0x18]
sub esp, 0x20
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0x30]
mov dword [esp + 0x38], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
mov dword [esp + 0x30], eax
je 0x40104f
mov ecx, dword [esp + 0x3c]
call ecx
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 0xc], esi
xor esi, esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x34]
mov dword [esp], eax
call ebx
sub esp, 0x20
mov dword [esp], 0xfffffff5
call ebp
sub esp, 4
mov dword [esp + 0xc], edi
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 8], edx
mov dword [esp + 4], edi
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp + 8], edi
mov edx, dword [esp + 0x38]
xor edi, edi
mov dword [esp + 4], edi
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x40104f
Function at 0x4018a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
test eax, eax
je 0x401910
cmp byte [esi + eax - 1], 0xa
mov ebx, eax
je 0x401908
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x405084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
xor eax, eax
jmp 0x4018cd
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x401fe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov ebx, dword [ebp + 0xc]
mov dword [esp], ebx
call sym.___wine_dbg_get_channel_flags
movzx ecx, byte [ebp + 8]
movzx eax, al
sar eax, cl
test al, 1
je 0x4021b8
mov edx, dword [0x405084]
mov eax, dword fs:[0x18]
cmp dword [eax + 0x24], edx
je 0x4021a8
test byte [0x403018], 8
jne 0x402150
lea edi, [esp + 0x28]
mov esi, edi
test byte [0x403028], 8
jne 0x402110
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov ecx, str._04x:
mov dword [esp + 4], ecx
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x40206b
cmp dword [ebp + 8], 3
jbe 0x4020d0
mov dword [esp], 2
mov ebx, edi
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov esi, dword [ebx]
add ebx, 4
lea ecx, [esi - 0x1010101]
not esi
and ecx, esi
and ecx, 0x80808080
je 0x40207a
mov dword [esp + 0xc], eax
mov esi, ecx
mov eax, 1
mov dword [esp + 4], eax
shr esi, 0x10
test ecx, 0x8080
mov dword [esp], edi
cmove ecx, esi
lea esi, [ebx + 2]
mov dl, cl
cmove ebx, esi
add dl, cl
sbb ebx, 3
sub ebx, edi
mov dword [esp + 8], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 0x10]
add eax, esi
inc ebx
mov dword [esp + 0x10], ebx
mov dword [esp], eax
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 8]
mov ecx, dword [edx*4 + 0x404184]
mov edx, str._s:_s:_s
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov ecx, edi
sub ecx, eax
add ecx, 0xc8
mov dword [esp + 4], ecx
call sym._snprintf.constprop.0
jmp 0x40206b
mov dword [esp], 0x403028
call sym.___wine_dbg_get_channel_flags
and al, 8
je 0x402040
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov ecx, str._04x:
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sym._sprintf
add esi, eax
jmp 0x402040
mov dword [esp], 0x403018
call sym.___wine_dbg_get_channel_flags
and al, 8
je 0x40202d
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
mov esi, str._3u._03u:
mov dword [esp + 4], esi
lea edi, [esp + 0x28]
mov dword [esp], edi
mov ecx, eax
mul edx
shr edx, 6
mov dword [esp + 8], edx
imul eax, edx, 0x3e8
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea esi, [edi + eax]
jmp 0x402033
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xffffffff
jmp 0x4020c8