joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409ae7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x40d58c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x18], eax
call fcn.00404e47
xor esi, esi
mov ebx, eax
cmp dword [0x40e554], esi
jne 0x409bc7
push esi
push esi
push 0x401ccc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x409ca9
push 0x401ce4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x409ca9
push eax
call fcn.00404dd2
mov dword [esp], 0x401cf0
push edi
mov dword [0x40e554], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.00404dd2
mov dword [esp], 0x401d00
push edi
mov dword [0x40e558], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.00404dd2
mov dword [esp], 0x401d14
push edi
mov dword [0x40e55c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.00404dd2
pop ecx
mov ecx, eax
mov dword [0x40e564], ecx
test ecx, ecx
je 0x409bc0
push 0x401d30
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.00404dd2
pop ecx
mov dword [0x40e560], eax
jmp 0x409bcc
mov eax, dword [0x40e560]
jmp 0x409bd2
mov eax, dword [0x40e560]
mov ecx, dword [0x40e564]
cmp eax, ebx
je 0x409c38
cmp ecx, ebx
je 0x409c38
push eax
call fcn.00404d5d
push dword [0x40e564]
mov dword [ebp - 0x14], eax
call fcn.00404d5d
mov edi, eax
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
test eax, eax
je 0x409c38
test edi, edi
je 0x409c38
mov ecx, eax
call dword [0x410110]
mov eax, dword [ebp - 0x14]
call eax
test eax, eax
je 0x409c2f
lea ecx, [ebp - 0x20]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
mov ecx, edi
call dword [0x410110]
call edi
test eax, eax
je 0x409c2f
test byte [ebp - 8], 1
jne 0x409c38
or dword [ebp + 0x10], 0x200000
jmp 0x409c81
mov eax, dword [0x40e558]
cmp eax, ebx
je 0x409c81
push eax
call fcn.00404d5d
mov edi, eax
pop ecx
test edi, edi
je 0x409c81
mov ecx, edi
call dword [0x410110]
call edi
mov esi, eax
test esi, esi
je 0x409c81
mov eax, dword [0x40e55c]
cmp eax, ebx
je 0x409c81
push eax
call fcn.00404d5d
mov edi, eax
pop ecx
test edi, edi
je 0x409c81
push esi
mov ecx, edi
call dword [0x410110]
call edi
mov esi, eax
push dword [0x40e554]
call fcn.00404d5d
mov edi, eax
pop ecx
test edi, edi
je 0x409ca9
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push esi
call dword [0x410110]
call edi
jmp 0x409cab
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403540
leave
ret
Function at 0x40c1de
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x40d58c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 4
xor esi, esi
pop eax
mov dword [ebp - 0xc], esi
call fcn.0040adb0
mov eax, esp
lea ecx, [ebp - 0x34]
push 0x1c
push ecx
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40c2ed
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x54]
push 0x401358
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40c26f
push 0x4026a4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40c26f
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
call dword [0x410110]
call edi
cmp eax, 1
jne 0x40c26f
cmp dword [ebp - 0xc], esi
jbe 0x40c26f
mov esi, dword [ebp - 0xc]
mov dword [ebp - 8], esi
lea eax, [ebp - 8]
push eax
lea edi, [ebx - 1]
push edi
push esi
call fcn.00405b26
add esp, 0xc
test eax, eax
js 0x40c2ed
mov esi, dword [ebp - 8]
not edi
and esi, edi
mov dword [ebp - 8], esi
je 0x40c2a5
lea eax, [ebp - 8]
push eax
push ebx
push esi
call fcn.00405b26
add esp, 0xc
test eax, eax
js 0x40c2ed
mov esi, dword [ebp - 8]
lea eax, [ebx + ebx]
cmp esi, eax
jae 0x40c2ae
mov esi, eax
mov eax, dword [ebp - 0x14]
mov edi, ebx
neg edi
add eax, ebx
and edi, dword [ebp - 0x10]
sub edi, esi
cmp edi, eax
jb 0x40c2ed
push 4
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x40c2ed
lea ecx, [ebp - 0x18]
push ecx
push 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40c2ed
xor eax, eax
inc eax
jmp 0x40c2ef
xor eax, eax
lea esp, [ebp - 0x64]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403540
leave
ret
Function at 0x405c70
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42dc6b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x43e3d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], 0x434e6c
call fcn.00418499
push 4
mov dword [ebp - 4], 0
call fcn.0041948d
mov edi, eax
add esp, 4
test edi, edi
je 0x405cec
call fcn.00418371
mov dword [edi], eax
call fcn.00418130
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0041845a
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405ce2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00418482
jmp 0x405cee
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 4
Function at 0x1028a1f2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x102a6fa0], 0x1938
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jmp 0x1028a25c
lea eax, [ebp - 0x24]
mov dword [0x102a6fa4], 0x14f9
mov dword [ebp - 0x34], eax
call fcn.1028a06e
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.10289bcb
mov ecx, dword [0x102a6fa0]
add ecx, 0xfffffb5f
mov dword [0x102a6fa4], ecx
cmp eax, 0
mov dword [ebp - 0x38], eax
je 0x1028a325
jmp 0x1028a288
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x1028c163]
mov dh, byte [eax + 0x1028c134]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
je 0x1028a216
jmp 0x1028a25c
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 - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.1028a642
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
mov dword [0x102a6fa0], 0x2cd
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x10], ecx
mov dword [0x102a6fa4], 0x2226
mov ecx, dword [ebp - 0x3c]
mov dword [edx], ecx
add ecx, 0x2754
mov esi, dword [ebp - 0x3c]
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x1028a31c
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x1028a338
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x102a6fa0], 0x512
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1028a3a7
mov eax, dword [ebp - 0x14]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
jl 0x1028a3a7
jmp 0x1028a3bd
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x1028a425
jmp 0x1028a440
mov eax, dword [ebp - 0x20]
add esp, 0x20
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
jne 0x1028a36e
mov eax, dword [ebp - 0x18]
mov dword [0x102a6fa4], 0x11c4
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
jne 0x1028a440
mov dword [0x102a6fa4], 0x2624
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x1028a440
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x1028a440
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1028a440
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x1028a387
jmp 0x1028a440
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
je 0x1028a39f
xor eax, eax
mov dword [0x102a6fa4], 0x1864
mov dword [ebp - 0x20], eax
jmp 0x1028a39f
Function at 0x1028a454
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 ecx, dword [0x102a6fa4]
add ecx, 0x77c
mov dword [0x102a6fa4], ecx
mov dword [ebp - 0x10], eax
call fcn.1028adbc
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov dword [0x102a6fa4], 0x10e8
mov edi, dword [0x102a6fa0]
add edi, 0xfffffe9f
mov dword [0x102a6fa4], edi
mov esi, dword [eax + esi + 0x78]
mov dword [0x102a6fa0], 0x171d
mov ebx, edx
add ebx, dword [eax + esi + 0x20]
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ecx
je 0x1028a4ff
jmp 0x1028a536
mov eax, dword [ebp - 0x2c]
mov ecx, eax
mov edx, dword [ebp - 0x30]
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 - 0x34], eax
mov byte [ebp - 0x35], bh
mov byte [ebp - 0x36], cl
je 0x1028a5aa
jmp 0x1028a57d
mov eax, dword [ebp - 0x28]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov edx, dword [ebp - 0x40]
add edx, 2
mov esi, dword [ebp - 0x18]
cmp ecx, esi
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], edi
jb 0x1028a54e
jmp 0x1028a4ff
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], esi
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
xor esi, esi
add eax, 0x77c
mov edi, dword [ebp - 0x14]
mov ebx, dword [edi + ecx*4]
mov dword [0x102a6fa4], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x2c], esi
jmp 0x1028a4d0
mov al, byte [ebp - 0x35]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x34]
add edx, 1
mov ah, byte [ebp - 0x36]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x2c], edx
jne 0x1028a4d0
mov al, byte [ebp - 0x36]
test al, 1
jne 0x1028a5b6
jmp 0x1028a50a
mov eax, dword [ebp - 0x40]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov dword [0x102a6fa0], 0xfffff748
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x28], edi
jmp 0x1028a4ff
Function at 0x1028abaa
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x102a6fac], 0
mov byte [0x102a6fb0], 0
mov dword [0x102a6fa8], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1028ac08
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 0x1fdd
xor ecx, ecx
mov dword [0x102a6fa8], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jmp 0x1028ac3a
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x102a6fa0], 0x1fdd
mov eax, dword [0x102a6fa8]
add eax, 1
mov dword [0x102a6fa8], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1028ac08
jmp 0x1028abef
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, 0x100
add ecx, 0xfffff6b9
mov dword [0x102a6fb4], 0
mov dword [ebp - 0x28], eax
xor esi, esi
mov dword [ebp - 0x2c], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [0x102a6fac]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x102a6fb4], esi
mov dword [0x102a6fa4], 0x1dfc
mov eax, esi
cdq
mov esi, dword [ebp - 0x2c]
idiv esi
mov dword [0x102a6fac], edx
mov dword [0x102a6fa0], ecx
mov ecx, dword [ebp - 0x28]
mov cl, byte [ebx + ecx]
mov byte [0x102a6fb0], cl
mov dword [0x102a6fa4], 0xe30
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x28]
mov byte [ebx + edx], cl
mov ecx, dword [0x102a6fa4]
add ecx, 0xfffffd81
mov dword [0x102a6fa0], ecx
mov cl, byte [0x102a6fb0]
mov edx, dword [0x102a6fac]
mov byte [ebx + edx], cl
mov edx, dword [0x102a6fa8]
add edx, 1
mov dword [0x102a6fa8], edx
cmp edx, 0x100
mov dword [ebp - 0x30], edx
jge 0x1028abe7
mov eax, dword [0x102a6fa0]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jmp 0x1028ac3a
Function at 0x1028af3a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
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 [0x102a6fa8], 0
mov dword [0x102a6fac], 0
mov dword [0x102a6fb8], 0
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
je 0x1028b099
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 [0x102a6fa0], 0x1e8a
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x102a6fa8], edx
mov ecx, dword [ebp - 0x20]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x30]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x102a6fac], edx
mov dword [0x102a6fa0], 0x40c5
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x102a6fb0], cl
mov dword [0x102a6fa4], 0x471
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x102a6fb0]
mov edx, dword [0x102a6fac]
mov byte [ebx + edx], cl
mov edx, dword [0x102a6fa8]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x102a6fac]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x102a6fb8], ecx
mov dword [0x102a6fa0], 0x1cd9
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov ch, byte [edx + esi]
mov dword [0x102a6fa4], 0xbad
mov dword [0x102a6fa0], 0x1439
xor ch, cl
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x38], edi
je 0x1028b099
mov eax, dword [0x102a6fac]
mov ecx, dword [0x102a6fa8]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], edx
jmp 0x1028af93
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1028b0a1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov dword [0x102a6fa0], 0x20bf
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.1028a747
lea ecx, [0x1028aa60]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], 0x15a000
mov edx, dword [0x102a6f8c]
mov dword [esp + 0x3c], edx
mov edx, dword [0x102a6f90]
mov dword [esp + 0x64], edx
mov edx, dword [0x102a6f94]
mov dword [esp + 0x7c], edx
mov edx, dword [0x102a6f98]
mov dword [esp + 0x6c], edx
mov edx, dword [0x102a6f9c]
mov dword [esp + 0x4c], edx
mov dword [0x102a6fa0], 0x212d
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x1028b17c
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1028a1f2
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x102a6fa0], 0x1ed4
mov dword [esp + 0x10], eax
jmp 0x1028b1d3
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 8], ecx
je 0x1028b19f
jmp 0x1028b18b
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0xc], eax
je 0x1028b166
mov eax, dword [esp + 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x1028b17c
mov eax, dword [esp + 0xc]
mov dword [esp + 0x70], eax
mov dword [0x102a6fa4], 0x1fcc
mov ecx, dword [esp + 8]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x28], edx
call fcn.1028a338
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
je 0x1028b12d
mov eax, dword [esp + 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x1000e2ee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x10022f17
call fcn.100214ba
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x1000e39c
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x41c]
push eax
call fcn.100218a9
add esp, 0xc
test eax, eax
js 0x1000e39c
mov edi, dword [ebp - 0x41c]
cmp edi, 0x400
jg 0x1000e382
push edi
call fcn.100033e4
pop ecx
test al, al
je 0x1000e382
mov eax, edi
call fcn.100216b0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x1000e38e
push edi
lea ecx, [ebp - 0x428]
call fcn.100218a9
push 3
push edi
push esi
push eax
call fcn.100218a9
cmp eax, ebx
jne 0x1000e3d9
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000e3b5
lea ecx, [ebp - 0x418]
call fcn.1000cdea
mov esi, 0x8007000e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.10002dcb
mov eax, esi
lea esp, [ebp - 0x440]
call fcn.10021516
ret 0x10
push 2
push ebx
push eax
call fcn.1000cff7
mov edi, eax
mov dword [ebp - 0x41c], edi
cmp edi, ebx
jne 0x1000e3fa
call fcn.10003ef0
mov esi, eax
jmp 0x1000e4c4
push dword [ebp - 0x420]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x1000e41d
call fcn.10003ef0
jmp 0x1000e4b6
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, ebx
je 0x1000e413
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x424], esi
cmp eax, esi
jae 0x1000e44d
mov esi, 0x8007000e
jmp 0x1000e4b8
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.100218a9
mov dword [ebp - 4], 1
jmp 0x1000e47b
cmp dword [ebp - 0x418], ebx
je 0x1000e446
push esi
push dword [ebp - 0x420]
push esi
push dword [ebp - 0x418]
call fcn.100218a9
mov eax, dword [ebp - 0x418]
add esp, 0x10
push dword [ebp + 0x14]
mov byte [eax + esi], bl
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.100218a9
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000e3ba
lea ecx, [ebp - 0x418]
call fcn.1000cdea
jmp 0x1000e3ba
Function at 0x10014920
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
xor ecx, ecx
xor edx, edx
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov cl, byte [esi + 0x100]
mov dl, byte [esi + 0x101]
test ebp, ebp
je 0x1001496f
inc ecx
mov ebx, 0xff
and ecx, ebx
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, ebx
xor ebx, ebx
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov bl, byte [edi]
mov al, byte [esi + eax]
xor bl, al
mov byte [edi], bl
inc edi
dec ebp
jne 0x10014944
pop ebp
pop edi
lea eax, [esi + 0x100]
pop esi
mov byte [eax], cl
pop ebx
mov byte [eax + 1], dl
ret 0xc

Function at 0x10014981
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov eax, 0x3020100
push esi
mov ecx, 0x40
mov esi, dword [esp + 0xc]
push edi
mov edx, esi
push ebp
mov dword [edx], eax
add edx, 4
add eax, 0x4040404
dec ecx
jne 0x10014995
xor ecx, ecx
xor edi, edi
mov ebp, dword [esp + 0x1c]
mov byte [esi + 0x100], cl
mov byte [esi + 0x101], cl
xor ebx, ebx
xor edx, edx
xor eax, eax
mov dl, byte [edi + esi]
mov al, byte [ebp + ecx]
add bl, al
inc ecx
add bl, dl
inc edi
mov al, byte [ebx + esi]
mov byte [edi + esi - 1], al
cmp dword [esp + 0x18], ecx
mov byte [ebx + esi], dl
jne 0x100149db
xor ecx, ecx
cmp edi, 0x100
jb 0x100149b8
pop ebp
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x10015290
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
cmp eax, 1
je 0x100152dc
jle 0x100152d7
cmp eax, 3
jg 0x100152d7
push esi
mov esi, dword [ecx]
test esi, esi
je 0x100152ce
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
push ebx
sub ecx, eax
push edi
sub edx, eax
mov edi, dword [ecx + eax]
mov ebx, dword [eax]
xor edi, ebx
mov dword [edx + eax], edi
add eax, 4
dec esi
jne 0x100152bc
pop edi
pop ebx
mov eax, 1
pop esi
ret 0x10
xor eax, eax
ret 0x10
mov eax, dword [ecx + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push eax
call fcn.100218a9
mov eax, 1
ret 0x10

Function at 0x10015850
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
cmp eax, 1
je 0x1001589c
jle 0x10015897
cmp eax, 3
jg 0x10015897
push esi
mov esi, dword [ecx]
test esi, esi
je 0x1001588e
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
push ebx
sub ecx, eax
push edi
sub edx, eax
mov edi, dword [ecx + eax]
mov ebx, dword [eax]
xor edi, ebx
mov dword [edx + eax], edi
add eax, 4
dec esi
jne 0x1001587c
pop edi
pop ebx
mov eax, 1
pop esi
ret 0x10
xor eax, eax
ret 0x10
mov eax, dword [ecx + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push eax
call fcn.10016740
mov eax, 1
ret 0x10