joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407e3d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
cmp dword [0x448658], 0
jle 0x407e5d
mov eax, dword [0x448658]
jmp 0x407e79
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
mov dword [0x448658], eax
mov eax, dword [0x448658]
jmp 0x407e79
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41cfa7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x41cfce
xor eax, eax
jmp 0x41cfe9
test byte [ebp - 4], 0x10
je 0x41cfe2
mov eax, 1
jmp 0x41cfe4
xor eax, eax
jmp 0x41cfe9
pop edi
pop esi
pop ebx
leave
ret
Function at 0x439f50
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov eax, 0
jne 0x439f6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x439f7d
push eax
call fcn.00440cc0
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x43a030
Capabilities:
Terminate process

Disassembly:
cmp dword [0x44e578], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x43a04e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x44e574], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x44e570], bl
jne 0x43a0a8
cmp dword [0x47e898], 0
je 0x43a096
mov edi, dword [0x47e894]
sub edi, 4
cmp edi, dword [0x47e898]
jb 0x43a096
mov eax, dword [edi]
test eax, eax
je 0x43a08b
call eax
sub edi, 4
cmp edi, dword [0x47e898]
jae 0x43a083
push 0x447030
push 0x447028
call fcn.0043a0e0
add esp, 8
push 0x447038
push 0x447034
call fcn.0043a0e0
add esp, 8
test ebx, ebx
jne 0x43a0cf
mov dword [0x44e578], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret

Function at 0x43a450
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
mov eax, 0
jne 0x43a46c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x43a47f
push eax
call fcn.00440cc0
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x43a880
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
mov eax, 0
jne 0x43a89f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x43a8b2
push eax
call fcn.00440cc0
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x43b5b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x44ea30
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x43b5d7
add eax, 8
inc ecx
cmp eax, 0x44eac0
jb 0x43b5c8
cmp dword [ecx*8 + 0x44ea30], edx
lea ebx, [ecx*8]
jne 0x43b79b
cmp dword [0x44e51c], 1
je 0x43b757
cmp dword [0x44e51c], 0
jne 0x43b60e
cmp dword [0x44e520], 1
je 0x43b757
cmp edx, 0xfc
je 0x43b79b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x43b64b
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x43b68f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x446428
push ebp
call fcn.004395f0
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x446408
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x44ea34]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00442690
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x47d780], 0
je 0x43b76d
mov eax, dword [0x47d780]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x43b777
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x44ea34]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x43bb50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43bb75
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00440cc0
add esp, 4
mov eax, 0xffffffff
ret
test al, 1
je 0x43bb9a
test byte [esp + 8], 2
je 0x43bb9a
mov dword [0x44e530], 0xd
mov dword [0x44e534], 5
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x43bc70
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0x47d880], edx
push ebx
push esi
push edi
push ebp
jbe 0x43be77
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x47d780
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x43be77
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x43bcd9
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x43bcea
push 2
push 0
push edx
call fcn.0043b7b0
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x43bd86
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x43bdbf
lea edi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x43bd4d
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x43bd3b
mov byte [edi], 0xd
inc esi
inc edi
mov byte [edi], al
inc edi
mov eax, edi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x43bd22
lea eax, [esp + 0x24]
push 0
sub edi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push edi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43bdb5
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, edi
jge 0x43bd0d
jmp 0x43bdbf
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43bdb5
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x43bdbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x43be66
cmp dword [esp + 0x10], 0
je 0x43be18
cmp dword [esp + 0x10], 5
jne 0x43bdfb
mov dword [0x44e530], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x44e534], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.00440cc0
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x43be42
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x43be42
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x44e530], 0x1c
mov dword [0x44e534], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x44e530], 9
mov dword [0x44e534], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x43bea0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00439f20
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x1014]
push ebp
cmp dword [0x47d880], esi
jbe 0x43bfed
mov eax, esi
mov ecx, esi
and eax, 0xffffffe7
and ecx, 0x1f
sar eax, 3
mov edx, dword [eax + 0x47d780]
test byte [edx + ecx*8 + 4], 1
je 0x43bfed
push 1
push ebx
push esi
call fcn.0043b7b0
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x43bfdd
push 2
push ebx
push esi
call fcn.0043b7b0
add esp, 0xc
cmp eax, 0xffffffff
je 0x43bfdd
mov ecx, dword [esp + 0x101c]
mov ebp, ecx
sub ebp, eax
test ebp, ebp
jle 0x43bf83
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.0043c200
add esp, 8
mov edi, eax
mov eax, 0x1000
cmp ebp, eax
jge 0x43bf46
mov eax, ebp
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.0043bc70
add esp, 0xc
cmp eax, 0xffffffff
je 0x43bf62
sub ebp, eax
test ebp, ebp
jg 0x43bf3b
jmp 0x43bf77
cmp dword [0x44e534], 5
jne 0x43bf75
mov dword [0x44e530], 0xd
mov ebx, eax
push edi
push esi
call fcn.0043c200
add esp, 8
jmp 0x43bfc0
jge 0x43bfc0
push 0
push ecx
push esi
call fcn.0043b7b0
add esp, 0xc
push esi
call fcn.0043bb00
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x43bfc0
mov dword [0x44e530], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x44e534], eax
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.0043b7b0
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x44e530], 9
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
Function at 0x43d320
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x44ebb8], ebx
jne 0x43d36f
call esi
cmp eax, ebx
mov edi, eax
je 0x43d34d
mov dword [0x44ebb8], 1
jmp 0x43d36f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x43d365
mov dword [0x44ebb8], 2
jmp 0x43d36f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x44ebb8], 1
jne 0x43d41e
test edi, edi
jne 0x43d392
call esi
mov edi, eax
test edi, edi
jne 0x43d392
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x43d3ac
add esi, 2
cmp word [esi], 0
jne 0x43d39a
add esi, 2
cmp word [esi], 0
jne 0x43d39a
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x43d40d
push ebp
call fcn.00439760
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x43d40d
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x43d3fc
push ebx
call fcn.00439810
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x44ebb8], 2
jne 0x43d4a2
test ebx, ebx
jne 0x43d441
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x43d441
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x43d456
inc ebp
cmp byte [ebp], 0
jne 0x43d448
inc ebp
cmp byte [ebp], 0
jne 0x43d448
sub ebp, ebx
inc ebp
push ebp
call fcn.00439760
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x43d47b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x443310
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
cmp dword [esp + 8], 0
push ebx
push esi
push edi
push ebp
je 0x44354e
mov edx, dword [esp + 0x18]
push 0x3d
push edx
call fcn.00444080
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x44354e
cmp ebp, dword [esp + 0x18]
je 0x44354e
cmp byte [ebp + 1], 1
sbb eax, eax
mov ecx, dword [0x44e558]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x44e55c], ecx
jne 0x44336d
push ecx
call fcn.004435c0
add esp, 4
mov dword [0x44e558], eax
cmp dword [0x44e558], 0
jne 0x44341d
cmp dword [esp + 0x1c], 0
je 0x4433a4
cmp dword [0x44e560], 0
je 0x4433a4
call fcn.00440ab0
test eax, eax
je 0x44341d
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [esp + 0x10], 0
je 0x4433b5
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x44e558], 0
jne 0x4433e9
push 4
call fcn.00439760
add esp, 4
mov dword [0x44e558], eax
test eax, eax
jne 0x4433de
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x44e558]
mov dword [eax], 0
cmp dword [0x44e560], 0
jne 0x44341d
push 4
call fcn.00439760
add esp, 4
mov dword [0x44e560], eax
test eax, eax
jne 0x443412
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x44e560]
mov dword [eax], 0
mov esi, dword [0x44e558]
sub ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
push ebp
push edx
call fcn.00443560
add esp, 8
mov edi, eax
test edi, edi
jl 0x443485
cmp dword [esi], 0
je 0x443485
cmp dword [esp + 0x10], 0
je 0x44347c
lea ebx, [esi + edi*4]
mov eax, dword [ebx]
push eax
call fcn.00439810
add esp, 4
cmp dword [ebx], 0
je 0x443469
mov eax, dword [ebx + 4]
add ebx, 4
inc edi
mov dword [ebx - 4], eax
cmp dword [ebx], 0
jne 0x44345a
shl edi, 2
push edi
push esi
call fcn.0043a690
add esp, 8
test eax, eax
je 0x4434cd
jmp 0x4434c8
mov edx, dword [esp + 0x18]
mov dword [esi + edi*4], edx
jmp 0x4434cd
cmp dword [esp + 0x10], 0
jne 0x443544
test edi, edi
jge 0x443496
neg edi
lea eax, [edi*4 + 8]
push eax
push esi
call fcn.0043a690
add esp, 8
test eax, eax
jne 0x4434b8
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
lea ecx, [eax + edi*4]
mov edx, dword [esp + 0x18]
mov dword [ecx], edx
mov dword [ecx + 4], 0
mov dword [0x44e558], eax
cmp dword [esp + 0x1c], 0
je 0x44353a
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00439760
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x44353a
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x10], 1
sbb eax, eax
lea ecx, [ebp + ebx]
mov byte [ecx], 0
lea ecx, [ecx + 1]
and eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.00439810
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x445520
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov ebx, dword [esp + 0x118]
push edi
test ebx, ebx
je 0x445593
push ebx
call fcn.00445650
add esp, 4
test eax, eax
jne 0x445561
xor eax, eax
pop edi
mov dword [0x44e534], 0xf
mov dword [0x44e530], 0xd
pop esi
pop ebx
add esp, 0x10c
ret
add bl, 0x40
lea eax, [esp + 0x10]
mov byte [esp + 0xc], bl
push eax
lea ecx, [esp + 0x18]
lea ebx, [esp + 0x10]
mov byte [esp + 0x11], 0x3a
mov byte [esp + 0x12], 0x2e
mov byte [esp + 0x13], 0
push ecx
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x4455a3
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x445642
inc eax
cmp eax, 0x104
ja 0x445642
mov edx, dword [esp + 0x120]
test edx, edx
jne 0x4455f4
mov ecx, dword [esp + 0x124]
cmp ecx, eax
jg 0x4455cf
mov ecx, eax
push ecx
call fcn.00439760
add esp, 4
mov edx, eax
test edx, edx
jne 0x445613
xor eax, eax
pop edi
mov dword [0x44e530], 0xc
pop esi
pop ebx
add esp, 0x10c
ret
cmp dword [esp + 0x124], eax
jge 0x445613
xor eax, eax
pop edi
mov dword [0x44e530], 0x22
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, edx
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret

Function at 0x445650
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 4
test eax, eax
jne 0x445664
mov eax, 1
add esp, 4
ret
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0x5c
mov byte [esp + 3], 0
add al, 0x40
mov byte [esp], al
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x445696
cmp eax, 1
je 0x445696
mov eax, 1
add esp, 4
ret
xor eax, eax
add esp, 4
ret

Function at 0x4459c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4459f6
cmp byte [esp + 5], 0x3a
jne 0x4459f6
xor eax, eax
mov al, byte [esp + 4]
push eax
call fcn.0043aec0
add esp, 4
lea esi, [eax - 0x40]
mov eax, esi
pop esi
add esp, 0x104
ret
Function at 0x7c851fd0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7c86b708
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x110
push ebx
push esi
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], 1
call fcn.7c85a480
mov eax, dword [0x7c8786b0]
xor ebx, ebx
xor edi, edi
mov ecx, eax
inc eax
mov dword [ebp - 4], ebx
test ecx, ecx
mov byte [ebp - 4], 1
mov dword [0x7c8786b0], eax
jne 0x7c85208c
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x1c]
push edx
push str.LgBClb.dll
call fcn.7c85a590
lea eax, [ebp - 0x120]
push eax
push str.Loading__s
push 0xa
call dword [0x7c8725a0]
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
call dword [0x7c87b234]
cmp eax, ebx
mov dword [0x7c8786ac], eax
jne 0x7c8520af
lea edx, [ebp - 0x120]
push edx
push str.LoadLibrary_on__s_failed
push 0xa
call dword [0x7c8725a0]
add esp, 0xc
mov dword [0x7c8786ac], ebx
mov dword [ebp - 0x14], ebx
push 0x20021260
call dword [0x7c87b230]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.7c85a570
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [0x7c87b22c]
push str.ScBldClbInitialize
push eax
call esi
cmp eax, ebx
mov dword [0x7c878690], eax
jne 0x7c8520cb
mov edi, 1
mov eax, dword [0x7c8786ac]
push str.ScBldClbSetColorStripCount
push eax
call esi
cmp eax, ebx
mov dword [0x7c8786a8], eax
jne 0x7c8520e2
inc edi
mov ecx, dword [0x7c8786ac]
push str.ScBldClbStartOfAStrip
push ecx
call esi
cmp eax, ebx
mov dword [0x7c878698], eax
jne 0x7c8520fa
inc edi
mov edx, dword [0x7c8786ac]
push str.ScBldClbReceiveOneLine
push edx
call esi
cmp eax, ebx
mov dword [0x7c878694], eax
jne 0x7c852112
inc edi
mov eax, dword [0x7c8786ac]
push str.ScBldClbEndOfColorStrip
push eax
call esi
cmp eax, ebx
mov dword [0x7c87869c], eax
jne 0x7c852129
inc edi
mov ecx, dword [0x7c8786ac]
push str.ScBldClbCalcCalibTables
push ecx
call esi
cmp eax, ebx
mov dword [0x7c8786a4], eax
jne 0x7c852141
inc edi
mov edx, dword [0x7c8786ac]
push str.ScBldClbTerminate
push edx
call esi
cmp eax, ebx
mov dword [0x7c8786a0], eax
jne 0x7c852159
inc edi
cmp edi, ebx
je 0x7c85208c
push edi
push str.FAIL_load_function_LgBuildClaib.dll___d_failures_
push ebx
call dword [0x7c8725a0]
add esp, 0xc
mov dword [ebp - 0x14], ebx
push 0x20021261
call dword [0x7c87b230]
jmp 0x7c85208c
Function at 0x7c853f40
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7c86b7f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], esp
push str.Entering_USB_CreatHandleInfo__
push 3
call dword [0x7c8725a0]
add esp, 8
push str.DeviceInfoMutex
push 0
push 0
call dword [0x7c87b258]
test eax, eax
mov dword [0x7c8786e4], eax
jne 0x7c853fbb
call dword [0x7c87b254]
push eax
push str.CreateMutex_handleInfo_FAIL._Last_Error_:__d
push 0xa
call dword [0x7c8725a0]
add esp, 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x13
push 0x7c86d980
push eax
call fcn.7c85fe70
push str.DeviceInfoMappedFile
push 0x50
call fcn.7c85e000
mov ecx, dword [0x7c8786e4]
add esp, 8
mov dword [0x7c8786e0], eax
push 0
push ecx
call dword [0x7c87b250]
test eax, eax
je 0x7c854017
push eax
call fcn.7c85e230
add esp, 4
push 0
push str._d__nb_scanner___USB_CreatHandleInfo__
push 3
mov dword [ebp - 4], 0xffffffff
call dword [0x7c8725a0]
mov ecx, dword [ebp - 0xc]
add esp, 0xc
xor eax, eax
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x7c8786e0]
mov eax, dword [ecx]
test eax, eax
lea edx, [eax + 1]
mov dword [ecx], edx
jne 0x7c85402d
call fcn.7c854620
mov eax, dword [0x7c8786e4]
push eax
call dword [0x7c87b24c]
test eax, eax
jne 0x7c853feb
call dword [0x7c87b254]
push eax
push str.CreatHandleInfo_fail__ReleaseMutex_Last_Error_:__d
push 0
call dword [0x7c8725a0]
add esp, 0xc
jmp 0x7c853feb