joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10164575
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x101b3340], 0
mov byte [0x101b3344], 0
mov dword [0x101b3338], 0x2272
mov edi, dword [0x101b3334]
add edi, 0xffffe432
mov dword [0x101b3334], edi
mov dword [0x101b333c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x101645ee
xor eax, eax
mov dword [0x101b333c], 0
mov ecx, dword [0x101b3334]
add ecx, 0xfffff4ce
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
jmp 0x10164620
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x101b3338], 0xde5
mov eax, dword [0x101b333c]
add eax, 1
mov dword [0x101b333c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x101645ee
jmp 0x101645ce
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, 0x1831
mov esi, 0x100
mov dword [0x101b3348], 0
mov edi, dword [0x101b3340]
mov ebx, dword [ebp - 0x18]
movzx ebx, byte [ebx + eax]
add ebx, edi
mov dword [ebp - 0x28], eax
xor edi, edi
mov dword [ebp - 0x2c], edx
mov edx, edi
mov edi, dword [ebp - 0x10]
div edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add ebx, edx
mov dword [0x101b3348], ebx
mov dword [0x101b3338], 0x1119
mov eax, ebx
cdq
idiv esi
mov dword [0x101b3340], edx
mov dword [0x101b3334], ecx
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
mov cl, byte [ecx + esi]
mov byte [0x101b3344], cl
mov dword [0x101b3338], 0x249d
mov ebx, dword [ebp - 0x18]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov dword [0x101b3338], 0x1076
mov cl, byte [0x101b3344]
mov edx, dword [0x101b3340]
mov byte [ebx + edx], cl
mov dword [0x101b3334], 0x2363
mov edx, dword [0x101b333c]
add edx, 1
mov dword [0x101b333c], edx
cmp edx, 0x100
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
jl 0x10164620
mov dword [0x101b3334], 0x3cc4
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10164820
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [fcn.10164820]
mov dword [0x101b3334], 0x12cc
mov ecx, dword [0x101b3338]
add ecx, 0xfffff509
mov dword [0x101b3338], ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
jmp 0x10164875
mov eax, dword [ebp - 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov ecx, dword [ebp - 0x10]
add ecx, 0x164a
mov dword [0x101b3334], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, eax
add edx, 0x5c2
cmp word [ecx], 0x5a4d
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], edx
jne 0x10164850
mov eax, dword [ebp - 0xc]
add eax, dword [eax + 0x3c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x4550
jne 0x10164850
mov eax, dword [ebp - 0x14]
mov dword [0x101b3338], eax
mov eax, dword [ebp - 0xc]
add esp, 0x18
pop ebp
ret
Function at 0x101648b7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [0x101662a5]
mov esi, 0xe
lea edi, [ebp - 0x28]
mov dword [0x101b3334], 0xfffff764
mov dword [0x101b3338], 0xe7d
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0xe
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
call fcn.10164f50
mov dword [0x101b3338], 0xefc
mov dword [0x101b3334], 0x784
call fcn.10164a34
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.10164b09
xor ecx, ecx
mov dword [0x101b3338], 0xe3a
mov dword [0x101b3334], 0x162c
cmp eax, 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
je 0x101649f8
mov eax, dword [ebp - 0x3c]
mov dword [0x101b3334], 0xbfe
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 - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x44], eax
call fcn.1016443a
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov dword [0x101b3338], 0x2241
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x4c], ecx
mov ecx, dword [ebp - 0x44]
mov dword [edx + 0x3c], ecx
mov dword [0x101b3334], 0x20d7
cmp ecx, 0
mov dword [ebp - 0x40], eax
je 0x101649f8
mov eax, dword [ebp - 0x44]
add eax, 0x1951
mov dword [0x101b3334], 0x556
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x4c
pop esi
pop edi
pop ebp
ret
Function at 0x101652c5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x101b333c], 0
mov dword [0x101b3340], 0
mov dword [0x101b334c], 0
mov dword [0x101b3334], 0x1445
cmp eax, 0
sete bl
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x1d], bl
xor eax, eax
mov cl, byte [ebp - 0x1d]
test cl, 1
mov edx, eax
mov esi, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], eax
jne 0x10165481
jmp 0x1016535b
mov eax, dword [0x101b333c]
mov ecx, dword [0x101b3340]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], edx
jmp 0x1016535b
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, 0x100
mov edi, eax
add edi, 1
add edx, 1
mov dword [0x101b3334], 0x1a3e
mov dword [ebp - 0x3c], eax
mov eax, edx
cdq
idiv esi
mov dword [0x101b333c], edx
mov dword [0x101b3338], 0x263
mov ebx, dword [ebp - 0x1c]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x40], edx
cdq
idiv esi
mov dword [0x101b3340], edx
mov dword [0x101b3338], 0x25c1
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x40]
mov cl, byte [ecx + esi]
mov byte [0x101b3344], cl
mov ebx, dword [ebp - 0x1c]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov edx, dword [0x101b3338]
add edx, 0x1fb5
mov dword [0x101b3334], edx
mov cl, byte [0x101b3344]
mov edx, dword [0x101b3340]
mov byte [ebx + edx], cl
mov edx, dword [0x101b3334]
add edx, 0x201f
mov dword [0x101b3334], edx
mov edx, dword [0x101b333c]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x101b3340]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x101b334c], ecx
mov dword [0x101b3334], 0xfad
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x3c]
mov ch, byte [edx + esi]
mov byte [0x101b3351], ch
mov byte [0x101b3352], cl
xor ch, cl
mov byte [0x101b3350], ch
mov dword [0x101b3334], 0x8f3
mov edx, dword [0x101b3338]
add edx, 0xffffec9d
mov dword [0x101b3338], edx
mov edx, dword [ebp - 0x18]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x38], edi
jne 0x10165336
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10011c00
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x10011c3e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10011c36
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10011c40
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10011c26
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10011d10
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10011d26
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x10011d41
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x1001c479
Capabilities:
Encode data using xor

Disassembly:
call 0x1001c3f2
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x1001c422
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x1001c43e
xor edx, 0
jmp 0x1001c449
xor edx, edx
jmp 0x1001c460
jmp 0x1001c46c
xor eax, eax
push 0x8427d7c0
call 0x1001c479
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x1001c4b5
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x1001c48e
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x1001c4cc
add eax, 0
jno 0x1001c4d1
add esi, 0
ret 0x10
Function at 0x1001d23a
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x1001d25c
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x1001d3fe
cmp edi, dword [ebp + 0x10]
jb 0x1001d3fe
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.1001cd26
inc edi
jmp 0x1001d2e5
jmp 0x1001d2f2
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1001cd26
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1001cd26
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x1001d346
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x1001d32a
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.1001d374
add dword [eax], 0x39
jle 0x1001d350
sub al, 0xf5
mov ch, al
call fcn.1001d389
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10

Function at 0x1001f061
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x1001f077
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x1001f088
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.1001f0c9
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx
Function at 0x10021435
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x1002137e
add ebx, 0
push ecx
call 0x10021393
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x1005a191
sub ebx, dword [0x100799d0]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x100799c0
call fcn.1001ce5d
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.1001c36b
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x100214f1
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x100214f1
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x100214a8
mov eax, 1
lock xchg dword [0x100799cc], eax
push 0x3dd1fc71
call 0x10021435
push esi
add esp, 8
cmp eax, 0
jne 0x1002141e
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x10021444
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x10021459
cmp ecx, edx
cmp eax, 0
je 0x1002147e
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x10021468
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.10021497
dec eax
loope 0x1002149a
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x100799cc], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x100214ce
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x100214e3
jmp 0x100214ee
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x100213dc
Function at 0x10028556
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x1002882c
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x10066644
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x1005d60a
push 0xffffffffffffffff
call fcn.1001f756
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x100285c0
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.100285d8
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x10028820
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x100287f4
Function at 0x10038026
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10038048
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10038048
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10038048
ret
cmp word [ebx + 4], 0x14c
jne 0x10038048
test word [ebx + 0x16], 2
je 0x10038048
test word [ebx + 0x16], 0x100
je 0x10038048
cmp word [ebx + 0x18], 0x10b
jne 0x10038048
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10038048
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x100380d4
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10038068
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1001efb3
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10038048
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x100380d4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10038048
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10038048
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10038048
ret
cmp word [ebx + 4], 0x14c
jne 0x10038048
test word [ebx + 0x16], 2
je 0x10038048
test word [ebx + 0x16], 0x100
je 0x10038048
cmp word [ebx + 0x18], 0x10b
jne 0x10038048
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10038048
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x100380d4
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10038068
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1001efb3
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10038048
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x1003818b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x100381e4
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1003818b
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1003819a
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1043de3d
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x100381eb
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1001f061
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1003828a
add edi, 4
add eax, 2
dec ecx
jne 0x100381d0
call 0x10038237
loope 0x1003822d
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10038287
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x10038298
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1003824b
cmp eax, ecx
ja 0x1003824b
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100382d5
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x100382cb
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1001f540
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1003819a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x100381e4
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1003818b
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1003819a
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1043de3d
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x100381eb
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1001f061
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1003828a
add edi, 4
add eax, 2
dec ecx
jne 0x100381d0
call 0x10038237
loope 0x1003822d
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10038287
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x10038298
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1003824b
cmp eax, ecx
ja 0x1003824b
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100382d5
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x100382cb
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1001f540
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x403ebb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403ed2
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x403f07
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x403f03
cmp edi, eax
jae 0x403f07
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x403ef5
cmp edi, eax
jb 0x403f0b
xor eax, eax
jmp 0x403f14
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x405f15
Capabilities:
Encode data using base64

Disassembly:
push 0x14
mov eax, 0x504e7b
call fcn.004d9fe8
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x18], 0
cmp dword [eax + 0x14], 0x10
jb 0x405f35
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
jmp 0x405f38
mov dword [ebp - 0x14], eax
mov edi, dword [ebp + 8]
mov eax, dword [eax + 0x10]
and dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
and dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x18], 1
test eax, eax
je 0x406075
dec eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [ebp + esi + 0xc], al
mov bl, byte [ebp + 0xd]
inc esi
inc dword [ebp - 0x14]
cmp esi, 3
jne 0x405fd3
mov al, byte [ebp + 0xc]
shr al, 2
mov byte [ebp - 0x10], al
mov al, byte [ebp + 0xc]
and al, 3
shl al, 4
mov cl, bl
shr cl, 4
add al, cl
mov cl, byte [ebp + 0xe]
mov byte [ebp - 0xf], al
mov al, bl
and al, 0xf
shl al, 2
shr cl, 6
add al, cl
mov byte [ebp - 0xe], al
mov al, byte [ebp + 0xe]
and al, 0x3f
mov byte [ebp - 0xd], al
xor esi, esi
movzx eax, byte [ebp + esi - 0x10]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 0x1c], al
push dword [ebp - 0x1c]
mov ecx, edi
push 1
call fcn.0040966f
inc esi
cmp esi, 4
jl 0x405fb1
xor esi, esi
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x405f61
test esi, esi
je 0x406075
cmp esi, 3
jge 0x405fff
push 3
pop ecx
sub ecx, esi
push ecx
lea eax, [ebp + esi + 0xc]
push 0
push eax
call fcn.004d9310
mov bl, byte [ebp + 0xd]
add esp, 0xc
mov al, byte [ebp + 0xc]
mov cl, al
shr cl, 2
mov byte [ebp - 0x10], cl
and al, 3
mov cl, bl
shl al, 4
shr cl, 4
add al, cl
mov byte [ebp - 0xf], al
mov al, byte [ebp + 0xe]
and bl, 0xf
mov cl, al
shl bl, 2
shr cl, 6
add bl, cl
mov byte [ebp - 0xe], bl
and al, 0x3f
lea ebx, [esi + 1]
xor edi, edi
mov byte [ebp - 0xd], al
test ebx, ebx
jle 0x40605a
movzx eax, byte [ebp + edi - 0x10]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, dword [ebp + 8]
mov byte [ebp + 0xc], al
push dword [ebp + 0xc]
push 1
call fcn.0040966f
inc edi
cmp edi, ebx
jl 0x40603a
push 3
pop edi
cmp esi, edi
jge 0x406072
sub edi, esi
mov ecx, dword [ebp + 8]
push 0x3d
push 1
call fcn.0040966f
dec edi
jne 0x406063
mov edi, dword [ebp + 8]
mov eax, edi
call fcn.004da0c0
ret