joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100089c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10030278]
mov dword [ebp - 4], eax
jmp 0x100089d9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10008a00
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x100089fe
call sub.KERNEL32.dll_GetLastError
jmp 0x10008a02
jmp 0x100089d0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10008ea0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10030288], eax
je 0x10008ebd
mov eax, 0x10dd
jmp 0x10008fa0
mov eax, dword [0x10030298]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10008f3c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x10008f18
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x10008f18
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10007f20
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.1000a36e
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10008ec5
mov dword [0x10030298], 0
call fcn.10008800
mov ecx, dword [0x10030294]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10008f8a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1000a36e
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10008f54
mov dword [0x10030294], 0
mov dword [0x10030288], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10009480
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1003028c], 0
je 0x10009499
mov eax, dword [0x1003028c]
jmp 0x10009538
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x100094aa
xor eax, eax
jmp 0x10009538
push 8
call fcn.1000a381
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10009502
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x100094eb
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1000a36e
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1003028c], eax
mov dword [0x10030290], 0
mov eax, dword [ebp - 8]
jmp 0x10009538
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1000951a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x100094ca
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10030294]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10030294], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x1000f1c7
Capabilities:
Parse pe header

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

Function at 0x1001492b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100279f8
push 0x100279f0
push str.FlsAlloc
push 0x1f
call fcn.100147f3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001495f
push dword [ebp + 8]
mov ecx, esi
call dword [0x10024158]
call esi
jmp 0x10014965
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100149a9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10027a08
push 0x10027a00
push str.FlsGetValue
push 0x21
call fcn.100147f3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100149e0
push dword [ebp + 8]
mov ecx, esi
call dword [0x10024158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100149e8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10027a10
push 0x10027a08
push str.FlsSetValue
push 0x22
call fcn.100147f3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10014a22
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10024158]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001aded
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 0x1001ae8a
push ebx
push esi
call fcn.1001adb6
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.10019bd7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001ae37
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001ae89
push edi
push eax
call fcn.10016f74
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001ae57
call fcn.10014514
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001ae88
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10019bd7
add esp, 0x20
test eax, eax
jne 0x1001ae76
push edi
call fcn.10014514
jmp 0x1001ae7e
push ebx
call fcn.10014514
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 0x1001e427
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100155c4
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 0x1001e496
cmp esi, dword [ebp - 4]
je 0x1001e491
cmp dword [ebp + 0xc], 0
je 0x1001e491
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1001e46e
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1001df79
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1001e498
xor eax, eax
inc eax
jmp 0x1001e498
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1001e4fd
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1002f040]
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.100155c4
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.100155c4
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 0x1001e574
cmp word [ecx], dx
je 0x1001e574
mov eax, dword [0x1002a784]
push edi
dec eax
push eax
push 0x1002a670
call fcn.1001e49c
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1001e5e7
cmp word [eax], dx
je 0x1001e5e7
mov eax, dword [edi]
test eax, eax
je 0x1001e598
cmp word [eax], dx
je 0x1001e598
lea eax, [ebp - 0x10]
push eax
call fcn.1001de7f
jmp 0x1001e5a1
lea eax, [ebp - 0x10]
push eax
call fcn.1001df1a
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1001e611
mov eax, dword [0x1002a66c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1002a360
call fcn.1001e49c
add esp, 0xc
test al, al
je 0x1001e611
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1001e5dc
cmp word [eax], di
je 0x1001e5dc
lea eax, [ebp - 0x10]
push eax
call fcn.1001de7f
pop ecx
jmp 0x1001e613
lea eax, [ebp - 0x10]
push eax
call fcn.1001df1a
jmp 0x1001e5d9
mov eax, dword [edi]
test eax, eax
je 0x1001e5fe
cmp word [eax], dx
je 0x1001e5fe
lea eax, [ebp - 0x10]
push eax
call fcn.1001de34
pop ecx
jmp 0x1001e611
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 0x1001e6dc
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1001e321
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1001e6dc
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1001e6dc
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1001e6dc
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001e669
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10014b28
test ebx, ebx
je 0x1001e6d7
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10014b28
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001e6dc
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001e6dc
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100211d7
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1001e6de
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000a360
leave
ret
Function at 0x10022e70
Capabilities:
Parse pe header

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

Function at 0x111a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0111a1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x111a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x111a06a
add dl, dl
jne 0x111a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x111a0dc
xor eax, eax
add dl, dl
jne 0x111a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x111a17d
add dl, dl
jne 0x111a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x111a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x111a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x111a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x111a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x111a075
mov eax, 1
add dl, dl
jne 0x111a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x111a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x111a0e1
sub eax, ebx
mov ebx, 1
jne 0x111a128
mov ecx, 1
add dl, dl
jne 0x111a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x111a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x111a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x111a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x111a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x111a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x111a136
cmp eax, 0x7d00
jae 0x111a16d
cmp eax, 0x500
jb 0x111a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x111a075
cmp eax, 0x7f
ja 0x111a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x111a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x111a19e
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 0x111a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0xf06530
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
push 0x40
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0xf06553
mov eax, 1
jmp 0xf0665e
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x5a4d
jne 0xf06569
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x3c], 0
jne 0xf06573
mov eax, 2
jmp 0xf0665e
mov edx, dword [ebp + 0x10]
push edx
push 0xf8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0xf0659e
mov eax, 1
jmp 0xf0665e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0x4550
jne 0xf065c4
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x58]
cmp edx, 0x10b
jne 0xf065c4
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x46]
test ecx, ecx
jne 0xf065ce
mov eax, 2
jmp 0xf0665e
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x46]
imul eax, eax, 0x28
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x140], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x140]
push eax
call fcn.00f18a10
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x138], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x138], 0
jne 0xf0660f
mov eax, 3
jmp 0xf0665e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x54]
lea ecx, [ecx + eax + 0x18]
mov edx, dword [ebp + 8]
mov dword [edx + 0x13c], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x140]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x13c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x138]
push eax
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0xf0665c
mov eax, 1
jmp 0xf0665e
xor eax, eax
pop ebp
ret

Function at 0xf07000
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0xf07016
xor eax, eax
jmp 0xf07056
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x4550
jne 0xf0703b
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x18]
cmp eax, 0x10b
je 0xf0703f
xor eax, eax
jmp 0xf07056
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
push ecx
call fcn.00f07060
add esp, 0xc
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xf19780
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0xf19793
xor eax, eax
jmp 0xf19851
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0xf197ae
xor eax, eax
jmp 0xf19851
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x4550
je 0xf197cc
xor eax, eax
jmp 0xf19851
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0
jmp 0xf1980e
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x18]
jae 0xf1984f
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
push edx
call fcn.00f18a30
add esp, 8
test eax, eax
jne 0xf1984d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0xf19851
jmp 0xf19805
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000209c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
xor esi, esi
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov edx, dword [eax + 0x20]
mov ebx, dword [eax + 0x1c]
add edx, edi
mov ecx, dword [eax + 0x24]
add ebx, edi
mov eax, dword [eax + 0x18]
add ecx, edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x100020f0
mov eax, dword [edx + esi*4]
add eax, edi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x100020f7
mov edx, dword [ebp - 0xc]
inc esi
cmp esi, dword [ebp - 8]
jb 0x100020d4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + esi*2]
mov eax, dword [ebx + eax*4]
add eax, edi
jmp 0x100020f2
Function at 0x10002175
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x1000d388
push ecx
mov dword [ebp - 0x14], edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov edi, eax
push 2
push 0
push edi
call esi
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push 0
push 0
push edi
mov ebx, eax
call esi
mov esi, dword [ebp - 4]
push edi
push esi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [ebx + 0x3c]
lea edi, [ebx + 0xf8]
add edi, eax
mov dword [ebp - 0xc], edi
movzx ecx, word [eax + ebx + 6]
push dword [eax + ebx + 0x78]
mov dword [ebp - 8], ecx
mov edx, ecx
push esi
mov ecx, edi
call fcn.10002138
add eax, ebx
add esp, 0x44
xor edi, edi
mov dword [ebp - 0x10], eax
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x100022b9
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
push eax
push dword [ebp - 4]
call fcn.10002138
mov edx, dword [ebp - 8]
add eax, ebx
mov ecx, dword [ebp - 0xc]
push dword [eax + edi*4]
push dword [ebp - 4]
call fcn.10002138
add esp, 0x10
add eax, ebx
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x10002257
test cl, cl
je 0x10002253
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x10002257
add eax, 2
add esi, 2
test cl, cl
jne 0x10002237
xor eax, eax
jmp 0x1000225c
sbb eax, eax
or eax, 1
test eax, eax
je 0x1000226b
mov eax, dword [ebp - 0x1c]
inc edi
cmp edi, dword [ebp - 0x18]
jb 0x1000220d
jmp 0x100022b9
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
push dword [eax + 0x24]
push dword [ebp - 4]
call fcn.10002138
mov edx, dword [ebp - 8]
add eax, ebx
mov ecx, dword [ebp - 0xc]
movzx esi, word [eax + edi*2]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 4]
push dword [eax + 0x1c]
push edi
call fcn.10002138
mov edx, dword [ebp - 8]
add eax, ebx
mov ecx, dword [ebp - 0xc]
push dword [eax + esi*4]
push edi
call fcn.10002138
push ebx
mov esi, eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100022be
Capabilities:
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x10010008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.1000209c
mov ebx, eax
test edi, edi
je 0x1000237e
test esi, esi
je 0x1000237e
push 0x104
lea eax, [ebp - 0x110]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, esi
lea ecx, [ebp - 0x110]
call fcn.10002175
mov edi, eax
cmp edi, 0xffffffff
je 0x1000237e
lea eax, [ebp - 0x110]
push 0x1000d388
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
push 0
mov esi, eax
push edi
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push esi
push 5
lea eax, [ebp - 0xc]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x114]
add esp, 0x28
push eax
push 0x40
push 5
push ebx
call esi
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
mov al, byte [ebp - 8]
mov byte [ebx + 4], al
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x114]
push 5
push ebx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000af1b
leave
ret

Function at 0x1000238d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x10010008]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
test edi, edi
je 0x100023cc
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
mov dword [edi], 0x8b55ff8b
push eax
push dword [ebp - 8]
mov byte [edi + 4], 0xec
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1000af1b
leave
ret

Function at 0x100023d9
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
test esi, esi
jne 0x100023f1
push edi
mov edi, dword fs:[0x30]
mov eax, dword [edi + 8]
ret
push ebx
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ebx, dword [eax + 0x1c]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop ebx
jmp 0x1000241d
push esi
push dword [eax + 0x20]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
mov eax, dword [ebp - 4]
je 0x10002423
mov eax, dword [eax]
mov dword [ebp - 4], eax
cmp dword [eax + 8], 0
jne 0x10002407
mov eax, dword [eax + 8]
pop esi
leave
ret
Function at 0x10002429
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebx
push esi
push edi
mov ecx, str.kernel32.dll
call fcn.100023d9
mov ecx, str.ntdll.dll
mov edi, eax
call fcn.100023d9
mov ecx, str.kernelbase.dll
mov ebx, eax
call fcn.100023d9
mov esi, eax
call fcn.100024f4
mov edx, eax
mov ecx, edi
call fcn.1000209c
mov ecx, eax
call fcn.1000238d
call fcn.1000253b
mov edx, eax
mov ecx, edi
call fcn.1000209c
mov ecx, eax
call fcn.1000238d
call fcn.10002591
mov edx, eax
mov ecx, edi
call fcn.100022be
call fcn.100025f8
mov edx, eax
mov ecx, edi
call fcn.1000209c
mov ecx, eax
call fcn.1000238d
call fcn.1000264e
mov edx, eax
mov ecx, edi
call fcn.100022be
call fcn.100026b5
mov edx, eax
mov ecx, ebx
call fcn.100022be
call fcn.1000270f
mov edx, eax
mov ecx, ebx
call fcn.100022be
call fcn.1000277c
mov edx, eax
mov ecx, edi
call fcn.100022be
call fcn.100027c5
mov edx, eax
mov ecx, esi
call fcn.100022be
call fcn.1000280e
pop edi
pop esi
mov ecx, ebx
mov edx, eax
pop ebx
jmp fcn.100022be