joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416a40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x469838
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4896a0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004030b0
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
sub eax, 0x10
push eax
mov dword [esp + 0x1c], 0
call fcn.004030b0
mov dl, byte [esp + 0x30]
add esp, 8
add eax, 0x10
mov dword [esi + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0xc], eax
mov byte [esi + 8], dl
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x10
Function at 0x419260
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, ecx
xor edx, edx
cmp dword [edi + 0x3cc], edx
jle 0x419286
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
mov cl, byte [esi]
xor byte [eax], cl
inc edx
inc esi
inc eax
cmp edx, dword [edi + 0x3cc]
jl 0x419276
pop esi
pop edi
ret 8

Function at 0x419400
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
lea eax, [esi + 4]
push 0
push eax
mov dword [esi], vtable.CEncryptMd5.0
call fcn.00449a70
add esp, 0xc
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
mov eax, esi
pop esi
ret

Function at 0x41a070
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push esi
xor esi, esi
cmp dword [esp + 0x14], esi
jle 0x41a0d9
push ebp
mov ebp, dword [esp + 0x14]
push edi
lea esp, [esp]
inc cl
movzx edi, cl
mov ecx, dword [eax + edi*4 + 8]
add dl, cl
mov dword [esp + 0x18], ecx
movzx ecx, dl
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + ecx*4 + 8]
mov dword [eax + edi*4 + 8], ecx
add cl, dl
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x14]
movzx ecx, cl
mov dword [eax + edi*4 + 8], edx
mov dl, byte [eax + ecx*4 + 8]
xor byte [esi + ebp], dl
mov ecx, dword [esp + 0xc]
inc esi
cmp esi, dword [esp + 0x1c]
mov edx, edi
jl 0x41a090
pop edi
pop ebp
mov dword [eax + 4], edx
mov dword [eax], ecx
pop esi
pop ecx
ret 0xc
Function at 0x41b400
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
or eax, 0xffffffff
test ecx, ecx
je 0x41b42c
mov edx, dword [esp + 4]
push esi
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x487b20]
dec ecx
inc edx
test ecx, ecx
jne 0x41b410
pop esi
not eax
ret

Function at 0x41b430
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41b456
or eax, eax
pop esi
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x41b470
Capabilities:
Get disk information

Disassembly:
push 2
call fcn.00426d03
mov ecx, dword [esp + 8]
mov dl, byte [ecx]
add esp, 4
push eax
mov byte [eax], dl
mov byte [eax + 1], 0
call dword [sym.imp.USER32.dll_CharUpperA]
add byte [eax], 0xbf
mov cl, byte [eax]
mov dword [esp + 4], 0
push eax
mov byte [esp + 8], cl
call fcn.00426cf8
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, dword [esp + 4]
mov edx, 1
shl edx, cl
test edx, eax
setne al
ret

Function at 0x41b500
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41b526
xor eax, eax
pop esi
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push edi
push ecx
push 0
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov edi, ecx
test edi, edi
je 0x41b562
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push 0
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x41b570
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
push ebp
mov ebp, dword [esp + 0x14]
push esi
xor eax, eax
push edi
test ebp, ebp
setne al
push 0
push 0
mov edi, 1
add eax, 2
push eax
push 0
push 3
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41b5b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor eax, eax
pop ebp
ret
test ebp, ebp
je 0x41b5c3
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x24]
push edx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41b5e6
cmp ebx, dword [esp + 0x20]
je 0x41b5e8
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
test edi, edi
jne 0x41b605
test ebp, ebp
jne 0x41b605
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0044e24d
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x41b660
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41b675
xor eax, eax
pop esi
ret
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
ret

Function at 0x41b9f0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x558
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x554], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x568]
push edi
push 0x207
lea eax, [esp + 0x159]
push 0
push eax
mov byte [esp + 0x160], 0
call fcn.00449a70
push 0x207
lea ecx, [esp + 0x36d]
push 0
push ecx
mov byte [esp + 0x374], 0
call fcn.00449a70
mov eax, esi
add esp, 0x18
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41ba50
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
je 0x41ba6e
push 0x46d8b4
push esi
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea edx, [esp + 0x360]
push edx
call ebp
push 0x46db80
lea eax, [esp + 0x360]
push eax
call edi
push 0x140
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.00449a70
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x360]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
je 0x41bb98
test ebx, ebx
je 0x41bb98
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x41bae0
lea ecx, [esp + 0x40]
push 0x46db7c
push ecx
call fcn.0044a83e
add esp, 8
test eax, eax
je 0x41bb6a
lea edx, [esp + 0x40]
push 0x46db68
push edx
call fcn.0044a83e
add esp, 8
test eax, eax
je 0x41bb6a
push esi
lea eax, [esp + 0x158]
push eax
call ebp
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x158]
push edx
call edi
lea eax, [esp + 0x154]
push eax
call ebx
test al, 0x10
je 0x41bb46
lea ecx, [esp + 0x154]
push ecx
call fcn.0041b9f0
add esp, 4
jmp 0x41bb6a
test al, 1
je 0x41bb5c
and eax, 0xfffffffe
push eax
lea edx, [esp + 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41bae0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov al, 1
jmp 0x41bb9a
xor al, al
mov ecx, dword [esp + 0x564]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00449ba6
add esp, 0x558
ret
Function at 0x41bbe0
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
mov esi, 3
cmp ebp, esi
jbe 0x41bc55
jmp 0x41bc00
cmp byte [esi + ebx], 0x5c
jne 0x41bc50
call fcn.0042fb43
push eax
push esi
push ebx
lea ecx, [esp + 0x1c]
call fcn.00402f40
mov edi, dword [esp + 0x10]
push edi
call fcn.0041b840
add esp, 4
test eax, eax
jne 0x41bc34
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x41bc76
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bc50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc esi
cmp esi, ebp
jb 0x41bc00
push ebx
call fcn.0041b840
add esp, 4
test eax, eax
jne 0x41bc6e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x41bc92
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bc92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
Function at 0x41fa10
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x14], eax
mov ecx, dword [0x474260]
mov edx, dword [0x474264]
xor eax, eax
mov dword [0x48c40c], eax
mov dword [0x48c410], eax
mov dword [0x48c414], eax
mov dword [0x48c418], eax
mov dword [0x48c41c], eax
mov dword [0x48c420], eax
mov dword [0x48c424], eax
mov dword [0x48c428], eax
mov eax, dword [str.Beijing_E_SafeNet]
mov dword [0x48c40c], eax
mov eax, dword [0x474268]
mov dword [0x48c410], ecx
mov cx, word [0x47426c]
mov dword [0x48c414], edx
mov edx, dword [str.CDGCobra_DocGuard]
mov dword [0x48c418], eax
mov eax, dword [0x47424c]
mov word [0x48c41c], cx
mov ecx, dword [0x474250]
mov dword [esp], edx
mov edx, dword [0x474254]
mov dword [esp + 4], eax
mov ax, word [0x474258]
push 0x48c40c
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov word [esp + 0x14], ax
call fcn.0041f9e0
lea ecx, [esp + 4]
push ecx
call fcn.0041f9e0
add esp, 8
xor edx, edx
lea esp, [esp]
mov al, byte [edx + 0x48c40c]
xor ecx, ecx
jmp 0x41fae0
xor al, byte [esp + ecx]
add ecx, 6
xor al, byte [esp + ecx - 5]
xor al, byte [esp + ecx - 4]
xor al, byte [esp + ecx - 3]
xor al, byte [esp + ecx - 2]
xor al, byte [esp + ecx - 1]
cmp ecx, 0x12
jl 0x41fae0
mov byte [edx + 0x48c40c], al
inc edx
cmp edx, 0x20
jl 0x41fad0
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00449ba6
add esp, 0x18
ret

Function at 0x420950
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x4209a7
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push edi
lea esp, [esp]
inc cl
movzx edi, cl
mov bl, byte [eax + edi + 8]
add dl, bl
movzx edx, dl
mov cl, byte [eax + edx + 8]
mov byte [eax + edi + 8], cl
add cl, bl
movzx ecx, cl
mov byte [eax + edx + 8], bl
movzx ecx, byte [ecx + eax + 8]
xor byte [esi + ebp], cl
inc esi
cmp esi, dword [esp + 0x1c]
mov dword [esp + 0x14], edi
mov ecx, edi
jl 0x420970
pop edi
pop ebp
pop ebx
mov dword [eax + 4], edx
mov dword [eax], ecx
pop esi
ret

Function at 0x4211a0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [esi + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.00420cc0
mov dword [esi + 0x14], eax
movzx eax, al
add eax, dword [esi + 0x18]
mov ecx, esi
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x18], eax
shr eax, 0x18
mov byte [esp + 8], al
mov edx, dword [esp + 8]
mov eax, dword [esi + 0x1c]
push edx
push eax
call fcn.00420cc0
mov dword [esi + 0x1c], eax
pop esi
ret 4
Function at 0x4218d0
Capabilities:
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x12c]
sub esp, 0x12c
push 0xffffffffffffffff
push 0x469f90
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4896a0]
xor eax, ebp
mov dword [ebp + 0x128], 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, dword [ebp + 0x134]
mov esi, ecx
cmp byte [esi + 0xe4], 0xff
je 0x421924
xor eax, eax
jmp 0x421a13
xor ebx, ebx
mov dword [ebp - 0x14], 1
cmp byte [ebp + 0x138], bl
jne 0x4219e9
cmp dword [esi + 0x60], ebx
jne 0x421956
call fcn.00420be0
mov ecx, dword [esi + 0x68]
cmp ecx, dword [eax + 0x14]
je 0x42195d
push 0xffffffffffffff9a
mov ecx, esi
call fcn.00421690
jmp 0x42195d
mov dword [ebp - 0x14], 0xffffffff
mov ecx, esi
call fcn.00420be0
cmp word [eax + 0xe], 8
jne 0x421974
lea edx, [esi + 0x28]
push edx
call fcn.00460c70
cmp edi, ebx
je 0x4219e9
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
call fcn.0044c818
mov dword [ebp + 0x10], eax
mov dword [ebp], eax
add esp, 4
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
mov dword [ebp + 0x14], edx
mov dword [ebp + 4], edx
mov byte [ebp + 0x20], bl
call fcn.00420be0
mov ecx, eax
call fcn.00423d80
mov ecx, dword [eax]
mov dword [ebp + 8], ecx
mov edx, dword [eax + 4]
lea eax, [ebp]
push eax
push edi
mov dword [ebp + 0xc], edx
call fcn.00427d98
mov ecx, esi
call fcn.00420be0
mov ecx, dword [eax + 0x24]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4219e9
mov dword [ebp - 0x14], 0xfffffffe
lea ecx, [esi + 0xe8]
mov dword [ebp - 4], 0xffffffff
call fcn.004261a0
lea ecx, [esi + 0x6c]
mov byte [esi + 0xe4], bl
call fcn.004253e0
mov ecx, esi
call fcn.004212c0
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 + 0x128]
xor ecx, ebp
call fcn.00449ba6
add ebp, 0x12c
mov esp, ebp
pop ebp
ret 8
Function at 0x421c40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xe8]
push ebp
mov ecx, edi
call fcn.00425840
test al, al
jne 0x421c63
pop edi
pop esi
xor al, al
pop ebp
ret 4
lea ecx, [esi + 0x78]
call fcn.004242a0
cmp eax, 1
je 0x421c5b
cmp byte [esi + 0xe4], 0
jne 0x421c5b
lea ecx, [esi + 0x20]
call fcn.00426b90
push ebp
mov ecx, edi
call fcn.004260d0
mov ecx, esi
call fcn.00420be0
mov ecx, eax
call fcn.00423b00
test al, al
je 0x421cbc
cmp dword [esi + 0x10], 0
je 0x421c5b
mov ecx, esi
call fcn.004214a0
mov ecx, esi
call fcn.004214e0
test al, al
jne 0x421cbc
push 0xffffffffffffff94
mov ecx, esi
call fcn.00421690
mov ecx, esi
call fcn.00420be0
movzx edi, word [eax + 0xe]
test di, di
je 0x421cd9
cmp di, 8
je 0x421cdf
push 0xffffffffffffff9b
call fcn.00421690
cmp di, 8
jne 0x421d0c
cmp byte [esi + 4], 0
je 0x421ced
lea eax, [esi + 0xc8]
jmp 0x421cef
xor eax, eax
push 0x38
push 0x474278
mov dword [esi + 0x50], eax
push 0xfffffffffffffff1
lea eax, [esi + 0x28]
push eax
call fcn.00460cc0
push eax
mov ecx, esi
call fcn.00421740
mov ecx, esi
call fcn.00420be0
mov ecx, dword [eax + 0x18]
mov dword [esi + 0x64], ecx
mov ecx, esi
call fcn.00420be0
mov ecx, eax
call fcn.00423b00
test al, al
je 0x421d2f
add dword [esi + 0x64], 0xfffffff4
mov ecx, esi
call fcn.00420be0
mov edx, dword [eax + 0x1c]
pop edi
mov dword [esi + 0x60], edx
mov dword [esi + 0x68], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x2c], 0
mov byte [esi + 0xe4], 0xff
pop esi
mov al, 1
pop ebp
ret 4
Function at 0x422400
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x46a086
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
push edi
mov eax, dword [0x4896a0]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x130]
mov esi, dword [esp + 0x12c]
push 0
push 0
push 0
push 0
push 0x100
lea ecx, [esp + 0x2c]
push ecx
push 3
lea edx, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x30], 0
call fcn.0044c4cc
add esp, 0x24
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
call fcn.00403c70
mov edi, eax
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x128], 0
call fcn.00403c70
push edi
push eax
push esi
mov byte [esp + 0x130], 1
call fcn.004052b0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x124], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4224d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x124], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422500
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00449ba6
add esp, 0x11c
ret

Function at 0x422700
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x46a126
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push edi
mov eax, dword [0x4896a0]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
mov eax, dword [esp + 0x22c]
mov esi, dword [esp + 0x228]
push 0x100
lea ecx, [esp + 0x18]
push ecx
push 0x100
lea edx, [esp + 0x120]
push edx
push 0
push 0
push 0
push 0
push eax
mov dword [esp + 0x30], 0
call fcn.0044c4cc
add esp, 0x24
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
call fcn.00403c70
mov edi, eax
lea ecx, [esp + 0x114]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x224], 0
call fcn.00403c70
push edi
push eax
push esi
mov byte [esp + 0x22c], 1
call fcn.004052b0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x220], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4227de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x220], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422809
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00449ba6
add esp, 0x218
ret
Function at 0x422840
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x46a189
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x4896a0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0
call fcn.00403c70
push 0x46d8b4
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0
call fcn.00416ac0
mov ecx, dword [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00422400
add esp, 8
mov ecx, dword [esp + 0xc]
xor edx, edx
test ecx, ecx
setne dl
mov byte [esp + 0x20], 1
mov dword [esp + 0x10], 1
test edx, edx
jne 0x4228c9
push 0x80004005
call fcn.00402930
mov eax, dword [eax]
push ecx
push eax
call fcn.0044a83e
add esp, 8
test eax, eax
sete al
or esi, 0xffffffff
test al, al
jne 0x4228f6
mov eax, dword [esp + 0xc]
push eax
call fcn.004210c0
add esp, 4
cmp eax, esi
je 0x4228f6
xor bl, bl
jmp 0x4228f8
mov bl, 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x20], 0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42291f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x4229ee
mov ecx, dword [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00422400
mov eax, dword [eax]
push eax
mov byte [esp + 0x2c], 2
call fcn.00422840
add esp, 0xc
test al, al
mov eax, dword [esp + 0x14]
sete bl
add eax, 0xfffffff0
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42296f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4229a8
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x20], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x422994
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x18
ret
mov ecx, dword [esp + 0xc]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4229ee
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x20], esi
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x422994
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov dword [esp + 0x20], esi
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x422a0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x18
ret