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

Disassembly:
push 0xffffffffffffffff
push 0xb989fb
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 0xb84002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00b87dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xb84002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00b7f6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00b8820b
push 0x10
call fcn.00b881d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xb83fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00b741c0
jmp 0xb83fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00b83b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xb83ff0
mov ecx, edi
call fcn.00b742c0
push edi
call fcn.00b881c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xb84021
inc ebx
cmp ebx, 0x20
jb 0xb83f3e
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 0xb85250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xb99808
push 0xb89288
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 0xb85329
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 0xb85329
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.00b881d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xb85329
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 0xb85329
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 0xb8532c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00b85351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xb85d20
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 0xb85d58
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 0xb85d60
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 0xb85d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xb85d94
push eax
push esi
call fcn.00b8820b
add esp, 8
pop esi
ret 0x10

Function at 0xb85da0
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 0xb85e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xb85e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xb9e320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00b87dff
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 0xb85dda
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 0xb85e30
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 0xb85ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xb85eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xb9e320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00b87dff
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 0xb85eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xb85e6a
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 0xb86000
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 0xb86131
push esi
call fcn.00b89145
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.00b78080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xb86131
push 0
push ebp
call fcn.00b783a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00b78260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xb8608b
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.00b782f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xb86121
push 0xb9e918
push edi
call fcn.00b873f0
push eax
push ebx
push esi
call fcn.00b85f60
push 0xb9e8f8
push edi
call fcn.00b873f0
push eax
push ebx
push esi
call fcn.00b85f60
push 0xb9e8d8
push edi
call fcn.00b873f0
push eax
push ebx
push esi
call fcn.00b85f60
push 0xb9e8c0
push edi
call fcn.00b873f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00b85f60
push 0xb9e8a0
push edi
call fcn.00b873f0
push eax
push ebx
push esi
call fcn.00b85f60
push 0xb9e888
push edi
call fcn.00b873f0
push eax
push ebx
push esi
call fcn.00b85f60
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 0xb871b0
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.00b87140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00b87140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00b87140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00b87140
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 0xb87bfa
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 0xb87c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xb9987c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xb87c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xb87c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x2f4a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x31b010]
push edi
push 0x3249e8
call esi
push 0x3249e8
call esi
push 0x3249e8
call esi
push 0x3249e8
call esi
push 0x3249e8
call esi
mov edi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
push 0
call 0xb402d5
nop
push eax
nop
call 0x778ee026
mov ebx, eax
push 0x3249e8
mov dword [ebp - 4], ebx
call esi
push 0x3249e8
call esi
push 0x3249e8
call esi
push 0x3249e8
call esi
push 0x3249e8
call esi
push 0x3249e8
mov byte [ebx + edi], 0
call esi
push 0x3249e8
call esi
push 0x3249e8
call esi
push 0x3249e8
call esi
push 0x3249e8
call esi
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0x2f4b7a
mov eax, dword [ebp + 8]
sub eax, ebx
mov dword [ebp - 8], eax
push 0x3249e8
call esi
push 0x3249e8
call esi
push 0x3249e8
call esi
push 0x3249e8
call esi
push 0x3249e8
call esi
mov ecx, dword [ebp + 0xc]
push ecx
add ebx, edi
call 0x759f43d3
nop
mov ecx, eax
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [ebp + 0xc]
add esp, 4
push 0x3249e8
mov cl, byte [edx + eax]
mov edx, dword [ebp - 8]
xor cl, byte [edx + ebx]
mov byte [ebx], cl
call esi
push 0x3249e8
call esi
push 0x3249e8
call esi
push 0x3249e8
call esi
push 0x3249e8
call esi
mov ebx, dword [ebp - 4]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x2f4b06
push 0x3249e8
call esi
push 0x3249e8
call esi
push 0x3249e8
call esi
push 0x3249e8
call esi
push 0x3249e8
call esi
lea eax, [ebp - 0xc]
push eax
push 0x100
push 4
push ebx
mov dword [ebp - 0xc], 0
call 0xb402da
nop
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x2f6ef0
Capabilities:
Parse pe header

Disassembly:
cmp dword [ebx + 4], 0x40
jb 0x2f6f91
mov eax, dword [ebx]
push 0x40
push eax
push esi
nop
call 0x759e9910
mov ecx, 0x5a4d
add esp, 0xc
cmp word [esi], cx
jne 0x2f6fc0
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x2f6fc0
lea edx, [eax + 0xf8]
cmp edx, dword [ebx + 4]
ja 0x2f6f91
mov ecx, dword [ebx]
push edi
push pe_nt_image_headers32
add ecx, eax
push ecx
lea edi, [esi + 0x40]
push edi
call 0x759e9910
nop
add esp, 0xc
cmp dword [edi], 0x4550
pop edi
jne 0x2f6fc0
mov edx, 0x10b
cmp word [esi + 0x58], dx
jne 0x2f6fc0
movzx eax, word [esi + 0x46]
test ax, ax
je 0x2f6fc0
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push 8
mov dword [esi + 0x140], eax
call dword [fcn.005290f4]
push eax
call dword [fcn.00529088]
mov dword [esi + 0x138], eax
test eax, eax
jne 0x2f6f97
mov eax, 3
ret
mov eax, 1
ret
movzx ecx, word [esi + 0x54]
mov edx, dword [esi + 0x3c]
lea ecx, [ecx + edx + 0x18]
mov edx, dword [esi + 0x140]
push ebx
push edx
push ecx
push eax
mov dword [esi + 0x13c], ecx
call fcn.002f7590
add esp, 0x10
neg eax
sbb eax, eax
inc eax
ret
mov eax, 2
ret
Function at 0x7eeaf0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [0x5290e0]
test esi, esi
jne 0x7eeb08
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x7eeb01
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x7eeb01
mov eax, dword [eax + esi + 0x78]
mov ecx, dword [eax + esi + 0x1c]
add eax, esi
add ecx, esi
push ebx
mov ebx, dword [eax + 0x20]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
push edi
add ecx, esi
add ebx, esi
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x7eeb6a
jmp 0x7eeb50
mov eax, dword [ebx + edi*4]
mov ecx, dword [0x528bf0]
add eax, esi
call fcn.007ec610
test eax, eax
je 0x7eeb73
inc edi
cmp edi, dword [ebp - 4]
jb 0x7eeb50
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + edi*2]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
pop edi
pop ebx
add eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x50baf0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xae000]
push edi
or ebp, 0xffffffff
jmp 0x50bb12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50bb19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50bb08
mov eax, 1
add ebx, ebx
jne 0x50bb2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50bb3c
jne 0x50bb5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50bb5b
dec eax
add ebx, ebx
jne 0x50bb48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x50bb20
add ebx, ebx
jne 0x50bb57
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x50bbad
xor ecx, ecx
sub eax, 3
jb 0x50bb73
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50bbe2
sar eax, 1
mov ebp, eax
jmp 0x50bb7e
add ebx, ebx
jne 0x50bb7e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50bb4c
inc ecx
add ebx, ebx
jne 0x50bb8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50bb4c
add ebx, ebx
jne 0x50bb99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50bb8e
jne 0x50bbaa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50bb8e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50bbcc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50bbbe
jmp 0x50bb0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50bbcc
add edi, ecx
jmp 0x50bb0e
pop esi
mov edi, esi
mov ecx, 0x3696
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50bbea
cmp byte [edi], 0x13
jne 0x50bbea
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 al, bl
loop 0x50bbef
lea edi, [esi + 0x108000]
mov eax, dword [edi]
or eax, eax
je 0x50bc5e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10cb64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10cc58]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50bc1c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x10cc60]
or eax, eax
je 0x50bc58
mov dword [ebx], eax
add ebx, 4
jmp 0x50bc39
call dword [esi + 0x10cc5c]
mov ebp, dword [esi + 0x10cc64]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x50bc92
sub esp, 0xffffff80
jmp 0x4862b8
Function at 0x401c70
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x67c
mov eax, dword [0x418014]
xor eax, esp
mov dword [esp + 0x678], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [esp + 0x468]
push esi
push edi
push ecx
push 0x104
push eax
mov esi, edx
mov dword [ebx + 8], 0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea eax, [esp + 0x470]
push esi
push eax
call dword [sym.imp.mketools.dll_MkeCatPathStr]
add esp, 8
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401dc6
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop word [eax + eax]
mov ecx, 0x40ea10
lea eax, [esp + 0x3c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401d26
test dx, dx
je 0x401d22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401d26
add eax, 4
add ecx, 4
test dx, dx
jne 0x401d00
xor eax, eax
jmp 0x401d2b
sbb eax, eax
or eax, 1
test eax, eax
je 0x401d98
mov eax, 0x40ea14
lea ecx, [esp + 0x3c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x401d5e
test dx, dx
je 0x401d5a
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x401d5e
add ecx, 4
add eax, 4
test dx, dx
jne 0x401d38
xor eax, eax
jmp 0x401d63
sbb eax, eax
or eax, 1
test eax, eax
je 0x401d98
test byte [esp + 0x10], 0x10
jne 0x401d98
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x264]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea eax, [esp + 0x260]
mov ecx, ebx
push eax
call fcn.00403240
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x401cf0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x678]
xor ecx, esp
call fcn.0040c38d
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x684]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c38d
mov esp, ebp
pop ebp
ret
Function at 0x401de0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x67c
mov eax, dword [0x418014]
xor eax, esp
mov dword [esp + 0x678], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [esp + 0x468]
push esi
push edi
push ecx
push 0x104
push eax
mov esi, edx
mov dword [ebx + 8], 0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea eax, [esp + 0x470]
push esi
push eax
call dword [sym.imp.mketools.dll_MkeCatPathStr]
add esp, 8
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401f32
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop word [eax + eax]
mov ecx, 0x40ea10
lea eax, [esp + 0x3c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401e96
test dx, dx
je 0x401e92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401e96
add eax, 4
add ecx, 4
test dx, dx
jne 0x401e70
xor eax, eax
jmp 0x401e9b
sbb eax, eax
or eax, 1
test eax, eax
je 0x401f04
mov ecx, 0x40ea14
lea eax, [esp + 0x3c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401ece
test dx, dx
je 0x401eca
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401ece
add eax, 4
add ecx, 4
test dx, dx
jne 0x401ea8
xor eax, eax
jmp 0x401ed3
sbb eax, eax
or eax, 1
test eax, eax
je 0x401f04
test byte [esp + 0x10], 0x10
je 0x401f04
xor eax, eax
movzx ecx, word [esp + eax + 0x3c]
lea eax, [eax + 2]
mov word [esp + eax + 0x25e], cx
test cx, cx
jne 0x401ee0
lea eax, [esp + 0x260]
mov ecx, ebx
push eax
call fcn.00403240
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x401e60
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x678]
xor ecx, esp
call fcn.0040c38d
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x684]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c38d
mov esp, ebp
pop ebp
ret
Function at 0x401fe0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
push str._NSplySumDataMan__Inspection_process_information_data_file_name___s__n
mov dword [ebp - 4], ecx
xor edi, edi
call dword [sym.imp.mketools.dll_MkeTlTraceLevel4]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402024
push str._NSplySumDataMan___ERR__No_inspection_process_information_data_file_n
call dword [sym.imp.mketools.dll_MkeTlTraceLevel0]
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x40ed74
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x402054
push esi
push str._NSplySumDataMan___ERR__Failed_in_opening_inspection_process_information_data_file___s__n
call dword [sym.imp.mketools.dll_MkeTlTraceLevel0]
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp - 4]
push ebx
add esi, 0x27c
push 0x1000
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetws]
add esp, 0xc
test eax, eax
je 0x4020bb
movzx eax, word [esi]
cmp eax, 0xa
je 0x4020a7
cmp eax, 0x23
je 0x4020a7
push str.DateTime
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
add esp, 8
test eax, eax
je 0x402098
mov edi, 1
jmp 0x4020a7
test edi, edi
je 0x4020a7
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
call fcn.004020d0
push ebx
push 0x1000
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetws]
add esp, 0xc
test eax, eax
jne 0x402071
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x403450
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x418014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x210]
push esi
mov esi, ecx
push edi
mov dword [esi + 0x28], eax
mov ecx, dword [0x418e58]
sub edx, ecx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x403480
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.mketools.dll_MkeCutTermBSFromPathStr]
lea eax, [ebp - 0x210]
push eax
push 0x40fe5c
lea eax, [esi + 0x30]
push 0x104
push eax
call fcn.004033f0
lea eax, [ebp - 0x210]
push eax
push str._sSupplySum.log.bak
lea eax, [esi + 0x23c]
push 0x104
push eax
call fcn.004033f0
lea eax, [ebp - 0x210]
push eax
push str._s_versioninfo.log
lea eax, [esi + 0x448]
push 0x104
push eax
call fcn.004033f0
lea eax, [ebp - 0x210]
push eax
push str._s_versioninfo.log.bak
lea eax, [esi + 0x654]
push 0x104
push eax
call fcn.004033f0
mov ecx, dword [0x418e58]
lea edi, [esi + 0x1090]
add esp, 0x44
mov edx, edi
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x403520
push str.LOGBACK
push edi
call dword [sym.imp.mketools.dll_MkeCatPathStr]
push edi
push 0x40fe5c
lea eax, [esi + 0x860]
push 0x104
push eax
call fcn.004033f0
push edi
push str._sSupplySum.log.bak
lea eax, [esi + 0xa6c]
push 0x104
push eax
call fcn.004033f0
push edi
push str._s_versioninfo.log
lea eax, [esi + 0xc78]
push 0x104
push eax
call fcn.004033f0
push edi
push str._s_versioninfo.log.bak
lea eax, [esi + 0xe84]
push 0x104
push eax
call fcn.004033f0
add esp, 0x48
mov dword [ebp - 0x21c], 0xc
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [0x418e58]
lea edi, [esi + 0x129c]
mov edx, edi
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x4035d6
push str.OLDLOG
push edi
call dword [sym.imp.mketools.dll_MkeCatPathStr]
mov eax, dword [esi + 0x28]
add esp, 8
cmp dword [eax + 0x10], 0
jle 0x403638
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0xc
push eax
push edi
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [esi + 0x28]
mov ecx, esi
push dword [eax + 0x10]
call fcn.00403650
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0040c38d
mov esp, ebp
pop ebp
ret 4