joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10049fa0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x100e86d0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x10144930]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
test edi, edi
je 0x1004a0e9
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10049ff0
sub eax, edx
sar eax, 1
je 0x1004a0e9
push 0x800
push 0
lea eax, [ebp]
push eax
call fcn.100c7d20
add esp, 0xc
mov eax, edi
lea ecx, [ebp]
call fcn.10008bf0
mov ecx, 0x1011aeb0
lea edx, [ebp]
call fcn.10045f90
mov ecx, 0x1011aeb0
lea edx, [ebp]
call fcn.10046140
lea ecx, [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1004a0e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x1004a086
lea edx, [ebp]
push edx
push str.Delete_File____s_
mov ecx, esi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 8
mov dword [ebp - 0x18], esi
push 0x1012ac78
lea eax, [ebp - 0x18]
push eax
call fcn.100c80ad
sub eax, 2
je 0x1004a0db
sub eax, 3
je 0x1004a0b6
lea ecx, [ebp]
sub eax, 0x1b
je 0x1004a0c8
push ecx
push str.Delete_File____s_
mov ecx, esi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x1004a12c
push 0x80
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp]
call fcn.1004a7c0
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x1004a12c
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x1004a12c
mov eax, 0x57
jmp 0x1004a12e
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.100c59be
add ebp, 0x804
mov esp, ebp
pop ebp
ret
Function at 0x1004a160
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e9590
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1a68
call fcn.100c8100
mov eax, dword [0x10144930]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov edi, 1
mov dword [ebp - 4], 0
test esi, esi
je 0x1004a398
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1004a1b2
sub eax, edx
sar eax, 1
je 0x1004a398
push 0x800
push 0
lea eax, [ebp - 0x818]
push eax
call fcn.100c7d20
add esp, 0xc
mov eax, esi
lea ecx, [ebp - 0x818]
call fcn.10008bf0
mov ecx, 0x1011aeb0
lea edx, [ebp - 0x818]
call fcn.10045f90
mov ecx, 0x1011be78
lea edx, [ebp - 0x818]
call fcn.10046140
push 0x800
push 0
lea ecx, [ebp - 0x1818]
push ecx
call fcn.100c7d20
add esp, 0xc
lea edx, [ebp - 0x818]
push edx
push str._s.
lea edx, [ebp - 0x1818]
call fcn.10005c50
add esp, 8
lea eax, [ebp - 0x1a68]
push eax
lea ecx, [ebp - 0x1818]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov ebx, dword [ebp + 0xc]
cmp esi, 0xffffffff
je 0x1004a367
lea eax, [ebp - 0x1a3c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1004a265
sub eax, edx
sar eax, 1
cmp eax, 2
jne 0x1004a294
mov eax, 0x2e
cmp word [ebp - 0x1a3c], ax
jne 0x1004a294
cmp word [ebp - 0x1a3a], ax
je 0x1004a34a
lea eax, [ebp - 0x1a3c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1004a2a0
sub eax, edx
sar eax, 1
cmp eax, 1
jne 0x1004a2c2
cmp word [ebp - 0x1a3c], 0x2e
je 0x1004a34a
push 0x800
push 0
lea edx, [ebp - 0x1018]
push edx
call fcn.100c7d20
add esp, 0xc
lea eax, [ebp - 0x1a3c]
push eax
lea ecx, [ebp - 0x818]
push ecx
push 0x101093f0
lea edx, [ebp - 0x1018]
call fcn.10005c50
add esp, 0xc
test byte [ebp - 0x1a68], 0x10
je 0x1004a33f
test bl, bl
je 0x1004a33f
push ebx
lea edx, [ebp - 0x1018]
push edx
call fcn.1004a160
add esp, 8
mov edi, eax
mov dword [ebp - 0x1a6c], edi
test edi, edi
je 0x1004a34a
lea eax, [ebp - 0x1018]
push eax
push str.Delete_Directory_:__s_
mov ecx, edi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 8
jmp 0x1004a34a
lea ecx, [ebp - 0x1018]
call fcn.10049fa0
lea ecx, [ebp - 0x1a68]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1004a253
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [ebp - 0x818]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x1004a38f
lea eax, [ebp - 0x818]
push eax
call fcn.1004a410
add esp, 4
mov edi, eax
mov dword [ebp - 0x1a6c], edi
mov dword [ebp - 4], 0xffffffff
jmp 0x1004a3e7
mov eax, 0x57
jmp 0x1004a3e9
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100c59be
mov esp, ebp
pop ebp
ret
Function at 0x1004a7c0
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.100c8100
push 0xffffffffffffffff
push 0x100e7550
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10144930]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x1004a946
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1004a817
sub eax, edx
sar eax, 1
je 0x1004a946
push 0x5c
push edi
call fcn.100c747a
add esp, 8
mov esi, eax
cmp esi, ebx
je 0x1004a946
push 0x800
push ebx
lea eax, [ebp]
push eax
call fcn.100c7d20
add esp, 0xc
lea ecx, [ebp]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1004a87d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
push 0x1012ac78
lea edx, [ebp - 0x1c]
push edx
call fcn.100c80ad
push 0x800
push ebx
lea eax, [ebp + 0x800]
push eax
call fcn.100c7d20
add esp, 0xc
lea ecx, [ebp + 0x800]
push ecx
push ebx
add esi, 2
push esi
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x1004a8c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
push 0x1012ac78
lea eax, [ebp - 0x24]
push eax
call fcn.100c80ad
push 3
lea ecx, [ebp + 0x800]
push ecx
push edi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call esi
test eax, eax
jne 0x1004a8f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
push 0x1012ac78
lea edx, [ebp - 0x20]
push edx
call fcn.100c80ad
push 4
push ebx
lea eax, [ebp + 0x800]
push eax
call esi
test eax, eax
jne 0x1004a917
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
push 0x1012ac78
lea ecx, [ebp - 0x18]
push ecx
call fcn.100c80ad
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.100c59be
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
mov eax, 0x57
jmp 0x1004a921
Function at 0x1004a9a0
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.100c8100
push 0xffffffffffffffff
push 0x100e7520
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10144930]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x100c]
mov dword [ebp - 0x24], ecx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], 0x5c
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x1004ab55
mov ecx, eax
lea esi, [ecx + 2]
jmp 0x1004aa10
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x1004aa10
sub ecx, esi
sar ecx, 1
je 0x1004ab55
lea ecx, [ebp]
call fcn.10008bf0
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp]
push ecx
call fcn.100c6afd
add esp, 0xc
cmp eax, edi
je 0x1004ab26
lea ecx, [ebp + 0x800]
call fcn.10008bf0
push 0x3ff
push 0x1011c158
push 0x400
lea edx, [ebp + 0x800]
push edx
call fcn.100c6978
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
push edi
call fcn.100c6afd
add esp, 0x1c
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, edi
je 0x1004ab23
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x1004aa93
sub ecx, esi
sar ecx, 1
je 0x1004ab23
push eax
push 0x400
lea edx, [ebp + 0x800]
push edx
call fcn.100c6a59
push 0x1011c158
push 0x400
lea eax, [ebp + 0x800]
push eax
call fcn.100c6a59
add esp, 0x18
push edi
lea ecx, [ebp + 0x800]
push ecx
call ebx
test eax, eax
je 0x1004ab02
mov ecx, dword [ebp - 0x24]
cmp ecx, edi
je 0x1004aaef
lea edx, [ebp + 0x800]
call fcn.1004acb0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
push edi
call fcn.100c6afd
add esp, 0xc
jmp 0x1004aa86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp eax, 0xb7
je 0x1004aaef
mov dword [ebp - 0x20], eax
push 0x1012ac78
lea edx, [ebp - 0x20]
push edx
call fcn.100c80ad
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.100c59be
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
mov eax, 0x57
jmp 0x1004ab30
Function at 0x100507f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100e5eaa
mov eax, dword fs:[0]
push eax
mov eax, dword [0x10144930]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov byte [eax], cl
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [esp + 0xc], ecx
mov byte [eax + 0xc], cl
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov byte [esp + 0xc], 1
mov byte [eax + 0x18], cl
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov byte [esp + 0xc], 2
mov byte [eax + 0x24], cl
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov byte [esp + 0xc], 3
mov byte [eax + 0x30], cl
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov byte [esp + 0xc], 4
mov byte [eax + 0x3c], cl
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov byte [esp + 0xc], 5
mov byte [eax + 0x48], cl
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4

Function at 0x10050b00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov byte [ecx + 0xeedc], 1
jmp fcn.100be578
Function at 0x10051910
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x100e5e38
mov eax, dword fs:[0]
push eax
mov eax, dword [0x10144930]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
mov dword [eax], vtable.Gdiplus::Image.0
xor ecx, ecx
mov dword [esp + 0xc], ecx
fld1
fst qword [eax + 0x50]
mov dword [eax], vtable.CImageEX.0
fstp qword [eax + 0x58]
mov dword [eax + 0x24], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0x30], ecx
mov byte [eax + 0x48], cl
mov dword [eax + 0x18], ecx
mov dword [eax + 0x44], ecx
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4

Function at 0x10051be0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e7320
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10144930]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x18], 1
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x10051d02
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10051c30
sub eax, edx
sar eax, 1
je 0x10051d02
mov ecx, dword [ebp + 8]
call fcn.10051d50
test edi, edi
je 0x10051c8b
push 0x1011c9ac
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x10051c8b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
test eax, eax
jbe 0x10051c8b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
jne 0x10051ccb
push 0x1011c9ac
mov eax, dword [ebp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x10051cc7
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
test eax, eax
jbe 0x10051cc7
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x10051ce4
push ebx
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
mov edx, esi
call fcn.10051e00
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x10051ce4
mov byte [esi + 0x48], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10054140
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x100ec300
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x10144930]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp dword [edi + 0x174c], ebx
jne 0x10054196
lea eax, [ebx + 0xd]
jmp 0x10054267
mov dword [ebp - 0x18], ebx
cmp ebx, 5
jge 0x1005425d
mov esi, ebx
imul esi, esi, 0x3210
mov eax, dword [edi + 0x174c]
add eax, esi
cmp byte [eax], 0
je 0x1005425d
push str.execute_file
add eax, 8
push eax
call fcn.100c629b
add esp, 8
test eax, eax
je 0x100541ec
push str.open_file
mov ecx, dword [edi + 0x174c]
lea edx, [esi + ecx + 8]
push edx
call fcn.100c629b
add esp, 8
test eax, eax
jne 0x10054255
mov dword [ebp - 0x14], 2
mov eax, dword [edi + 0x174c]
lea esi, [esi + eax + 0x208]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10054205
sub eax, edx
sar eax, 1
je 0x10054255
push 0x800
push 0
lea ecx, [ebp]
push ecx
call fcn.100c7d20
add esp, 0xc
push 0
push 0x400
lea edx, [ebp]
push edx
push esi
mov ecx, dword [edi + 0x2e8]
call fcn.10047910
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10054255
mov dword [ebp - 0x14], 0
add ebx, 1
jmp 0x10054196
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.100c59be
add ebp, 0x804
mov esp, ebp
pop ebp
ret
Function at 0x10059000
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x100ec1c0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10144930]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, edx
mov ebx, dword [ebp + 0x80c]
mov eax, dword [ebp + 0x810]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
test esi, esi
je 0x10059190
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10059063
sub eax, edx
sar eax, 1
je 0x10059190
test edi, edi
je 0x10059190
push 0x800
push 0
lea ecx, [ebp]
push ecx
call fcn.100c7d20
add esp, 0xc
test ebx, ebx
je 0x100590ac
push 0
push 0x400
lea edx, [ebp]
push edx
push esi
mov ecx, ebx
call fcn.10047910
jmp 0x100590be
push esi
push 0x400
lea eax, [ebp]
push eax
call fcn.100c6466
add esp, 0xc
lea ecx, [ebp]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10059114
mov edx, dword [ebp + 0x814]
push edx
mov ecx, edi
lea edx, [ebp]
call fcn.10055420
add esp, 4
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x10059187
lea eax, [ebp]
push eax
push str.___s__Load_Resource_from_file_was_fail____
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 8
mov dword [ebp - 0x20], esi
push 0x1012ac78
lea ecx, [ebp - 0x20]
push ecx
call fcn.100c80ad
mov edx, dword [ebp - 0x1c]
push edx
push edi
mov ebx, dword [ebp + 0x814]
mov ecx, ebx
lea edx, [ebp]
call fcn.100552c0
add esp, 8
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x10059187
call fcn.100bf0c6
cmp dword [eax + 8], 0
je 0x10059187
call fcn.100bf0c6
mov eax, dword [eax + 8]
push eax
push edi
mov ecx, ebx
lea edx, [ebp]
call fcn.100552c0
add esp, 8
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x10059187
lea eax, [ebp]
push eax
push str.___s__Load_Resource_from_Resource_DLL_fail____
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 8
mov dword [ebp - 0x18], esi
push 0x1012ac78
lea ecx, [ebp - 0x18]
push ecx
call fcn.100c80ad
mov dword [ebp - 4], 0xffffffff
jmp 0x100591d3
mov eax, 0x57
jmp 0x100591d5
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.100c59be
add ebp, 0x804
mov esp, ebp
pop ebp
ret
Function at 0x10059200
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x100ec190
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10144930]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, edx
mov ebx, dword [ebp + 0x80c]
mov eax, dword [ebp + 0x810]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
test esi, esi
je 0x10059375
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10059263
sub eax, edx
sar eax, 1
je 0x10059375
test edi, edi
je 0x10059375
push 0x800
push 0
lea ecx, [ebp]
push ecx
call fcn.100c7d20
add esp, 0xc
test ebx, ebx
je 0x100592ac
push 0
push 0x400
lea edx, [ebp]
push edx
push esi
mov ecx, ebx
call fcn.10047910
jmp 0x100592be
push esi
push 0x400
lea eax, [ebp]
push eax
call fcn.100c6466
add esp, 0xc
lea ecx, [ebp]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp]
test eax, eax
je 0x1005930a
mov edx, edi
call fcn.10051a40
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x1005936c
lea edx, [ebp]
push edx
push str.___s__Load_Resource_from_file_was_fail____
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 8
mov dword [ebp - 0x20], esi
push 0x1012ac78
lea eax, [ebp - 0x20]
push eax
call fcn.100c80ad
push ecx
push edi
mov ecx, dword [ebp - 0x1c]
call fcn.10051be0
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x1005936c
call fcn.100bf0c6
cmp dword [eax + 8], 0
je 0x1005936c
call fcn.100bf0c6
mov eax, dword [eax + 8]
lea edx, [ebp]
push edx
push edi
mov ecx, eax
call fcn.10051be0
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x1005936c
lea eax, [ebp]
push eax
push str.___s__Load_Resource_from_Resource_DLL_was_fail____
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 8
mov dword [ebp - 0x18], esi
push 0x1012ac78
lea ecx, [ebp - 0x18]
push ecx
call fcn.100c80ad
mov dword [ebp - 4], 0xffffffff
jmp 0x100593b8
mov eax, 0x57
jmp 0x100593ba
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.100c59be
add ebp, 0x804
mov esp, ebp
pop ebp
ret
Function at 0x100629d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e6e20
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1004
call fcn.100c8100
mov eax, dword [0x10144930]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
push 0x800
xor ebx, ebx
push ebx
lea eax, [ebp - 0x814]
push eax
call fcn.100c7d20
push 0x800
push ebx
lea ecx, [ebp - 0x1014]
push ecx
call fcn.100c7d20
add esp, 0x18
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x2810]
cmp eax, ebx
je 0x10062a63
cmp dword [esi + 0x2814], ebx
je 0x10062a52
cmp dword [esi + 0x2818], ebx
jne 0x10062b45
cmp eax, ebx
je 0x10062a63
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x2810], ebx
push 0x400
lea edx, [ebp - 0x1014]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10062a9a
push str.ssdevm.dll
lea eax, [ebp - 0x1014]
push eax
push 0x101093f0
lea edx, [ebp - 0x814]
call fcn.10005c50
add esp, 0xc
jmp 0x10062ab8
push 0x3ff
push str.ssdevm.dll
push 0x400
lea ecx, [ebp - 0x814]
push ecx
call fcn.100c6041
add esp, 0x10
lea edx, [ebp - 0x814]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x2810], eax
cmp eax, ebx
je 0x10062b3e
push str.PortAcquire
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
mov dword [esi + 0x2814], eax
push str.PortRelease
mov eax, dword [esi + 0x2810]
push eax
call edi
mov dword [esi + 0x2818], eax
push str.Load_Device_Monitor_Success__
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
cmp dword [esi + 0x2814], ebx
je 0x10062b20
cmp dword [esi + 0x2818], ebx
je 0x10062b20
push str.Get_Port_Acquire_function_and_release_function_Success__
jmp 0x10062b31
mov dword [esi + 0x2814], ebx
mov dword [esi + 0x2818], ebx
push str.Get_Port_Acquire_function_and_release_function_fail__
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100c59be
mov esp, ebp
pop ebp
ret

Function at 0x10062d40
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x100e5c88
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x10144930]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
push 0x800
lea eax, [esi + 4]
push 0
push eax
mov dword [esi], vtable.CCI3IO.0
call fcn.100c7d20
push 0x2000
lea ecx, [esi + 0x804]
push 0
push ecx
call fcn.100c7d20
add esp, 0x18
mov dword [esp + 0x10], 0
lea edx, [esi + 0x2804]
push edx
push 0x202
mov dword [esi], vtable.CCI3NetIO.0
mov dword [esi + 0x2998], 0xffffffff
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov dword [esi + 0x2994], eax
mov dword [esp + 0x10], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 4