joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e8b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi], edi
jne 0x42e8d2
push 0x4ba6bc
call ebx
mov dword [esi], eax
test eax, eax
je 0x42e9e7
cmp dword [esi + 4], edi
jne 0x42e8e9
push str.Crypt32.dll
call ebx
mov dword [esi + 4], eax
test eax, eax
je 0x42e9e7
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [esi + 8], edi
jne 0x42e908
push str.CryptCATAdminAcquireContext
push dword [esi]
call ebx
mov dword [esi + 8], eax
test eax, eax
je 0x42e9e7
cmp dword [esi + 0xc], edi
jne 0x42e921
push str.CryptCATAdminReleaseContext
push dword [esi]
call ebx
mov dword [esi + 0xc], eax
test eax, eax
je 0x42e9e7
cmp dword [esi + 0x14], edi
jne 0x42e93a
push str.CryptCATCatalogInfoFromContext
push dword [esi]
call ebx
mov dword [esi + 0x14], eax
test eax, eax
je 0x42e9e7
cmp dword [esi + 0x10], edi
jne 0x42e953
push str.CryptCATAdminReleaseCatalogContext
push dword [esi]
call ebx
mov dword [esi + 0x10], eax
test eax, eax
je 0x42e9e7
cmp dword [esi + 0x18], edi
jne 0x42e968
push str.CryptCATAdminCalcHashFromFileHandle
push dword [esi]
call ebx
mov dword [esi + 0x18], eax
test eax, eax
je 0x42e9e7
cmp dword [esi + 0x1c], edi
jne 0x42e97d
push str.CryptCATAdminEnumCatalogFromHash
push dword [esi]
call ebx
mov dword [esi + 0x1c], eax
test eax, eax
je 0x42e9e7
cmp dword [esi + 0x20], edi
jne 0x42e992
push str.WinVerifyTrustEx
push dword [esi]
call ebx
mov dword [esi + 0x20], eax
test eax, eax
je 0x42e9e7
cmp dword [esi + 0x24], edi
jne 0x42e9a7
push str.WTHelperProvDataFromStateData
push dword [esi]
call ebx
mov dword [esi + 0x24], eax
test eax, eax
je 0x42e9e7
cmp dword [esi + 0x28], edi
jne 0x42e9bc
push str.WTHelperGetProvSignerFromChain
push dword [esi]
call ebx
mov dword [esi + 0x28], eax
test eax, eax
je 0x42e9e7
cmp dword [esi + 0x2c], edi
jne 0x42e9d1
push str.WTHelperGetProvCertFromChain
push dword [esi]
call ebx
mov dword [esi + 0x2c], eax
test eax, eax
je 0x42e9e7
cmp dword [esi + 0x30], edi
jne 0x42ea27
push str.CertNameToStrW
push dword [esi + 4]
call ebx
mov dword [esi + 0x30], eax
test eax, eax
jne 0x42ea27
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
cmp dword [esi], edi
je 0x42ea18
push dword [esi]
call ebx
mov dword [esi], edi
cmp dword [esi + 4], edi
je 0x42ea4f
push dword [esi + 4]
call ebx
mov dword [esi + 4], edi
jmp 0x42ea4f
push 0x40
lea eax, [esi + 0x34]
push edi
push eax
call fcn.00482250
push 0x104
lea eax, [esi + 0x74]
push edi
push eax
call fcn.00482250
add esp, 0x18
mov ecx, esi
call fcn.0042ea55
xor edi, edi
inc edi
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x42ea55
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
mov eax, 0x121c
call fcn.00482980
mov eax, dword [0x4d3a00]
xor eax, esp
mov dword [esp + 0x1218], eax
push esi
push edi
mov edi, 0x1000
mov dword [esp + 0xc], ecx
xor esi, esi
lea eax, [esp + 0x18]
push edi
push esi
push eax
mov dword [esp + 0x14], esi
call fcn.00482250
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x42eb81
mov edi, dword [esp + 0x14]
push ebx
shr edi, 2
xor ebx, ebx
test edi, edi
je 0x42eb7e
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + ebx*4 + 0x20]
test eax, eax
je 0x42eb70
cmp eax, 8
jbe 0x42eb70
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x42eb70
push 0x104
lea eax, [esp + 0x1024]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x42eb6d
lea eax, [esp + 0x1020]
push 0x104
push eax
call fcn.0047b318
lea eax, [esp + 0x1028]
push str.windowsexplorer.exe
push eax
call fcn.0047bbee
add esp, 0x10
test eax, eax
je 0x42eb6d
lea eax, [esp + 0x18]
push eax
push 0xf00ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42eb6d
mov edx, dword [esp + 0x14]
xor ecx, ecx
lea eax, [edx + 0x34]
cmp dword [eax], 0
je 0x42eb5d
inc ecx
add eax, 4
cmp ecx, 0x10
jb 0x42eb4d
jmp 0x42eb6d
mov eax, dword [esp + 0x18]
mov dword [edx + ecx*4 + 0x34], eax
mov dword [esp + 0x10], 1
push esi
call ebp
inc ebx
cmp ebx, edi
jb 0x42eabf
mov esi, dword [esp + 0x10]
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x1220]
pop edi
pop esi
xor ecx, esp
call fcn.0047aabf
add esp, 0x121c
ret
Function at 0x4316d0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00482980
mov eax, dword [0x4d3a00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x100c]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [ebp - 0x808]
mov dword [ebp - 0x100c], 0
push edx
lea edx, [ebp - 0x1010]
mov dword [ebp - 0x1010], 1
push edx
push 0
push eax
push dword [ecx]
mov dword [ebp - 0x100c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x43186e
mov ecx, dword [ebp - 0x1010]
cmp ecx, 1
jne 0x4317b2
cmp word [ebp - 0x808], ax
jne 0x431770
xor ecx, ecx
lea eax, [ebp - 0x808]
push ecx
push eax
mov ecx, edi
call fcn.00403190
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047aabf
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x808]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431780
sub ecx, edx
lea eax, [ebp - 0x808]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00403190
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047aabf
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x431869
push 0x400
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x100c], eax
test eax, eax
je 0x431852
cmp eax, 0x400
ja 0x431852
cmp word [ebp - 0x1008], 0
jne 0x431814
xor ecx, ecx
lea eax, [ebp - 0x1008]
push ecx
push eax
mov ecx, edi
call fcn.00403190
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047aabf
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x1008]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431820
sub ecx, edx
lea eax, [ebp - 0x1008]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00403190
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047aabf
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047aabf
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047aabf
mov esp, ebp
pop ebp
ret 8
Function at 0x431e50
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [esi + 0x18], ecx
ja 0x431ea2
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov edx, dword [esi + 8]
mov esi, dword [esi]
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov ebx, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp ebx, esi
jne 0x431eba
mov ecx, esi
jmp 0x431ebf
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x431eec
mov ecx, dword [eax + 8]
cmp ecx, dword [edi]
je 0x431ece
mov eax, dword [eax]
jmp 0x431eb2
mov ecx, dword [edi]
cmp ecx, dword [eax + 8]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], esi
jne 0x431ede
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x432240
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [ebx + 0x14]
xor ecx, eax
imul ecx, ecx, 0x1000193
and ecx, edx
cmp dword [ebx + 0x18], ecx
ja 0x432294
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov esi, dword [ebx]
lea edx, [ecx*8]
mov ecx, dword [ebx + 8]
mov dword [esp + 0xc], edx
mov eax, dword [ecx + edx]
cmp esi, eax
je 0x4322c3
mov esi, dword [ecx + edx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x4322c3
mov ecx, dword [edi]
mov esi, dword [esi + 4]
cmp dword [esi + 8], ecx
je 0x432307
cmp esi, eax
jne 0x4322b7
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x4322f1
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [esp + 0xc]
mov ecx, dword [ebx + 8]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x432323
mov dword [ecx], edi
mov eax, dword [ebx + 8]
mov dword [eax + edx + 4], edi
jmp 0x432345
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.00432360
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x43232b
mov dword [ecx], edi
jmp 0x432345
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x432345
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.004323b0
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4325c0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x4d3a00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov bl, dl
mov eax, dword [esi + 0x10]
cmp eax, 0x104
jb 0x4325f5
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047aabf
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x43260b
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047aabf
mov esp, ebp
pop ebp
ret
test bl, bl
jne 0x43266a
lea ecx, [ebp - 0x260]
call fcn.0043f470
mov edx, ecx
mov ecx, esi
call fcn.00432b90
test al, al
je 0x432653
cmp byte [ebp - 0x258], bl
je 0x432653
cmp dword [esi + 0x14], 8
jb 0x432637
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047aabf
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x43265d
mov eax, dword [esi]
jmp 0x43265f
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4325f9
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00482250
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x432690
mov esi, dword [esi]
lea ecx, [ebp - 0x218]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x432696
mov word [ebp - 0x21c], ax
xorps xmm0, xmm0
mov dword [ebp - 0x238], 0
lea eax, [ebp - 0x218]
movq qword [ebp - 0x224], xmm0
movdqu xmmword [ebp - 0x234], xmm0
mov dword [ebp - 0x230], eax
mov eax, 0x414
mov dword [ebp - 0x234], 3
mov word [ebp - 0x228], ax
test bl, bl
jne 0x4326fd
mov eax, 0x1494
mov word [ebp - 0x228], ax
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [ebp - 0x226], 0
jne 0x4325e3
test eax, eax
je 0x43273e
cmp eax, 2
je 0x43273e
cmp eax, 0x402
je 0x43273e
cmp eax, 0x7c
je 0x43273e
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047aabf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.0047aabf
mov esp, ebp
pop ebp
ret

Function at 0x432760
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x432768
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
ret

Function at 0x432780
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x432788
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43279b
shr eax, 4
and eax, 1
ret
xor al, al
ret
Function at 0x4327a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4d3a00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x218]
mov esi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x4328bf
sub esp, 8
lea eax, [ebp - 0x218]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x218], 0
jne 0x4327f0
xor ecx, ecx
jmp 0x43280f
lea ecx, [ebp - 0x218]
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x432800
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x248]
call fcn.0042ffa0
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x43282c
mov ecx, dword [eax]
jmp 0x43282e
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x230]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.0042ffa0
lea ecx, [ebp - 0x230]
call fcn.00430bf0
lea eax, [ebp - 0x230]
cmp esi, eax
je 0x432862
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004030af
cmp dword [ebp - 0x21c], 8
jb 0x432879
push dword [ebp - 0x230]
call fcn.0047b56e
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], 7
cmp dword [ebp - 0x234], 8
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
jb 0x4328ad
push dword [ebp - 0x248]
call fcn.0047b56e
add esp, 4
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047aabf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0047aabf
mov esp, ebp
pop ebp
ret

Function at 0x4328e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4d3a00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x210]
mov esi, ecx
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x43298b
cmp word [ebp - 0x210], 0
je 0x43298b
sub esp, 8
lea eax, [ebp - 0x210]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x210], 0
jne 0x43294f
xor ecx, ecx
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.0042ffa0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047aabf
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x210]
lea edi, [ecx + 2]
jmp 0x432960
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x432960
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.0042ffa0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047aabf
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x214], 7
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
call fcn.004327a0
mov ecx, esi
test al, al
je 0x4329dd
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
push eax
mov word [esi], ax
lea eax, [ebp - 0x228]
push eax
call fcn.004030af
jmp 0x4329f4
sub esp, 8
mov eax, esp
mov dword [eax], 0x4ba898
mov dword [eax + 4], 3
call fcn.0042ffa0
cmp dword [ebp - 0x214], 8
jb 0x432a0b
push dword [ebp - 0x228]
call fcn.0047b56e
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0047aabf
mov esp, ebp
pop ebp
ret
Function at 0x432a20
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d3a00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x20], 0
push esi
push edi
mov esi, edx
cmp dword [ebx + 0x14], 8
jb 0x432a4b
mov eax, dword [ebx]
mov dword [ebp - 0x20], eax
jmp 0x432a50
mov eax, ebx
mov dword [ebp - 0x20], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x432a90
test al, 0x10
je 0x432a73
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047aabf
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x432a7d
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047aabf
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.00430460
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
jb 0x432aa8
mov ecx, dword [ebx]
jmp 0x432aaa
mov ecx, ebx
cmp dword [ebp - 8], 8
lea edx, [ebp - 0x1c]
mov edi, eax
cmovae edx, dword [ebp - 0x1c]
cmp dword [ebp - 0xc], eax
cmovb edi, dword [ebp - 0xc]
test edi, edi
jne 0x432af0
xor eax, eax
test eax, eax
jne 0x432b0f
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebp - 0xc]
cmp edx, ecx
jb 0x432b0f
cmp edx, ecx
setne al
test eax, eax
jne 0x432b0f
test esi, esi
je 0x432b58
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x432b5e
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x432b01
add edx, 2
add ecx, 2
dec edi
jmp 0x432ac0
movzx eax, word [edx]
cmp ax, word [ecx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x432ac4
mov edx, esi
lea ecx, [ebp - 0x1c]
call fcn.00432a20
test al, al
jne 0x432b21
xor bl, bl
jmp 0x432b5e
push 0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x432b5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xb7
jne 0x432b4b
mov ecx, ebx
call fcn.00432780
test al, al
jne 0x432b5c
test esi, esi
je 0x432b58
mov ecx, edi
call fcn.00445630
mov dword [esi], eax
xor bl, bl
jmp 0x432b5e
mov bl, 1
cmp dword [ebp - 8], 8
jb 0x432b6f
push dword [ebp - 0x1c]
call fcn.0047b56e
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047aabf
mov esp, ebp
pop ebp
ret
Function at 0x432d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, edx
mov dword [ebp - 8], 0
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
jb 0x432d70
mov ecx, dword [ecx]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
je 0x432dfc
lea ecx, [ebp - 4]
call fcn.00431910
cmp esi, 0xffffffff
je 0x432dd6
mov dword [ebp - 4], esi
call fcn.00443c40
mov ebx, eax
mov eax, dword [ebp + 4]
mov ecx, dword [0x4d8e58]
mov dword [ebp - 0xc], eax
test ecx, ecx
jne 0x432dc5
call fcn.00443c50
mov ecx, dword [0x4d8e58]
mov eax, dword [ecx]
lea edx, [ebp - 4]
push ebx
push dword [ebp - 0xc]
push edx
push esi
call dword [eax + 4]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
test eax, eax
je 0x432dfc
cmp eax, 0xffffffff
je 0x432dfc
push 0
lea ecx, [ebp - 8]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x432dfc
mov esi, dword [ebp - 8]
cmp esi, edi
je 0x432dff
or esi, 0xffffffff
lea ecx, [ebp - 4]
call fcn.00431910
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x432e10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4d3a00]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov word [ebp - 0x210], ax
mov esi, ecx
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x432f90
cmp eax, 0x104
ja 0x432f90
xor eax, eax
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
cmp word [ebp - 0x210], ax
jne 0x432e7e
xor ecx, ecx
jmp 0x432e96
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x432e87
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.00403190
sub esp, 8
lea eax, [ebp - 0x228]
cmp dword [ebp - 0x214], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x228]
mov dword [ecx], eax
mov eax, dword [ebp - 0x218]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x258]
call fcn.0042ffa0
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x432ee7
mov ecx, dword [eax]
jmp 0x432ee9
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x240]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.0042ffa0
lea ecx, [ebp - 0x240]
call fcn.00430bf0
lea eax, [ebp - 0x240]
cmp esi, eax
je 0x432f1d
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004030af
cmp dword [ebp - 0x22c], 8
jb 0x432f34
push dword [ebp - 0x240]
call fcn.0047b56e
add esp, 4
xor eax, eax
mov dword [ebp - 0x22c], 7
cmp dword [ebp - 0x244], 8
mov dword [ebp - 0x230], 0
mov word [ebp - 0x240], ax
jb 0x432f68
push dword [ebp - 0x258]
call fcn.0047b56e
add esp, 4
cmp dword [ebp - 0x214], 8
jb 0x432f7f
push dword [ebp - 0x228]
call fcn.0047b56e
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047aabf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0047aabf
mov esp, ebp
pop ebp
ret
Function at 0x434300
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4d3a00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
call fcn.0047b5be
add esp, 4
test eax, eax
je 0x43432e
push ecx
mov ecx, eax
call fcn.004341a0
mov dword [0x4d8df4], eax
jmp 0x434338
mov dword [0x4d8df4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [ebp - 8], 7
xor eax, eax
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
cmp word [edx], ax
jne 0x43435d
xor ecx, ecx
jmp 0x434371
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x434362
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.00403190
mov ecx, dword [0x4d8df4]
lea eax, [ebp - 0x1c]
push eax
call fcn.00434cb0
cmp dword [ebp - 8], 8
jb 0x43439b
push dword [ebp - 0x1c]
call fcn.0047b56e
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0047aabf
mov esp, ebp
pop ebp
ret

Function at 0x434cb0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d3a00]
xor eax, ebp
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
xor eax, eax
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x24], 0
mov ecx, str._t_n_v_f_r
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x434cf0
sub ecx, esi
lea eax, [ebp - 0x20]
sar ecx, 1
push ecx
push str._t_n_v_f_r
push eax
mov ecx, edx
call fcn.00438890
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x434d4a
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], 0
cmovae eax, dword [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [ebp - 0x24]
call fcn.004343b0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xc], 8
jb 0x434d5b
push dword [ebp - 0x20]
call fcn.0047b56e
add esp, 4
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0047aabf
mov esp, ebp
pop ebp
ret 4