joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1c33310
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x1c44070
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov edi, dword [ebp + 0x10]
mov dword fs:[0], eax
test byte [edi + 4], 1
jne 0x1c3337f
movzx eax, byte [ebp + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
mov ebx, dword [eax + 0x18]
mov ecx, ebx
call dword [section..00cfg]
movsx eax, byte [ebp + 0x14]
mov ecx, esi
push dword [ebp - 0x20]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call ebx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
jmp 0x1c3349a
lea esi, [ebp - 0x2c]
mov ecx, edi
push esi
call fcn.01c2a15a
mov dword [ebp - 0x10], 0
mov ecx, esi
push 0x1d0c4d0
call fcn.01c3f3b8
mov esi, eax
mov edi, dword [ebp - 0x2c]
xor ebx, ebx
dec ebx
mov eax, ebx
lock xadd dword [edi + 4], eax
test eax, eax
jne 0x1c333ca
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], 0xffffffff
call dword [section..00cfg]
mov ecx, edi
call dword [ebp - 0x20]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov eax, dword [esi]
mov cl, byte [ebp + 0x18]
xor cl, 1
movzx ecx, cl
mov edi, dword [eax + ecx*4 + 0x14]
mov dword [ebp - 0x10], ebx
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
lea esi, [ebp - 0x2c]
push esi
call edi
mov edi, esi
mov al, byte [ebp - 0x21]
test al, al
jns 0x1c33401
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test al, al
js 0x1c33419
movzx eax, al
add eax, ebp
add eax, 0xffffffd4
cmp edi, eax
jne 0x1c33425
jmp 0x1c33480
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
add ecx, eax
cmp edi, ecx
je 0x1c33484
test ebx, ebx
je 0x1c3343d
mov al, byte [edi]
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [ebx + 0x1c]
je 0x1c33441
lea edx, [ecx + 1]
mov dword [ebx + 0x18], edx
mov byte [ecx], al
jmp 0x1c3347a
xor ebx, ebx
jmp 0x1c3347a
mov dword [ebp - 0x20], edi
movzx edi, al
mov eax, dword [ebx]
mov esi, dword [eax + 0x30]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, esi
call dword [section..00cfg]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x30], ebx
mov ecx, ebx
push edi
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x1c33474
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x20]
inc edi
mov al, byte [ebp - 0x21]
jmp 0x1c33407
mov dword [esi], ebx
jmp 0x1c3348f
mov dword [esi], ebx
push eax
call fcn.01caae80
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
Function at 0x1c34d50
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, esp
mov dword [esi + 0x68], ebp
mov dword [esi + 4], esp
lea ecx, [esi + 0x70]
mov dword [ecx - 4], esp
xor edx, edx
dec edx
mov dword [ecx + 8], edx
mov dword [ecx + 4], 0x1c44100
mov eax, dword fs:[0]
mov dword [ecx], eax
mov dword fs:[0], ecx
lea eax, [esi + 0x18]
mov word [eax + 4], 0
mov dword [eax], 0x7025
lea edi, [esi + 0x50]
mov dword [edi + 0x10], edx
pcmpeqd xmm0, xmm0
movdqa xmmword [edi], xmm0
push eax
sub esp, 0x18
mov ebx, esp
lea eax, [ebx + 8]
push eax
call fcn.01c2fac0
add esp, 4
mov dword [ebx], edi
mov dword [ebx + 4], 0x14
lea eax, [esi + 0x18]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x18], eax
call fcn.01c46b3e
add esp, 0x1c
mov esp, dword [esi + 4]
mov dword [esi + 4], eax
add eax, esi
add eax, 0x50
mov ebx, dword [ebp + 0x10]
push ebx
mov dword [esi + 0x14], eax
push eax
push edi
call fcn.01c33722
add esp, 0xc
mov dword [esi + 0x10], eax
xor eax, eax
dec eax
mov dword [esi + 0x41], eax
mov dword [esi + 0x3d], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
lea edi, [esi + 8]
mov ecx, ebx
push edi
call fcn.01c2a15a
lea eax, [esi + 0x70]
mov dword [eax + 8], 0
mov ecx, edi
push 0x1d0c4a8
call fcn.01c3f3b8
mov ebx, eax
mov edi, dword [esi + 8]
xor eax, eax
dec eax
lock xadd dword [edi + 4], eax
test eax, eax
jne 0x1c34e57
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x78], 0xffffffff
call dword [section..00cfg]
mov ecx, edi
call dword [esi + 0xc]
mov eax, dword [ebx]
mov edi, dword [eax + 0x18]
mov dword [esi + 0x78], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
lea eax, [esi + 0x20]
mov ecx, ebx
push eax
mov ebx, dword [esi + 0x14]
push ebx
lea eax, [esi + 0x50]
push eax
call edi
mov ecx, dword [esi + 0x10]
mov eax, ecx
lea edx, [esi + 0x50]
sub eax, edx
cmp ecx, ebx
mov ecx, dword [esi + 4]
lea ecx, [esi + ecx + 0x20]
lea eax, [esi + eax + 0x20]
cmove eax, ecx
movsx edx, byte [ebp + 0x14]
push edx
push dword [ebp + 0x10]
push ecx
push eax
lea eax, [esi + 0x20]
push eax
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push edi
call fcn.01c23ee0
add esp, 0x1c
mov eax, dword [esi + 0x70]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
Function at 0x1c34f00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x1c44110
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov edi, dword [ebp + 0x10]
mov dword fs:[0], eax
test byte [edi + 4], 1
jne 0x1c34f6f
movzx eax, byte [ebp + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
mov ebx, dword [eax + 0x18]
mov ecx, ebx
call dword [section..00cfg]
movzx eax, word [ebp + 0x14]
mov ecx, esi
push dword [ebp - 0x20]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call ebx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
jmp 0x1c3509e
lea esi, [ebp - 0x2c]
mov ecx, edi
push esi
call fcn.01c2a15a
mov dword [ebp - 0x10], 0
mov ecx, esi
push 0x1d0c4d8
call fcn.01c3f3b8
mov esi, eax
mov edi, dword [ebp - 0x2c]
xor ebx, ebx
dec ebx
mov eax, ebx
lock xadd dword [edi + 4], eax
test eax, eax
jne 0x1c34fba
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], 0xffffffff
call dword [section..00cfg]
mov ecx, edi
call dword [ebp - 0x20]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov eax, dword [esi]
mov cl, byte [ebp + 0x18]
xor cl, 1
movzx ecx, cl
mov edi, dword [eax + ecx*4 + 0x14]
mov dword [ebp - 0x10], ebx
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
lea esi, [ebp - 0x2c]
push esi
call edi
mov edi, esi
mov al, byte [ebp - 0x21]
test al, al
jns 0x1c34ff1
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp + 0xc]
test al, al
js 0x1c3500a
movzx ecx, al
lea ecx, [ecx*2 - 0x2c]
add ecx, ebp
cmp edi, ecx
jne 0x1c35017
jmp 0x1c3507d
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
lea edx, [ecx + edx*2]
cmp edi, edx
je 0x1c35084
test ebx, ebx
je 0x1c35031
movzx esi, word [edi]
mov eax, dword [ebx + 0x18]
cmp eax, dword [ebx + 0x1c]
je 0x1c35035
lea ecx, [eax + 2]
mov dword [ebx + 0x18], ecx
mov word [eax], si
jmp 0x1c35066
xor ecx, ecx
jmp 0x1c35073
mov dword [ebp - 0x30], edi
mov eax, dword [ebx]
mov edi, dword [eax + 0x30]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov dword [ebp - 0x10], 1
movzx eax, si
mov dword [ebp - 0x20], ebx
mov ecx, ebx
push eax
call edi
mov esi, eax
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x30]
xor ecx, ecx
cmp si, 0xffff
je 0x1c35070
mov ecx, ebx
mov al, byte [ebp - 0x21]
add edi, 2
mov ebx, ecx
jmp 0x1c34ff4
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x1c35094
mov esi, dword [ebp + 8]
mov dword [esi], ebx
push ecx
call fcn.01caae80
mov eax, esi
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
Function at 0x1c38db8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.01c43d00
mov ebx, eax
test esi, esi
je 0x1c38dfd
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
je 0x1c38ddd
movzx eax, word [eax]
jmp 0x1c38dee
mov eax, dword [esi]
mov edi, dword [eax + 0x20]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
call edi
cmp ax, 0xffff
je 0x1c38dfd
test bl, bl
jne 0x1c38e07
jmp 0x1c38ea1
xor esi, esi
test bl, bl
jne 0x1c38e91
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebx + 0x10]
mov dword [ebp - 0x10], esi
je 0x1c38e1c
movzx ebx, word [eax]
jmp 0x1c38e2f
mov eax, dword [ebx]
mov edi, dword [eax + 0x20]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
call edi
mov ebx, eax
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [section..00cfg]
movzx eax, bx
mov ecx, esi
push eax
push 8
call edi
test al, al
je 0x1c38e7e
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebx + 0x10]
mov esi, dword [ebp - 0x10]
je 0x1c38e68
add eax, 2
mov dword [ebx + 0xc], eax
jmp 0x1c38dc2
mov eax, dword [ebx]
mov edi, dword [eax + 0x24]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
call edi
jmp 0x1c38dc2
mov ecx, dword [ebp + 8]
call fcn.01c43d00
mov ebx, eax
mov esi, dword [ebp - 0x10]
test esi, esi
jne 0x1c38eab
jmp 0x1c38e9b
mov ecx, dword [ebp + 8]
call fcn.01c43d00
mov ebx, eax
test bl, bl
jne 0x1c38ed4
jmp 0x1c38eda
mov ecx, dword [ebp + 8]
call fcn.01c43d00
mov ebx, eax
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
je 0x1c38eb8
movzx eax, word [eax]
jmp 0x1c38ec9
mov eax, dword [esi]
mov edi, dword [eax + 0x20]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
call edi
cmp ax, 0xffff
sete al
xor bl, al
jne 0x1c38eda
mov eax, dword [ebp + 0x10]
or byte [eax], 2
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
Function at 0x1c47122
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push 8
call fcn.01caae50
add esp, 4
mov dword [eax], ebx
mov dword [eax + 4], edi
xor ecx, ecx
push ecx
push ecx
push eax
push 0x1c47170
push ecx
push ecx
call fcn.01cb8510
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x1c47161
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x1c4789d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov eax, dword [0x1cf151c]
xor eax, ebp
mov dword [esp + 0x38], eax
mov ebx, 0x57
test ecx, ecx
je 0x1c4792a
mov edi, edx
test edx, edx
je 0x1c4792a
mov esi, ecx
xorps xmm0, xmm0
lea eax, [esp + 0x10]
movups xmmword [eax + 0xc], xmm0
movaps xmmword [eax], xmm0
push 0x1c
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1c47922
test byte [esp + 0x24], 0xf0
lea ebx, [esp + 0xc]
mov dword [ebx], 0
mov eax, 4
mov ecx, 0x40
cmove ecx, eax
push ebx
push ecx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1c47922
mov eax, dword [edi]
mov dword [esi], eax
push ebx
push dword [esp + 0x10]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor ebx, ebx
jmp 0x1c4792a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [esp + 0x38]
xor ecx, ebp
call fcn.01caaec1
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1c483a6
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov ebx, edx
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x1cf151c]
xor eax, ebp
mov dword [esp + 0x48], eax
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x1c483cf
mov eax, dword [ecx + 4]
test eax, eax
je 0x1c483f4
mov eax, ebx
not eax
test eax, 0x300
je 0x1c483f4
cmp edi, 2
mov eax, 0x1d0cdaa
mov ecx, 0x1d0cfaa
cmove ecx, eax
cmp word [ecx], 0
je 0x1c48407
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.01caaec1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xorps xmm0, xmm0
lea esi, [esp + 0x20]
movaps xmmword [esi + 0x10], xmm0
movaps xmmword [esi], xmm0
mov dword [esi + 0x20], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [esi], 0
je 0x1c483f4
cmp byte [0x1d0cda8], 0
setne al
bt ebx, 8
jb 0x1c483f4
shr ebx, 9
and ebx, 1
or bl, al
je 0x1c483f4
cmp edi, 2
mov eax, 0x1cd8e34
mov edx, 0x1cd8e48
cmove edx, eax
mov eax, dword [ebp + 8]
movzx ebx, byte [eax + 0xb]
test bl, bl
js 0x1c48466
mov ecx, ebx
mov esi, eax
mov eax, ebx
jmp 0x1c4846b
mov esi, dword [eax]
mov eax, dword [eax + 4]
xor ecx, ecx
inc ecx
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], ecx
mov ebx, dword [edx + 4]
mov edi, eax
sub edi, ebx
jb 0x1c484b9
push ebx
push dword [edx]
push esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
call fcn.01cbfbab
mov edx, dword [esp + 0x24]
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x14]
je 0x1c484c9
add edx, 0x14
mov ecx, dword [esp + 0x1c]
inc ecx
cmp ecx, dword [esp + 0x10]
jb 0x1c4848c
jmp 0x1c48531
movzx ecx, word [esi + ebx*2]
cmp cx, 0x5c
je 0x1c484d8
test cx, cx
jne 0x1c484b9
lea eax, [esi + ebx*2]
mov ebx, dword [edx + 8]
cmp ebx, 1
je 0x1c484f8
cmp ebx, 2
mov esi, ebx
jne 0x1c48506
mov dword [esp + 8], str.WOW6432Node
mov dword [esp + 4], eax
jmp 0x1c48506
mov dword [esp + 8], str.WOW6432Node_
mov dword [esp + 4], esi
mov esi, ebx
mov dword [esp + 0xc], esi
cmp cx, 0x5c
jne 0x1c4851f
lea esi, [eax + 2]
dec edi
cmp word [eax + 2], 0x5c
mov eax, esi
je 0x1c48510
jmp 0x1c48521
mov esi, eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x10], eax
mov edx, dword [edx + 0xc]
xor ecx, ecx
mov eax, edi
jmp 0x1c484c1
cmp dword [esp + 0xc], 0
je 0x1c483f4
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0xb], 0
js 0x1c48549
mov eax, ecx
jmp 0x1c4854b
mov eax, dword [ecx]
mov edx, dword [esp + 4]
sub edx, eax
sar edx, 1
push dword [esp + 8]
push edx
call fcn.01c4591e
jmp 0x1c483f4
Function at 0x1c49382
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [0x1cf151c]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
lea ebx, [ebp - 0x1c]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
lea esi, [ebp - 0x28]
mov ecx, esi
push str.type
call fcn.01c2210a
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edi, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.01c2210a
push esi
push edi
push ebx
call fcn.01c49422
add esp, 0xc
cmp byte [edi + 0xb], 0
jns 0x1c493df
push dword [ebp - 0x34]
call fcn.01caae80
add esp, 4
cmp byte [ebp - 0x1d], 0
jns 0x1c493f0
push dword [ebp - 0x28]
call fcn.01caae80
add esp, 4
lea esi, [ebp - 0x1c]
mov ecx, esi
call fcn.01c4955f
mov dword [0x1d0d3b4], eax
cmp byte [esi + 0xb], 0
jns 0x1c49410
push dword [ebp - 0x1c]
call fcn.01caae80
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01caaec1
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1c496fb
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, dword [ebp + 8]
mov eax, dword [0x1cf151c]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor edi, edi
push edi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1c49749
mov ebx, eax
xor eax, eax
dec eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
cmp ebx, 0x7ffffff0
jae 0x1c4980b
cmp ebx, 5
jae 0x1c49756
lea edi, [ebp - 0x1c]
mov byte [edi + 0xb], bl
jmp 0x1c4977c
mov dword [esi + 4], edi
mov dword [esi], edi
mov dword [esi + 8], edi
jmp 0x1c497f7
lea esi, [ebx + 8]
and esi, 0xfffffff8
lea eax, [esi + esi]
push eax
call fcn.01caae50
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], eax
or esi, 0x80000000
mov dword [ebp - 0x14], esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], ebx
mov eax, ebx
add eax, ebx
push eax
push 0
push edi
call fcn.01caf0d0
add esp, 0xc
mov word [edi + ebx*2], 0
cmp byte [ebp - 0x11], 0
jns 0x1c4979d
mov eax, dword [ebp - 0x1c]
jmp 0x1c497a0
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
movzx ecx, byte [ebp - 0x11]
test eax, eax
je 0x1c497de
mov edx, ecx
test cl, cl
jns 0x1c497bd
mov edx, dword [ebp - 0x18]
cmp eax, edx
jae 0x1c497de
lea edi, [ebp - 0x1c]
mov ecx, edi
push 0
push eax
call fcn.01c45da0
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
movsd xmm0, qword [edi]
movsd qword [esi], xmm0
jmp 0x1c497f7
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 8], eax
test cl, cl
jns 0x1c497f7
push dword [ebp - 0x1c]
call fcn.01caae80
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01caaec1
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [ebp - 0x1c]
call fcn.01c445e4
Function at 0x1c49b67
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov ebx, dword [ebp + 8]
mov eax, dword [0x1cf151c]
xor eax, ebp
mov dword [esp + 0x20], eax
cmp byte [ebx + 0xb], 0
mov esi, ebx
jns 0x1c49b8b
mov esi, dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1c49bb9
test al, 0x10
jne 0x1c49caa
push esi
push str.RecursiveDirectoryCreate
push str._hs___ls_directory_conflicts_with_an_existing_file.___n
call fcn.01c49cf8
add esp, 0xc
xor ebx, ebx
jmp 0x1c49ce3
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
movzx eax, byte [ebx + 0xb]
mov ecx, ebx
test al, al
jns 0x1c49bd6
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
add eax, eax
test eax, eax
je 0x1c49c2d
movzx edx, word [ecx + eax - 2]
add eax, 0xfffffffe
cmp dx, 0x5c
je 0x1c49bf0
cmp dx, 0x2f
jne 0x1c49bd8
cmp eax, 0xfffffffe
je 0x1c49c2d
sar eax, 1
lea edx, [ebx + 0xc]
lea edi, [esp + 4]
mov ecx, edi
push edx
push eax
push 0
push ebx
call fcn.01c45810
movsd xmm0, qword [edi]
lea eax, [esp + 0x10]
movsd qword [eax], xmm0
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
push eax
call fcn.01c49b67
add esp, 4
test al, al
je 0x1c49cc1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x1c49cd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1c49c99
mov dword [esp], eax
lea edi, [esp + 4]
mov ecx, edi
push esi
call fcn.01c2210a
cmp byte [edi + 0xb], 0
jns 0x1c49c66
mov edi, dword [esp + 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne cl
and eax, 0x10
shr eax, 4
and al, cl
cmp byte [esp + 0xf], 0
jns 0x1c49c92
push dword [esp + 4]
mov edi, eax
call fcn.01caae80
mov eax, edi
add esp, 4
test al, al
mov eax, dword [esp]
jne 0x1c49cd0
push eax
push esi
push str.Failed_to_create_directory__ls__last_error_is__d_n
call fcn.01c49cf8
add esp, 0xc
jmp 0x1c49cce
push esi
push str.RecursiveDirectoryCreate
push str._hs___ls_directory_exists___n
call fcn.01c49cf8
add esp, 0xc
mov bl, 1
jmp 0x1c49ce3
push str.Failed_to_create_one_of_the_parent_directories
call fcn.01c49cf8
add esp, 4
xor ebx, ebx
cmp byte [esp + 0x1b], 0
jns 0x1c49ce3
push dword [esp + 0x10]
call fcn.01caae80
add esp, 4
mov ecx, dword [esp + 0x20]
xor ecx, ebp
call fcn.01caaec1
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1c49cf8
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, dword [ebp + 8]
mov eax, dword [0x1cf151c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp + 0xc]
mov dword [ebp - 0x14], edi
call fcn.01c24307
mov ebx, 0x1d0d3b8
push edi
push 0
push esi
push 0x400
push ebx
push dword [eax + 4]
push dword [eax]
call fcn.01cb01fe
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01caaec1
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1c4a3a5
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0x1cf151c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x216]
push 0x206
push 0xff
push eax
call fcn.01caf0d0
add esp, 0xc
mov edi, 0xfffffff4
lea ebx, [ebp - 0x218]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [edi + str.PROGRAMW6432]
mov word [ebp - 0x218], 0
push 0x104
push ebx
push eax
call esi
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x1c4a419
push dword [ebp + 8]
push eax
push ebx
call fcn.01c4a334
add esp, 0xc
test al, al
jne 0x1c4a422
add edi, 4
jne 0x1c4a3e5
xor ebx, ebx
jmp 0x1c4a424
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01caaec1
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1c4a942
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x1cf151c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x1d0dbb8]
test eax, eax
jne 0x1c4aa26
mov edi, 0xc
push edi
call fcn.01caae50
add esp, 4
mov esi, eax
xor ebx, ebx
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [0x1d0dbb8], eax
push edi
call fcn.01caae50
add esp, 4
mov edi, eax
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [0x1d0dbbc], eax
call fcn.01c491ec
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x28]
push str.user_data_dir
call fcn.01c2210a
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x34]
push eax
call fcn.01c2210a
lea ebx, [ebp - 0x1c]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
call fcn.01c49422
add esp, 0xc
push edi
push esi
push dword [ebp - 0x38]
push ebx
call fcn.01c4a5c0
add esp, 0x10
mov byte [ebp - 0x38], al
cmp byte [ebx + 0xb], 0
jns 0x1c4a9f9
push dword [ebp - 0x1c]
call fcn.01caae80
add esp, 4
cmp byte [ebp - 0x29], 0
jns 0x1c4aa0a
push dword [ebp - 0x34]
call fcn.01caae80
add esp, 4
cmp byte [ebp - 0x1d], 0
jns 0x1c4aa1b
push dword [ebp - 0x28]
call fcn.01caae80
add esp, 4
cmp byte [ebp - 0x38], 0
je 0x1c4aa47
mov eax, dword [0x1d0dbb8]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
call fcn.01c2200e
mov bl, 1
test esi, esi
je 0x1c4aa49
mov ecx, esi
push dword [0x1d0dbbc]
call fcn.01c2200e
jmp 0x1c4aa49
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01caaec1
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1c4b970
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ecx], 0
test ebx, ebx
je 0x1c4b9c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jb 0x1c4b9aa
call fcn.01c56ad0
push dword [esi]
call fcn.01c56ae0
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x1c4b9b9
mov dword [esi], ebx
call fcn.01c56ad0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, ebx
je 0x1c4b9d7
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
int3