joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409af0
Capabilities:
Delete file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10030
call fcn.00430be0
mov eax, dword [0x43a004]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x43bbe4], 0
mov eax, ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov dword [ebp - 0x10024], eax
je 0x409b36
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
test ebx, 0x801
je 0x409b4f
test byte [esi], 1
je 0x409b4f
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, bl
jns 0x409ce2
mov eax, dword [esi + 0x1c]
xorps xmm0, xmm0
mov ebx, dword [esi + 0x20]
movlpd qword [ebp - 0x1001c], xmm0
mov edi, dword [ebp - 0x10018]
mov esi, dword [ebp - 0x1001c]
mov dword [ebp - 0x10020], eax
nop word [eax + eax]
call fcn.0042008e
and eax, 0x800000ff
jns 0x409b93
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp + esi - 0x1000c], al
add esi, 1
adc edi, 0
js 0x409b80
jg 0x409bac
cmp esi, 0x10000
jb 0x409b80
push 0
push 0x80000000
push 3
push 0
push 0
push 0x40000000
push dword [ebp - 0x10024]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10010], eax
cmp eax, 0xffffffff
je 0x409ce2
mov ecx, dword [ebp - 0x10020]
mov edi, ebx
mov edx, dword [sym.imp.KERNEL32.dll_WriteFile]
sub edi, 0x10000
xorps xmm0, xmm0
sbb ecx, 0
movlpd qword [ebp - 0x1001c], xmm0
mov dword [ebp - 0x10028], ecx
js 0x409ca3
jg 0x409c11
test edi, edi
je 0x409ca3
mov ecx, dword [ebp - 0x10018]
mov esi, dword [ebp - 0x1001c]
mov dword [ebp - 0x10014], ecx
push 0
lea ecx, [ebp - 0x1002c]
push ecx
push 0x10000
lea ecx, [ebp - 0x1000c]
push ecx
push eax
call edx
push 0x43fe80
push 0
push 0x64
push dword [ebp - 0x10014]
push esi
call fcn.00430960
push dword [ebp - 0x10020]
push ebx
push edx
push eax
call fcn.00430dd0
push edx
push eax
push str._I64d____s_r
push 0x44a060
call fcn.0041cbe0
mov eax, dword [ebp - 0x10014]
add esp, 0x14
mov edx, dword [sym.imp.KERNEL32.dll_WriteFile]
add esi, 0x10000
adc eax, 0
cmp eax, dword [ebp - 0x10028]
mov dword [ebp - 0x10014], eax
mov eax, dword [ebp - 0x10010]
jl 0x409c23
jg 0x409ca9
cmp esi, edi
jb 0x409c23
jmp 0x409ca9
mov esi, dword [ebp - 0x1001c]
push 0
lea ecx, [ebp - 0x1002c]
sub ebx, esi
push ecx
push ebx
lea ecx, [ebp - 0x1000c]
push ecx
push eax
call edx
push 0x43fe80
push str.100____s_n
push 0x44a060
call fcn.0041cbe0
add esp, 0xc
push dword [ebp - 0x10010]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10024]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
Function at 0x40b430
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18c0
call fcn.00430be0
mov eax, dword [0x43a004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, edx
mov dword [ebp - 0x1890], ecx
push esi
push edi
add eax, ebx
jne 0x40b497
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x20], 0
je 0x40b468
cmp dword [ebp + 0x18], 0
je 0x40b481
mov edx, 0x68
mov ecx, 0x44a020
call fcn.0041cc00
mov dword [0x43bbd4], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x14]
cmp dword [esi], 0
jne 0x40b632
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x40b4df
cmp dword [esi + 0x20], 0
je 0x40b4df
push dword [esi + 4]
mov edx, 0x40
lea ecx, [ebp - 0x8c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00402bd0
add esp, 0xc
lea eax, [ebp - 0x188c]
push 0xc00
push eax
push 0x281
jmp 0x40b50c
push dword [esi + 4]
mov edx, 0x40
lea ecx, [ebp - 0x8c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00402bd0
add esp, 0xc
lea eax, [ebp - 0x188c]
push 0xc00
push eax
push 0x284
push dword [0x44a408]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x8c]
push eax
push ebx
lea eax, [ebp - 0x188c]
push eax
push esi
call fcn.0040b210
add esp, 0x10
cmp dword [esi + 0x20], 0
je 0x40b53e
test edi, edi
je 0x40b632
xorps xmm0, xmm0
push str.KERNEL32
movlpd qword [ebp - 0x189c], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40b598
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [ebp - 0x1890]
test eax, eax
je 0x40b59e
lea ecx, [ebp - 0x18b4]
push ecx
lea ecx, [ebp - 0x18bc]
push ecx
lea ecx, [ebp - 0x189c]
push ecx
push edi
call eax
test eax, eax
je 0x40b59e
mov ecx, dword [ebp - 0x1898]
mov eax, dword [ebp - 0x189c]
jmp 0x40b5e3
mov edi, dword [ebp - 0x1890]
lea eax, [ebp - 0x18ac]
push eax
lea eax, [ebp - 0x18a8]
push eax
lea eax, [ebp - 0x18a4]
push eax
lea eax, [ebp - 0x18a0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov eax, dword [ebp - 0x18a0]
imul eax, dword [ebp - 0x18a4]
imul eax, dword [ebp - 0x18a8]
xor ecx, ecx
mov dword [ebp - 0x1898], ecx
mov dword [ebp - 0x189c], eax
push dword [esi + 4]
mov edx, 0x40
push ecx
push eax
lea ecx, [ebp - 0x8c]
call fcn.00402bd0
add esp, 0xc
lea eax, [ebp - 0x188c]
push 0xc00
push eax
push 0x282
push dword [0x44a408]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x8c]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x188c]
push eax
push esi
call fcn.0040b210
add esp, 0x10
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
Function at 0x40e6f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, edx
push ebx
push esi
push edi
mov esi, dword [eax]
mov ebx, ecx
mov dword [ebp - 4], eax
xor edi, edi
push 8
movzx eax, word [esi]
push eax
call fcn.0041f340
add esp, 8
test eax, eax
je 0x40e72a
movzx eax, word [esi + 2]
add esi, 2
push 8
push eax
call fcn.0041f340
add esp, 8
test eax, eax
jne 0x40e714
movzx eax, word [esi]
test ax, ax
jne 0x40e73b
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx], esi
nop dword [eax]
test edi, edi
jne 0x40e753
push 8
push eax
call fcn.0041f340
add esp, 8
test eax, eax
jne 0x40e76b
movzx eax, word [esi]
xor ecx, ecx
add esi, 2
cmp eax, 0x22
sete cl
xor edi, ecx
movzx eax, word [esi]
test ax, ax
jne 0x40e740
mov eax, dword [ebp - 4]
pop edi
mov dword [eax], esi
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40f3b0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x43a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov dword [ebp - 0x264], edx
mov dword [ebp - 0x260], eax
cmp word [esi - 2], 0x5c
je 0x40f3f1
mov ecx, 0x5c
mov word [esi], cx
add esi, 2
xor ecx, ecx
mov word [esi], cx
push esi
push eax
mov ecx, ebx
call fcn.0040f050
add esp, 8
mov dword [esi], 0x2a
mov edi, eax
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, eax
mov dword [ebp - 0x25c], edx
cmp edx, 0xffffffff
je 0x40f544
nop dword [eax]
test byte [ebp - 0x258], 0x10
je 0x40f511
mov ecx, 0x43737c
lea eax, [ebp - 0x22c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40f46e
test dx, dx
je 0x40f46a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40f46e
add eax, 4
add ecx, 4
test dx, dx
jne 0x40f448
xor eax, eax
jmp 0x40f473
sbb eax, eax
or eax, 1
test eax, eax
je 0x40f50b
mov ecx, 0x437380
lea eax, [ebp - 0x22c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40f4ac
test dx, dx
je 0x40f4a8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40f4ac
add eax, 4
add ecx, 4
test dx, dx
jne 0x40f486
xor eax, eax
jmp 0x40f4b1
sbb eax, eax
or eax, 1
test eax, eax
je 0x40f50b
lea eax, [ebp - 0x22c]
mov edx, esi
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x40f4c1
lea ecx, [ebp - 0x22c]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f4e0
sub ecx, edx
mov edx, dword [ebp - 0x264]
sar ecx, 1
lea eax, [esi + ecx*2]
mov ecx, ebx
push eax
push dword [ebp - 0x260]
call fcn.0040f3b0
add esp, 8
mov edi, eax
mov edx, dword [ebp - 0x25c]
mov ecx, ebx
call fcn.0040e780
test eax, eax
jne 0x40f538
lea eax, [ebp - 0x258]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edx, dword [ebp - 0x25c]
test eax, eax
jne 0x40f430
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
Function at 0x40f810
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x19ac
call fcn.00430be0
mov eax, dword [0x43a004]
xor eax, esp
mov dword [esp + 0x19a8], eax
mov edx, ecx
mov dword [esp + 0x18], 0x3a0041
mov eax, edx
mov dword [esp + 0x1c], 0x5c
push esi
mov dword [esp + 4], 0x41
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f850
sub eax, esi
sar eax, 1
cmp eax, 2
jb 0x40fa5d
cmp word [edx + 2], 0x3a
jne 0x40fa5d
mov ax, word [edx]
mov word [esp + 0x1c], ax
push dword [esp + 0x1c]
call fcn.004216bb
add esp, 4
mov word [esp + 4], ax
lea eax, [esp + 0x18]
push 0
push 0
push 0
push 0
push eax
push 0x40
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x40f8ff
push 0xc00
lea eax, [esp + 0x1ac]
push eax
push 0x152
push dword [0x44a408]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x1ac]
push eax
push 0x4376dc
push 0x44a020
call fcn.0041cbe0
add esp, 0x10
pop esi
mov ecx, dword [esp + 0x19a8]
xor ecx, esp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
cmp word [esp + 0x38], 0
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
jne 0x40f945
push 0xc00
lea eax, [esp + 0x1ac]
push eax
push 0x153
push dword [0x44a408]
call esi
xor ecx, ecx
nop dword [eax]
movzx eax, word [esp + ecx + 0x1a8]
lea ecx, [ecx + 2]
mov word [esp + ecx + 0x36], ax
test ax, ax
jne 0x40f930
mov ecx, dword [esp + 0x18]
movzx eax, cx
push eax
shr ecx, 0x10
lea eax, [esp + 0x28]
push ecx
push str._04X__04X
push eax
call fcn.00402b70
add esp, 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x40f9a5
push 0xc00
lea eax, [esp + 0x1ac]
push eax
push 0x152
push dword [0x44a408]
call esi
jmp 0x40f8cd
mov eax, dword [esp + 8]
lea ecx, [esp + 0x158]
imul eax, dword [esp + 0xc]
push 1
mul dword [esp + 0x14]
push edx
push eax
mov edx, 0x28
call fcn.00402bd0
mov ecx, dword [esp + 0x14]
imul ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x20]
push 1
mul ecx
lea ecx, [esp + 0x118]
push edx
push eax
mov edx, 0x28
call fcn.00402bd0
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0xd0]
imul eax, dword [esp + 0x24]
push 1
mul dword [esp + 0x30]
push edx
push eax
mov edx, 0x28
call fcn.00402bd0
lea eax, [esp + 0xdc]
push eax
lea eax, [esp + 0x130]
push eax
lea eax, [esp + 0x184]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x3c]
push eax
push 0x290
push 0x44a060
call fcn.0041cd80
add esp, 0x44
pop esi
mov ecx, dword [esp + 0x19a8]
xor ecx, esp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
push 0x152
push 0x44a020
call fcn.0041cd80
mov ecx, dword [esp + 0x19b4]
add esp, 8
pop esi
xor ecx, esp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
Function at 0x4107f0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x43a004]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [edx]
push ebx
mov ebx, ecx
push esi
mov esi, edx
push edi
mov edi, edx
test ax, ax
je 0x410830
mov ecx, eax
cmp cx, 0x22
je 0x410822
mov word [esi], cx
add esi, 2
movzx eax, word [edi + 2]
add edi, 2
mov ecx, eax
test ax, ax
jne 0x410816
xor eax, eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x414]
push eax
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x4108a8
lea edx, [ebp - 0x20c]
lea ecx, [ebp - 0x414]
call fcn.004119c0
lea eax, [ebp - 0x20c]
push eax
call fcn.004215e1
add esp, 4
test eax, eax
jne 0x4108a8
test ebx, ebx
je 0x410892
push 2
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0041fe38
add esp, 0xc
test eax, eax
je 0x410892
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x44a020
call fcn.004079d0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov dword [0x43bbd4], 1
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
Function at 0x410dd0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
mov eax, dword [0x43a004]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push esi
mov eax, ecx
lea esi, [esp + 0x25c]
push edi
mov dword [esp + 0xc], eax
mov edx, eax
sub esi, eax
nop
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [esi + edx - 2], ax
test ax, ax
jne 0x410e00
lea ecx, [esp + 0x260]
add ecx, 0xfffffffe
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x410e20
mov eax, dword [0x437714]
mov dword [ecx], eax
mov ax, word [0x437718]
mov word [ecx + 4], ax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [esp + 0x260]
mov ebx, eax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410e60
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x41100c
xor eax, eax
mov word [esp + ecx + 0x260], ax
cmp ebx, 0xffffffff
je 0x410fcf
nop word [eax + eax]
mov ecx, 0x43737c
lea eax, [esp + 0x3c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410ed6
test dx, dx
je 0x410ed2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410ed6
add eax, 4
add ecx, 4
test dx, dx
jne 0x410eb0
xor eax, eax
jmp 0x410edb
sbb eax, eax
or eax, 1
test eax, eax
je 0x410fb4
mov ecx, 0x437380
lea eax, [esp + 0x3c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410f16
test dx, dx
je 0x410f12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410f16
add eax, 4
add ecx, 4
test dx, dx
jne 0x410ef0
xor eax, eax
jmp 0x410f1b
sbb eax, eax
or eax, 1
test eax, eax
je 0x410fb4
xor eax, eax
movzx ecx, word [esp + eax + 0x260]
lea eax, [eax + 2]
mov word [esp + eax + 0x466], cx
test cx, cx
jne 0x410f25
lea edx, [esp + 0x3c]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x410f43
lea edi, [esp + 0x468]
sub edx, esi
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x410f60
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test byte [esp + 0x10], 0x10
rep movsb byte es:[edi], byte [esi]
je 0x410f8f
lea ecx, [esp + 0x468]
call fcn.00410dd0
jmp 0x410fb4
push 0x80
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x410fee
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x410ea0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x674]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
call fcn.0041d35b
int3
Function at 0x411500
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x43a004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x204]
push 0x100
push eax
push 0x1d
push 0x400
call esi
movzx eax, word [ebp - 0x204]
push 2
push 0x44a1c0
push 0x20000021
push 0x400
mov word [0x44a1bc], ax
call esi
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0x1e
push 0x400
call esi
movzx eax, word [ebp - 0x204]
push 2
push 0x44a1b8
push 0x20000023
push 0x400
mov word [0x44a1b6], ax
call esi
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0xf
push 0x400
call esi
movzx eax, word [ebp - 0x204]
push 0x100
mov word [0x44a1c8], ax
lea eax, [ebp - 0x204]
push eax
push 0xe
push 0x400
call esi
movzx eax, word [ebp - 0x204]
push 0x100
mov word [0x44a1b4], ax
lea eax, [ebp - 0x204]
push eax
push 0x10
push 0x400
call esi
lea eax, [ebp - 0x204]
push eax
call fcn.0041fe0e
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov dword [0x44a1c4], eax
pop esi
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
Function at 0x4126d0
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x43a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.NTDLL
mov dword [ebp - 0x214], edx
mov dword [ebp - 0x220], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.RtlDosPathNameToNtPathName_U
push edi
call esi
push str.RtlFreeUnicodeString
push edi
mov dword [ebp - 0x210], eax
call esi
mov esi, dword [ebp - 0x210]
mov ebx, eax
test esi, esi
je 0x4128ae
test ebx, ebx
je 0x4128ae
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x104
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x4128ae
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
test al, al
je 0x4128ae
mov esi, dword [ebp - 0x220]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4128a5
push 0
push 0x2000000
push 3
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x412899
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4127b5
movzx eax, word [ebp - 0x21c]
sub ecx, edx
sar ecx, 1
add eax, 0x14
add ecx, ecx
add eax, ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], eax
call fcn.004309a0
mov edi, esp
mov dword [edi], 0xa0000003
lea edx, [edi + 0x10]
mov eax, dword [ebp - 0x210]
add eax, 0xfffffff8
mov word [edi + 4], ax
xor eax, eax
mov dword [edi + 6], eax
mov ax, word [ebp - 0x21c]
mov word [edi + 0xa], ax
mov ecx, dword [ebp - 0x218]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x412811
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x214]
add eax, 2
movzx edx, ax
add edx, 0x10
mov word [edi + 0xe], cx
mov word [edi + 0xc], ax
lea ecx, [ebp - 0x20c]
add edx, edi
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x412847
push 0
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push dword [ebp - 0x210]
push edi
push 0x900a4
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
test eax, eax
je 0x412893
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x21c]
push eax
call ebx
mov eax, 1
jmp 0x4128b0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x21c]
push eax
call ebx
xor eax, eax
lea esp, [ebp - 0x22c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
Function at 0x412bb0
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
push 0x5c
push edi
call fcn.0041df18
mov esi, eax
add esp, 8
test esi, esi
je 0x412be5
sub esi, edi
sar esi, 1
lea ecx, [esi + 1]
push ecx
push edi
push ebx
call fcn.0041f47f
add esp, 0xc
xor eax, eax
mov word [ebx + esi*2 + 2], ax
pop edi
pop esi
pop ebx
ret
movzx eax, word [edi]
mov edx, eax
test ax, ax
je 0x412c3f
cmp word [edi + 2], 0x3a
jne 0x412c3f
cmp eax, 0x30
jb 0x412c05
cmp eax, 0x39
ja 0x412c05
lea ecx, [eax - 0x14]
jmp 0x412c1d
xor ecx, ecx
cmp eax, 0x61
jb 0x412c1d
cmp eax, 0x7a
ja 0x412c1d
lea ecx, [eax - 0x60]
lea eax, [ecx + 0x40]
mov word [edi], ax
movzx edx, ax
lea eax, [edx - 0x41]
cmp ax, 0x19
ja 0x412c2c
movzx ecx, dx
sub ecx, 0x40
push 0x104
push ebx
push ecx
call fcn.00422a05
add esp, 0xc
pop edi
pop esi
pop ebx
ret
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
pop edi
pop esi
pop ebx
ret
Function at 0x417280
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x417290
sub esi, ecx
sar esi, 1
cmp esi, 2
jne 0x41730e
cmp word [edi + 2], 0x3a
jne 0x41730e
movzx eax, word [edi]
mov edx, eax
test ax, ax
je 0x4172fe
cmp eax, 0x30
jb 0x4172c4
cmp eax, 0x39
ja 0x4172c4
lea ecx, [eax - 0x14]
jmp 0x4172dc
xor ecx, ecx
cmp eax, 0x61
jb 0x4172dc
cmp eax, 0x7a
ja 0x4172dc
lea ecx, [eax - 0x60]
lea eax, [ecx + 0x40]
mov word [edi], ax
movzx edx, ax
lea eax, [edx - 0x41]
cmp ax, 0x19
ja 0x4172eb
movzx ecx, dx
sub ecx, 0x40
push 0x104
push ebx
push ecx
call fcn.00422a05
add esp, 0xc
pop edi
pop esi
pop ebx
ret
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
pop edi
pop esi
pop ebx
ret
push 0
push ebx
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
pop edi
pop esi
pop ebx
ret
Function at 0x419910
Capabilities:
Query environment variable

Disassembly:
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, eax
test edi, edi
jne 0x41991f
pop edi
ret
cmp word [edi], 0
push ebx
push esi
mov esi, edi
je 0x41994f
nop dword [eax]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419935
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], cx
jne 0x419930
sub esi, edi
add esi, 2
and esi, 0xfffffffe
push esi
call fcn.0041f424
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x419971
push esi
push edi
push ebx
call fcn.0041ec00
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop esi
mov eax, ebx
pop ebx
pop edi
ret