joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401fd5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x428040]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [0x4824a0]
xor ebx, ebx
push edi
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov dword [esp + 0x18], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x402045
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.004029e4
lea ecx, [esp + 0x1c]
call fcn.00401e05
cmp eax, dword [esp + 0x10]
je 0x40205c
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00402a71
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x402015
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406cbd
mov esp, ebp
pop ebp
ret
mov edx, str.QwruxAA
call fcn.00402db2
push eax
call fcn.00403034
mov edx, dword [esp + 0x1c]
pop ecx
mov eax, dword [edx + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00402a71
jmp 0x402047

Function at 0x40208f
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x4824a0], eax
pop edi
pop esi
ret

Function at 0x404c17
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x404c38
jl 0x404c2f
test edi, edi
jne 0x404c38
xor eax, eax
xor edx, edx
jmp 0x404cf9
cmp dword [ebx + 0x38], 0
je 0x404c4d
push eax
push edi
push dword [ebp + 8]
call fcn.00404cff
jmp 0x404cf9
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x404c94
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x404c94
cmp eax, edi
jb 0x404c6e
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00407b30
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x404c9a
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x404cee
mov ecx, ebx
call fcn.00404467
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x404cd9
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040c51c
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x404cee
jmp 0x404cac
test edx, edx
je 0x404cee
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040c51c
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x4135e6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00413288

Function at 0x4135f1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00413417

Function at 0x4139eb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407a80
mov eax, dword [0x428040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041247d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x413a2d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x413b89
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041d110
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x482168]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00414bbb
mov ecx, dword [esi*4 + 0x482168]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x413b82
cmp eax, dword [edi + ecx + 0x24]
jne 0x413b82
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413b82
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00414bbb
add esp, 0x14
test edx, edx
jl 0x413b82
jg 0x413af8
test eax, eax
jb 0x413b82
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x413b82
jl 0x413b12
cmp dword [ebp - 0x1008], eax
ja 0x413b82
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x413b30
test ebx, ebx
je 0x413b69
cmp ecx, edi
jae 0x413b69
mov al, byte [ecx]
cmp al, 0xd
jne 0x413b4a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x413b56
cmp byte [ecx + 1], 0xa
jne 0x413b56
inc ecx
jmp 0x413b56
movzx eax, al
movsx eax, byte [eax + 0x4282f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x413b30
cmp edx, ebx
jne 0x413b30
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x413b87
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406cbd
leave
ret
Function at 0x414059
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x482168]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x414099
cmp byte [ebx], 0xa
jne 0x414099
or byte [eax + edi + 0x28], 4
jmp 0x41409e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41419c
mov al, byte [edx]
cmp al, 0x1a
je 0x41417e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4140cd
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4140f2
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4140fc
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4140af
jmp 0x41419c
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414179
cmp dword [ebp - 0xc], 0
je 0x414179
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x482168]
test byte [eax + edi + 0x28], 0x48
je 0x414153
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41413e
mov byte [esi], dl
jmp 0x41414f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x482168]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41419c
cmp byte [ebp - 1], 0xa
jne 0x414162
cmp esi, ebx
jne 0x414162
mov byte [esi], 0xa
jmp 0x41419b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00414bd9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41419c
mov byte [esi], 0xd
jmp 0x41419b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x482168]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414198
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41419c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4141a5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x482168]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4141e8
cmp word [esi], dx
jne 0x4141e8
or byte [edi + eax + 0x28], 4
jmp 0x4141ed
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x414340
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x414320
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41422f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x414265
cmp eax, edx
jae 0x414271
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x414207
jmp 0x414340
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41431c
cmp dword [ebp - 0x14], 0
je 0x41431c
mov eax, dword [ebx*4 + 0x482168]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4142f4
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4142bd
mov word [esi], cx
jmp 0x4142f0
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x482168]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x482168]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x482168]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x414340
pop ebx
cmp word [ebp - 4], bx
jne 0x414305
cmp esi, dword [ebp + 0xc]
jne 0x414305
mov word [esi], bx
jmp 0x41433d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00414bd9
add esp, 0x10
cmp word [ebp - 4], bx
je 0x414340
push 0xd
jmp 0x414339
mov ecx, dword [ebx*4 + 0x482168]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414337
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x414340
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x831058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8311a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x83107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x83106a
add dl, dl
jne 0x831089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8310dc
xor eax, eax
add dl, dl
jne 0x831096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x83117d
add dl, dl
jne 0x8310a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8310b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8310bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8310c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8310d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x831075
mov eax, 1
add dl, dl
jne 0x8310ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8310f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8310e1
sub eax, ebx
mov ebx, 1
jne 0x831128
mov ecx, 1
add dl, dl
jne 0x83110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x831119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x831105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x831075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x83113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x83114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x831136
cmp eax, 0x7d00
jae 0x83116d
cmp eax, 0x500
jb 0x831168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x831075
cmp eax, 0x7f
ja 0x831170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x831075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x83119e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x831075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10001000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x10001071
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x10001071
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x1000105a
jmp 0x10001071
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x100026d0
Capabilities:
Create pipe
Create process on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x100b60c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.temp
call fcn.100737a2
mov esi, eax
add esp, 4
test esi, esi
je 0x1000285e
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xc
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 1
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1000285e
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
push 1
push dword [ebp - 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x40], 0x100
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov ecx, esi
xor ebx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002768
sub ecx, edx
push 1
lea eax, [ecx + 0x1c]
push eax
mov dword [ebp - 0x70], eax
call fcn.1007094f
mov edi, eax
add esp, 8
test edi, edi
je 0x1000285e
push str.COD2DiscordIntegration.exe
push esi
mov esi, dword [ebp - 0x70]
push 0x1009b718
push esi
push edi
call fcn.10002030
lea ecx, [esi - 1]
add esp, 0x14
cmp eax, ecx
jne 0x10002831
push 0x1009b720
push edi
call fcn.10070ade
mov esi, eax
add esp, 8
test esi, esi
je 0x1000282e
push esi
push 0xcc00
push 1
push 0x100b6b30
call fcn.10070ff6
add esp, 0x10
cmp eax, 0xcc00
jne 0x1000282e
push esi
call fcn.10070d01
add esp, 4
test eax, eax
jne 0x1000282e
push esi
call fcn.10070d01
add esp, 4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1000282e
push 0
push 0
push dword [ebp - 8]
push 0x10002070
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x10002831
or ebx, 0xffffffff
push edi
call fcn.1007369b
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push dword [ebp - 0x28]
call esi
push dword [ebp - 0x24]
call esi
pop edi
pop esi
movsx eax, bx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006cde1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006cde1
mov esp, ebp
pop ebp
ret
Function at 0x10002a60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x100b60c0]
xor eax, ebp
mov dword [ebp - 4], eax
sub dword [ebp + 0xc], 1
jne 0x10002b05
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.1006a610
cmp byte [0x10123f3f], 0
jne 0x10002ab1
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006cde1
mov esp, ebp
pop ebp
ret 0xc
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x10002b04
push esi
mov esi, dword [edi + 0x3c]
lea eax, [ebp - 0x110]
push eax
push 0x40
push dword [esi + edi + 0x50]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esi + edi + 0x28]
add ecx, edi
pop esi
mov eax, dword [ecx]
mov dword [0x10124964], eax
mov al, byte [ecx + 4]
mov byte [0x10124968], al
mov eax, 0x100029f0
sub eax, ecx
mov byte [ecx], 0xe9
sub eax, 5
mov dword [ecx + 1], eax
mov dword [0x10124960], ecx
pop edi
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.1006cde1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10009a90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100b60c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push esi
push edi
push eax
push 0x40
push 0xa
push 0x409004
call ebx
lea eax, [ebp - 8]
mov dword [0x409005], 0x1009b566
push eax
push 0x40
push 0xa
push 0x4ba55f
call ebx
lea eax, [ebp - 8]
mov dword [0x4ba560], 0x1009b566
push eax
push 0x40
push 0xa
push 0x4baf24
call ebx
lea eax, [ebp - 8]
mov dword [0x4baf25], 0x1009b566
push eax
push 0x40
push 0xa
push 0x4baf52
call ebx
lea eax, [ebp - 8]
mov dword [0x4baf53], 0x1009b566
push eax
push 0x40
push 0xa
push 0x4baf36
call ebx
lea eax, [ebp - 8]
mov dword [0x4baf37], 0x1009b566
push eax
push 0x40
push 0xa
push 0x4ba5f7
call ebx
lea eax, [ebp - 8]
mov dword [0x4ba5f8], 0x1009b566
push eax
push 0x40
push 0xa
push 0x4baf36
call ebx
lea eax, [ebp - 8]
mov dword [0x4baf37], 0x1009b566
push eax
push 0x40
push 0xa
push 0x4bb06a
call ebx
lea eax, [ebp - 8]
mov dword [0x4bb06b], 0x1009b566
push eax
push 0x40
push 0xa
push 0x4baf45
call ebx
lea eax, [ebp - 8]
mov dword [0x4baf46], 0x1009b566
push eax
push 0x40
push 0xa
push 0x4ba535
call ebx
lea eax, [ebp - 8]
mov dword [0x4ba536], 0x1009b566
push eax
push 0x40
push 0xa
push 0x4ba7ec
call ebx
mov dword [0x4ba7ed], 0x1009b566
lea eax, [ebp - 8]
push eax
push 0x40
push 0xa
push 0x4baea6
call ebx
lea eax, [ebp - 8]
mov dword [0x4baea7], 0x1009b566
push eax
push 0x40
push 5
push 0x466555
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov eax, 0x466555
push 5
push eax
mov dword [eax], 0x90909090
mov byte [eax + 4], 0x90
call edi
mov esi, dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push eax
call esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 5
push 0x466555
call ebx
lea eax, [ebp - 8]
push eax
push 0x40
push 2
push 0x46664a
call ebx
mov eax, 0x46664a
mov ecx, 0x90909090
push 2
push eax
mov word [eax], cx
call edi
push eax
call esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 2
push 0x46664a
call ebx
lea eax, [ebp - 8]
push eax
push 0x40
push 2
push 0x4b9569
call ebx
mov eax, 0x4b9569
mov ecx, 0x90909090
push 2
push eax
mov word [eax], cx
call edi
push eax
call esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 2
push 0x4b9569
call ebx
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push 0x5b375c
call ebx
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push 0x5b372d
call ebx
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
mov byte [0x5b375c], 0x78
xor ecx, ebp
mov byte [0x5b372d], 0x78
pop ebx
call fcn.1006cde1
mov esp, ebp
pop ebp
ret

Function at 0x10009cc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100b60c0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ecx + 0x3c]
push 0x40
push dword [eax + ecx + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006cde1
mov esp, ebp
pop ebp
ret
Function at 0x1000c1a0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x1000c201
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x1000c1e4
cmp edi, 2
jb 0x1000c1e4
cmp byte [esi], cl
jne 0x1000c1e4
cmp byte [esi + 1], cl
jne 0x1000c1e4
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10097468]
jmp 0x1000c1b5
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10097468]
test edi, edi
jne 0x1000c1b5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x1000c230
cmp cl, 0x23
jne 0x1000c217
cmp byte [esi], cl
jne 0x1000c217
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x10097468]
test cl, cl
jne 0x1000c208
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x1000c3d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1000c3e2
mov dword [edi], 0
mov edx, 0x1009f148
call fcn.1000c240
mov esi, eax
test esi, esi
jne 0x1000c3f6
pop edi
pop esi
pop ebp
ret
push ebx
push 2
push 0
push esi
call fcn.10074a87
add esp, 0xc
test eax, eax
jne 0x1000c4a1
push esi
call fcn.10074063
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x1000c4a1
push 0
push 0
push esi
call fcn.10074a87
add esp, 0xc
test eax, eax
jne 0x1000c4a1
mov eax, dword [0x10123f50]
test eax, eax
je 0x1000c440
inc dword [eax + 0x370]
push ebx
call fcn.100737ad
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x1000c4a1
push esi
push ebx
push 1
push eax
call fcn.100752bd
add esp, 0x10
push esi
cmp eax, ebx
je 0x1000c48b
call fcn.10070d01
mov eax, dword [0x10123f50]
add esp, 4
test eax, eax
je 0x1000c479
dec dword [eax + 0x370]
push dword [ebp + 8]
call fcn.1007369b
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
call fcn.10070d01
add esp, 4
test edi, edi
je 0x1000c499
mov dword [edi], ebx
mov eax, dword [ebp + 8]
pop ebx
pop edi
pop esi
pop ebp
ret
push esi
call fcn.10070d01
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret