joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5121f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push eax
mov esi, ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp + 8]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, dword [ebp + 8]
and eax, 0x3fffffff
or eax, 0x40000000
push eax
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
push eax
call dword [sym.imp.USER32.dll_SetParent]
mov ecx, dword [ebp + 8]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 1
push 0x86
push ecx
call ebx
movzx edx, byte [esi]
mov eax, dword [ebp + 8]
push edi
shl edx, 0x10
or edx, 1
push edx
push 0x400
push eax
call ebx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x515aa0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov ebx, ecx
call fcn.00515150
mov byte [ebp + 0xf], al
test al, al
jne 0x515ad6
push 0x2d2
push str.d:projects_staffcop_rev_sdkcontrolswtldockingwindowsWndFrmPkg.h
push str.bRes
call fcn.00614d2b
add esp, 0xc
mov esi, dword [edi]
mov ecx, dword [edi + 4]
push 0
push esi
mov dword [ebp + 8], ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x3fffffff
or eax, 0x80000000
push eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push esi
call dword [sym.imp.USER32.dll_SetParent]
mov edx, dword [ebp + 8]
push edx
push 0
push 0x400
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
call esi
cmp dword [ebx + 0x14], 0
jne 0x515b81
mov edi, dword [edi + 4]
push edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x515b59
push 0x2d9
push str.d:projects_staffcop_rev_sdkcontrolswtldockingwindowsWndFrmPkg.h
push 0x678df0
call fcn.00614d2b
add esp, 0xc
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push 0
push 0x401
push ecx
mov dword [ebp - 4], 3
call esi
mov edx, dword [ebp - 0xc]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov al, byte [ebp + 0xf]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x516230
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi]
mov eax, dword [edi + 4]
push 0
push esi
mov ebx, ecx
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x3fffffff
or eax, 0x80000000
push eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push esi
call dword [sym.imp.USER32.dll_SetParent]
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0x400
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [edi + 4]
push edx
push ecx
mov ecx, dword [edi + 0xc]
mov eax, esp
mov dword [eax], ecx
mov ecx, ebx
call fcn.005121f0
mov edx, dword [ebp + 0xc]
push edx
push edi
mov ecx, ebx
call fcn.00515d40
mov bl, al
test bl, bl
jne 0x5162c0
push 0x2e6
push str.d:projects_staffcop_rev_sdkcontrolswtldockingwindowsWndFrmPkg.h
push str.bRes
call fcn.00614d2b
add esp, 0xc
mov eax, dword [edi + 0xc]
push 0x67
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 8
Function at 0x5205e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65b141
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 4], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], eax
mov dword [eax + 0xc], edi
mov dword [ebp - 4], 1
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [ebp - 4], 2
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 0x20], eax
mov dword [ebp - 4], 3
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov byte [ebp - 4], 4
push 0x34
lea ebx, [esi + 0x24]
push edi
push ebx
call fcn.006100a0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebx], 0x34
mov dword [esi + 0x28], 0x100
mov ecx, dword [0x716738]
mov dword [esi + 0x30], ecx
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov dword [esi + 0x44], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], edx
mov dword [esi + 0x40], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x48], 0x520590
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x523120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x645678
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [0x716738]
push 0xf1
push eax
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
xor ebx, ebx
cmp eax, ebx
je 0x5231f9
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x5231f9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
je 0x5231f9
movzx ecx, word [edi + 4]
movzx edx, word [edi + 2]
push ecx
push edx
mov ecx, esi
call fcn.00523000
movzx eax, word [edi + 6]
push eax
mov ecx, esi
call fcn.00522fb0
test al, al
je 0x5231f9
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
test byte [esi + 0x85], 0x20
je 0x5231d2
mov ecx, dword [ebp + 8]
mov edx, dword [0x716738]
push 0x2040
push ebx
push ebx
push ebx
push ecx
push edx
call dword [sym.imp.USER32.dll_LoadImageW]
push eax
lea ecx, [ebp - 0x10]
call fcn.004a1600
mov eax, dword [ebp - 0x10]
jmp 0x5231e6
mov eax, dword [ebp + 8]
mov ecx, dword [0x716738]
push eax
push ecx
call dword [sym.imp.USER32.dll_LoadBitmapW]
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x52320e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004496b0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [esi + 0xa0]
push edx
push eax
mov eax, dword [esi + 0x12c]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x52324a
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x10]
call fcn.004496b0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esi + 0x12c]
mov edi, dword [esi + 0x50]
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
cmp eax, edi
jne 0x52322a
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x10]
call fcn.004496b0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x523480
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
lea ecx, [ebx + 0x2f8]
call fcn.005c3cb0
test al, al
je 0x523530
push edi
lea ecx, [ebx + 0x2f8]
call fcn.005c3c40
lea ecx, [ebx + 0x2f8]
mov edi, eax
call fcn.005c3c30
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [ebp - 4]
push ecx
mov esi, eax
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [ebx + 4]
push esi
push edx
mov edi, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [ebp - 4]
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0
push edi
lea ecx, [ebx + 0x2f8]
call fcn.005c4640
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x524fc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
fld1
xor eax, eax
push esi
mov esi, ecx
mov ecx, 3
fstp dword [esi + 0x58]
fld dword [0x66fa5c]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x34], ecx
fst dword [esi + 0x5c]
mov dword [esi + 0x3c], ecx
fstp dword [esi + 0x60]
movzx ecx, cl
and ecx, 1
lea edx, [esi + 0x68]
or ecx, 6
push edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x38], ecx
mov dword [esi + 0x64], eax
mov byte [esi + 0x78], al
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov eax, esi
pop esi
ret
Function at 0x5252f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x652e58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [ebp + 0x10]
shr eax, 0x10
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x525339
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebp + 0x14], ebx
xor edi, edi
mov dword [ebp - 4], edi
push ebx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x525489
push esi
push 0x30
lea edx, [ebp - 0x40]
push 0
push edx
call fcn.006100a0
push pe_nt_image_headers32
lea eax, [ebp - 0x150]
push 0
push eax
mov dword [ebp - 0x40], 0x30
call fcn.006100a0
add esp, 0x18
lea ecx, [ebp - 0x154]
push ecx
mov dword [ebp - 0x154], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x5253b4
mov eax, dword [ebp - 0x150]
cmp eax, 5
jae 0x5253bb
cmp eax, 4
jne 0x5253b4
cmp dword [ebp - 0x14c], 0x5a
jae 0x5253bb
mov dword [ebp - 0x40], 0x2c
lea eax, [ebp - 0x40]
push eax
push 1
push edi
lea edx, [ebp - 0x21c]
push ebx
mov dword [ebp - 0x18], 0x64
mov dword [ebp - 0x3c], 0x3f
mov dword [ebp - 0x1c], edx
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test dword [ebp - 0x38], 0x100
jne 0x525478
push 0x10
call fcn.00611c8b
mov esi, eax
add esp, 4
test esi, esi
je 0x525478
mov eax, dword [ebp - 0x38]
or eax, 0x100
mov dword [ebp - 0x38], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0x34]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x525420
add ecx, 0xfffffd44
jmp 0x525422
xor ecx, ecx
push esi
lea edx, [ebp - 0x40]
push edx
call fcn.00523340
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005fb5ce
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x525467
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x40]
push edx
push 1
push edi
push ebx
mov dword [ebp - 0x20], esi
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
push ebx
inc edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp edi, eax
jl 0x525356
pop esi
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x10]
push eax
add ecx, 0x20
mov dword [ebp + 0x10], ebx
call fcn.00594900
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x526ee0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6576c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetDC]
lea edx, [ebp - 0x58]
mov ebx, eax
push edx
push ebx
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov eax, dword [esi + 0x30]
push ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov ebx, dword [sym.imp.USER32.dll_MoveWindow]
sub eax, 0x13
sub edx, 4
push 1
lea ecx, [eax - 0xa]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], eax
add edx, 0xfffffffd
push edx
sub eax, ecx
push eax
mov eax, dword [esi + 0x24]
push 3
push ecx
push eax
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x1c], ecx
call ebx
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
add eax, 0x10
mov dword [ebp + 0x14], eax
mov dword [ebp - 4], 1
lea ecx, [ebp + 0x14]
push ecx
lea ecx, [esi + 0x30]
call fcn.004593e0
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x14]
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov edx, dword [edx - 0xc]
imul edx, dword [ebp - 0x44]
sub eax, edx
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x18]
push 1
push edx
mov edx, dword [esi + 0x30]
sub ecx, eax
push ecx
mov ecx, dword [ebp - 0x18]
push ecx
push eax
push edx
mov dword [ebp - 0x1c], eax
call ebx
mov eax, dword [ebp - 0x1c]
mov ecx, eax
sub eax, 0xa
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x10]
push 1
sub edi, edx
push edi
sub ecx, eax
push ecx
push edx
push eax
mov eax, dword [esi + 0x28]
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
pop esi
pop ebx
test edx, edx
jg 0x527014
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x527560
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65b768
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 2
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5275f0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5275dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 0x10]
push ecx
push 4
lea edx, [ebp - 0x14]
push edx
push esi
call edi
cmp dword [ebp - 0x10], 4
je 0x527615
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x527631
push 0
lea ecx, [ebp - 0x10]
push ecx
push 4
lea edx, [ebp - 0x18]
push edx
push esi
call edi
cmp dword [ebp - 0x10], 4
je 0x52766c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x527657
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52769f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x5276c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6543ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, ecx
mov dword [eax + 0x10], 0xa
push esi
mov edx, 7
xor ecx, ecx
xor esi, esi
mov dword [eax + 0x28], edx
mov dword [eax + 0x24], ecx
mov dword [ebp - 0x10], eax
mov word [eax + 0x14], si
mov dword [ebp - 4], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 0x40], ecx
mov word [eax + 0x30], si
mov byte [ebp - 4], 1
mov dword [eax + 0x60], edx
mov dword [eax + 0x5c], ecx
mov word [eax + 0x4c], si
mov byte [ebp - 4], 2
mov dword [eax + 0x7c], edx
xor edx, edx
mov dword [eax + 0x78], ecx
mov word [eax + 0x68], dx
mov byte [ebp - 4], 3
mov dword [eax + 0x84], ecx
mov dword [eax + 0x88], ecx
mov byte [eax + 0x8c], cl
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x528de0
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x65bed8
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], 0
push 1
push 0x66ea40
lea ecx, [ebp + 8]
call fcn.00401710
push 6
push str.IMLogs
lea ecx, [ebp + 8]
call fcn.00401710
mov eax, dword [ebp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push 0x66ea40
lea ecx, [ebp + 8]
call fcn.00401710
mov eax, dword [esi + 4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp + 8]
call fcn.00401710
mov ecx, dword [ebp + 8]
push 0x674878
push ecx
call fcn.00614a04
mov edi, eax
add esp, 8
test edi, edi
je 0x528ed9
mov eax, dword [esi + 8]
cmp dword [eax - 4], 1
mov ecx, dword [eax - 0xc]
lea ebx, [ecx + ecx]
jle 0x528e7c
push ecx
lea ecx, [esi + 8]
call fcn.00401370
mov eax, dword [esi + 8]
push 0
push ebx
push eax
call fcn.005bd2f0
mov esi, dword [esi + 8]
push edi
push 1
push ebx
push esi
call fcn.006161f6
push edi
call fcn.0061466b
add esp, 0x20
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x528ec4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x528eff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 0x80004005
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x52b5f0
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x65bed8
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], 0
push 1
push 0x66ea40
lea ecx, [ebp + 8]
call fcn.00401710
push 5
push 0x67a244
lea ecx, [ebp + 8]
call fcn.00401710
mov eax, dword [ebp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push 0x66ea40
lea ecx, [ebp + 8]
call fcn.00401710
mov eax, dword [esi + 4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp + 8]
call fcn.00401710
mov ecx, dword [ebp + 8]
push 0x674878
push ecx
call fcn.00614a04
mov edi, eax
add esp, 8
test edi, edi
je 0x52b6e9
mov eax, dword [esi + 8]
cmp dword [eax - 4], 1
mov ecx, dword [eax - 0xc]
lea ebx, [ecx + ecx]
jle 0x52b68c
push ecx
lea ecx, [esi + 8]
call fcn.00401370
mov eax, dword [esi + 8]
push 0
push ebx
push eax
call fcn.005bd2f0
mov esi, dword [esi + 8]
push edi
push 1
push ebx
push esi
call fcn.006161f6
push edi
call fcn.0061466b
add esp, 0x20
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52b6d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52b70f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 0x80004005
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x52bd70
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x65bed8
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], 0
push 1
push 0x66ea40
lea ecx, [ebp + 8]
call fcn.00401710
push 6
push str.UsbDev
lea ecx, [ebp + 8]
call fcn.00401710
mov eax, dword [ebp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push 0x66ea40
lea ecx, [ebp + 8]
call fcn.00401710
mov eax, dword [esi + 4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp + 8]
call fcn.00401710
mov ecx, dword [ebp + 8]
push 0x674878
push ecx
call fcn.00614a04
mov edi, eax
add esp, 8
test edi, edi
je 0x52be69
mov eax, dword [esi + 8]
cmp dword [eax - 4], 1
mov ecx, dword [eax - 0xc]
lea ebx, [ecx + ecx]
jle 0x52be0c
push ecx
lea ecx, [esi + 8]
call fcn.00401370
mov eax, dword [esi + 8]
push 0
push ebx
push eax
call fcn.005bd2f0
mov esi, dword [esi + 8]
push edi
push 1
push ebx
push esi
call fcn.006161f6
push edi
call fcn.0061466b
add esp, 0x20
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52be54
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52be8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 0x80004005
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8