joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414f50
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 3
push closesocket
push eax
or edi, 0xffffffff
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414f84
or eax, eax
or edx, esi
pop edi
pop esi
pop ebx
add esp, 0x10
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
cmp eax, 1
jne 0x414f9d
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
add esp, 0x10
ret

Function at 0x414fb0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x118
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.004054f0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x415089
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x415055
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x41502e
cmp word [esp + 0x118], 4
jb 0x415089
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00401148
add esp, 0x120
ret
cmp eax, 2
jae 0x415038
cmp eax, 1
jne 0x415089
mov esi, 3
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00401148
add esp, 0x120
ret
cmp eax, 6
jne 0x415089
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x41507f
mov esi, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00401148
add esp, 0x120
ret
cmp eax, 1
jne 0x415089
mov esi, 5
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00401148
add esp, 0x120
ret

Function at 0x415230
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push 0x423510
mov edi, eax
push 0x83
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4152a3
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebp, eax
mov eax, dword [esp + 0x14]
push esi
mov dword [eax], esi
call fcn.00401fcc
push esi
mov edi, eax
push 0
push edi
call fcn.004054f0
push esi
push ebp
push edi
call fcn.004066a0
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x415f00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x434
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x430], eax
mov eax, dword [esp + 0x438]
push ebp
push esi
push edi
push eax
mov dword [esp + 0x14], ecx
call fcn.00417ba0
add esp, 4
test eax, eax
mov dword [esp + 0xc], eax
jne 0x416116
push 0x206
push eax
lea ecx, [esp + 0x32]
push ecx
mov word [esp + 0x34], ax
call fcn.004054f0
add esp, 0xc
push 0x206
lea edx, [esp + 0x236]
push 0
push edx
mov word [esp + 0x23c], 0
call fcn.004054f0
add esp, 0xc
lea esi, [esp + 0x28]
call fcn.004154c0
push 0x4235dc
mov eax, esi
push 0x104
push eax
call fcn.00401187
add esp, 0xc
xor eax, eax
mov byte [esp + 0x14], 0
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov word [esp + 0x25], ax
mov byte [esp + 0x27], al
mov ebp, 0x4277a8
cmp word [ebp], 0
je 0x416096
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x234]
push 0x104
push edx
call fcn.00401201
add esp, 0xc
push ebp
lea eax, [esp + 0x234]
push 0x104
push eax
call fcn.00401187
lea ecx, [esp + 0x23c]
add esp, 0xc
push ecx
lea edi, [esp + 0x18]
call fcn.00414800
add esp, 4
test eax, eax
je 0x416096
mov eax, 0x14
lea ecx, [ebp + 0x104]
mov edx, edi
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x41602f
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x416017
test eax, eax
je 0x41608c
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x41607e
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x41608c
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x41607e
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x41608c
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x41607e
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x41608c
movzx esi, byte [edx]
movzx edx, byte [ecx]
sub esi, edx
je 0x41608c
test esi, esi
mov eax, 1
jg 0x41608e
or eax, 0xffffffff
jmp 0x41608e
xor eax, eax
test eax, eax
jne 0x416096
mov word [ebp], ax
add ebp, 0x118
cmp ebp, 0x427d20
jl 0x415fb3
mov edi, dword [esp + 0x444]
mov ebp, dword [esp + 0x10]
mov esi, 0x4277a8
cmp word [esi], 0
je 0x4160d5
mov eax, dword [esi + 0x100]
push edi
push ebp
mov ecx, esi
mov dword [0x42779c], eax
call fcn.00417940
add esp, 8
add esi, 0x118
cmp esi, 0x427d20
jl 0x4160b8
push 0x4283e8
lea ecx, [esp + 0x2c]
push 0x104
push ecx
call fcn.00401187
add esp, 0xc
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x416112
mov dword [esp + 0xc], 2
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00401148
add esp, 0x434
ret
Function at 0x417140
Capabilities:
Create thread
Initialize winsock library

Disassembly:
sub esp, 0x3e4
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x3e0], eax
mov eax, dword [esp + 0x3e8]
push edi
push 0
push eax
push 0
push 0
push 0
push closesocket
push 0
push closesocket
push 0xcf0000
push 0x4276d0
push 0x427608
push 0
mov dword [0x427798], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x417314
push 0x206
lea eax, [esp + 0x1de]
push 0
push eax
mov word [esp + 0x1e4], 0
call fcn.004054f0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 1
mov edi, 0x427f58
call fcn.0040e0f0
add esp, 4
test eax, eax
jne 0x4172c9
push 0x3a
push eax
lea edx, [esp + 0x1a6]
push edx
mov word [esp + 0x1a8], ax
call fcn.004054f0
add esp, 0xc
lea edi, [esp + 0x19c]
call fcn.00415cc0
xor eax, eax
jmp 0x417210
movzx ecx, word [esp + eax + 0x19c]
mov word [eax + 0x428100], cx
add eax, 2
test cx, cx
jne 0x417210
push 0x423328
push 0x40
push 0x427f5c
call fcn.00401201
add esp, 0xc
push 0x423344
push 0x10
push 0x427fde
mov word [0x427fdc], 0x51
call fcn.00401201
add esp, 0xc
push 0x423350
push 0x40
push 0x427ffe
call fcn.00401201
add esp, 0xc
mov word [0x42807e], 0x2b66
xor eax, eax
jmp 0x417280
movzx ecx, word [esp + eax + 0x19c]
mov word [eax + 0x4280e0], cx
add eax, 2
test cx, cx
jne 0x417280
mov eax, 0x4280e0
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4172a0
mov ecx, dword [0x42336c]
mov dx, word [0x423370]
mov dword [eax], ecx
mov word [eax + 4], dx
mov dword [0x428120], 5
call fcn.00416e70
lea edi, [esp + 0x1d8]
call fcn.00415cc0
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x1d8]
mov word [eax + 0x428158], cx
add eax, 2
test cx, cx
jne 0x4172e0
push 0x428158
push 0
push 0x20000
call dword [sym.imp.KERNEL32.DLL_OpenEventW]
test eax, eax
je 0x41732c
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop edi
mov ecx, dword [esp + 0x3e0]
xor ecx, esp
call fcn.00401148
add esp, 0x3e4
ret
push 0x428158
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
test eax, eax
je 0x417314
mov ecx, 0x4285f0
call fcn.00416fb0
mov eax, dword [0x428124]
push 0
push 0
push 0
push 0x415c00
push 0
push 0
mov dword [0x4285f8], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ecx, dword [esp + 0x3e4]
pop edi
mov dword [0x426660], eax
xor ecx, esp
mov eax, 1
call fcn.00401148
add esp, 0x3e4
ret
Function at 0x417390
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push ebx
mov edi, eax
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4173c3
mov eax, ebx
call fcn.00414f50
cmp eax, edi
jne 0x4173c3
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0x200000
call fcn.00401743
mov ebp, eax
mov eax, dword [esp + 0x28]
add esp, 4
push ebp
push eax
lea edx, [esp + 0x1c]
mov ecx, edi
mov dword [esp + 0x1c], 0x200000
call fcn.00418070
add esp, 8
test eax, eax
je 0x41748e
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
call fcn.00401d14
add esp, 4
call fcn.00401d21
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul qword [0x423618]
fmul qword [0x423640]
fadd qword [0x423638]
call fcn.00418310
mov esi, dword [esp + 0x14]
lea ebx, [esi + ebp]
mov edi, eax
call fcn.00414e60
add edi, esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
call fcn.0040dfa0
mov esi, eax
cmp esi, 0xffffffff
je 0x41748c
push ebx
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
neg eax
sbb eax, eax
and eax, dword [esp + 0x18]
cmp eax, edi
jne 0x41746b
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp ebx, 1
jne 0x41748c
push ebp
mov esi, ebx
call fcn.00401d43
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor esi, esi
push ebp
call fcn.00401d43
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x417730
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x4276d0
push 0x67
push esi
call edi
push 0x64
push 0x427608
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00416f20
mov eax, dword [ebp + 0x10]
mov edx, 0x4281d8
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x417780
call fcn.00414fb0
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x7d0
mov dword [0x4260c0], eax
call edi
call fcn.00416380
test eax, eax
je 0x4177bc
call fcn.00414cb0
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
push esi
call fcn.00417140
add esp, 4
test eax, eax
jne 0x4177df
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
call fcn.00401148
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push 0x206
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call fcn.004054f0
mov eax, dword [0x427e20]
add esp, 0xc
test eax, eax
jbe 0x417832
cmp word [0x427e24], 0
jbe 0x417832
push eax
mov esi, 0x426668
call fcn.004150b0
mov cx, word [0x427e24]
add esp, 4
mov word [0x426678], cx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edx, eax
mov eax, 0x10624dd3
mul edx
mov eax, edx
xor edx, edx
shr eax, 6
mov ecx, 0x3e8
div ecx
push edx
push 0x422fc4
mov edx, 0x4283e8
call fcn.00401000
call fcn.00416130
lea esi, [esp + 0x10]
call fcn.004154c0
push 0x422fdc
mov edx, esi
push 0x104
push edx
call fcn.00401187
add esp, 0x14
push 0x4283e8
mov eax, esi
push 0x104
push eax
call fcn.00401187
add esp, 0xc
mov ecx, esi
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4178c2
push 0x1f4
call edi
push 1
push 0
push 0x422fe0
mov edx, esi
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call edi
call fcn.004174b0
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x417da0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, eax
xor ebp, ebp
cmp esi, 0xffffffff
push edi
mov dword [esp + 0x14], ebp
je 0x417fc2
push 0x400
call fcn.00401fcc
add esp, 4
push 0x400
mov ebx, eax
push ebp
push ebx
mov dword [esp + 0x24], ebx
call fcn.004054f0
add esp, 0xc
push esi
call fcn.00414960
add esp, 4
push ebx
push eax
call fcn.00414c50
add esp, 8
test eax, eax
je 0x417fb5
lea edi, [ebx + 4]
mov eax, 4
mov ecx, 0x422150
mov edx, edi
mov ebp, dword [edx]
cmp ebp, dword [ecx]
jne 0x417e1c
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x417e04
test eax, eax
je 0x417e85
movzx ebp, byte [ecx]
movzx ebx, byte [edx]
sub ebx, ebp
jne 0x417e6b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x417e81
movzx ebp, byte [ecx]
movzx ebx, byte [edx]
sub ebx, ebp
jne 0x417e6b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x417e81
movzx ebp, byte [ecx]
movzx ebx, byte [edx]
sub ebx, ebp
jne 0x417e6b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x417e81
movzx eax, byte [ecx]
movzx ebx, byte [edx]
sub ebx, eax
je 0x417e81
mov ebp, dword [esp + 0x14]
test ebx, ebx
mov ebx, dword [esp + 0x18]
mov eax, 1
jg 0x417e8b
or eax, 0xffffffff
jmp 0x417e8b
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
xor eax, eax
test eax, eax
jne 0x417eb5
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
jmp 0x417ea0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417ea0
sub eax, edx
sar eax, 1
jne 0x417fa1
lea ecx, [esp + 0x1c]
push ecx
xor eax, eax
lea edx, [esp + 0x1c]
push edx
push 0x400
push ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
push esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], 0x3c00
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x417fb5
mov eax, 4
mov ecx, 0x422158
mov edx, edi
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x417f1e
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x417f06
test eax, eax
je 0x417f7b
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x417f6d
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x417f7b
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x417f6d
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x417f7b
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x417f6d
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x417f7b
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x417f7b
test esi, esi
mov eax, 1
jg 0x417f7d
or eax, 0xffffffff
jmp 0x417f7d
xor eax, eax
test eax, eax
jne 0x417fb5
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417f90
sub eax, edx
sar eax, 1
je 0x417fb5
mov edi, dword [esp + 0x34]
mov ecx, 0x8d
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ebp, 1
test ebx, ebx
je 0x417fc2
push ebx
call fcn.00401dd1
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x417fd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push 0x206
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call fcn.004054f0
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
movzx edx, word [esp + 8]
sub edx, 0x41
lea ebx, [esp + 4]
call fcn.00414aa0
mov ebx, dword [esp + 4]
call fcn.00414ba0
cmp eax, 0xffffffff
jne 0x41804f
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00401148
add esp, 0x218
ret
push esi
call fcn.00417da0
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.00401148
add esp, 0x218
ret
Function at 0x10006450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100064a9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100064a9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1000649a
cmp esi, edx
jae 0x100064a9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10006488
cmp esi, edx
jae 0x100064a9
cmp word [esi], 0
je 0x100064a9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x1000b3e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x101302a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
test eax, eax
je 0x1000b4b0
push 0x208
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.100bf410
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.nBench_AIBenchmark.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000b4b0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 8], eax
test eax, eax
je 0x1000b4b0
push str.CreateAiMarkResDownload
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 4], eax
test eax, eax
je 0x1000b4b0
call eax
mov ecx, eax
mov dword [esi + 0xc], ecx
test ecx, ecx
je 0x1000b498
mov edx, dword [ecx]
push esi
call dword [edx]
mov ecx, dword [esi + 0xc]
xor eax, eax
test ecx, ecx
pop esi
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10084321
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.10084321
mov esp, ebp
pop ebp
ret 4
Function at 0x1000c8e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e8163
mov eax, dword fs:[0]
push eax
mov eax, 0x40dc
call fcn.10084470
mov eax, dword [0x101302a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x404c], ebx
mov dword [ebp - 0x4044], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
push 0x4000
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x4010]
push eax
mov dword [ebp - 0x4044], 1
call fcn.100bf410
add esp, 0xc
mov dword [ebp - 0x4048], 0x2000
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1000c970
mov eax, dword [esi]
lea ecx, [ebp - 0x4048]
push ecx
lea ecx, [ebp - 0x4010]
push ecx
lea ecx, [ebp - 0x4050]
push ecx
push str.token
push eax
push dword [esi + 0x18]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x1000ca79
call fcn.100832b0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1000caa0
push 0x63
push str.d:jenkins.jenkinsworkspacemaster_lucomputerz_cncompuerz_cnludashi_srccommon_token_helper.cc
lea ecx, [ebp - 0x4040]
mov dword [ebp - 0x4030], eax
mov dword [ebp - 0x402c], 0xf
mov byte [ebp - 0x4040], al
call fcn.10006560
push 3
push 0x100f9f78
lea ecx, [ebp - 0x4028]
mov dword [ebp - 4], 1
mov dword [ebp - 0x4018], 0
mov dword [ebp - 0x4014], 0xf
mov byte [ebp - 0x4028], 0
call fcn.10006560
mov byte [ebp - 4], 2
call fcn.100832b0
mov edi, eax
lea ecx, [ebp - 0x40e8]
push 0x76
lea eax, [ebp - 0x4040]
push eax
lea eax, [ebp - 0x4028]
push eax
call fcn.10007140
mov esi, eax
push str.read_regedit_failed
push esi
mov byte [ebp - 4], 3
call fcn.10007e70
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x40e8]
call fcn.10007fa0
lea ecx, [ebp - 0x4028]
call fcn.10005340
lea ecx, [ebp - 0x4040]
call fcn.10005340
jmp 0x1000caa0
lea ecx, [ebp - 0x4010]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000ca82
sub ecx, edx
lea eax, [ebp - 0x4010]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.1000b7b0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10084321
mov esp, ebp
pop ebp
ret 4
Function at 0x1000d380
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x101302a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x54]
push 0x50
push 0
push eax
mov esi, ecx
call fcn.100bf410
add esp, 0xc
lea eax, [ebp - 0x54]
push dword [esi]
push 0x28
push eax
push 0x100f88d8
push str.latest_auth_score
push dword [0x1012e05c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x54]
push eax
push dword [edi]
call fcn.100c5c72
mov ecx, dword [ebp - 4]
add esp, 8
neg eax
sbb eax, eax
xor ecx, ebp
pop edi
inc eax
pop esi
call fcn.10084321
mov esp, ebp
pop ebp
ret 4
Function at 0x10010510
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x101302a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 1
test esi, esi
jne 0x10010543
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10084321
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10010531
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10010553
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x10010531
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.100bf410
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.100bf410
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
add esp, 0x18
push esi
push eax
call edi
push 0x100fa6a8
lea eax, [ebp - 0x414]
push eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100105ca
test al, 1
je 0x100105ca
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x1001070c
lea ecx, [ebp - 0x664]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x10010700
test byte [ebp - 0x664], 0x10
je 0x1001067b
cmp word [ebp - 0x638], 0x2e
jne 0x1001063a
mov ax, word [ebp - 0x636]
test ax, ax
je 0x100106e5
cmp ax, 0x2e
jne 0x1001063a
cmp word [ebp - 0x634], 0
je 0x100106e5
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.100bf410
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call edi
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call fcn.10010510
add esp, 4
jmp 0x100106e5
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.100bf410
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call edi
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100106d2
test al, 1
je 0x100106d2
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
and ebx, eax
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10010603
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
and eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10084321
mov esp, ebp
pop ebp
ret