joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49d910
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
mov eax, 0x4d04dc
call fcn.004ad4bc
call fcn.0040b1d0
test al, al
je 0x49d9bd
push 8
call fcn.004ab5ac
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x49d957
mov word [ebp - 0x34], 0x14
mov eax, dword [ebp - 4]
call fcn.00484b40
mov word [ebp - 0x34], 8
mov ebx, dword [ebp - 4]
jmp 0x49d95a
mov ebx, dword [ebp - 4]
mov word [ebp - 0x34], 0x20
mov edx, 0x4cacd6
lea eax, [ebp - 8]
call fcn.004b7500
inc dword [ebp - 0x28]
mov edx, dword [eax]
mov eax, ebx
call fcn.00484b64
dec dword [ebp - 0x28]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004b7660
mov word [ebp - 0x34], 0x2c
mov edx, 0x4cacd7
lea eax, [ebp - 0xc]
call fcn.004b7500
inc dword [ebp - 0x28]
mov edx, dword [eax]
mov eax, ebx
call fcn.00484f90
dec dword [ebp - 0x28]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004b7660
jmp 0x49daa0
mov dl, 1
mov eax, dword [0x42a090]
call fcn.0042a190
mov ebx, eax
mov edx, 0x80000001
mov eax, ebx
call fcn.004b746c
mov word [ebp - 0x34], 0x38
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
lea eax, [ebp - 0x10]
call fcn.004b7500
inc dword [ebp - 0x28]
mov edx, dword [eax]
mov cl, 1
mov eax, ebx
call fcn.0042a294
push eax
dec dword [ebp - 0x28]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004b7660
pop ecx
test cl, cl
je 0x49da72
mov word [ebp - 0x34], 0x44
mov edx, 0x4cad11
lea eax, [ebp - 0x14]
call fcn.004b7500
inc dword [ebp - 0x28]
mov edx, dword [eax]
mov eax, ebx
call fcn.0042a874
push eax
dec dword [ebp - 0x28]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004b7660
pop ecx
test cl, cl
je 0x49da72
mov word [ebp - 0x34], 0x50
mov edx, 0x4cad19
lea eax, [ebp - 0x18]
call fcn.004b7500
inc dword [ebp - 0x28]
mov edx, dword [eax]
mov eax, ebx
call fcn.0042a4a0
dec dword [ebp - 0x28]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004b7660
mov eax, ebx
call fcn.0042a200
mov esi, ebx
mov dword [ebp - 0x20], esi
test esi, esi
je 0x49daa0
mov eax, dword [esi]
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x34], 0x68
mov edx, 3
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x34], 0x5c
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49f394
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff6c
mov ebx, eax
push 0x94
push 0
lea eax, [esp + 8]
push eax
call fcn.004ad0a8
add esp, 0xc
mov dword [esp], 0x94
push esp
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
jne 0x49f3c7
mov byte [ebx], 3
jmp 0x49f3ee
cmp dword [esp + 4], 6
jne 0x49f3d3
mov byte [ebx], 1
jmp 0x49f3ee
cmp dword [esp + 4], 5
jne 0x49f3df
mov byte [ebx], 0
jmp 0x49f3ee
cmp dword [esp + 4], 6
jbe 0x49f3eb
mov byte [ebx], 2
jmp 0x49f3ee
mov byte [ebx], 3
mov al, byte [ebx]
add esp, 0x94
pop ebx
ret
Function at 0x49f742
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
mov ebx, 0x4d0fb4
push 0
push 0x49f884
call sub.USER32.DLL_EnumWindows
cmp dword [ebx], 0
je 0x49f79e
jmp 0x49f777
push 0
mov eax, dword [ebx]
push eax
call sub.USER32.DLL_ShowWindow
push 0
push 2
push 0x111
mov edx, dword [ebx]
push edx
call sub.USER32.DLL_SendMessageA
push 1
call sub.KERNEL32.DLL_Sleep
mov ecx, dword [ebx]
push ecx
call sub.USER32.DLL_IsWindow
test eax, eax
jne 0x49f755
xor eax, eax
mov dword [ebx], eax
xor edx, edx
mov dword [0x4d0fc0], edx
xor ecx, ecx
mov dword [0x4d0fc4], ecx
xor eax, eax
mov dword [0x4d0fc8], eax
mov eax, 1
pop ebx
ret

Function at 0x49f7a8
Capabilities:
Enumerate gui resources

Disassembly:
push 0
push 0x49f820
call sub.USER32.DLL_EnumWindows
cmp dword [0x4d0fb4], 0
je 0x49f819
jmp 0x49f7f2
push 0
push 0
push 0x201
mov eax, dword [0x4d0fb8]
push eax
call sub.USER32.DLL_SendMessageA
push 0
push 0
push 0x202
mov edx, dword [0x4d0fb8]
push edx
call sub.USER32.DLL_SendMessageA
push 0x3e8
call sub.KERNEL32.DLL_Sleep
mov ecx, dword [0x4d0fb4]
push ecx
call sub.USER32.DLL_IsWindow
test eax, eax
jne 0x49f7bf
xor eax, eax
mov dword [0x4d0fb4], eax
xor edx, edx
mov dword [0x4d0fb8], edx
xor ecx, ecx
mov dword [0x4d0fbc], ecx
mov eax, 1
ret

Function at 0x49fe6c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
lea esi, [ebp - 4]
mov eax, 0x4d1170
call fcn.004ad4bc
mov word [ebp - 0x18], 8
mov edx, dword [esi]
mov dword [edx], ebx
mov ecx, dword [esi]
xor eax, eax
mov dword [ecx + 0x10], eax
mov edx, dword [esi]
xor ecx, ecx
mov dword [edx + 0xc], ecx
mov eax, dword [esi]
mov dword [eax + 0x2c], 0xffffffff
mov edx, dword [0x4da0ec]
mov ecx, dword [edx]
mov dl, 1
mov eax, dword [0x447c08]
call fcn.00449190
mov ebx, eax
mov eax, dword [esi]
lea ecx, [ebp - 0x30]
mov dword [eax + 0x30], ebx
mov dword [ebp - 0x30], fcn.004a0148
mov edx, dword [esi]
mov eax, ebx
mov dword [ebp - 0x2c], edx
push dword [ecx + 4]
push dword [ecx]
call fcn.00449338
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
xor edx, edx
call fcn.00449318
mov ecx, dword [esi]
mov edx, 0x1388
mov eax, dword [ecx + 0x30]
call fcn.00449328
mov ecx, dword [esi]
xor eax, eax
mov dword [ecx + 0x1c], eax
mov edx, dword [esi]
mov dword [edx + 4], edi
mov dl, 1
mov ecx, dword [0x4da0ec]
mov eax, dword [0x447c08]
mov ecx, dword [ecx]
call fcn.00449190
mov ebx, eax
mov eax, dword [esi]
lea ecx, [ebp - 0x38]
mov dword [eax + 0x34], ebx
mov dword [ebp - 0x38], fcn.004a0460
mov edx, dword [esi]
mov eax, ebx
mov dword [ebp - 0x34], edx
push dword [ecx + 4]
push dword [ecx]
call fcn.00449338
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
xor edx, edx
call fcn.00449318
mov ecx, dword [esi]
mov edx, 0x3e8
mov eax, dword [ecx + 0x34]
call fcn.00449328
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
mov eax, dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a197c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov eax, 0x4d1e44
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
call fcn.004ad4bc
mov edx, dword [ebx + 0x10]
mov eax, dword [0x4d20f8]
mov ecx, dword [edx + 0x38]
mov dl, 1
push ecx
lea ecx, [ebx + 4]
call fcn.004a23cc
mov esi, eax
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 0x30], eax
push ebx
mov eax, dword [ebx]
call dword [eax + 4]
pop ecx
test al, al
je 0x4a19c4
mov eax, esi
call fcn.00474a00
mov eax, esi
call fcn.00474a08
mov edi, esi
mov dword [ebp - 8], edi
test edi, edi
je 0x4a19f2
mov eax, dword [edi]
mov dword [ebp - 4], eax
mov word [ebp - 0x1c], 0x14
mov edx, 3
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x1c], 8
call sub.KERNEL32.DLL_GetTickCount
mov ecx, eax
xor edx, edx
sub ecx, dword [ebp - 0x30]
mov eax, ecx
mov ecx, 0x3e8
div ecx
mov edx, dword [ebp + 0x10]
inc eax
mov dword [edx], eax
cmp byte [ebx + 4], 0
jne 0x4a1a20
mov eax, dword [ebx + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
mov dword [edx], eax
jmp 0x4a1a29
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 4
mov al, 1
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a21e4
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffeb4
push ebx
push esi
mov eax, 0x4d20b4
call fcn.004ad4bc
mov dword [ebp - 0x14], 1
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.004b7538
inc dword [ebp - 0x14]
mov word [ebp - 0x20], 8
mov byte [ebp - 0x3d], 0
jmp 0x4a2396
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x1048]
push edx
push 0x1000
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x4a2260
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp + 0xc]
dec dword [ebp - 0x14]
call fcn.004b7660
pop eax
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x4a23c4
mov ecx, dword [ebp - 0x34]
shr ecx, 2
mov dword [ebp - 0x38], ecx
xor eax, eax
mov dword [ebp - 0x3c], eax
lea esi, [ebp - 0x1048]
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x38]
jae 0x4a2390
mov eax, dword [esi]
test eax, eax
je 0x4a237e
push eax
push 0
push 0x100410
call sub.KERNEL32.DLL_OpenProcess
mov ebx, eax
mov word [ebp - 0x20], 8
test ebx, ebx
je 0x4a22cd
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x44]
push eax
push 4
push edx
push ebx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4a22cd
push 0x104
lea ecx, [ebp - 0x114c]
push ecx
mov eax, dword [ebp - 0x44]
push eax
push ebx
call sub.PSAPI.DLL_GetModuleBaseNameA
xor edx, edx
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0xc]
inc dword [ebp - 0x14]
call fcn.004b7974
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0x114c]
push ecx
lea eax, [ebp - 4]
mov word [ebp - 0x20], 0x14
call fcn.004b7500
inc dword [ebp - 0x14]
xor ecx, ecx
mov dword [ebp - 8], ecx
lea edx, [ebp - 8]
inc dword [ebp - 0x14]
call fcn.004b7974
lea eax, [ebp - 8]
pop edx
call fcn.004b7bb8
test eax, eax
mov edx, 2
setne al
and eax, 1
push eax
lea eax, [ebp - 0xc]
dec dword [ebp - 0x14]
call fcn.004b7660
dec dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004b7660
dec dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004b7660
pop ecx
test cl, cl
je 0x4a2372
jmp 0x4a2369
push 0x3e8
push ebx
call sub.KERNEL32.DLL_WaitForSingleObject
test eax, eax
jne 0x4a2369
mov byte [ebp - 0x3d], 1
jmp 0x4a2372
mov eax, dword [ebp + 8]
cmp byte [eax + 4], 0
je 0x4a2354
push ebx
call sub.KERNEL32.DLL_CloseHandle
cmp byte [ebp - 0x3d], 0
jne 0x4a2390
inc dword [ebp - 0x3c]
add esi, 4
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ebp - 0x38]
jb 0x4a2280
cmp byte [ebp - 0x3d], 0
jne 0x4a23a3
mov ecx, dword [ebp + 8]
cmp byte [ecx + 4], 0
je 0x4a2224
mov eax, 1
mov edx, 2
push eax
lea eax, [ebp + 0xc]
dec dword [ebp - 0x14]
call fcn.004b7660
pop eax
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a23cc
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
mov byte [ebp - 8], dl
test dl, dl
jle 0x4a23df
call fcn.004b8068
mov ebx, ecx
mov byte [ebp - 0x29], dl
mov dword [ebp - 4], eax
mov eax, 0x4d20e4
call fcn.004ad4bc
mov word [ebp - 0x18], 8
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0047489c
add dword [ebp - 0xc], 2
mov dl, 3
mov eax, dword [ebp - 4]
call fcn.00474984
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [edx + 0x34], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], ebx
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
mov eax, dword [ebp - 4]
cmp byte [ebp - 0x29], 0
je 0x4a2438
call fcn.004b8075
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4b2284
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x4b22e6
call fcn.004b2234
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004ad188
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004ad188
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4b2364
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4d851c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4b243e
cmp dword [0x4d8518], 0
jne 0x4b243e
cmp dword [0x4d871c], 0
je 0x4b23f8
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004b2134
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4b23de
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004b2134
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4b23de
lea ebx, [ebp - 0x84]
jmp 0x4b23df
inc ebx
call fcn.004b2320
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4b2479
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4d8520
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004ad188
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4d8523
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4b2479
cmp dword [0x4d8518], 0
je 0x4b2458
cmp dword [0x4d8518], 0xffffffff
je 0x4b2479
push esi
call dword [0x4d8518]
pop ecx
mov eax, dword [0x4d851c]
test eax, eax
je 0x4b2479
cmp dword [0x4d851c], 0xffffffff
je 0x4b2479
cmp byte [eax], 0
je 0x4b2479
push esi
push eax
call fcn.004b2284
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x41a113
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x41a122
pop dword [ebp - 0x10]
mov eax, 0xc32dc726
sub eax, 0xc2ec2604
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x52ec6
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0xef8931b
add ecx, 0xf107bff9
mov edi, eax
mov ebx, 0x862e14fb
add ebx, 0x7a194905
add ebx, dword [ebp - 0x10]
mov esi, 0x8ccd4af0
add esi, 0x9d3c524a
xor dword [ebp - 0xc], ebx
mov edx, dword [ebx]
mov dword [ebp - 4], 0x350dac03
sub edx, esi
mov dword [edi], edx
xor dword [ebp - 8], eax
add edi, 4
add ebx, 0x6c4fc492
add ebx, 0x93b03b72
loop 0x41a17c
add eax, 0x13f23
xor ebx, ebx
add ebx, eax
add eax, 0xbcca538b
add eax, 0x4335ac7a
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x403650
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca698
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4f86c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
push 0xa
push str.regsvr32__
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004023e0
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
call fcn.00402320
push 4
push 0x4e67c0
lea ecx, [ebp - 0x28]
call fcn.004023e0
push 0x40
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.004aceb0
add esp, 0xc
mov dword [ebp - 0x88], 0x44
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
cmovae eax, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x88]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
movdqu xmmword [ebp - 0x3c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40371b
xor bl, bl
jmp 0x40375b
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40374a
push eax
call esi
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x403754
push eax
call esi
cmp dword [ebp - 0x2c], 0
sete bl
cmp dword [ebp - 0x14], 0x10
jb 0x40376c
push dword [ebp - 0x28]
call fcn.004a7f26
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a768e
mov esp, ebp
pop ebp
ret
Function at 0x403790
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca6d0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4f86c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x4037c7
mov eax, dword [esi]
jmp 0x4037c9
mov eax, esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push eax
call edi
test eax, eax
je 0x4037dd
mov al, 1
jmp 0x403982
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.004085c0
mov dword [ebp - 4], 0
push 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.004a8234
add esp, 4
test eax, eax
jne 0x40383a
call fcn.004a6df3
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x3c]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x3c]
mov dword [eax], ecx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 0
je 0x4038ca
lea esp, [esp]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
test eax, eax
jne 0x4038ca
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004054d0
push 1
push ecx
push 0x4e6770
lea ecx, [ebp - 0x28]
call fcn.00405c10
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4038ac
push 1
push ecx
push 0x4e67f8
lea ecx, [ebp - 0x28]
call fcn.00405c10
mov ecx, eax
cmp ecx, 0xffffffff
je 0x4038ca
cmp dword [ebp - 0x18], ecx
jb 0x403924
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
cmp dword [ebp - 0x18], edx
jne 0x403860
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0xc
mov dword [ebp - 0x40], 0
test eax, eax
je 0x403953
push 0
lea eax, [ebp - 0x44]
push eax
push 1
push 0x4e67d0
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x403953
mov esi, dword [ebp - 0x2c]
dec esi
js 0x40394f
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00405e00
mov ecx, eax
call fcn.004061c0
mov edx, eax
mov eax, dword [edx]
test eax, eax
jne 0x40392e
jmp 0x403930
push str.invalid_string_position
call fcn.004a6e52
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov eax, dword [eax + ecx*4]
cmp dword [eax + 0x14], 8
jb 0x403945
mov eax, dword [eax]
lea ecx, [ebp - 0x48]
push ecx
push eax
call edi
dec esi
jns 0x403902
mov bl, 1
jmp 0x403955
xor bl, bl
lea ecx, [ebp - 0x3c]
call fcn.00405fa0
push dword [ebp - 0x3c]
call fcn.004a7f26
add esp, 4
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x14], 8
jb 0x403980
push dword [ebp - 0x28]
call fcn.004a7f26
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a768e
mov esp, ebp
pop ebp
ret
Function at 0x403d70
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca7d0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4f86c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 0x10
jb 0x403da7
mov eax, dword [esi]
jmp 0x403da9
mov eax, esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
push eax
call edi
test eax, eax
je 0x403dbd
mov al, 1
jmp 0x403f61
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00401720
mov dword [ebp - 4], 0
push 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.004a8234
add esp, 4
test eax, eax
jne 0x403e19
call fcn.004a6df3
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x3c]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x3c]
mov dword [eax], ecx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 0
je 0x403ea9
jmp 0x403e40
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
test eax, eax
jne 0x403ea9
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004055b0
push 1
push ecx
push 0x4e67cc
lea ecx, [ebp - 0x28]
call fcn.004058a0
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x403e8c
push 1
push ecx
push 0x4e6810
lea ecx, [ebp - 0x28]
call fcn.004058a0
mov ecx, eax
cmp ecx, 0xffffffff
je 0x403ea9
cmp dword [ebp - 0x18], ecx
jb 0x403f03
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
cmp dword [ebp - 0x18], 0
jne 0x403e40
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0xc
mov dword [ebp - 0x40], 0
test eax, eax
je 0x403f32
push 0
lea eax, [ebp - 0x44]
push eax
push 1
push 0x4e67d0
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x403f32
mov esi, dword [ebp - 0x2c]
dec esi
js 0x403f2e
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00405e00
mov ecx, eax
call fcn.004061c0
mov edx, eax
mov eax, dword [edx]
test eax, eax
jne 0x403f0d
jmp 0x403f0f
push str.invalid_string_position
call fcn.004a6e52
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov eax, dword [eax + ecx*4]
cmp dword [eax + 0x14], 0x10
jb 0x403f24
mov eax, dword [eax]
lea ecx, [ebp - 0x48]
push ecx
push eax
call edi
dec esi
jns 0x403ee1
mov bl, 1
jmp 0x403f34
xor bl, bl
lea ecx, [ebp - 0x3c]
call fcn.00406040
push dword [ebp - 0x3c]
call fcn.004a7f26
add esp, 4
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x14], 0x10
jb 0x403f5f
push dword [ebp - 0x28]
call fcn.004a7f26
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a768e
mov esp, ebp
pop ebp
ret