joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd20f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xd359fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xd21002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00d24dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xd21002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00d1c6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00d2520b
push 0x10
call fcn.00d251d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xd20fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00d111c0
jmp 0xd20fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00d20b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xd20ff0
mov ecx, edi
call fcn.00d112c0
push edi
call fcn.00d251c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xd21021
inc ebx
cmp ebx, 0x20
jb 0xd20f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xd22250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xd36808
push 0xd26288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xd22329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xd22329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00d251d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xd22329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xd22329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xd2232c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00d22351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xd22d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xd22d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xd22d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xd22d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xd22d94
push eax
push esi
call fcn.00d2520b
add esp, 8
pop esi
ret 0x10

Function at 0xd22da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xd22e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xd22e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xd3b320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00d24dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xd22dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xd22e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xd22ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xd22eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xd3b320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00d24dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xd22eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xd22e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xd23000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xd23131
push esi
call fcn.00d26145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00d15080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xd23131
push 0
push ebp
call fcn.00d153a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00d15260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xd2308b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00d152f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xd23121
push 0xd3b918
push edi
call fcn.00d243f0
push eax
push ebx
push esi
call fcn.00d22f60
push 0xd3b8f8
push edi
call fcn.00d243f0
push eax
push ebx
push esi
call fcn.00d22f60
push 0xd3b8d8
push edi
call fcn.00d243f0
push eax
push ebx
push esi
call fcn.00d22f60
push 0xd3b8c0
push edi
call fcn.00d243f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00d22f60
push 0xd3b8a0
push edi
call fcn.00d243f0
push eax
push ebx
push esi
call fcn.00d22f60
push 0xd3b888
push edi
call fcn.00d243f0
push eax
push ebx
push esi
call fcn.00d22f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xd241b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00d24140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00d24140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00d24140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00d24140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xd24bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xd24c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xd3687c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xd24c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xd24c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x41c170
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19000]
push edi
or ebp, 0xffffffff
jmp 0x41c192
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41c199
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41c188
mov eax, 1
add ebx, ebx
jne 0x41c1ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41c1a0
jne 0x41c1bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41c1a0
xor ecx, ecx
sub eax, 3
jb 0x41c1d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41c242
mov ebp, eax
add ebx, ebx
jne 0x41c1db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41c1e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41c20c
inc ecx
add ebx, ebx
jne 0x41c1f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41c1ed
jne 0x41c209
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41c1ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41c22c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41c21d
jmp 0x41c18e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41c22c
add edi, ecx
jmp 0x41c18e
pop esi
mov edi, esi
mov ecx, 0x150
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41c24a
cmp byte [edi], 1
jne 0x41c24a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41c24f
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x41c2c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1cd04]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1cda4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41c27c
mov ecx, edi
jns 0x41c2ab
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1cda8]
or eax, eax
je 0x41c2c1
mov dword [ebx], eax
add ebx, 4
jmp 0x41c299
call dword [esi + 0x1cdac]
popal
jmp 0x403c2f
Function at 0x1001cb05
Capabilities:
Encode data using xor

Disassembly:
and dword [ebp + reloc.MSVCRT.dll_strncpy], ecx
in eax, 0xf3
or dword [edi], ecx
mov ebx, 0xbc44d0c8
rol byte [esp + edi*4 + 0x4a], 1
xchg ebx, eax
salc
adc dh, byte [ebx + edx - 0x6895befd]
xchg edi, eax
fdivr st(6)
aaa
mov edx, 0x62ee4f92
add ebx, ecx
or byte [edx], 0x98
or bl, byte [eax - 0x36c6afd3]
scasd eax, dword es:[edi]
cdq
sub dword [ecx - reloc.MSVCRT.dll_strncpy], ecx
mov cl, 0xc4

Function at 0x1001cd39
Capabilities:
Encode data using xor

Disassembly:
push esp
inc eax
sub dl, byte [edi + 0x50]
inc ebp
stosw word es:[edi], ax
imul ecx, dword [ebp - reloc.MSVCRT.dll_strncpy], 0x53cc8048
mov ecx, 0xcc8048c9
push ebx
add al, 0x2b
add dword [ecx], ebx
invalid
dec edx

Function at 0x1001cf85
Capabilities:
Encode data using xor

Disassembly:
aad 0x6f
arpl word [edi - 0x36abe357], bp
pop edi

Function at 0x10154016
Capabilities:
Encode data using xor

Disassembly:
pop esi
and al, 0xcf
add esp, dword [edx + eax*2 + reloc.MSVCRT.dll_strncpy]
sbb al, byte [ebx]
ret 0xc29b
outsd dx, dword [esi]
pop esi
push 0xffffffffffffffcc
xchg esi, eax
scasd eax, dword es:[edi]
js 0x1015406a
test dword [edx - 0x35], edx
out dx, eax
cmp eax, 0x3ae49cdb
inc ebp
sti
add dword [eax], 0x40
mov ebx, 0x9fc445f9
jno 0x10153fc7
mov ecx, cs
xor eax, 0xae99bba
pop ss
xor eax, 0x276b2cb9
cmpsb byte [esi], byte es:[edi]
div byte [esi - 0x53]
add dword [ecx + 0x4b], esp
inc ebp
mov ebp, dword [ebp + reloc.MSVCRT.dll_strncpy]
mov eax, dword [reloc.MSVCRT.dll_strncpy]
or byte [edi - 0xf], dh
mov bl, 0x59
pop ebp
inc edx
pop ds
jnp 0x10153ffd
loop 0x10153fe2
loope 0x10154044
loope 0x10154072
pop ebp
pop esi
dec ecx
fiadd word [ecx - 0x55295b8]
mov dl, 0xab
dec eax
push ds
sar byte [edx - 0x3c], 1
sub eax, 0xc4e21065
test dword [edi + 0x4e], esi
adc ah, byte [ebx + esi*8 + 0x72]
and byte ss:[eax + edx + 0x7ffc87f6], bl
cld
xchg esp, edi
jg 0x10154068
invalid
add ch, byte [eax]
add al, dh
xor al, 0x47
out dx, al
or esi, dword [edx + 0xe]
add al, 0x8d
and edx, dword [eax]
xlatb
sbb dword [edx - 0x2a91e02c], eax
and al, 0xbb
nop
stosb byte es:[edi], al
sub eax, 0x84101879
xor byte [ebx - 0x21], al
and dword [edi + reloc.MSVCRT.dll_strncpy], esp
fiadd word [edx]
push esp
cwde
jge 0x10154072
test al, 0x56
sub ecx, dword [reloc.MSVCRT.dll_strncpy]
mov ah, byte [esi + 0x4b]
mov esi, 0x5e0d02b5
invalid
Function at 0x10154806
Capabilities:
Encode data using xor

Disassembly:
xlatb
and edi, ebp
into
push ecx
inc dword [ebp + 0x6f]
clc
sti
outsd dx, dword [esi]
je 0x1015482f
add al, 0x4d
rol bh, 0x9f
ror byte [esi], 1
sbb edx, esi
int3
push es
nop
invalid
mov ebp, 0xa7576979
cmc
call 0xa2a2bbb3
mov eax, dword [reloc.MSVCRT.dll_strncpy]
salc
sbb eax, 0xa7831f5f
dec esp
jne 0x10154815
adc dh, 0x1d
pop edi
pop ds
and dword [edi - reloc.MSVCRT.dll_strncpy], 0xffffff8f
int 0x65
jae 0x101547c0
out dx, al
invalid
xor al, 0x1f
add esi, dword [ebx - reloc.MSVCRT.dll_strncpy]
outsd dx, dword [esi]
adc al, 0x9d
popfd
add eax, 0xc9030d58
pop edi
mov dl, byte [0x94b1c87c]
ror ecx, cl
sbb bh, dh
sahf
movsb byte es:[edi], byte [esi]
loopne 0x10154800
mov al, byte [0xb9e9b519]
mov al, 0xea
or eax, 0x9c7ec198
pop edx
fsub st(2), st(0)
dec eax
push ebx
jmp 0x101548ca
mov ecx, 0x980c09dc
fisubr word [edi*8 + 0x4a6d8ab3]
invalid
invalid
Function at 0x10157686
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x101576af
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 6]
cmp dword [ebp - 8], eax
jae 0x101576e7
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
cmp edx, dword [ecx + 0xc]
jb 0x101576dc
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x10]
cmp dword [ebp + 0x10], ecx
jae 0x101576dc
mov eax, dword [ebp - 4]
jmp 0x101576e9
mov eax, dword [ebp - 4]
add eax, 0x28
mov dword [ebp - 4], eax
jmp 0x101576a6
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10157736
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 1], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 1
cmp dword [ebp + 0x18], 0
je 0x1015776b
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp dword [ebp + 0x18], 0
jne 0x10157782
mov dword [ebp - 0x14], reloc.MSVCRT.dll_strncpy
jmp 0x101578cf
mov ecx, dword [ebp + 8]
and ecx, 0xfffffffe
je 0x1015779b
mov dword [ebp - 0x14], reloc.MSVCRT.dll_strncpy
jmp 0x101578cf
cmp dword [ebp + 0xc], 0
je 0x101577a7
cmp dword [ebp + 0xc], reloc.MSVCRT.dll_strncpy
jne 0x101577b8
mov dword [ebp - 0x14], reloc.MSVCRT.dll_strncpy
jmp 0x101578cf
mov edx, dword [ebp + 8]
and edx, 1
sete al
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x101577eb
cmp dword [ebp + 0x14], 0
ja 0x101577eb
jb 0x101577da
cmp dword [ebp + 0x10], 0x40
jae 0x101577eb
mov dword [ebp - 0x14], reloc.MSVCRT.dll_strncpy
jmp 0x101578cf
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x10157809
mov dword [ebp - 0x14], reloc.MSVCRT.dll_strncpy
jmp 0x101578cf
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x3c]
mov dword [ebp - 0x10], edx
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10157868
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0x14]
ja 0x1015785d
jb 0x10157837
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp + 0x10]
jae 0x1015785d
cmp dword [ebp - 0x10], reloc.MSVCRT.dll_strncpy
jae 0x1015785d
mov edx, dword [ebp - 0x10]
add edx, 0x18
xor eax, eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp + 0x14]
jb 0x10157868
ja 0x1015785d
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp + 0x10]
jb 0x10157868
mov dword [ebp - 0x14], reloc.MSVCRT.dll_strncpy
jmp 0x101578cf
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [reloc.MSVCRT.dll_strncpy]
mov edx, dword [ebp + 0xc]
cmp edx, dword [ecx]
jae 0x101578b2
mov eax, dword [reloc.MSVCRT.dll_strncpy]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax]
jb 0x10157895
mov dword [ebp - 0x14], reloc.MSVCRT.dll_strncpy
jmp 0x101578cf
mov edx, dword [ebp - 8]
add edx, 0xf8
mov eax, dword [reloc.MSVCRT.dll_strncpy]
cmp edx, dword [eax]
jb 0x101578b2
mov dword [ebp - 0x14], reloc.MSVCRT.dll_strncpy
jmp 0x101578cf
mov ecx, dword [ebp - 8]
cmp dword [ecx], reloc.MSVCRT.dll_strncpy
je 0x101578c8
mov dword [ebp - 0x14], reloc.MSVCRT.dll_strncpy
jmp 0x101578cf
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
jl 0x101578dd
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x101698ca
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x483608
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x48]
push ebp
push eax
push ecx
lea ecx, reloc.MSVCRT.dll_strncpy
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.1016488a
test eax, eax
jne 0x10169936
push ebp
push 0x4a1d64
mov ecx, edi
call fcn.10168b5a
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov edx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
push esi
push ebp
push ebp
push ebx
lea ecx, [edx + 0x14]
call fcn.1016440a
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.1015c06a
push ebx
mov dword [esp + 0x4c], ebp
call fcn.10164a3a
add esp, 4
test eax, eax
je 0x101699d9
add esi, 0x18
push esi
call fcn.1015caba
add esi, eax
push esi
call fcn.1015caba
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja 0x10169cdc
jmp dword [ecx*4 + 0x40ed10]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.10168c9a
mov ebx, dword [esp + 0x58]
mov ebp, eax
lea edi, [esi + 0x18]
mov edx, dword [ebp + 0x28]
lea ecx, [ebx + ebx*4]
mov esi, edi
lea eax, [edx + ecx*4]
push esi
mov dword [esp + 0x5c], eax
call fcn.1015caba
add esi, eax
push esi
call fcn.1015caba
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x10169a2a
mov ecx, dword [esi + 0x1c]
push ecx
call dword [0x487420]
test eax, eax
je 0x10169a2a
mov eax, 1
jmp 0x10169a2c
xor eax, eax
cmp ebx, 8
jge 0x10169c91
cmp ebx, 7
ja 0x10169cdc
jmp dword [ebx*4 + 0x40ed20]
test eax, eax
jne 0x10169ca4
mov ecx, dword [esp + 0x10]
push eax
push 0x4a1d50
call fcn.10168b5a
push 6
call dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
xor ecx, ecx
add ebx, 0xfffffff8
push edx
mov dword [esp + 0x20], ecx
push ebx
push esi
mov dword [esp + 0x2c], ecx
call eax
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.1016a1ea
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x48], reloc.MSVCRT.dll_strncpy
mov dword [esp + 0x2c], 0x48a1e8
call fcn.1015c26a
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
mov edx, edi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
Function at 0x10173a5a
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x483dd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x74]
push edi
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.101745da
lea edx, [esp + 0x18]
push eax
push edx
call dword [0x487478]
mov eax, dword [esp + 0x18]
xor edi, edi
xor ecx, ecx
cmp eax, edi
setl cl
dec ecx
xor edx, edx
and ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x18], ecx
setl dl
dec edx
and edx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], edx
call dword [0x48741c]
test eax, eax
je 0x10173b03
mov eax, dword [esp + 0x6c]
push ebx
mov ebx, eax
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.101736ea
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call dword [0x487404]
push edi
lea ecx, [esp + 0x4c]
call fcn.101d8125
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], edi
call fcn.1018bfda
mov edx, dword [esp + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x18]
push 2
push ecx
push edx
call dword [0x487058]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [0x487408]
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [0x487428]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, esi
mov dword [esp + 0x64], reloc.MSVCRT.dll_strncpy
mov dword [edx], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x48]
call fcn.101d8197
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14