joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100fa5c6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x101950d0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100fa60c
cmp word [ebx], dx
jne 0x100fa60c
or byte [eax + edi + 0x28], 4
jmp 0x100fa611
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x100fa774
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x100fa754
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100fa652
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100fa688
cmp eax, edx
jae 0x100fa696
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x100fa62d
jmp 0x100fa774
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KeRnEl32.DlL_ReadFile]
test eax, eax
je 0x100fa74f
cmp dword [ebp - 0x18], 0
je 0x100fa74f
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x101950d0]
test byte [eax + edi + 0x28], 0x48
je 0x100fa725
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x100fa6e9
mov word [esi], cx
jmp 0x100fa720
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x101950d0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x101950d0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x101950d0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100fa774
pop eax
cmp word [ebp - 4], ax
jne 0x100fa735
cmp esi, ebx
jne 0x100fa735
mov word [esi], ax
jmp 0x100fa771
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100fa41b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100fa774
push 0xd
pop eax
jmp 0x100fa730
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x101950d0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100fa76e
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100fa774
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100fb2e7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101388f4
push 0x101388ec
push str.FlsAlloc
push 0x1f
call fcn.100fb0d2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100fb31b
push dword [ebp + 8]
mov ecx, esi
call dword [0x101162d8]
call esi
jmp 0x100fb321
call dword [sym.imp.KeRnEl32.DlL_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100fb365
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10138904
push 0x101388fc
push str.FlsGetValue
push 0x21
call fcn.100fb0d2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100fb39c
push dword [ebp + 8]
mov ecx, esi
call dword [0x101162d8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KeRnEl32.DlL_TlsGetValue]

Function at 0x100fb3a4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1013890c
push 0x10138904
push str.FlsSetValue
push 0x22
call fcn.100fb0d2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100fb3de
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x101162d8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KeRnEl32.DlL_TlsSetValue]
Function at 0x100fe590
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KeRnEl32.DlL_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100fe62d
push ebx
push esi
call fcn.100fe559
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100f6fdd
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100fe5da
push esi
call dword [sym.imp.KeRnEl32.DlL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100fe62c
push edi
push eax
call fcn.100f6e3d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100fe5fa
call fcn.100f6d47
pop ecx
push esi
call dword [sym.imp.KeRnEl32.DlL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100fe62b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100f6fdd
add esp, 0x20
test eax, eax
jne 0x100fe619
push edi
call fcn.100f6d47
jmp 0x100fe621
push ebx
call fcn.100f6d47
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KeRnEl32.DlL_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100fe630
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KeRnEl32.DlL_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100fe641
pop esi
ret
push ebx
push edi
push esi
call fcn.100fe559
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100f6e3d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100fe669
push ebx
push esi
push edi
call fcn.100dee40
add esp, 0xc
push 0
call fcn.100f6d47
pop ecx
push esi
call dword [sym.imp.KeRnEl32.DlL_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100fea39
Capabilities:
Set environment variable

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

Function at 0x10100b5c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100f48bb
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KeRnEl32.DlL_GetLocaleInfoW]
test eax, eax
je 0x10100bcb
cmp esi, dword [ebp - 4]
je 0x10100bc6
cmp dword [ebp + 0xc], 0
je 0x10100bc6
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10100ba3
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.101006ae
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10100bcd
xor eax, eax
inc eax
jmp 0x10100bcd
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10100c32
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101911c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.100f48bb
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.100f48bb
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10100ca9
cmp word [ecx], dx
je 0x10100ca9
mov eax, dword [0x10138dac]
push edi
dec eax
push eax
push 0x10138c98
call fcn.10100bd1
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10100d1c
cmp word [eax], dx
je 0x10100d1c
mov eax, dword [edi]
test eax, eax
je 0x10100ccd
cmp word [eax], dx
je 0x10100ccd
lea eax, [ebp - 0x10]
push eax
call fcn.101005b4
jmp 0x10100cd6
lea eax, [ebp - 0x10]
push eax
call fcn.1010064f
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10100d46
mov eax, dword [0x10138c94]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10138988
call fcn.10100bd1
add esp, 0xc
test al, al
je 0x10100d46
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10100d11
cmp word [eax], di
je 0x10100d11
lea eax, [ebp - 0x10]
push eax
call fcn.101005b4
pop ecx
jmp 0x10100d48
lea eax, [ebp - 0x10]
push eax
call fcn.1010064f
jmp 0x10100d0e
mov eax, dword [edi]
test eax, eax
je 0x10100d33
cmp word [eax], dx
je 0x10100d33
lea eax, [ebp - 0x10]
push eax
call fcn.10100569
pop ecx
jmp 0x10100d46
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KeRnEl32.DlL_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10100e11
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10100a56
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10100e11
movzx ecx, si
push ecx
call dword [sym.imp.KeRnEl32.DlL_IsValidCodePage]
test eax, eax
je 0x10100e11
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KeRnEl32.DlL_IsValidLocale]
test eax, eax
je 0x10100e11
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10100d9e
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100fb580
test ebx, ebx
je 0x10100e0c
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100fb580
push pe_nt_image_headers32
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KeRnEl32.DlL_GetLocaleInfoW]
test eax, eax
je 0x10100e11
push pe_nt_image_headers32
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KeRnEl32.DlL_GetLocaleInfoW]
test eax, eax
je 0x10100e11
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100f8653
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10100e13
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100dd01c
leave
ret
Function at 0x10104a61
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.101049dd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10104bd0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10104bd0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10104b85
jg 0x10104abd
test eax, eax
je 0x10104b7b
push 1
push 0x1000
call fcn.100f7049
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10104ae0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10104b72
push 0x8000
push ebx
call fcn.1010490e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10104b09
jg 0x10104b04
cmp ecx, 0x1000
jb 0x10104b09
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100f9fb9
add esp, 0x10
cmp eax, 0xffffffff
je 0x10104b4e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10104b04
jl 0x10104b35
test ecx, ecx
jne 0x10104af6
push dword [ebp - 0xc]
push ebx
call fcn.1010490e
push esi
call fcn.100f6d47
add esp, 0xc
xor ebx, ebx
jmp 0x10104bde
cmp byte [edi + 0x24], 0
je 0x10104b65
cmp dword [edi + 0x20], 5
jne 0x10104b65
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10104b70
mov ebx, dword [edi + 0x18]
jmp 0x10104b72
xor ebx, ebx
push esi
call fcn.100f6d47
pop ecx
jmp 0x10104bde
test ecx, ecx
jg 0x10104b47
jl 0x10104b85
test eax, eax
jae 0x10104b47
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100fa41b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10104ba5
cmp byte [edi + 0x1c], 0
je 0x10104b47
jmp 0x10104bd6
push ebx
call fcn.10102c03
pop ecx
push eax
call dword [sym.imp.KeRnEl32.DlL_SetEndOfFile]
test eax, eax
jne 0x10104b47
call dword [sym.imp.KeRnEl32.DlL_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10104bde
cmp byte [edi + 0x1c], 0
je 0x10104bdb
mov ebx, dword [edi + 0x18]
jmp 0x10104bde
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100fa41b
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x101061c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x101061ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101061ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401d28
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
sub esp, 0x18
mov eax, ecx
mov ecx, esp
mov esi, edx
push eax
call fcn.00403eeb
lea ecx, [ebp - 0x10]
call fcn.004019c2
mov eax, dword [ebp - 0xc]
add esp, 0x18
sub eax, dword [ebp - 0x10]
je 0x401d8d
cmp dword [esi + 0x14], 8
jb 0x401d5c
mov eax, dword [esi]
jmp 0x401d5e
mov eax, esi
push 0x42b2a0
push eax
call fcn.0040f815
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x401da2
cmp dword [esi + 0x14], 8
jb 0x401d79
mov esi, dword [esi]
push esi
push str.Cant_create_file__s_n
push dword [0x4305a8]
call fcn.0040103c
add esp, 0xc
mov esi, 0x80004005
lea ecx, [ebp - 0x10]
call fcn.00403d26
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x10]
push edi
push eax
push 1
push dword [ebp - 0x10]
call fcn.0040f55b
push edi
call fcn.0040aee7
add esp, 0x14
xor esi, esi
jmp 0x401d92

Function at 0x41e65c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041e4db
Function at 0x41f993
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41f9d2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f9d2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f9d2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41f9d2
cmp dword [ecx + 0x74], 0xe
jbe 0x41f9d2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x432150
Capabilities:
Parse pe header

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

Function at 0x40892e
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x4085d8
or ecx, eax
and ecx, ecx
call fcn.00408952
inc eax
or ecx, eax
xor dword [edi], edx
inc edi
cmp edi, esi
jne fcn.0040892e
mov ecx, eax
add ecx, 0xab1b7c6
ret
Function at 0x10001d00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x1002c018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x238], eax
xor eax, eax
push esi
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
push edi
mov ecx, 0x3d69ba54
lea eax, [ebp - 0x218]
mov dword [ebp - 0x244], 0
call fcn.1001aa00
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call esi
test eax, eax
sete al
test al, al
je 0x10001db3
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x100248a8
sub edi, 0x7e80af00
lea esi, [ebp - 0x230]
call fcn.1001aa80
lea edx, [ebp - 0x108]
push edx
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x234], eax
jmp 0x10001de1
mov ecx, 0x3d69ba54
lea eax, [ebp - 0x218]
call fcn.1001aa00
push eax
call esi
mov dword [ebp - 0x234], eax
xor eax, eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov word [ebp - 0x210], ax
cmp dword [ebp - 0x234], 0
jne 0x10001e18
mov edx, dword [ebp - 0x244]
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 0x23c]
mov dword [ebx], edx
mov dword [ebx + 4], eax
pop edi
mov dword [ebx + 8], ecx
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001e745
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x238]
push edx
call esi
mov edi, 0x4bddd6f1
lea esi, [ebp - 0x230]
mov dword [ebp - 0x238], eax
call fcn.1001aac0
push eax
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x238]
push 0xc
lea ecx, [ebp - 0x244]
mov esi, eax
xor eax, eax
push ecx
push edx
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov byte [ebp - 0x21c], al
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x240]
mov edx, dword [ebp - 0x23c]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [ebx + 8], edx
mov eax, ebx
pop esi
call fcn.1001e745
mov esp, ebp
pop ebp
ret 4

Function at 0x10002cb0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
mov edi, dword [esi]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push esi
call ebx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 8]
push edx
push eax
push 4
push esi
mov dword [esi], ecx
call ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10002d00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10028c50
push 0x1001ed89
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1002c018]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, ecx
mov edi, edx
mov dword [ebp - 4], 0
push 0xa
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0xa
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 0x20]
push ecx
push 0x40
push 0xa
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [edi]
mov dword [esi], edx
mov al, byte [edi + 4]
mov byte [esi + 4], al
add esi, 5
mov byte [esi], 0xe9
mov ecx, edi
sub ecx, esi
mov dword [esi + 1], ecx
lea edx, [ebp - 0x1c]
push edx
push 0x40
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [edi], 0xe9
sub ebx, edi
sub ebx, 5
mov dword [edi + 1], ebx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 5
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esi - 5]
jmp 0x10002dc9
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002df0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
push 0xb
call dword [sym.imp.MSVCR100.dll_malloc]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 4
mov edi, eax
lea eax, [ebp - 8]
push eax
push 0x40
push 0xb
push edi
call ebx
lea ecx, [ebp - 8]
push ecx
push 0x40
push 0xb
push 0x1000a650
call ebx
mov edx, dword [esi]
mov dword [edi], edx
mov ax, word [esi + 4]
mov word [edi + 4], ax
lea edx, [ebp - 4]
push edx
add edi, 6
push 0x40
mov ecx, esi
sub ecx, edi
push 6
inc ecx
push esi
mov byte [edi], 0xe9
mov dword [edi + 1], ecx
call ebx
mov edx, dword [ebp - 4]
lea ecx, [ebp - 4]
push ecx
push edx
mov eax, 0x1000a650
sub eax, esi
push 6
sub eax, 5
push esi
mov byte [esi], 0xe9
mov dword [esi + 1], eax
call ebx
push 6
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [edi - 6]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002e80
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push esi
push edi
call ebx
mov ecx, dword [ebp + 8]
push esi
push ecx
push edi
call dword [sym.imp.MSVCR100.dll_memmove]
mov eax, dword [ebp - 4]
add esp, 0xc
lea edx, [ebp - 8]
push edx
push eax
push esi
push edi
call ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10002ed0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x1002c018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10002f16
push str.Error:_Unable_to_create_toolhelp_snapshot_
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001e745
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10002f04
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x10002f40
mov ecx, edi
lea eax, [ebp - 0x10c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10002f68
test dl, dl
je 0x10002f64
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10002f68
add eax, 2
add ecx, 2
test dl, dl
jne 0x10002f48
xor eax, eax
jmp 0x10002f6d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10002f8f
lea ecx, [ebp - 0x130]
push ecx
push esi
call ebx
test eax, eax
jne 0x10002f40
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001e745
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x128]
pop esi
xor ecx, ebp
pop ebx
call fcn.1001e745
mov esp, ebp
pop ebp
ret

Function at 0x100030a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020d3e
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1002c018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test byte [0x1015fe84], 1
jne 0x1000313b
or dword [0x1015fe84], 1
mov edi, 0x10235969
lea esi, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.1001ae00
mov esi, eax
mov ecx, 0x1023597d
lea eax, [ebp - 0x1c]
call fcn.1001ad80
push esi
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.1001e2c0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1015fe80], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], ax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov word [ebp - 0x20], ax
mov byte [ebp - 0x1e], al
mov dword [ebp - 4], 0xffffffff
push 0
push 0xffffffffffffffff
call dword [0x1015fe80]
test eax, eax
jne 0x10003150
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001e745
mov esp, ebp
pop ebp
ret