joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410280
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x874
mov eax, dword [0x48807c]
xor eax, esp
mov dword [esp + 0x870], eax
mov eax, dword [esp + 0x878]
push ebx
push ebp
mov ebp, dword [esp + 0x884]
lea edx, [esp + 0x468]
push esi
mov dword [esp + 0x10], ebp
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4102b2
xor eax, eax
jmp 0x4102d0
movzx ecx, word [esp + eax + 0x46c]
mov word [esp + eax + 0x674], cx
add eax, 2
test cx, cx
jne 0x4102d0
lea eax, [esp + 0x674]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4102f2
mov ecx, dword [0x46f8fc]
mov edx, dword [0x46f900]
mov dword [eax], ecx
mov ecx, dword [0x46f904]
mov dword [eax + 4], edx
mov dx, word [0x46f908]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x678]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
xor ebx, ebx
mov dword [esp + 0xc], esi
cmp esi, 0xffffffff
je 0x4104a7
lea edx, [esp + 0x264]
sub ebp, edx
push edi
push 0x104
lea eax, [esp + 0x26c]
push 0
push eax
call fcn.00453450
add esp, 0xc
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x470]
mov word [esp + eax + 0x268], cx
add eax, 2
test cx, cx
jne 0x410370
lea edi, [esp + 0x268]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x410392
mov ecx, dword [0x46ab94]
lea eax, [esp + 0x44]
mov dword [edi], ecx
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4103b0
lea edi, [esp + 0x268]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4103d0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4103d0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x46abac
lea eax, [esp + 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41041b
test dx, dx
je 0x410417
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41041b
add eax, 4
add ecx, 4
test dx, dx
jne 0x4103f5
xor eax, eax
jmp 0x410420
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x410486
mov ecx, 0x46aba4
lea eax, [esp + 0x44]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410456
test dx, dx
je 0x410452
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410456
add eax, 4
add ecx, 4
test dx, dx
jne 0x410430
xor eax, eax
jmp 0x41045b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x410486
test byte [esp + 0x18], 0x10
jne 0x410486
lea eax, [esp + 0x268]
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [eax + ebp], cx
add eax, 2
test cx, cx
jne 0x410470
inc ebx
add ebp, 0x208
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x410351
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
pop edi
push 0x4100f0
push 0x208
push ebx
push ebp
call fcn.00454e10
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.End_get_cab_files_n
call fcn.004454c0
mov ecx, dword [esp + 0x880]
add esp, 4
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00453432
add esp, 0x874
ret 8
Function at 0x419ef0
Capabilities:
Create directory

Disassembly:
mov eax, 0x120c
call fcn.00454790
mov eax, dword [0x48807c]
xor eax, esp
mov dword [esp + 0x1208], eax
push ebx
mov ebx, dword [esp + 0x1214]
push esi
push edi
push ebx
push str.ProcessSectionAddDirs_____s__n
mov esi, ecx
call fcn.004454c0
mov ecx, dword [esi + 4]
add esp, 8
xor edi, edi
push edi
lea eax, [esp + 0x218]
push eax
push edi
push ebx
call fcn.00409a10
test al, al
je 0x41a00a
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 0x218]
push ecx
push edi
push ebx
push str.__s___d____s__n
call fcn.004454c0
mov edx, dword [esi + 8]
add esp, 0x10
cmp byte [edx + 0x1e89], 0
je 0x419f72
mov ecx, esi
call fcn.0040bbb0
jmp 0x419fec
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.00453450
add esp, 0xc
xor eax, eax
mov edi, edi
movzx ecx, word [esp + eax + 0x218]
mov word [esp + eax + 0x10], cx
add eax, 2
test cx, cx
jne 0x419f90
mov ecx, dword [esi + 0xc]
push 0x46d82c
lea edx, [esp + 0x14]
push edx
call fcn.004493b0
lea eax, [esp + 0x10]
push eax
push 0xffffffffffffffff
push 0xe
mov ecx, esi
call fcn.00418e80
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004190c0
push 0
lea edx, [esp + 0x14]
push edx
call ebp
lea eax, [esp + 0x10]
push eax
push 0
push 0xe
mov ecx, esi
call fcn.00418e80
push 0
lea ecx, [esp + 0x21c]
push ecx
mov ecx, dword [esi + 4]
inc edi
push edi
push ebx
call fcn.00409a10
test al, al
jne 0x419f46
pop ebp
mov ecx, dword [esp + 0x1214]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00453432
add esp, 0x120c
ret 4
Function at 0x41fef0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x664
mov eax, dword [0x48807c]
xor eax, esp
mov dword [esp + 0x660], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x678]
push edi
push str.RemoveSameInfFileFromSystem_____s__n
mov esi, ecx
call fcn.004454c0
add esp, 8
push 0x104
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [esp + 0x468]
push ecx
lea edx, [esp + 0x264]
push str._sinfoem.inf
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x264]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41fffd
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x46c]
push eax
lea ecx, [esp + 0x268]
push str._sinf_s
push ecx
call ebx
lea edx, [esp + 0x270]
push edx
push str._____s__n
call fcn.004454c0
mov ecx, dword [esi + 0xc]
add esp, 0x18
push edi
lea eax, [esp + 0x264]
push eax
call fcn.0044b3d0
test eax, eax
je 0x41ffd5
push str.______same_file_exist._remove_it_n
call fcn.004454c0
add esp, 4
lea ecx, [esp + 0x260]
push ecx
mov ecx, dword [esi + 0xc]
call fcn.0044a070
jmp 0x41ffe2
push str.______this_is_not_same._n
call fcn.004454c0
add esp, 4
lea edx, [esp + 0x10]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41ff70
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x670]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00453432
add esp, 0x664
ret 4
Function at 0x431bb0
Capabilities:
Create pipe
Read file on windows
Write file on windows
Write pipe

Disassembly:
mov eax, 0x2a14
call fcn.00454790
mov eax, dword [0x48807c]
xor eax, esp
mov dword [esp + 0x2a10], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x10], bl
je 0x431bdb
mov eax, dword [esi + 0x25c]
jmp 0x431c48
push 0x206
lea edx, [esp + 0x16]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x1c], cx
call fcn.00453450
lea eax, [esi + 0x270]
push eax
lea ecx, [esp + 0x20]
push str..pipe_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [esp + 0x28]
push edx
push str.wszPipePath___s__n
call fcn.004454c0
add esp, 0x20
push ebx
push 0x3e8
push 0x400
push 0x400
push 2
push 6
push 3
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x25c], eax
mov dword [esi + 0x260], eax
mov dword [esi + 0x258], eax
cmp byte [esi + 0x268], bl
je 0x431daf
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x431c70
cmp dword [esi + 0x258], 0xffffffff
je 0x431dad
push 0x800
lea ecx, [esp + 0x224]
push ebx
push ecx
call fcn.00453450
mov ecx, dword [esi + 0x25c]
add esp, 0xc
push ebx
lea edx, [esp + 0x14]
push edx
push 0x800
lea eax, [esp + 0x22c]
push eax
push ecx
mov dword [esp + 0x24], ebx
call ebp
test eax, eax
jne 0x431cd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile_2_Error__d__n
call fcn.004454c0
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
cmp eax, ebx
jbe 0x431da1
lea edx, [esp + 0x220]
push edx
push eax
push str.DATA__d____s__n
call fcn.004454c0
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
lea ecx, [esp + 0x224]
push ecx
mov ecx, esi
call fcn.004331d0
cmp byte [esi + 0x269], bl
jne 0x431d9b
push 0x1ffe
lea eax, [esp + 0xa26]
xor edx, edx
push ebx
push eax
mov word [esp + 0xa2c], dx
call fcn.00453450
mov edx, dword [esi + 0x47c]
mov eax, dword [esi + 0x480]
lea ecx, [esi + 0x484]
push ecx
push edx
push eax
push str._d__d___s_
lea ecx, [esp + 0xa3c]
push 0x1000
push ecx
call fcn.00455c7e
lea eax, [esp + 0xa44]
add esp, 0x24
mov dword [esp + 0x14], ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x431d70
sub eax, edx
push ebx
sar eax, 1
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0x260]
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0xa2c]
push ecx
push edx
call edi
mov byte [esi + 0x269], bl
cmp byte [esi + 0x268], bl
jne 0x431c70
pop edi
pop ebp
mov ecx, dword [esp + 0x2a18]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00453432
add esp, 0x2a14
ret
Function at 0x432980
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x28
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push 0x7f00
xor ebx, ebx
push eax
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 0x431a50
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 1
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x432a07
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x582
je 0x432a07
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret 0x14
mov eax, dword [esi + 0x240]
mov edx, dword [esi + 0x23c]
mov ecx, dword [esi + 0x244]
push ebp
lea ebp, [esi + 0x238]
push edi
mov edi, dword [ebp]
sub eax, edi
sub ecx, edx
cmp eax, ebx
jne 0x432a33
mov edi, SysReAllocString
mov eax, edi
cmp ecx, ebx
jne 0x432a3e
mov edx, SysReAllocString
mov ecx, edx
mov ebx, dword [esi + 4]
push esi
push ebx
mov ebx, dword [esp + 0x4c]
push 0
push ebx
push ecx
mov ecx, dword [esp + 0x50]
push eax
push edx
mov edx, dword [esp + 0x5c]
push edi
push edx
mov edx, dword [esp + 0x6c]
lea eax, [esi + 0x12]
push eax
push ecx
or edx, 0x100
push edx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 8], eax
test eax, eax
jne 0x432a94
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.PKGMAIN::CreateWin32___CreateWindowEx_failed___ld__n
call fcn.004454c0
add esp, 8
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret 0x14
push esi
push 0xffffffffffffffeb
push eax
mov dword [esi + 0xc], ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [esi + 8]
push ebp
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esi + 8]
lea eax, [esi + 0x248]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 0x28
ret 0x14

Function at 0x432b40
Capabilities:
Create thread

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
push 0
mov esi, ecx
push esi
push 0x432af0
push 0
push 0
mov byte [esi + 0x268], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x264], eax
mov al, 1
pop esi
pop ecx
ret
Function at 0x43df50
Capabilities:
Check os version
Link many functions at runtime

Disassembly:
sub esp, 0x118
mov eax, dword [0x48807c]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x114
mov esi, ecx
lea eax, [esp + 0x10]
push ebx
push eax
mov byte [esi + 4], bl
mov dword [esi], 0x13
call fcn.00453450
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x114
call edi
test eax, eax
jne 0x43dfb7
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], 0x114
call edi
test eax, eax
je 0x43e127
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x43e007
sub eax, 1
jne 0x43e056
mov eax, dword [esp + 0x10]
cmp eax, 4
ja 0x43dfd8
mov dword [esi], 0x11
cmp eax, 5
jne 0x43e056
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x43dfed
mov dword [esi], 0x12
jmp 0x43e056
cmp eax, 1
jne 0x43dffa
mov dword [esi], 0x13
jmp 0x43e056
cmp eax, 2
jne 0x43e056
mov dword [esi], 0x14
jmp 0x43e056
cmp dword [esp + 0x10], 4
mov dword [esi], 3
jne 0x43e03c
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x43e024
mov dword [esi], 1
jmp 0x43e03c
cmp eax, 0xa
jne 0x43e031
mov dword [esi], 2
jmp 0x43e03c
cmp eax, 0x5a
jne 0x43e03c
mov dword [esi], 3
mov eax, dword [esp + 0x18]
and eax, 0xffff0000
cmp eax, 0x45a0000
jne 0x43e052
mov dword [esi], 3
mov byte [esi + 4], 1
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
cmp byte [esi + 4], bl
je 0x43e0da
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x43e127
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push eax
call edi
mov ecx, dword [esi + 8]
push str.Process32First
push ecx
mov dword [esi + 0x1c], eax
call edi
mov edx, dword [esi + 8]
push str.Process32Next
push edx
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x24], eax
mov eax, dword [esi + 8]
push str.Module32First
push eax
call edi
mov ecx, dword [esi + 8]
push str.Module32Next
push ecx
mov dword [esi + 0x28], eax
call edi
mov dword [esi + 0x2c], eax
jmp 0x43e127
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x43e127
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcesses
push eax
call edi
mov edx, dword [esi + 8]
push str.EnumProcessModules
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
push str.GetModuleFileNameExA
push eax
call edi
mov ecx, dword [esi + 8]
push str.GetModuleFileNameExW
push ecx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00453432
add esp, 0x118
ret
Function at 0x43fd60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x43fd6b
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push esi
not eax
cmp edx, 8
jb 0x43fe49
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x47dc68]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x47dc68]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x47dc68]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x47dc68]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x47dc68]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x47dc68]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x47dc68]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x47dc68]
inc ecx
sub edx, 8
sub esi, 1
jne 0x43fd85
pop edi
test edx, edx
je 0x43fe6b
lea ecx, [ecx]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x47dc68]
inc ecx
sub edx, 1
jne 0x43fe50
not eax
pop esi
ret

Function at 0x43fe70
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [edx]
movsx ecx, byte [esp + 8]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x47dc68]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x47dc68]
mov dword [edx + 8], ecx
ret

Function at 0x440430
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ebx
imul esi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x440472
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 4]
push 0
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x440466
mov byte [edi + 8], 1
mov eax, dword [esp + 0x14]
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x440483
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x10]
push esi
push eax
push ecx
call fcn.00454170
add dword [edi + 0x1c], esi
add esp, 0xc
pop edi
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
ret
Function at 0x4416c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x48807c]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x420]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov esi, dword [esp + 0x424]
test esi, esi
je 0x441700
push esi
call ebp
cmp eax, 0xffffffff
jne 0x441700
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x4417e6
mov ecx, ebx
mov edx, ebx
movzx eax, ax
cmp ax, 0x2f
je 0x44171f
cmp ax, 0x5c
jne 0x441721
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x441713
push edi
cmp ecx, ebx
je 0x441764
sub ecx, ebx
sar ecx, 1
add ecx, ecx
mov edi, ecx
push edi
lea eax, [esp + 0x21c]
push ebx
push eax
call fcn.00454170
lea edx, [esp + 0x224]
push edx
xor ecx, ecx
push esi
mov word [esp + edi + 0x22c], cx
call fcn.004416c0
add esp, 0x14
xor eax, eax
mov word [esp + 0x10], ax
test esi, esi
je 0x44178f
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
jmp 0x441780
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x441780
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x441793
lea edi, [esp + 0x10]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4417b0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4417b0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call ebp
pop edi
cmp eax, 0xffffffff
jne 0x4417e6
push 0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x41c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00453432
add esp, 0x414
ret
Function at 0x442fb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp edi, ebx
jne 0x442fca
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x18], ebx
je 0x442fbf
cmp dword [edi + 0x7c], ebx
je 0x442fdd
push edi
call fcn.00440f20
add esp, 4
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
call fcn.00440d40
add esp, 0x10
test eax, eax
je 0x443004
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
push esi
push 0x84
call fcn.00455fbc
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x443045
push 0x4000
call fcn.00455fbc
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x443051
push esi
call fcn.00453c6c
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x44309d
lea eax, [esi + 4]
push eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00440120
add esp, 4
test eax, eax
jne 0x44309d
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x4430c7
mov dl, byte [edi + 0x39]
mov byte [esi + 0x80], dl
jmp 0x4430d0
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
movzx ecx, byte [esi + 0x6c]
neg ecx
sbb ecx, ecx
push ebp
mov ebp, dword [esp + 0x20]
and ecx, 0xc
lea ebx, [esi + 0x70]
mov dword [esi + 0x7c], ecx
mov dword [ebx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
test ebp, ebp
je 0x443117
mov edi, edi
movzx eax, byte [ebp]
test al, al
je 0x443117
push eax
push ebx
call fcn.0043fe70
add esp, 8
add ebp, 1
jne 0x443100
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
lea ecx, [edx + eax + 0x1e]
pop ebp
mov dword [esi + 0x3c], ecx
mov dword [esi + 8], 0
mov dword [edi + 0x7c], esi
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x4433a0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x4434d2
cmp dword [ebx + 4], 0xffffffff
jne 0x4434d2
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea esi, [ebx + 0x244]
push esi
push 0x104
call edi
lea ebp, [ebx + 0x44c]
push ebp
push 0x104
call edi
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4433e0
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp ax, 0x5c
je 0x44341b
cmp ax, 0x2f
je 0x44341b
add esi, 0xfffffffe
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x443406
mov eax, dword [0x46ab94]
mov edi, esi
mov dword [edi], eax
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x443420
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x44a]
cmp ax, 0x5c
je 0x443464
cmp ax, 0x2f
je 0x443464
add ebp, 0xfffffffe
mov edi, ebp
jmp 0x443450
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x443450
mov ecx, dword [0x46ab94]
mov dword [edi], ecx
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
cmp edi, 1
jne 0x44348f
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x44348f
pop edi
pop esi
pop ebp
mov eax, 0x2000000
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push edi
push eax
push esi
call fcn.004401d0
add esp, 0x10
test eax, eax
jne 0x4434b2
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
push eax
call fcn.00442de0
add esp, 4
mov dword [ebx], eax
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 0xfffffe00
pop ebp
add eax, 0x200
pop ebx
ret 0xc
mov eax, 0x1000000
pop ebx
ret 0xc