joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x529a2eb6
nop
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..rsrc
mov ebx, 0x42e1d0
nop
mov ecx, 0x5a954b97
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4123d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x470a30]
xor eax, esp
mov dword [esp + 0x18], eax
cmp dword [0x476840], 0
push esi
je 0x412400
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00453031
mov esp, ebp
pop ebp
ret
push 0x18
call fcn.0044ef99
add esp, 4
test eax, eax
je 0x41241e
push 0
mov ecx, eax
call fcn.00412220
mov dword [0x476840], eax
jmp 0x412428
mov dword [0x476840], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [esp + 0x18], 7
xor eax, eax
mov dword [esp + 0x14], 0
mov word [esp + 4], ax
cmp word [edx], ax
jne 0x412450
xor ecx, ecx
jmp 0x412464
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412455
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0xc]
call fcn.004153a0
mov ecx, dword [0x476840]
lea eax, [esp + 4]
push eax
call fcn.004137f0
cmp dword [esp + 0x18], 8
jb 0x412492
push dword [esp + 4]
call fcn.0044f00f
add esp, 4
mov ecx, dword [esp + 0x1c]
mov al, 1
pop esi
xor ecx, esp
call fcn.00453031
mov esp, ebp
pop ebp
ret

Function at 0x4137f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x470a30]
xor eax, esp
mov dword [esp + 0x1c], eax
mov dword [esp], 0
xor eax, eax
push esi
push edi
mov word [esp + 0xc], ax
mov edi, ecx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0xc]
push eax
push 3
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
call fcn.00422550
add esp, 8
cmp dword [esp + 0x1c], 0
je 0x413876
cmp dword [esp + 0x20], 8
lea ecx, [esp + 8]
lea eax, [esp + 0xc]
mov dword [esp + 8], 0
cmovae eax, dword [esp + 0xc]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [esp + 0xc]
call fcn.004125b0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x20], 8
jb 0x413889
push dword [esp + 0xc]
call fcn.0044f00f
add esp, 4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
call fcn.00453031
mov esp, ebp
pop ebp
ret 4
Function at 0x419660
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x470a30]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
push edi
lea edi, [esi + 0x10]
je 0x4197df
cmp byte [0x47684c], 0
je 0x4197df
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push 0x5c
push eax
call fcn.0045391e
add esp, 8
test eax, eax
je 0x4196c0
xor ecx, ecx
mov word [eax + 2], cx
push 0x40da6c
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00453db3
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x4196e1
mov esi, dword [esi]
mov edx, dword [edi]
xor eax, eax
mov word [ebp - 0x228], ax
mov ecx, esi
lea eax, [ebp - 0x228]
mov dword [ebp - 0x214], 7
push eax
mov dword [ebp - 0x218], 0
call fcn.00420a50
add esp, 4
cmp dword [ebp - 0x218], 0
je 0x4197c8
push 0x44
lea eax, [ebp - 0x280]
push 0
push eax
call fcn.0042d1b5
add esp, 0xc
mov dword [ebp - 0x280], 0x44
cmp dword [ebp - 0x214], 8
lea ecx, [ebp - 0x238]
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x280]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4197a1
push 0xffffffffffffffff
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x234]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x238]
call esi
jmp 0x4197c8
cmp dword [ebp - 0x214], 8
lea eax, [ebp - 0x228]
push 0x40010
cmovae eax, dword [ebp - 0x228]
push 0x40da90
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [ebp - 0x214], 8
jb 0x4197df
push dword [ebp - 0x228]
call fcn.0044f00f
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00453031
mov esp, ebp
pop ebp
ret
Function at 0x41d650
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x260
mov eax, dword [0x470a30]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0x104
jb 0x41d68e
xor al, al
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.00453031
mov esp, ebp
pop ebp
ret
mov bl, byte [ebp + 0xc]
test bl, bl
jne 0x41d725
xorps xmm0, xmm0
mov word [esp + 0x30], 0
lea edx, [esp + 0x28]
movlpd qword [esp + 0x28], xmm0
mov ecx, esi
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x40], xmm0
movlpd qword [esp + 0x48], xmm0
call fcn.0041de40
test al, al
je 0x41d6f8
cmp byte [esp + 0x30], bl
je 0x41d6f8
cmp dword [esi + 0x14], 8
jb 0x41d6d8
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 [esp + 0x25c]
xor ecx, esp
call fcn.00453031
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x41d702
mov eax, dword [esi]
jmp 0x41d704
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x41d725
mov al, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.00453031
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x208
push eax
mov word [esp + 0x58], ax
lea eax, [esp + 0x5a]
push eax
call fcn.0042d1b5
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x41d747
mov esi, dword [esi]
lea ecx, [esp + 0x50]
jmp 0x41d750
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x41d750
mov word [esp + 0x24], ax
xorps xmm0, xmm0
mov dword [esp + 8], 0
lea eax, [esp + 0x50]
movq qword [esp + 0x1c], xmm0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 0x10], eax
mov eax, 0x414
mov dword [esp + 0xc], 3
mov word [esp + 0x18], ax
test bl, bl
jne 0x41d7a5
mov eax, 0x1494
mov word [esp + 0x18], ax
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [esp + 0x1a], 0
jne 0x41d678
test eax, eax
je 0x41d7e1
cmp eax, 2
je 0x41d7e1
cmp eax, 0x402
je 0x41d7e1
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.00453031
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x264]
mov eax, 1
pop esi
pop ebx
xor ecx, esp
call fcn.00453031
mov esp, ebp
pop ebp
ret

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

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

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x470a30]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x218]
mov esi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x41d99d
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x260]
call fcn.00413a20
xor eax, eax
mov dword [ebp - 0x21c], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x260]
mov dword [ebp - 0x220], 0
push eax
call fcn.00414780
push 1
push 0
lea eax, [ebp - 0x264]
mov dword [ebp - 0x264], 0
push eax
lea ecx, [ebp - 0x230]
call fcn.004148a0
cmp eax, 0xffffffff
je 0x41d8eb
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x230]
call fcn.00415570
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
call fcn.00418270
cmp esi, eax
je 0x41d90d
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00414780
cmp dword [ebp - 0x234], 8
jb 0x41d924
push dword [ebp - 0x248]
call fcn.0044f00f
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
jb 0x41d958
push dword [ebp - 0x230]
call fcn.0044f00f
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], 7
cmp dword [ebp - 0x24c], 8
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
jb 0x41d98c
push dword [ebp - 0x260]
call fcn.0044f00f
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453031
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00453031
mov esp, ebp
pop ebp
ret
Function at 0x41d9b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x470a30]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
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 0x41da21
cmp word [ebp - 0x210], 0
je 0x41da21
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.00413a20
lea eax, [ebp - 0x228]
mov ecx, esi
push eax
call fcn.004177a0
cmp dword [ebp - 0x214], 8
jb 0x41db3f
push dword [ebp - 0x228]
jmp 0x41db37
xor eax, eax
mov dword [ebp - 0x22c], 7
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x230], 0
mov word [ebp - 0x240], ax
call fcn.0041d840
test al, al
je 0x41da76
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov word [esi], ax
lea eax, [ebp - 0x240]
push eax
call fcn.00414780
jmp 0x41db28
push 3
xor eax, eax
mov dword [ebp - 0x214], 7
push 0x40dbb8
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
call fcn.004153a0
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov word [esi], ax
lea eax, [ebp - 0x228]
push eax
call fcn.00414780
push 1
push 0
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0
push eax
mov ecx, esi
call fcn.004148a0
cmp eax, 0xffffffff
je 0x41daf4
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.00415570
cmp dword [ebp - 0x214], 8
jb 0x41db0b
push dword [ebp - 0x228]
call fcn.0044f00f
add esp, 4
xor eax, eax
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
cmp dword [ebp - 0x22c], 8
jb 0x41db3f
push dword [ebp - 0x240]
call fcn.0044f00f
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00453031
mov esp, ebp
pop ebp
ret
Function at 0x41db50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x470a30]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
mov dword [ebp - 0x54], eax
xor eax, eax
push edi
mov dword [ebp - 0x58], edx
xor edi, edi
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], ax
jmp 0x41db90
xor eax, eax
mov dword [ebp - 0xc], 7
push 0xffffffffffffffff
push eax
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
call fcn.00414780
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0x50]
call fcn.0041e7b0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x20]
call fcn.004146b0
cmp dword [ebp - 0x3c], 8
jb 0x41dbe1
push dword [ebp - 0x50]
call fcn.0044f00f
add esp, 4
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
cmovae ecx, dword [ebp - 0x20]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x20]
cmovae ecx, dword [ebp - 0x20]
test eax, eax
je 0x41dc01
sub eax, ecx
sar eax, 1
push 0x5f
push 1
push eax
lea ecx, [ebp - 0x20]
call fcn.004154a0
mov edi, edi
lea ecx, [ebp - 0x64]
call fcn.00429be0
cmp dword [ebp - 0x60], 0xffffffff
ja 0x41dc10
mov edx, dword [ebp - 0x64]
jb 0x41dc2b
cmp edx, 0xffff7fff
ja 0x41dc10
and edx, 0x7fff
lea ecx, [ebp - 0x50]
call fcn.0041e7b0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x20]
call fcn.004146b0
cmp dword [ebp - 0x3c], 8
jb 0x41dc5a
push dword [ebp - 0x50]
call fcn.0044f00f
add esp, 4
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00417f50
lea ecx, [ebp - 0x38]
cmp ecx, eax
je 0x41dc7b
push 0xffffffffffffffff
push 0
push eax
call fcn.00414780
cmp dword [ebp - 0x3c], 8
jb 0x41dc8c
push dword [ebp - 0x50]
call fcn.0044f00f
add esp, 4
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
push 0
cmovae eax, dword [ebp - 0x38]
push eax
call ebx
test eax, eax
jne 0x41dcc2
cmp dword [ebp - 0xc], 8
jb 0x41dcb1
push dword [ebp - 0x20]
call fcn.0044f00f
add esp, 4
mov edx, dword [ebp - 0x58]
inc edi
cmp edi, 0x32
jl 0x41db90
xor bl, bl
jmp 0x41dceb
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x38]
cmp eax, ecx
je 0x41dcd8
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00414780
cmp dword [ebp - 0xc], 8
jb 0x41dce9
push dword [ebp - 0x20]
call fcn.0044f00f
add esp, 4
mov bl, 1
cmp dword [ebp - 0x24], 8
jb 0x41dcfc
push dword [ebp - 0x38]
call fcn.0044f00f
add esp, 4
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00453031
mov esp, ebp
pop ebp
ret
Function at 0x41dd10
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x470a30]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], 0
cmp dword [edi + 0x14], 8
jb 0x41dd3f
mov ebx, dword [edi]
jmp 0x41dd41
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41dd83
test al, 0x10
je 0x41dd65
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00453031
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x41dd6f
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00453031
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00417d70
cmp dword [edi + 0x14], 8
jb 0x41dd99
mov eax, dword [edi]
jmp 0x41dd9b
mov eax, edi
push dword [edi + 0x10]
lea ecx, [esp + 0x18]
push eax
push dword [esp + 0x2c]
push 0
call fcn.00415620
test eax, eax
jne 0x41ddc0
test esi, esi
je 0x41de0b
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x41de11
lea eax, [esp + 0x14]
push esi
push eax
call fcn.0041dd10
add esp, 8
test al, al
jne 0x41ddd6
xor bl, bl
jmp 0x41de11
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41de0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x41ddfe
mov ecx, edi
call fcn.0041d820
test al, al
jne 0x41de0f
test esi, esi
je 0x41de0b
mov ecx, ebx
call fcn.00424500
mov dword [esi], eax
xor bl, bl
jmp 0x41de11
mov bl, 1
cmp dword [esp + 0x28], 8
jb 0x41de24
push dword [esp + 0x14]
call fcn.0044f00f
add esp, 4
mov ecx, dword [esp + 0x2c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00453031
mov esp, ebp
pop ebp
ret

Function at 0x41e070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [esp + 8], 0
cmp dword [eax + 0x14], 8
push edi
mov edi, dword [ebp + 0xc]
jb 0x41e093
mov eax, dword [eax]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor esi, esi
test eax, eax
je 0x41e0d2
cmp eax, 0xffffffff
je 0x41e0d2
push 0
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41e0d2
mov edi, dword [esp + 0xc]
cmp edi, ebx
je 0x41e0d5
or edi, 0xffffffff
test esi, esi
je 0x41e0e9
cmp esi, 0xffffffff
je 0x41e0e9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41e0f2
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00425640
int3
Function at 0x41e100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [esp + 8], 0
cmp dword [eax + 0x14], 8
push edi
mov edi, dword [ebp + 0xc]
jb 0x41e123
mov eax, dword [eax]
push 0
push 0
push 3
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor esi, esi
test eax, eax
je 0x41e15f
cmp eax, 0xffffffff
je 0x41e15f
push 0
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41e15f
mov edi, dword [esp + 0xc]
cmp edi, ebx
je 0x41e162
or edi, 0xffffffff
test esi, esi
je 0x41e176
cmp esi, 0xffffffff
je 0x41e176
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41e17f
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00425640
int3

Function at 0x41e190
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x470a30]
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 0x41e289
cmp eax, 0x104
ja 0x41e289
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x240]
call fcn.00413a20
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x258]
call fcn.004177a0
mov ecx, eax
call fcn.00418270
cmp esi, eax
je 0x41e216
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00414780
cmp dword [ebp - 0x214], 8
jb 0x41e22d
push dword [ebp - 0x228]
call fcn.0044f00f
add esp, 4
xor eax, eax
mov dword [ebp - 0x214], 7
cmp dword [ebp - 0x244], 8
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
jb 0x41e261
push dword [ebp - 0x258]
call fcn.0044f00f
add esp, 4
cmp dword [ebp - 0x22c], 8
jb 0x41e278
push dword [ebp - 0x240]
call fcn.0044f00f
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453031
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00453031
mov esp, ebp
pop ebp
ret
Function at 0x421060
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1010
call fcn.004501f0
mov eax, dword [0x470a30]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [ebp + 8]
lea edx, [esp]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0xc], 0
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 1
push edx
push 0
push eax
push dword [ecx]
mov dword [esp + 0x20], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4211a7
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jne 0x421134
cmp word [esp + 0x10], ax
jne 0x4210f8
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.004153a0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00453031
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421100
sub ecx, edx
lea eax, [esp + 0x10]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.004153a0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00453031
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x4211a2
push 0x400
lea eax, [esp + 0x814]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], eax
test eax, eax
je 0x421187
cmp eax, 0x400
ja 0x421187
lea eax, [esp + 0x810]
mov ecx, edi
push eax
call fcn.00418470
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00453031
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00453031
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
xor ecx, esp
call fcn.00453031
mov esp, ebp
pop ebp
ret 8
Function at 0x422070
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10014
call fcn.004501f0
mov eax, dword [0x470a30]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
test edi, edi
je 0x4220a7
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x4220a2
mov eax, dword [edi]
jmp 0x4220a4
mov eax, edi
mov byte [eax], 0
call fcn.004182d0
test al, al
je 0x4220c2
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453031
mov esp, ebp
pop ebp
ret
push 0x40dde0
push esi
call fcn.0041df70
add esp, 8
mov dword [ebp - 0x1000c], eax
test eax, eax
je 0x4220b0
push ebx
push eax
push 0x10000
lea eax, [ebp - 0x10004]
mov byte [ebp - 0x10005], 1
push 1
push eax
xor ebx, ebx
call fcn.00455348
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x10010], esi
test esi, esi
je 0x42217c
mov eax, dword [ebp + 8]
lea ebx, [ebx]
test edi, edi
je 0x422140
sub eax, ebx
lea edx, [ebp - 0x10010]
cmp eax, esi
mov dword [ebp - 0x10014], eax
lea ecx, [ebp - 0x10014]
cmovae ecx, edx
lea eax, [ebp - 0x10004]
push dword [ecx]
mov ecx, edi
push eax
call fcn.00414340
mov eax, dword [ebp + 8]
sub eax, ebx
cmp eax, esi
jb 0x422175
push dword [ebp - 0x1000c]
lea eax, [ebp - 0x10004]
add ebx, esi
push 0x10000
push 1
push eax
call fcn.00455348
mov esi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10010], esi
test esi, esi
jne 0x422110
jmp 0x42217c
mov byte [ebp - 0x10005], 0
push dword [ebp - 0x1000c]
call fcn.00455460
mov ecx, dword [ebp - 4]
add esp, 4
mov al, byte [ebp - 0x10005]
xor ecx, ebp
pop ebx
pop edi
pop esi
call fcn.00453031
mov esp, ebp
pop ebp
ret