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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffe0
sub esp, 0x58
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [eax + 0xc]
mov eax, dword [eax + 8]
add eax, 3
shr edi, 2
shr eax, 2
mov esi, eax
mov dword [esp + 0x1c], edi
shr esi, 1
and eax, 1
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
test ecx, ecx
jne 0x10125416
test eax, eax
je 0x101254ef
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
imul esi, edi
vxorps xmm0, xmm0, xmm0
test ecx, ecx
je 0x101254ef
lea eax, [eax + esi*4]
add eax, 0x10
nop word [eax + eax]
lea eax, [eax + 0x20]
vmovups xmmword [eax - 0x20], xmm0
sub ecx, 1
jne 0x10125400
vzeroupper
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
vbroadcastss ymm2, dword [ecx + 8]
vbroadcastss ymm3, dword [ecx + 0xc]
vmovups ymmword [esp + 0x20], ymm2
vmovups ymmword [esp + 0x40], ymm3
test esi, esi
je 0x1012549a
lea eax, [edi*4]
mov ecx, esi
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 8], ecx
nop dword [eax]
mov eax, edi
vmovups ymm1, ymmword [esi]
test edx, edx
je 0x1012547e
mov ecx, edx
nop dword [eax]
lea eax, [eax + 0x20]
vaddps ymm0, ymm1, ymmword [eax - 0x20]
vmaxps ymm0, ymm0, ymm2
vminps ymm0, ymm0, ymm3
vmovups ymmword [eax - 0x20], ymm0
sub ecx, 1
jne 0x10125460
mov ecx, dword [esp + 8]
add edi, dword [esp + 0x10]
add esi, 0x20
sub ecx, 1
mov dword [esp + 8], ecx
jne 0x10125450
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
test eax, eax
je 0x101254ef
mov ecx, dword [ebp + 8]
mov eax, esi
vmovaps xmm3, xmmword [esp + 0x20]
vmovaps xmm4, xmmword [esp + 0x40]
imul eax, edi
shl esi, 5
add esi, dword [ebp + 0x18]
vxorps xmm1, xmm1, xmm1
vmovups xmm2, xmmword [esi]
lea eax, [ecx + eax*4]
test edx, edx
je 0x101254ef
nop word [eax + eax]
lea eax, [eax + 0x20]
vaddps xmm0, xmm2, xmmword [eax - 0x20]
vmaxps xmm0, xmm0, xmm3
vminps xmm0, xmm0, xmm4
vmovups xmmword [eax - 0x20], xmm0
vmovups xmmword [eax - 0x10], xmm1
sub edx, 1
jne 0x101254d0
vzeroupper
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10140130
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.1013fdf7
and byte [ebx + ebp - 0x3fba72f9], cl
push eax
call fcn.1013fe07
push eax
push esi
push dword [ebp + 8]
call fcn.1013fdbc
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.1013fdf7
push esp
jbe 0x10140195
int1
lea eax, [ebp - 0x18]
call 0x60fc5eed
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
cmc
fcmovb st(0), st(6)
inc ebp
neg dl
mov byte [ebp - 9], 0xbf
call fcn.1013fe07
push eax
push esi
push dword [ebp + 8]
call fcn.1013fdbc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.1013fe07
push eax
push esi
push dword [ebp + 8]
call fcn.1013fdbc
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.1013fe07
push eax
push esi
push dword [ebp + 8]
call fcn.1013fdbc
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.1013fdf7
mov al, byte [0x88a9efac]
popfd
jl 0x1014027c
invalid
invalid
Function at 0x10181de0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a6903
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x101df584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov word [edi + 0x4c], 0x101
mov byte [edi + 0x4e], 1
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov esi, dword [ebp + 8]
push esi
mov byte [ebp - 4], 5
call fcn.101826c0
push esi
lea ecx, [edi + 0xc]
call fcn.1002a7e0
xor esi, esi
cmp dword [ebp + 8], esi
jle 0x10181f26
push 0x30
call fcn.10196241
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x10181ef8
push 1
push 4
mov ecx, eax
call sym.MNN.dll_public:_void___thiscall_MNN::Tensor::constructor_int__enum_MNN::Tensor::DimensionType_
mov edx, eax
jmp 0x10181efa
xor edx, edx
mov eax, dword [edi + 0xc]
lea ecx, [esi*4]
mov byte [ebp - 4], 5
mov dword [ecx + eax], edx
mov eax, dword [edi + 0xc]
push dword [eax + ecx]
call sym.MNN.dll_public:_static_struct_MNN::Tensor::InsideDescribe::NativeInsideDescribe____cdecl_MNN::TensorUtils::getDescribe_class_MNN::Tensor_const__
inc esi
add esp, 4
mov dword [eax + 0x10], 1
cmp esi, dword [ebp + 8]
jl 0x10181ed4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10186260
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a6e2d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x101df584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
mov edx, dword [ebp + 0xc]
mov eax, edx
shr eax, 8
movzx ecx, al
movzx eax, dl
xor eax, 0x811c9dc5
mov dword [ebp - 4], 0
imul eax, eax, 0x1000193
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], edx
xor ecx, eax
mov eax, edx
imul ecx, ecx, 0x1000193
shr eax, 0x10
movzx eax, al
xor ecx, eax
mov eax, edx
imul ecx, ecx, 0x1000193
shr eax, 0x18
xor ecx, eax
imul eax, ecx, 0x1000193
lea ecx, [edi + 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.1008b430
mov esi, dword [eax + 4]
test esi, esi
jne 0x101862f3
mov esi, dword [edi + 0x2c]
or ebx, 0xffffffff
cmp esi, dword [edi + 0x2c]
jne 0x101863c9
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1018630d
lock inc dword [ecx + 4]
mov ecx, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], eax
push eax
sub esp, 8
mov byte [ebp - 4], 1
mov edx, esp
sub esp, 8
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
test edi, edi
je 0x10186342
lock inc dword [edi + 4]
mov esi, dword [ebp - 0x20]
mov dword [eax], ecx
mov ecx, esi
push edx
mov dword [eax + 4], edi
call fcn.10185e70
lea eax, [ebp - 0x14]
push eax
call sym.MNN.dll_public:_static_class_MNN::Express::VARP___cdecl_MNN::Express::Variable::create_class_std::shared_ptr_class_MNN::Express::Expr___int_
add esp, 0x10
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x28]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.101842d0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], ecx
mov esi, dword [eax]
test ecx, ecx
je 0x101863a6
mov eax, ebx
lock xadd dword [ecx + 4], eax
jne 0x101863a6
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x20]
mov eax, ebx
lock xadd dword [ecx + 8], eax
jne 0x101863a6
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x101863c9
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x101863c9
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x101863c9
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp + 8]
add esi, 0xc
push esi
mov ecx, edi
call sym.MNN.dll_public:_void___thiscall_MNN::Express::VARP::constructor_class_MNN::Express::VARP_const__
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x101863fc
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x101863fc
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x101863fc
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x12638
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x1c02c], 0x8088405
inc edx
mov dword [0x1c02c], edx
mul edx
mov eax, edx
ret

Function at 0x12650
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x1c02c], 0x8088405
inc edx
mov dword [0x1c02c], edx
fld qword [0x1b024]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
ret

Function at 0x12718
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x127b0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x12790
xor eax, eax
push ebp
push 0x12789
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x127cc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x12790
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x138b4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x13a70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x13915
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x13a8c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x13987
xor eax, eax
push ebp
push 0x13980
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.0001370c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x13969
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x13aac
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x13987
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x13a68
cmp byte [ebp - 0xd], 0
jne 0x139c9
cmp byte [ebp - 0x12], 0
je 0x13a68
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA_1
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x139e2
dec ebx
cmp byte [ebx], 0x2e
je 0x139f1
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x139e1
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x13a68
inc ebx
cmp byte [ebp - 0x12], 0
je 0x13a1e
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x13a68
cmp byte [ebp - 0xd], 0
je 0x13a68
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x13a68
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x14aac
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
xor ecx, ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x14bcc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x14aff
push 0x105
lea eax, [ebp - 0x115]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x115]
mov eax, dword [ebp - 8]
call fcn.00013000
jmp 0x14bb3
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.00014a0c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
call fcn.00014a50
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x14b3a
dec dword [ebp - 4]
cmp dword [ebp - 4], 0
jl 0x14b3a
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jne 0x14b07
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x11c]
mov edx, dword [ebp - 0x10]
call fcn.00013040
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x10]
mov edx, 1
call fcn.0001328c
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00013094
cmp eax, 2
jl 0x14bb3
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x14bb3
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00013094
mov edx, dword [ebp - 8]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x14bb3
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00013094
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, 2
call fcn.0001328c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x14bd3
lea eax, [ebp - 0x11c]
call fcn.00012f18
ret

Function at 0x14c50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00013248
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete byte [ebp - 1]
mov al, byte [ebp - 1]
pop ecx
pop ebp
ret

Function at 0x14cf8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x14d3a
mov eax, dword [ebp - 0xc]
call fcn.00013094
inc eax
push eax
mov eax, dword [ebp - 0xc]
call fcn.00013248
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.00013248
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x14d3e
xor eax, eax
jmp 0x14d40
mov al, 1
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret
Function at 0x14d68
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x14d9c
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00013248
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x14da0
xor eax, eax
jmp 0x14da2
mov al, 1
mov byte [ebp - 9], al
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x15b40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf4
xor edx, edx
mov dword [ebp - 0x408], edx
mov dword [ebp - 0x40c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x15c04
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x404]
xor ecx, ecx
mov edx, 0x400
call fcn.00012618
push 0x3ff
lea eax, [ebp - 0x404]
push eax
push 0x15c10
call sub.KERNEL32.DLL_GetEnvironmentVariableA
push 0x15c20
push 0x15c30
push 0x15c40
push 0x15c50
lea eax, [ebp - 0x408]
push eax
mov ecx, 0x15c64
mov edx, 0x15c78
mov eax, 0x15c84
call fcn.00014720
mov eax, dword [ebp - 0x408]
push eax
lea eax, [ebp - 0x40c]
lea edx, [ebp - 0x404]
call fcn.00013040
mov edx, dword [ebp - 0x40c]
mov eax, dword [ebp - 4]
pop ecx
call fcn.000130e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x15c0b
lea eax, [ebp - 0x40c]
mov edx, 2
call fcn.00012f3c
ret
Function at 0x163a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffe8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00013248
push eax
mov eax, dword [0x1b2ec]
mov eax, dword [eax]
call eax
mov dword [ebp - 0xc], eax
push 0
push 0x80000022
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 8]
call fcn.00013248
push eax
mov eax, dword [0x1b2ec]
mov eax, dword [eax]
call eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x16471
cmp dword [ebp - 0x10], 0xffffffff
je 0x16471
mov dword [ebp - 0x14], 0xfff
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x1018]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_ReadFile
cmp dword [ebp - 0x14], 0
jbe 0x16459
mov eax, dword [ebp - 0x14]
mov byte [ebp + eax - 0x1018], 0
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x1018]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_WriteFile
cmp dword [ebp - 0x14], 0
jne 0x1640d
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov esp, ebp
pop ebp
ret
Function at 0x8f72c59
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x8f8f58c], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x8f72c9f
call ebx
test eax, eax
jns 0x8f72c95
push 0x8f7140c
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x8f71400
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x8f8f590], eax
mov dword [0x8f8f58c], 1
mov eax, dword [0x8f8f590]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x8f72cbb
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
test eax, eax
jne 0x8f72ceb
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x8f72ce1
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x8f72cd6
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x8f72cdb
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x8f72cea
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x8f743c3
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
jne 0x8f74415
mov eax, dword [0x8f8c004]
cmp eax, 0x8f8c004
je 0x8f7440e
test byte [eax + 0x1c], 8
je 0x8f7440e
cmp byte [eax + 0x19], 2
jb 0x8f7440e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x8f8c004]
push 0x8f715cc
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d3f
mov eax, 0x8f71600
jmp 0x8f74470
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x8f7446c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x8f7446c
mov eax, dword [0x8f8c004]
cmp eax, 0x8f8c004
je 0x8f74465
test byte [eax + 0x1c], 8
je 0x8f74465
cmp byte [eax + 0x19], 2
jb 0x8f74465
call esi
push eax
mov eax, dword [0x8f8c004]
push 0x8f715cc
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d3f
mov eax, 0x8f71600
jmp 0x8f7446f
mov eax, dword [ebp + 0x10]
pop esi
pop ebp
ret 0x10
Function at 0x8f750cb
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.USER32.dll_IsDlgButtonChecked]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x17f0
push edi
call ebx
cmp eax, 1
je 0x8f750ff
push dword [ebp + 0xc]
call fcn.08f74678
cmp eax, 1
jle 0x8f750ff
push 1
push 0x17f5
jmp 0x8f75111
push 0
mov esi, 0x17f5
push esi
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
push 0
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
call esi
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call edi
push 0x17f2
push dword [ebp + 8]
call ebx
mov ebx, eax
dec ebx
neg ebx
sbb ebx, ebx
inc ebx
push ebx
push 0x17f3
push dword [ebp + 8]
call esi
push eax
call edi
push ebx
push 0x17f4
push dword [ebp + 8]
call esi
push eax
call edi
test ebx, ebx
je 0x8f751e4
mov edx, dword [ebp + 0xc]
push edx
call fcn.08f74678
cmp eax, 1
jle 0x8f751bc
test byte [edx + 0x24c], 1
je 0x8f751bc
push 0x17f5
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
je 0x8f751bc
push 0
mov ebx, 0x17fd
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CheckDlgButton]
push 0
push ebx
push dword [ebp + 8]
call esi
push eax
call edi
push 5
push 0x17b3
push dword [ebp + 8]
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
push 5
push 0x17b5
jmp 0x8f7520f
push 1
push 0x17fd
push dword [ebp + 8]
call esi
push eax
call edi
push 0
push 0x17b3
push dword [ebp + 8]
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
push 0
jmp 0x8f751b5
push 0
push 0x17b3
push dword [ebp + 8]
call esi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push 0
push 0x17b5
push dword [ebp + 8]
call esi
push eax
call ebx
push 0
push 0x17fd
push dword [ebp + 8]
call esi
push eax
call edi
pop edi
pop esi
pop ebx
pop ebp
ret 8