joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10031b60
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x10100a88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x10105510
mov eax, dword [esi + 8]
test eax, eax
mov dword [esp + 0x20], 0
je 0x10031be1
push ebx
lea edi, [eax + 8]
push ebp
lea eax, [esp + 0x10]
push eax
mov ecx, edi
mov dword [esp + 0x14], esi
call fcn.10035d40
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
mov ebp, eax
call fcn.10035d10
mov ebx, eax
cmp ebx, ebp
mov dword [esp + 0x14], ebx
je 0x10031bd1
lea ecx, [esp + 0x14]
call fcn.10035d70
cmp dword [esp + 0x14], ebp
jne 0x10031bc2
push ebp
push ebx
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call fcn.100340f0
pop ebp
pop ebx
mov eax, dword [esi + 0xc]
test eax, eax
mov edi, dword [esi + 4]
jge 0x10031c0a
push 4
lea eax, [esp + 0x10]
push eax
push 0xffffff7f
push 0xffff
push edi
mov dword [esp + 0x20], 1
call sub.WSOCK32.dll_setsockopt
push edi
call sub.WSOCK32.dll_closesocket
mov ecx, esi
mov dword [esp + 0x20], 0xffffffff
call fcn.100363a0
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x10031e60
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x10100aab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esi + 0x14]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], ebp
je 0x10031ea4
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
cmp ecx, ebp
je 0x10031e9f
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [esi + 0x14], ebp
jne 0x10031e8d
mov eax, dword [esi]
cmp eax, ebp
push edi
mov edi, dword [esi + 4]
jge 0x10031ecd
push 4
lea ecx, [esp + 0x10]
push ecx
push 0xffffff7f
push 0xffff
push edi
mov dword [esp + 0x20], 1
call sub.WSOCK32.dll_setsockopt
push edi
call sub.WSOCK32.dll_closesocket
mov edi, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
mov eax, dword [edi]
add esi, 8
cmp ecx, ebp
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0xc], eax
je 0x10031f1b
mov ecx, eax
cmp eax, ecx
jne 0x10031f1b
mov edx, dword [edi + 4]
push edx
mov ecx, esi
call fcn.10035020
mov eax, dword [esi + 4]
mov ecx, dword [0x101321cc]
mov dword [eax + 4], ecx
mov eax, dword [esi + 4]
mov dword [esi + 0xc], ebp
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
jmp 0x10031f41
cmp eax, edi
je 0x10031f41
push ebx
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.10035d70
push ebx
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.10034bc0
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x10031f20
pop ebx
mov eax, dword [esi + 4]
push eax
call fcn.10090902
mov dword [esi + 4], ebp
mov dword [esi + 0xc], ebp
add esp, 4
lea ecx, [esp + 0x10]
xor esi, esi
call fcn.10090851
dec dword [0x101321c8]
pop edi
jne 0x10031f73
mov esi, dword [0x101321cc]
mov dword [0x101321cc], ebp
lea ecx, [esp + 0xc]
call fcn.100908ed
cmp esi, ebp
je 0x10031f89
push esi
call fcn.10090902
add esp, 4
mov ecx, dword [esp + 0x14]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x10031fa0
Capabilities:
Get socket status

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10100ace
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp]
xor ebx, ebx
cmp eax, ebx
push edi
je 0x10031fd0
xor eax, eax
jmp 0x10032183
mov eax, dword [ebp + 4]
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x34], 1
mov ecx, 0x3f
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov ecx, dword [0x101321a8]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x18], edx
mov eax, ecx
cdq
mov ecx, 0x3e8
idiv ecx
lea ecx, [esp + 0x34]
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push ecx
shl edx, 3
push ebx
mov dword [esp + 0x30], edx
call sub.WSOCK32.dll_select
cmp eax, ebx
jne 0x1003203e
xor eax, eax
jmp 0x10032183
cmp eax, 1
je 0x10032051
mov dword [ebp], 0xffffffff
xor eax, eax
jmp 0x10032183
mov edx, dword [ebp + 4]
push ebx
push ebx
push edx
call sub.WSOCK32.dll_accept
mov edi, eax
cmp edi, 0xffffffff
jne 0x1003206d
mov dword [ebp], eax
xor eax, eax
jmp 0x10032183
push esi
push 0x18
call fcn.1009e195
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
cmp esi, ebx
mov dword [esp + 0x144], ebx
je 0x100320e8
mov ecx, esi
call fcn.100361b0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edi
mov dword [esi + 4], edi
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebx
mov dword [esi], 0x10105510
mov dword [esp + 0x20], 0x10
call sub.WSOCK32.dll_getpeername
test eax, eax
je 0x100320c5
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov edx, esi
jmp 0x100320ea
mov edx, dword [esp + 0x2c]
push edx
call sub.WSOCK32.dll_ntohl
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x2a]
push eax
call sub.WSOCK32.dll_ntohs
mov edx, esi
and eax, 0xffff
mov dword [esi + 0x14], eax
jmp 0x100320ea
xor edx, edx
mov ecx, dword [ebp + 0xc]
mov ebx, dword [0x101321cc]
add ebp, 8
mov dword [esp + 0x10], edx
mov esi, dword [ecx + 4]
cmp esi, ebx
mov dword [esp + 0x144], 0xffffffff
mov edi, ecx
mov al, 1
je 0x10032127
cmp edx, dword [esi + 0xc]
setb al
test al, al
mov edi, esi
je 0x10032120
mov esi, dword [esi]
jmp 0x10032123
mov esi, dword [esi + 8]
cmp esi, ebx
jne 0x10032110
mov dl, byte [ebp + 8]
test dl, dl
je 0x1003213b
lea ecx, [esp + 0x10]
push ecx
push edi
push esi
lea edx, [esp + 0x24]
jmp 0x10032176
test al, al
mov dword [esp + 0x14], edi
je 0x1003215e
cmp edi, dword [ecx]
jne 0x10032155
lea eax, [esp + 0x10]
push eax
push edi
push esi
lea ecx, [esp + 0x24]
push ecx
jmp 0x10032177
lea ecx, [esp + 0x14]
call fcn.10035b00
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
cmp dword [eax + 0xc], edx
jae 0x1003217e
lea ecx, [esp + 0x10]
push ecx
push edi
push esi
lea edx, [esp + 0x30]
push edx
mov ecx, ebp
call fcn.10035060
mov eax, dword [esp + 0x10]
pop esi
mov ecx, dword [esp + 0x138]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret
Function at 0x1003b340
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10100f8c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x24]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0x24]
xor ebx, ebx
mov dword [esi + 4], ecx
push edi
mov edi, dword [esp + 0x2c]
mov dword [esi], eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dl, byte [edi]
lea ecx, [esi + 0x2c]
mov byte [ecx], dl
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov eax, dword [0x10105430]
push eax
push ebx
push edi
mov dword [esp + 0x18], esi
call fcn.10001ecb
mov cl, byte [esp + 0x30]
mov byte [esi + 0x3c], 1
mov dword [esp + 0x20], ebx
mov byte [esi + 0x40], cl
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dl, byte [esp + 0x30]
mov byte [esi + 0x50], dl
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov al, byte [esp + 0x30]
lea edi, [esi + 0x64]
mov byte [esi + 0x60], bl
mov byte [edi], al
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
push ebx
mov byte [esp + 0x24], 3
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov ecx, esi
call fcn.1003e040
cmp byte [esi + 0x60], bl
je 0x1003b3fc
push 5
jmp 0x1003b3fd
push ebx
push edi
push 0x1003db90
call sub.DDRAW.dll_DirectDrawEnumerateExA
push 8
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.WINMM.dll_timeGetDevCaps]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
lea edx, [esi + 0x7c]
xor eax, eax
mov edi, edx
mov ecx, 0x25
rep stosd dword es:[edi], eax
push edx
mov dword [edx], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push str.ddraw.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1003b468
push str.SetAppCompatData
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1003b461
push ebx
push 0xc
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x18]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
Function at 0x1003c670
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x10132280]
test eax, eax
push esi
mov esi, ecx
je 0x1003c75d
push edi
push 0
push 0
mov edi, eax
mov eax, dword [esi]
push 0x403
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov al, byte [0x10132248]
test al, al
jne 0x1003c74e
cmp dword [0x10132260], 3
jne 0x1003c6d8
mov esi, dword [sym.imp.USER32.dll_GetDesktopWindow]
call esi
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 5
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0xc]
mov eax, dword [edi]
push 0
push ecx
mov ecx, edi
call dword [eax + 0x18]
pop edi
pop esi
ret 4
mov byte [0x10132328], 1
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1003c6eb
call fcn.1006a190
mov al, byte [0x1013230c]
test al, al
je 0x1003c6fc
mov ecx, dword [esi + 0x10]
call fcn.1006a190
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1003c720
cmp dword [0x10132260], 3
jne 0x1003c718
mov eax, dword [esi + 0x78]
test eax, eax
je 0x1003c718
call fcn.100526f0
mov ecx, dword [esi + 0xc]
call fcn.100525e0
cmp dword [0x10132260], 3
mov byte [0x10132248], 1
mov byte [0x10132328], 0
jne 0x1003c73f
push 1
call dword [sym.imp.USER32.dll_ShowCursor]
mov ecx, dword [0x10132280]
test ecx, ecx
je 0x1003c74e
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, dword [edi]
push 0
push ecx
mov ecx, edi
call dword [eax + 0x18]
pop edi
pop esi
ret 4
Function at 0x100463b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101012d8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x34]
mov eax, dword [esi + 0xa8]
push edi
mov edi, dword [esi + 0xb0]
add edi, ecx
cmp edi, eax
jge 0x10046582
mov ecx, dword [esi + 0x98]
call fcn.10052f60
mov ecx, dword [esi + 0xa0]
add eax, edi
cmp eax, ecx
jle 0x10046582
mov ecx, dword [esi + 0xac]
mov edx, dword [esp + 0x34]
mov eax, dword [esi + 0xa4]
add ecx, edx
cmp ecx, eax
mov dword [esp + 0x10], ecx
jge 0x10046582
mov ebp, dword [esp + 0x3c]
mov eax, dword [ebp + 8]
xor ebx, ebx
test eax, eax
jbe 0x10046477
mov eax, dword [ebp + 4]
test eax, eax
jne 0x1004643c
mov eax, 0x10105434
jmp 0x1004643e
add eax, ebx
movsx eax, byte [eax]
mov ecx, dword [esi + 0x98]
push eax
call fcn.10052dd0
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x9c]
add ecx, eax
cmp ecx, edx
jg 0x10046473
mov edx, dword [esp + 0x34]
add edx, eax
mov eax, dword [ebp + 8]
inc ebx
cmp ebx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x34], edx
jb 0x1004642e
mov ecx, dword [esp + 0x10]
cmp ebx, dword [ebp + 8]
mov edi, ebx
jae 0x10046582
jmp 0x10046488
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esi + 0xa4]
jge 0x100464c1
mov eax, dword [ebp + 4]
test eax, eax
jne 0x1004649e
mov eax, 0x10105434
jmp 0x100464a0
add eax, edi
movsx edx, byte [eax]
mov ecx, dword [esi + 0x98]
push edx
call fcn.10052dd0
mov edx, dword [esp + 0x10]
add edx, eax
mov eax, dword [ebp + 8]
inc edi
cmp edi, eax
mov dword [esp + 0x10], edx
jb 0x10046484
cmp edi, ebx
jle 0x10046582
sub edi, ebx
push edi
push ebx
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
call fcn.10001bf3
mov ecx, dword [esp + 0x38]
mov edx, dword [esi + 0xc0]
mov edi, dword [esi + 0x74]
push eax
mov eax, dword [esp + 0x38]
push ecx
mov cl, byte [esi + 0x87]
push eax
mov eax, dword [esi + 0x78]
and eax, edx
shr eax, cl
mov cl, byte [esi + 0x86]
and edi, edx
mov ebx, dword [esi + 0x7c]
shl eax, cl
mov cl, byte [esi + 0x85]
shr edi, cl
mov cl, byte [esi + 0x84]
mov dword [esp + 0x38], 0
shl edi, cl
mov cl, byte [esi + 0x83]
or eax, edi
mov edi, dword [esi + 0x70]
and edi, edx
shr edi, cl
mov cl, byte [esi + 0x82]
shl edi, cl
mov cl, byte [esi + 0x81]
or eax, edi
mov edi, dword [esi + 0x6c]
and edi, edx
shr edi, cl
mov cl, byte [esi + 0x80]
shl edi, cl
mov ecx, dword [esi + 0x98]
or eax, edi
or eax, ebx
push eax
push esi
call fcn.10052df0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10046582
lea ecx, [eax - 1]
mov al, byte [ecx]
test al, al
je 0x10046579
cmp al, 0xff
je 0x10046579
dec al
mov byte [ecx], al
jmp 0x10046582
push ecx
call fcn.10090902
add esp, 4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
Function at 0x10052810
Capabilities:
Log keystrokes

Disassembly:
push esi
mov esi, dword [esp + 8]
lea eax, [esi - 0xc7]
cmp eax, 0xc
push edi
ja case.0x10052821.202
jmp dword [eax*4 + 0x100529a0]
pop edi
mov eax, 3
pop esi
ret 4
pop edi
mov eax, 4
pop esi
ret 4
pop edi
mov eax, 1
pop esi
ret 4
pop edi
mov eax, 2
pop esi
ret 4
pop edi
mov eax, 5
pop esi
ret 4
pop edi
mov eax, 6
pop esi
ret 4
pop edi
mov eax, 0x1c
pop esi
ret 4
pop edi
mov eax, 0x1d
pop esi
ret 4
pop edi
mov eax, 0x1f
pop esi
ret 4
pop edi
mov eax, 0x1e
pop esi
ret 4
push 1
and esi, 0x7f
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov edi, eax
test edi, edi
jne 0x100528a3
pop edi
pop esi
ret 4
mov ecx, dword [0x101324a8]
push 0x2a
call fcn.10052c10
mov ecx, dword [0x101324a8]
neg al
sbb al, al
push 0x36
and eax, 0x80
mov byte [0x10132568], al
call fcn.10052c10
mov cl, byte [0x10132568]
neg al
sbb al, al
push 0x1d
and eax, 0x80
mov byte [0x10132569], al
or al, cl
mov ecx, dword [0x101324a8]
mov byte [0x101324d8], al
call fcn.10052c10
mov ecx, dword [0x101324a8]
neg al
sbb al, al
push 0x9d
and eax, 0x80
mov byte [0x1013256a], al
call fcn.10052c10
mov cl, byte [0x1013256a]
neg al
sbb al, al
push 0x38
and eax, 0x80
mov byte [0x1013256b], al
or al, cl
mov ecx, dword [0x101324a8]
mov byte [0x101324d9], al
call fcn.10052c10
mov ecx, dword [0x101324a8]
neg al
sbb al, al
push 0xb8
and eax, 0x80
mov byte [0x1013256c], al
call fcn.10052c10
mov cl, byte [0x1013256c]
neg al
sbb al, al
push 0
and eax, 0x80
mov byte [0x1013256d], al
or al, cl
mov byte [0x101324da], al
lea eax, [esp + 0x10]
push eax
push 0x101324c8
push esi
push edi
call dword [sym.imp.USER32.dll_ToAscii]
cmp eax, 1
je 0x10052992
pop edi
xor eax, eax
pop esi
ret 4
mov eax, dword [esp + 0xc]
pop edi
and eax, 0xff
pop esi
ret 4
Function at 0x10053620
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x1010162b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push esi
push edi
lea eax, [esp + 0x24]
push eax
push 0x104
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x100536ba
mov cl, byte [esp + 0xf]
push ebp
mov ebp, dword [esp + 0x13c]
mov byte [ebp], cl
push eax
mov ecx, ebp
call fcn.10002047
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x101314ac
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
push 1
push ebx
mov ecx, ebp
call fcn.10002311
test al, al
je 0x100536b2
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov esi, 0x101314ac
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [ebx + eax], 0
mov eax, ebp
pop ebp
jmp 0x10053805
mov cl, byte [esp + 0xf]
mov byte [esp + 0x10], cl
push 0
lea ecx, [esp + 0x14]
call fcn.10002047
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
push 1
push ebx
lea ecx, [esp + 0x18]
call fcn.10002311
test al, al
je 0x1005370f
mov edi, dword [esp + 0x14]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
lea ecx, [esp + 0x14]
call fcn.100040f0
mov ecx, dword [esp + 0x18]
test ecx, ecx
mov dword [esp + 0x130], 0
je 0x100537b4
lea esi, [ecx - 1]
cmp ecx, esi
jb 0x10053769
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10053769
mov dl, byte [eax - 1]
test dl, dl
je 0x10053755
cmp dl, 0xff
je 0x10053755
push 0
push ecx
lea ecx, [esp + 0x18]
call fcn.10002311
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10053765
mov byte [eax - 1], 0xff
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add eax, esi
jmp 0x1005376e
mov eax, 0x10105434
cmp byte [eax], 0x5c
je 0x100537b4
mov eax, dword [0x10105430]
sub eax, ecx
cmp eax, 1
ja 0x10053788
call fcn.1009090d
mov ecx, dword [esp + 0x18]
lea esi, [ecx + 1]
push 0
push esi
lea ecx, [esp + 0x18]
call fcn.10002311
test al, al
je 0x100537b4
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add edx, ecx
mov byte [edx], 0x5c
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], esi
mov byte [eax + esi], 0
mov cl, byte [esp + 0x10]
mov esi, dword [esp + 0x138]
mov byte [esi], cl
push 0
mov ecx, esi
call fcn.10002047
mov edx, dword [0x10105430]
push edx
push 0
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.10001ecb
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x10053803
mov al, byte [ecx - 1]
test al, al
je 0x100537f9
cmp al, 0xff
je 0x100537f9
dec al
mov byte [ecx - 1], al
jmp 0x10053803
dec ecx
push ecx
call fcn.10090902
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret 4
Function at 0x10053880
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
test eax, eax
jne 0x10053890
mov eax, 0x10105434
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100538a1
xor eax, eax
ret 4
test al, 0x10
mov eax, 0
setne al
inc eax
ret 4
Function at 0x1005db80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10101ab0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.100683c0
mov edi, eax
mov eax, dword [esp + 0x3c]
mov edx, dword [0x10105430]
mov cl, byte [eax]
xor ebx, ebx
push edx
push ebx
mov byte [esp + 0x20], cl
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.10001ecb
push edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x38], 1
call fcn.10079980
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov byte [esp + 0x3c], 2
call fcn.1005e810
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], 3
call fcn.100687a0
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x1005dc2d
lea ecx, [eax - 1]
mov al, byte [ecx]
cmp al, bl
je 0x1005dc24
cmp al, 0xff
je 0x1005dc24
dec al
mov byte [ecx], al
jmp 0x1005dc2d
push ecx
call fcn.10090902
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], 0xffffffff
call fcn.100687a0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
lea eax, [edx + 0x1c]
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x100609e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10101bc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov eax, dword [0x10132800]
push ebp
push esi
push eax
push 1
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.100a0548
mov edx, dword [0x10132800]
mov esi, dword [0x101327e0]
or ebp, 0xffffffff
push edx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
call fcn.100a07d7
mov ecx, dword [esi - 4]
add esp, 0x14
sub ecx, eax
mov dword [esp + 0x18], ecx
je 0x10060bfb
mov edx, dword [esp + 8]
push ebx
lea eax, [edx*4]
push edi
mov dword [esp + 0x14], eax
xor ebx, ebx
lea ecx, [esp + 0x40]
push ecx
call fcn.100608d0
mov edx, dword [0x10132800]
push edx
push 1
lea eax, [esp + 0x38]
push 0x10
push eax
mov dword [esp + 0x88], ebx
call fcn.100a0548
mov ecx, dword [0x10132800]
push ecx
push 1
lea edx, [esp + 0x30]
push 4
push edx
call fcn.100a0548
mov eax, dword [0x10132800]
push eax
push 1
lea ecx, [esp + 0x44]
push 4
push ecx
call fcn.100a0548
mov edx, dword [0x10132800]
push edx
push 1
lea eax, [esp + 0x58]
push 4
push eax
call fcn.100a0548
mov ecx, dword [0x10132800]
mov edx, dword [esp + 0x54]
add esp, 0x40
push ecx
push 1
push edx
lea eax, [esp + 0x5c]
push eax
call fcn.100a0548
add esp, 0x10
lea ecx, [esp + 0x10]
call fcn.100683c0
fld dword [esp + 0x30]
fstp dword [esp + 0x24]
fld dword [esp + 0x34]
lea ecx, [esp + 0x24]
fstp dword [esp + 0x28]
fld dword [esp + 0x38]
push ecx
fstp dword [esp + 0x30]
lea ecx, [esp + 0x14]
mov byte [esp + 0x7c], 1
call fcn.100689a0
mov edx, dword [esp + 0x3c]
push edx
lea ecx, [esp + 0x14]
call fcn.100689c0
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
call fcn.10068a20
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10068a30
mov edx, dword [esp + 0x20]
push edx
lea ecx, [esp + 0x14]
call fcn.10068a50
xor esi, esi
lea edi, [esp + 0x50]
mov eax, dword [edi]
cmp eax, ebx
jl 0x10060b77
mov ecx, dword [0x101327f4]
push ebx
lea edx, [ecx + eax*4]
push edx
push esi
lea ecx, [esp + 0x1c]
call fcn.10068a70
inc esi
add edi, 4
cmp esi, 8
jl 0x10060b5c
mov ecx, dword [0x101327d0]
lea eax, [esp + 0x10]
push eax
push 1
push ecx
mov ecx, 0x101327c8
call fcn.1005a090
lea ecx, [esp + 0x10]
mov byte [esp + 0x78], bl
call fcn.100687a0
mov ecx, dword [esp + 0x44]
cmp ecx, ebx
mov dword [esp + 0x78], ebp
je 0x10060bcd
mov al, byte [ecx - 1]
cmp al, bl
je 0x10060bc3
cmp al, 0xff
je 0x10060bc3
dec al
mov byte [ecx - 1], al
jmp 0x10060bcd
dec ecx
push ecx
call fcn.10090902
add esp, 4
mov edx, dword [0x10132800]
mov esi, dword [0x101327e0]
push edx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
call fcn.100a07d7
mov ecx, dword [esi - 4]
add esp, 4
sub ecx, eax
jne 0x10060a68
pop edi
pop ebx
mov ecx, dword [esp + 0x68]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x6c
ret