joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10029000
Capabilities:
Set current directory

Disassembly:
sub esp, 0x218
mov eax, dword [0x10057bf0]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x1005b048], 0
mov eax, dword [esp + 0x21c]
je 0x10029042
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1004491e
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.10027f10
cmp dword [esp + 0x214], 0x104
jl 0x1002907b
push 0xa1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x10029087
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, eax
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
cmp edx, eax
je 0x100290ac
mov ecx, edx
shr ecx, 0x10
test ecx, ecx
je 0x100290ac
cmp dword [esp + 4], 0xffffffff
je 0x100290ac
push edx
call fcn.10046a84
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1004491e
add esp, 0x218
ret 4
Function at 0x1002ab40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x7c
mov eax, dword [0x10057bf0]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
mov ebp, dword [esp + 0x8c]
push esi
mov esi, dword [esp + 0x8c]
push edi
xor edi, edi
test byte [esi + 0xe], 0x20
je 0x1002ad01
test byte [esi + 0x141], 4
je 0x1002ad01
push esi
call fcn.10039670
test eax, eax
jne 0x1002ad09
push 0x78
lea eax, [esp + 0x14]
push eax
push edi
push dword [esi]
call fcn.10036c20
mov ebx, eax
test ebx, ebx
je 0x1002abc2
push esi
call fcn.10039050
mov ecx, dword [esi + 0x7d]
mov eax, ebx
pop edi
pop esi
pop ebp
mov dword [ecx], 0x64b
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.1004491e
add esp, 0x7c
ret 8
cmp byte [esi + 0xc], 5
jae 0x1002abd7
lea eax, [esp + 0x59]
push eax
call fcn.10034610
mov dword [esi + 0x69], eax
jmp 0x1002ac07
lea eax, [esp + 0x84]
push eax
call fcn.10034610
mov dword [esi + 0x69], eax
lea eax, [esp + 0x80]
push eax
call fcn.10034610
mov dword [esi + 0x71], eax
lea eax, [esp + 0x59]
push eax
call fcn.10034610
mov dword [esi + 0x16b], eax
mov eax, dword [esi + 0x69]
mov ebx, 1
cmp eax, dword [esi + 0x6d]
cmovne edi, ebx
cmp byte [esi + 0xc], 5
jb 0x1002ac23
mov eax, dword [esi + 0x71]
cmp eax, dword [esi + 0x75]
jne 0x1002ac2b
test edi, edi
je 0x1002ad01
movzx eax, byte [esp + 0x3c]
mov byte [esi + 0x91], al
movzx eax, byte [esp + 0x3d]
mov byte [esi + 0x92], al
movzx eax, byte [esp + 0x3e]
mov byte [esi + 0x93], al
movzx eax, byte [esp + 0x3f]
mov byte [esi + 0x94], al
lea eax, [esp + 0x16]
push eax
call fcn.10034610
mov dword [esi + 0xf], eax
mov dword [esi + 0x13], eax
lea eax, [esp + 0x1a]
push eax
call fcn.100345f0
mov word [esi + 0x2b], ax
lea eax, [esp + 0x1c]
push eax
call fcn.100345f0
mov word [esi + 0x2d], ax
lea eax, [esp + 0x1e]
push eax
call fcn.100345f0
mov word [esi + 0x2f], ax
lea eax, [esp + 0x20]
push eax
call fcn.100345f0
cmp word [esi + 0x2b], 0
mov word [esi + 0x31], ax
jne 0x1002acaa
mov word [esi + 0x2b], bx
cmp word [esi + 0x2d], 0
jne 0x1002acb5
mov word [esi + 0x2d], bx
cmp word [esi + 0x2f], 0
jne 0x1002acc0
mov word [esi + 0x2f], bx
test ax, ax
jne 0x1002acc9
mov word [esi + 0x31], bx
cmp byte [esi + 0xc], 5
mov eax, dword [esi + 0x69]
mov dword [esi + 0x6d], eax
jb 0x1002acdb
mov eax, dword [esi + 0x71]
mov dword [esi + 0x75], eax
push esi
call fcn.1002aaa0
cmp dword [esi + 0x8d], 0
je 0x1002ad01
push esi
call fcn.10039050
push 0
push dword [esi + 0x8d]
call fcn.1003d810
test eax, eax
jne 0x1002ad09
mov eax, dword [esi + 0xf]
mov dword [ebp], eax
xor eax, eax
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1004491e
add esp, 0x7c
ret 8
Function at 0x1002f090
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
mov eax, dword [0x10057bf0]
xor eax, esp
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx]
cmp eax, dword [0x1005b150]
jne 0x1002f0d5
mov eax, dword [ecx + 4]
cmp eax, dword [0x1005b154]
jne 0x1002f0d5
mov dword [edx + 0x10], 1
fldz
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.1004491e
add esp, 0x10
ret 8
mov dword [edx + 0x10], 0
mov al, byte [ecx]
mov dl, byte [ecx + 1]
mov ah, byte [ecx + 3]
mov dh, byte [ecx + 4]
mov byte [esp + 3], al
mov al, byte [ecx + 6]
push ebx
mov bl, byte [ecx + 2]
mov bh, byte [ecx + 5]
mov cl, byte [ecx + 7]
mov byte [esp + 6], al
mov byte [esp + 9], al
mov al, byte [esp + 7]
mov byte [esp + 0xe], dl
mov byte [esp + 0xd], bl
mov byte [esp + 0xc], ah
mov byte [esp + 0xb], dh
mov byte [esp + 0xa], bh
mov byte [esp + 8], cl
test al, al
jns 0x1002f124
and al, 0x7f
jmp 0x1002f154
not cl
not bh
mov byte [esp + 8], cl
not dh
mov cl, byte [esp + 6]
not ah
not cl
mov byte [esp + 0xa], bh
not bl
mov byte [esp + 9], cl
not dl
mov byte [esp + 0xb], dh
mov byte [esp + 0xc], ah
not al
mov byte [esp + 0xd], bl
mov byte [esp + 0xe], dl
mov ecx, dword [esp + 0x10]
pop ebx
mov byte [esp + 0xb], al
xor ecx, esp
fld qword [esp + 4]
call fcn.1004491e
add esp, 0x10
ret 8
Function at 0x100322c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x18]
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov esi, dword [ebp + 0x149]
test eax, eax
jne 0x100322ec
push 2
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll__llseek]
mov ebx, eax
mov dword [esp + 0x18], ebx
jmp 0x100322fd
push 0
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll__llseek]
mov ebx, eax
mov dword [esp + 0x18], eax
push dword [esi + 0x12]
push 0
push dword [esi + 0x1a]
call fcn.10045310
mov eax, dword [esi + 0x1a]
add esp, 0xc
cmp dword [esp + 0x30], 2
jne 0x10032321
mov edi, 1
mov byte [eax], 3
jmp 0x10032328
mov edi, dword [esp + 0x34]
mov byte [eax], 2
mov eax, dword [esi + 0x1a]
inc eax
push eax
push edi
call fcn.10034640
cmp dword [esp + 0x30], 3
jne 0x1003236e
mov eax, dword [esi + 0x1a]
add eax, 3
push eax
mov eax, dword [esp + 0x2c]
push dword [eax + 4]
call fcn.10034660
mov eax, dword [esi + 0x1a]
add eax, 7
push eax
push dword [esp + 0x30]
call fcn.10034640
mov eax, dword [esp + 0x28]
or ebx, 0xff
mov dword [eax], ebx
jmp 0x1003243b
mov ecx, dword [esi + 0x1a]
xorps xmm0, xmm0
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x14], 0
mov bp, word [esp + 0x14]
mov word [ecx + 0x149], ax
mov al, 1
mov byte [ecx + 0x148], dl
sub al, dl
mov edx, dword [esp + 0x28]
mov byte [ecx + 0x147], 0x15
shl al, 4
mov dword [esp + 0x10], 0
add al, byte [edx + 4]
mov bx, word [esp + 0x10]
mov byte [ecx + 0x14b], al
mov eax, dword [esi + 0x1a]
mov ecx, dword [esi + 0x12]
mov dword [esp + 0x38], 0
movq qword [eax + 3], xmm0
mov dword [esp + 0x34], 0
lea edx, [eax + 3]
mov dword [esp + 0x1c], edx
mov dx, word [esp + 0x38]
cmp ecx, 8
jl 0x10032410
shr ecx, 3
mov dword [esp + 0x30], ecx
mov cx, word [esp + 0x34]
xor cx, word [eax]
lea eax, [eax + 8]
xor dx, word [eax - 6]
xor bx, word [eax - 4]
xor bp, word [eax - 2]
dec dword [esp + 0x30]
jne 0x100323f6
jmp 0x10032415
mov cx, word [esp + 0x34]
mov eax, dword [esp + 0x1c]
mov word [eax], cx
mov ecx, dword [esp + 0x28]
mov word [eax + 2], dx
mov word [eax + 4], bx
mov word [eax + 6], bp
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
or eax, 0x3f
mov dword [ecx], eax
mov eax, ecx
mov ecx, dword [esp + 0x2c]
mov word [eax + 8], cx
test edi, edi
je 0x1003246a
push dword [esi + 0x12]
push dword [esi + 0x1a]
push ebp
call fcn.10036e60
test eax, eax
je 0x10032476
push dword [esi + 0x12]
push 0
push dword [esi + 0x1a]
call fcn.10045310
add esp, 0xc
dec edi
jne 0x10032447
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0x1c
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword [eax], 0x6df1
mov eax, 0xffffffe0
pop ebx
add esp, 0x10
ret 0x1c
Function at 0x10032b60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
xorps xmm0, xmm0
mov ecx, dword [esp + 0x14]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 0x10], 0
mov dx, word [esp + 0x10]
movq qword [eax + 3], xmm0
push ebx
mov bx, word [esp + 0xc]
push ebp
lea ebp, [eax + 3]
push esi
mov si, word [esp + 0xc]
push edi
mov di, word [esp + 0x14]
cmp ecx, 8
jl 0x10032bca
shr ecx, 3
xor dx, word [eax]
lea eax, [eax + 8]
xor si, word [eax - 6]
xor di, word [eax - 4]
xor bx, word [eax - 2]
dec ecx
jne 0x10032bb5
mov word [ebp], dx
xor eax, eax
mov word [ebp + 2], si
mov word [ebp + 4], di
pop edi
pop esi
mov word [ebp + 6], bx
pop ebp
pop ebx
add esp, 0xc
ret 8

Function at 0x10032bf0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
or edi, 0xffffffff
mov esi, dword [ebp + 0x1a]
add esi, 0xc
xor ebx, ebx
lea edx, [edi + 3]
lea ecx, [esi + 6]
lea esp, [esp]
movzx eax, byte [ecx - 5]
add ebx, eax
cmp byte [ecx - 6], 0
jne 0x10032c1f
lea edi, [edx - 2]
movzx eax, byte [ecx]
add ebx, eax
cmp byte [ecx - 1], 0
jne 0x10032c2d
lea edi, [edx - 1]
movzx eax, byte [ecx + 5]
add ebx, eax
cmp byte [ecx + 4], 0
movzx eax, byte [ecx + 0xa]
cmove edi, edx
add ebx, eax
cmp byte [ecx + 9], 0
jne 0x10032c49
lea edi, [edx + 1]
add edx, 4
add ecx, 0x14
lea eax, [edx - 2]
cmp eax, 0x40
jl 0x10032c10
cmp edi, 0xffffffff
jne 0x10032c70
mov eax, dword [esp + 0x28]
mov dword [eax], 0x6e1e
lea eax, [edi - 0x22]
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
mov ecx, dword [esp + 0x1c]
lea eax, [ebx + ecx]
cmp eax, 0xeb
jle 0x10032c94
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword [eax], 0x6e23
mov eax, 0xffffffdd
pop ebx
ret 0x18
lea edx, [esi + edi*4]
mov al, 1
mov esi, dword [esp + 0x24]
add edx, edi
or edi, dword [esp + 0x20]
sub al, cl
add ebx, 0x15
shl al, 4
mov byte [edx + 1], cl
mov ecx, dword [esp + 0x18]
mov byte [edx], bl
mov word [edx + 2], si
shl ebx, 4
add al, byte [ecx + 4]
mov byte [edx + 4], al
mov eax, dword [esp + 0x1c]
shl eax, 4
push eax
mov dword [ecx], edi
mov word [ecx + 8], si
add ebx, dword [ebp + 0x1a]
push 0
push ebx
call fcn.10045310
mov eax, dword [ebp + 0x1a]
add esp, 0xc
mov ebx, dword [ebp + 0x12]
xorps xmm0, xmm0
mov dword [esp + 0x24], 0
mov di, word [esp + 0x24]
mov dword [esp + 0x14], 0
lea ebp, [eax + 3]
mov si, word [esp + 0x14]
mov dword [esp + 0x1c], 0
mov dx, word [esp + 0x1c]
mov dword [esp + 0x28], 0
mov cx, word [esp + 0x28]
movq qword [ebp], xmm0
cmp ebx, 8
jl 0x10032d45
shr ebx, 3
lea ebx, [ebx]
xor cx, word [eax]
lea eax, [eax + 8]
xor dx, word [eax - 6]
xor si, word [eax - 4]
xor di, word [eax - 2]
dec ebx
jne 0x10032d30
mov word [ebp], cx
xor eax, eax
mov word [ebp + 2], dx
mov word [ebp + 4], si
mov word [ebp + 6], di
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
Function at 0x10041560
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 4

Function at 0x10041a20
Capabilities:
Move file

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov edx, 0x104
push esi
mov esi, dword [esp + 0x14]
push edi
lea ebx, [ebp + 0x17c]
mov ecx, ebx
sub esi, ebx
jmp 0x10041a40
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10041a59
mov al, byte [esi + ecx]
test al, al
je 0x10041a59
mov byte [ecx], al
inc ecx
dec edx
jne 0x10041a40
jmp 0x10041a5d
test edx, edx
jne 0x10041a5e
dec ecx
mov esi, dword [esp + 0x1c]
lea edi, [ebp + 0x280]
mov byte [ecx], 0
mov edx, 0x104
mov ecx, edi
sub esi, edi
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10041a8d
mov al, byte [esi + ecx]
test al, al
je 0x10041a8d
mov byte [ecx], al
inc ecx
dec edx
jne 0x10041a74
jmp 0x10041a91
test edx, edx
jne 0x10041a92
dec ecx
push edi
push ebx
mov byte [ecx], 0
call fcn.10047c84
add esp, 8
test eax, eax
jne 0x10041aaa
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
call fcn.10047356
cmp dword [eax], 0x12
je 0x10041ac0
pop edi
pop esi
pop ebp
mov eax, 0xfffffff0
pop ebx
ret 0xc
mov esi, 0x1000
push esi
call fcn.100342e0
mov edi, eax
test edi, edi
jne 0x10041ae7
cmp esi, 0x100
jbe 0x10041b07
shr esi, 1
push esi
call fcn.100342e0
mov edi, eax
test edi, edi
je 0x10041ad1
push 0
push dword [esp + 0x1c]
call fcn.10034520
mov ebp, eax
test ebp, ebp
jns 0x10041b13
push edi
call fcn.10034320
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xfffffff3
pop ebx
ret 0xc
push 0xffffff7f
push dword [esp + 0x20]
push dword [esp + 0x1c]
call fcn.10041580
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
jns 0x10041b44
push ebp
call sub.KERNEL32.dll__lclose
push edi
call fcn.10034320
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0xc
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
mov ebx, eax
test ebx, ebx
jle 0x10041b72
push ebx
push edi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, ebx
jne 0x10041b9f
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
mov ebx, eax
test ebx, ebx
jg 0x10041b53
xor esi, esi
push ebp
call sub.KERNEL32.dll__lclose
push dword [esp + 0x1c]
call sub.KERNEL32.dll__lclose
push edi
call fcn.10034320
test esi, esi
jne 0x10041b96
push dword [esp + 0x18]
call fcn.100419d0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0xc
mov esi, 0xfffffff0
jmp 0x10041b74
Function at 0x10041bb0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov cl, byte [esp + 0x28]
push ebx
mov bl, byte [esp + 0x28]
push ebp
mov ebp, dword [esp + 0x20]
lea eax, [ecx + 1]
movzx eax, al
mov dword [esp + 0xc], eax
lea edx, [ebx + 1]
movzx ecx, cl
movzx eax, dl
sub eax, ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
cdq
and edx, 0xff
movzx ebx, bl
add eax, edx
mov dword [esp + 8], 0
push esi
sar eax, 8
add ebx, 0xff
push edi
mov edi, 0x10057af0
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ebx
lea eax, [ecx + 0xff]
sub edi, ecx
mov ecx, ebx
mov dword [esp + 0x38], eax
mov esi, 0xff
mov dword [esp + 0x34], ecx
lea esp, [esp]
movsx edx, byte [edi + eax]
lea eax, [eax - 1]
sub edx, dword [esp + 0x14]
movzx ecx, cl
and edx, 0xff
mov bl, byte [ecx + 0x100578f0]
xor bl, byte [edx + ebp]
add edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
and edx, 0xff
add ecx, edx
and ecx, 0xff
mov cl, byte [ecx + 0x10057af0]
xor cl, byte [edx + 0x100579f0]
xor cl, bl
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x34]
dec ecx
dec esi
mov dword [esp + 0x34], ecx
jns 0x10041c30
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x30]
jge 0x10041cad
mov eax, dword [esp + 0x38]
sub edi, 0x100
mov ebx, dword [esp + 0x20]
add eax, 0x100
add ebp, 0x100
jmp 0x10041c1a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14

Function at 0x10041cc0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov cl, byte [esp + 0x20]
push ebx
mov bl, byte [esp + 0x20]
push ebp
lea eax, [ecx + 1]
mov dword [esp + 0x28], 0
movzx eax, al
push esi
lea edx, [ebx + 1]
movzx ebx, bl
push edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x20], eax
movzx eax, dl
mov dword [esp + 0x14], eax
movzx eax, cl
mov ecx, 0x10057af0
mov dword [esp + 0x10], eax
sub ecx, edi
mov eax, dword [esp + 0x28]
cdq
and edx, 0xff
mov dword [esp + 0x18], ebx
add eax, edx
sar eax, 8
sub dword [esp + 0x24], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov eax, edi
mov ebp, 0x100
jmp 0x10041d30
movsx esi, byte [ecx + eax]
lea eax, [eax + 1]
sub esi, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
and esi, 0xff
mov ecx, dword [esp + 0x14]
add edx, esi
add ecx, esi
and edx, 0xff
and ecx, 0xff
mov dl, byte [edx + 0x100579f0]
xor dl, byte [ecx + 0x10057af0]
movzx ecx, bl
inc ebx
xor dl, byte [ecx + 0x100578f0]
mov ecx, dword [esp + 0x24]
xor dl, byte [eax - 1]
add ecx, esi
mov byte [ecx + edi], dl
mov ecx, dword [esp + 0x2c]
dec ebp
jne 0x10041d30
mov esi, dword [esp + 0x30]
inc esi
mov dword [esp + 0x30], esi
cmp esi, dword [esp + 0x28]
jae 0x10041da6
mov ebx, dword [esp + 0x18]
add edi, 0x100
sub ecx, 0x100
jmp 0x10041d1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x14
Function at 0x10041db0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
push ebx
movzx ebx, ax
mov eax, dword [esp + 0x1c]
movsx eax, al
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
movsx eax, al
add eax, 0xff
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
cdq
and edx, 0xff
push ebp
add eax, edx
mov ebp, 0x10057af0
sar eax, 8
push esi
xor esi, esi
mov dword [esp + 0x20], eax
push edi
lea eax, [ecx + 0xff]
sub ebp, ecx
mov ecx, dword [esp + 0x14]
mov edi, 0xff
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
movzx edx, byte [eax + ebp]
lea eax, [eax - 1]
movzx ecx, cl
sub edx, ebx
and edx, 0xff
mov bl, byte [ecx + 0x100578f0]
mov ecx, dword [esp + 0x1c]
xor bl, byte [ecx + edx]
add edx, dword [esp + 0x30]
and edx, 0xff
mov ecx, edx
sub ecx, dword [esp + 0x30]
add ecx, esi
and ecx, 0xff
mov cl, byte [ecx + 0x10057af0]
xor cl, byte [edx + 0x100579f0]
xor cl, bl
mov ebx, dword [esp + 0x10]
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x28]
dec ecx
dec edi
mov dword [esp + 0x28], ecx
jns 0x10041e15
inc esi
cmp esi, dword [esp + 0x24]
jge 0x10041e90
mov eax, dword [esp + 0x2c]
sub ebp, 0x100
add eax, 0x100
add dword [esp + 0x1c], 0x100
jmp 0x10041e04
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x18

Function at 0x10041ea0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x20]
xor ecx, ecx
movzx eax, ax
push ebx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x14]
push esi
movsx esi, al
mov eax, dword [esp + 0x28]
movsx ebx, al
mov eax, dword [esp + 0x20]
cdq
and edx, 0xff
mov dword [esp + 0x18], ecx
add eax, edx
mov dword [esp + 0x24], esi
sar eax, 8
mov edx, 0x10057af0
sub edx, ebp
mov dword [esp + 0x10], ebx
sub dword [esp + 0x1c], ebp
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], edx
mov eax, ebp
mov dword [esp + 0x2c], 0x100
nop
movzx edi, byte [edx + eax]
lea eax, [eax + 1]
sub edi, dword [esp + 0x10]
and edi, 0xff
add esi, edi
and esi, 0xff
mov edx, esi
sub edx, dword [esp + 0x28]
add edx, ecx
movzx ecx, bl
and edx, 0xff
inc ebx
mov dl, byte [edx + 0x10057af0]
xor dl, byte [ecx + 0x100578f0]
xor dl, byte [esi + 0x100579f0]
mov ecx, dword [esp + 0x20]
xor dl, byte [eax - 1]
add ecx, edi
dec dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov byte [ecx + ebp], dl
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
jne 0x10041f00
inc ecx
mov dword [esp + 0x1c], ecx
cmp ecx, dword [esp + 0x24]
jae 0x10041f7b
mov ebx, dword [esp + 0x14]
add ebp, 0x100
sub edx, 0x100
jmp 0x10041ef1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x18
Function at 0x1004ee9e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10057bf0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10049c9f
mov dword [ebp - 0x14], eax
cmp dword [0x1005c20c], esi
jne 0x1004ef91
push 0x800
push esi
push 0x100067ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1004ef1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1004f071
push esi
push esi
push 0x100067ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1004f071
push 0x100067c4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1004f071
push eax
call ebx
push 0x100067d0
push edi
mov dword [0x1005c20c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100067e0
push edi
mov dword [0x1005c210], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100067f4
push edi
mov dword [0x1005c214], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1005c21c], eax
test eax, eax
je 0x1004ef8e
push 0x10006810
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1005c218], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1004efb6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1004efa9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1004efcb
push 4
pop eax
jmp 0x1004f073
cmp dword [ebp - 0x14], esi
je 0x1004efcb
push dword [0x1005c20c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1004efb0
mov eax, dword [0x1005c218]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1004f029
cmp dword [0x1005c21c], edi
je 0x1004f029
push eax
call ebx
push dword [0x1005c21c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1004f029
test eax, eax
je 0x1004f029
call ecx
test eax, eax
je 0x1004f01e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1004f01e
test byte [ebp - 8], 1
jne 0x1004f029
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1004f059
mov eax, dword [0x1005c210]
cmp eax, edi
je 0x1004f056
push eax
call ebx
test eax, eax
je 0x1004f056
call eax
mov esi, eax
test esi, esi
je 0x1004f056
mov eax, dword [0x1005c214]
cmp eax, edi
je 0x1004f056
push eax
call ebx
test eax, eax
je 0x1004f056
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1005c20c]
call ebx
test eax, eax
je 0x1004f071
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1004f073
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004491e
mov esp, ebp
pop ebp
ret