joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004f2da
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1006d080]
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.10042899
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.10042899
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 0x1004f351
cmp word [ecx], dx
je 0x1004f351
mov eax, dword [0x1005d2f4]
push edi
dec eax
push eax
push 0x1005d1e0
call fcn.1004f279
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1004f3c4
cmp word [eax], dx
je 0x1004f3c4
mov eax, dword [edi]
test eax, eax
je 0x1004f375
cmp word [eax], dx
je 0x1004f375
lea eax, [ebp - 0x10]
push eax
call fcn.1004ec5c
jmp 0x1004f37e
lea eax, [ebp - 0x10]
push eax
call fcn.1004ecf7
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1004f3ee
mov eax, dword [0x1005d1dc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1005ced0
call fcn.1004f279
add esp, 0xc
test al, al
je 0x1004f3ee
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1004f3b9
cmp word [eax], di
je 0x1004f3b9
lea eax, [ebp - 0x10]
push eax
call fcn.1004ec5c
pop ecx
jmp 0x1004f3f0
lea eax, [ebp - 0x10]
push eax
call fcn.1004ecf7
jmp 0x1004f3b6
mov eax, dword [edi]
test eax, eax
je 0x1004f3db
cmp word [eax], dx
je 0x1004f3db
lea eax, [ebp - 0x10]
push eax
call fcn.1004ec11
pop ecx
jmp 0x1004f3ee
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 0x1004f4b9
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1004f0fe
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1004f4b9
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1004f4b9
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1004f4b9
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1004f446
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10045fa4
test ebx, ebx
je 0x1004f4b4
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10045fa4
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1004f4b9
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 0x1004f4b9
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1003980e
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1004f4bb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100320d8
leave
ret
Function at 0x10052786
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.10052702
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100528f5
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100528f5
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100528aa
jg 0x100527e2
test eax, eax
je 0x100528a0
push 1
push 0x1000
call fcn.1004592d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10052805
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10052897
push 0x8000
push ebx
call fcn.10052633
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1005282e
jg 0x10052829
cmp ecx, 0x1000
jb 0x1005282e
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100451cd
add esp, 0x10
cmp eax, 0xffffffff
je 0x10052873
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 0x10052829
jl 0x1005285a
test ecx, ecx
jne 0x1005281b
push dword [ebp - 0xc]
push ebx
call fcn.10052633
push esi
call fcn.10041492
add esp, 0xc
xor ebx, ebx
jmp 0x10052903
cmp byte [edi + 0x24], 0
je 0x1005288a
cmp dword [edi + 0x20], 5
jne 0x1005288a
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10052895
mov ebx, dword [edi + 0x18]
jmp 0x10052897
xor ebx, ebx
push esi
call fcn.10041492
pop ecx
jmp 0x10052903
test ecx, ecx
jg 0x1005286c
jl 0x100528aa
test eax, eax
jae 0x1005286c
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1004742b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100528ca
cmp byte [edi + 0x1c], 0
je 0x1005286c
jmp 0x100528fb
push ebx
call fcn.1004f894
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1005286c
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 0x10052903
cmp byte [edi + 0x1c], 0
je 0x10052900
mov ebx, dword [edi + 0x18]
jmp 0x10052903
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1004742b
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10053300
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1005332d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005332d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41dbe7
Capabilities:
Parse pe header

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

Function at 0x429b45
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43d750
push 0x43d748
push str.FlsAlloc
push 0x1f
call fcn.004299b0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x429b79
push dword [ebp + 8]
mov ecx, esi
call dword [0x439134]
call esi
jmp 0x429b7f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x429bc3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43d760
push 0x43d758
push str.FlsGetValue
push 0x21
call fcn.004299b0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x429bfa
push dword [ebp + 8]
mov ecx, esi
call dword [0x439134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x429c02
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43d768
push 0x43d760
push str.FlsSetValue
push 0x22
call fcn.004299b0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x429c3c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x439134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x430b89
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x445040]
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.00429230
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.00429230
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 0x430c00
cmp word [ecx], dx
je 0x430c00
mov eax, dword [0x43de34]
push edi
dec eax
push eax
push 0x43dd20
call fcn.00430b28
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x430c73
cmp word [eax], dx
je 0x430c73
mov eax, dword [edi]
test eax, eax
je 0x430c24
cmp word [eax], dx
je 0x430c24
lea eax, [ebp - 0x10]
push eax
call fcn.0043050b
jmp 0x430c2d
lea eax, [ebp - 0x10]
push eax
call fcn.004305a6
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x430c9d
mov eax, dword [0x43dd1c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x43da10
call fcn.00430b28
add esp, 0xc
test al, al
je 0x430c9d
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x430c68
cmp word [eax], di
je 0x430c68
lea eax, [ebp - 0x10]
push eax
call fcn.0043050b
pop ecx
jmp 0x430c9f
lea eax, [ebp - 0x10]
push eax
call fcn.004305a6
jmp 0x430c65
mov eax, dword [edi]
test eax, eax
je 0x430c8a
cmp word [eax], dx
je 0x430c8a
lea eax, [ebp - 0x10]
push eax
call fcn.004304c0
pop ecx
jmp 0x430c9d
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 0x430d68
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004309ad
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x430d68
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x430d68
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x430d68
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x430cf5
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00429d42
test ebx, ebx
je 0x430d63
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00429d42
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x430d68
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 0x430d68
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00434bc8
add esp, 0x10
xor eax, eax
inc eax
jmp 0x430d6a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d4b0
leave
ret
Function at 0x436cb0
Capabilities:
Parse pe header

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

Function at 0x7fb058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x7fb1a8
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 0x7fb07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7fb06a
add dl, dl
jne 0x7fb089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7fb0dc
xor eax, eax
add dl, dl
jne 0x7fb096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7fb17d
add dl, dl
jne 0x7fb0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7fb0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7fb0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7fb0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x7fb0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x7fb075
mov eax, 1
add dl, dl
jne 0x7fb0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7fb0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7fb0e1
sub eax, ebx
mov ebx, 1
jne 0x7fb128
mov ecx, 1
add dl, dl
jne 0x7fb10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7fb119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7fb105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7fb075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x7fb13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7fb14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7fb136
cmp eax, 0x7d00
jae 0x7fb16d
cmp eax, 0x500
jb 0x7fb168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7fb075
cmp eax, 0x7f
ja 0x7fb170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7fb075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x7fb19e
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 0x7fb075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0xf38654
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x1c]
mov ebx, dword [edx]
mov eax, dword [edx + 4]
test esi, esi
jle 0xf386ba
push ebp
mov ebp, dword [esp + 0x18]
sub ebp, dword [esp + 0x1c]
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x1c]
push edi
inc bl
movzx ebx, bl
mov cl, byte [edx + ebx + 8]
add al, cl
movzx eax, al
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x18]
mov al, byte [edx + eax + 8]
mov byte [edx + ebx + 8], al
add al, cl
movzx eax, al
mov byte [edx + edi + 8], cl
mov cl, byte [eax + edx + 8]
mov eax, edi
xor cl, byte [esi + ebp]
mov byte [esi], cl
inc esi
sub dword [esp + 0x10], 1
jne 0xf3867a
mov esi, dword [esp + 0x24]
pop edi
pop ebp
mov dword [edx + 4], eax
mov eax, esi
pop esi
mov dword [edx], ebx
pop ebx
pop ecx
ret

Function at 0xf3e5ec
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push ebx
push edi
mov ebx, 0xf415b8
mov eax, dword [eax + 0xc]
push ebx
mov edi, dword [eax + 0x18]
push dword [edi + 0x28]
call fcn.013d1f44
pop ecx
pop ecx
test eax, eax
jne 0xf3e613
mov eax, dword [edi + 0x10]
jmp 0xf3e632
push esi
mov esi, dword [edi + 4]
jmp 0xf3e62b
push ebx
push dword [esi + 0x28]
call fcn.013d1f44
pop ecx
pop ecx
test eax, eax
je 0xf3e635
mov esi, dword [esi + 4]
cmp esi, edi
jne 0xf3e619
xor eax, eax
pop esi
pop edi
pop ebx
ret
mov eax, dword [esi + 0x10]
jmp 0xf3e631
Function at 0xf4b07c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x74]
lea eax, [esp + 0x20]
push ebp
push esi
push edi
push 0x34
push dword [esp + 0x7c]
mov edi, ebx
mov ebp, ebx
sub edi, dword [esp + 0x70]
sub ebp, dword [esp + 0x84]
push eax
mov dword [esp + 0x30], edi
call fcn.00f38630
xor esi, esi
add esp, 0xc
cmp dword [esp + 0x70], esi
jbe 0xf4b1c7
mov ecx, dword [esp + 0x6c]
mov edx, ebx
movzx eax, byte [ecx + esi*2]
mov dword [esp + 0x14], eax
movzx eax, byte [ecx + esi*2 + 1]
mov ecx, dword [esp + 0x68]
sub edx, eax
mov dword [esp + 0x28], eax
sub ecx, edx
mov dword [esp + 0x18], edx
mov eax, dword [esp + eax*4 + 0x2c]
mov dword [esp + 0x10], eax
xor eax, eax
inc eax
shl eax, cl
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x68]
sub eax, edx
mov dword [esp + 0x20], eax
cmp eax, ebp
jb 0xf4b153
xor eax, eax
add edx, edi
inc eax
cmp edx, eax
cmovl edx, eax
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + edx*4]
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x74]
sub eax, ecx
push ebx
push eax
mov eax, dword [esp + 0x78]
lea eax, [eax + ecx*2]
mov ecx, dword [esp + 0x24]
push eax
imul eax, ecx, 0x34
push edx
add eax, dword [esp + 0x8c]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push dword [esp + 0x3c]
lea eax, [ecx + eax*4]
push eax
call fcn.013db040
mov edx, dword [esp + 0x40]
add esp, 0x24
jmp 0xf4b1b4
mov eax, dword [esp + 0x14]
movzx eax, ax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push 2
push eax
lea eax, [esp + 0x84]
push eax
call fcn.00f38630
mov ecx, dword [esp + 0x24]
xor eax, eax
mov edx, dword [esp + 0x28]
inc eax
mov byte [esp + 0x8a], cl
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x7f], al
lea eax, [edx + ecx]
cmp ecx, eax
jae 0xf4b1b4
mov ebx, dword [esp + 0x64]
mov ecx, edx
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x7c]
lea edi, [ebx + edi*4]
mov ebx, dword [esp + 0x80]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
add dword [esp + eax*4 + 0x2c], edx
inc esi
cmp esi, dword [esp + 0x70]
jb 0xf4b0b9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
Function at 0xf4c3a8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x18]
call fcn.00f4e26c
shr eax, 8
pop ecx
test al, al
je 0xf4c3c1
pop ebp
jmp fcn.013d5af8
pop ebp
jmp fcn.00f4ed7c
Function at 0xf4dbb4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
test ebx, ebx
je 0xf4dc08
mov edi, dword [esp + 0x18]
test edi, 0xffff0000
jne 0xf4dbd9
sub edi, dword [ebx + esi + 0x10]
jmp 0xf4dc20
mov eax, dword [ebx + esi + 0x20]
xor ebp, ebp
add eax, esi
mov dword [esp + 0x14], eax
cmp dword [ebx + esi + 0x18], ebp
jbe 0xf4dc08
mov eax, dword [eax + ebp*4]
add eax, esi
push edi
push eax
call fcn.00f3e4a4
pop ecx
pop ecx
test eax, eax
je 0xf4dc11
mov eax, dword [esp + 0x14]
inc ebp
cmp ebp, dword [ebx + esi + 0x18]
jb 0xf4dbeb
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
test ebp, ebp
js 0xf4dc08
mov eax, dword [ebx + esi + 0x24]
lea eax, [eax + ebp*2]
movzx edi, word [eax + esi]
cmp edi, 0xffffffff
je 0xf4dc08
cmp edi, dword [ebx + esi + 0x14]
jae 0xf4dc08
mov eax, dword [ebx + esi + 0x1c]
lea eax, [eax + edi*4]
mov eax, dword [eax + esi]
add eax, esi
jmp 0xf4dc0a
Function at 0x10008b80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1006bd50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.100612f4
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.1000b860
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x10008bd4
jmp dword [ecx*4 + 0x10008d3c]
mov al, byte [esi]
test al, al
je 0x10008c02
cmp al, 0x20
je 0x10008bee
cmp al, 0xa1
jne 0x10008c02
cmp byte [esi + 1], al
jne 0x10008c02
test al, 0x80
je 0x10008bfa
mov al, byte [esi + 1]
inc esi
test al, al
je 0x10008c02
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10008be1
test ecx, ecx
je case.default.0x10008bd4
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x10008bd4
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x10008c48
cmp dl, 0xa1
jne 0x10008c3c
cmp byte [eax + 1], 0xa1
jne 0x10008c3c
test ecx, ecx
jne 0x10008c34
mov edi, eax
mov ecx, 1
inc eax
jmp 0x10008c5c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x10008c76
jmp 0x10008c5c
cmp dl, 0x20
jne 0x10008c5a
test ecx, ecx
jne 0x10008c53
mov edi, eax
mov ecx, 1
jmp 0x10008c5c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x10008c1c
cmp ecx, 1
jne case.default.0x10008bd4
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10008bd4
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10008bd4
mov al, byte [esi]
test al, al
je 0x10008cce
test al, 0x80
mov byte [esp + 0x3c], al
je 0x10008cb4
mov cl, byte [esi + 1]
test cl, cl
je 0x10008cce
cmp al, 0xa1
jne 0x10008ca4
cmp cl, al
je 0x10008cb1
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.1000baf0
inc esi
jmp 0x10008cc6
cmp al, 0x20
je 0x10008cc6
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.1000bb30
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10008c8d
push 0
lea ecx, [esp + 0x14]
call fcn.1000bb30
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10014e40
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x10008d01
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x10072530
call fcn.1000ba60
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.10061286
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x1000f8d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1006c0fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.10060ffb
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x1000f952
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.1005ef4a
mov eax, dword [eax]
push 0x10082214
push eax
call fcn.10051c84
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.10061286
test bl, bl
je 0x1000f952
push 0x10082214
lea ecx, [esp + 0xc]
call fcn.10061616
push 0x10085d58
lea ecx, [esp + 0xc]
call fcn.10061616
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x1000f98e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.10061286
jmp 0x1000fa59
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x1000fa12
lea edx, [esp + 0x7c]
push 0x10085d54
push edx
call fcn.10051c84
add esp, 8
test eax, eax
je 0x1000fa12
lea eax, [esp + 0x7c]
push 0x10085d50
push eax
call fcn.10051c84
add esp, 8
test eax, eax
je 0x1000fa12
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000f9a2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.10061286
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x10010250
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x100102b2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc