joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458ed0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [ecx], 0x1571
mov dword [ecx + 0x9c0], 1
push esi
mov esi, dword [ecx + 0x9c0]
mov edx, dword [ecx + esi*4 - 4]
shr edx, 0x1e
xor edx, dword [ecx + esi*4 - 4]
imul eax, edx, 0x6c078965
add eax, esi
mov dword [ecx + esi*4], eax
inc dword [ecx + 0x9c0]
cmp dword [ecx + 0x9c0], 0x270
jb 0x458ee1
mov edx, dword [ecx + 0x9bc]
xor edx, dword [ecx + 0x630]
pop esi
jge 0x458f2b
xor edx, 0x1908b0df
add edx, edx
or edx, 1
jmp 0x458f2d
add edx, edx
mov eax, dword [ecx]
xor eax, edx
and eax, 0x7fffffff
xor dword [ecx], eax
xor eax, eax
nop word [eax + eax]
cmp dword [ecx + eax*4], 0
jne 0x458f54
inc eax
cmp eax, 0x270
jb 0x458f40
mov dword [ecx], bind
ret 4

Function at 0x4593b0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538988
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x587084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 5
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
neg eax
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
sbb eax, eax
and dword [ebp - 0x14], eax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
cmp ecx, 5
jl 0x459434
mov ecx, eax
call fcn.00457cc0
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + ecx*4 - 0x2c]
inc ecx
push 0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push 0
mov dword [ebp - 0x18], ecx
mov ecx, esi
push eax
call fcn.00459720
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x45945e
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497fef
mov esp, ebp
pop ebp
ret

Function at 0x4598d0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov esi, ecx
sub edi, ebx
jne 0x4598e8
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
cmp edi, 0xffffffff
jne 0x4598f9
call fcn.00459970
pop edi
pop esi
add eax, ebx
pop ebx
pop ebp
ret
lea ecx, [edi + 1]
or eax, 0xffffffff
xor edx, edx
div ecx
cmp edx, edi
lea ecx, [eax + 1]
cmovne ecx, eax
mov dword [ebp + 8], ecx
nop
cmp dword [esi + 0x9c0], 0x270
jne 0x459923
mov ecx, esi
call fcn.00459ad0
mov eax, dword [esi + 0x9c0]
xor edx, edx
mov ecx, dword [esi + eax*4]
inc eax
mov dword [esi + 0x9c0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
div dword [ebp + 8]
cmp eax, edi
ja 0x459910
pop edi
pop esi
add eax, ebx
pop ebx
pop ebp
ret
Function at 0x459ad0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor edx, edx
cmp dword [0x59d8a8], 2
push edi
mov edi, ecx
jl 0x459b8c
movaps xmm3, xmmword [0x563580]
lea ecx, [edx + 0x1b]
movaps xmm4, xmmword [0x5635b0]
mov eax, 1
movaps xmm6, xmmword [0x5635c0]
mov edx, 0xd8
movaps xmm7, xmmword [0x563550]
movd xmm5, eax
lea eax, [edi + 4]
lea eax, [eax + 0x20]
movups xmm2, xmmword [eax - 0x20]
movups xmm1, xmmword [eax - 0x24]
movaps xmm0, xmm2
pand xmm2, xmm7
pand xmm1, xmm4
pand xmm0, xmm3
por xmm1, xmm0
movups xmm0, xmmword [eax + 0x610]
psrld xmm1, xmm5
pmulld xmm2, xmm6
pxor xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [eax - 0x24], xmm1
movaps xmm1, xmm4
movups xmm0, xmmword [eax - 0x14]
movups xmm2, xmmword [eax - 0x10]
pand xmm1, xmm0
movaps xmm0, xmm2
pand xmm2, xmm7
pand xmm0, xmm3
por xmm1, xmm0
movups xmm0, xmmword [eax + 0x620]
psrld xmm1, xmm5
pmulld xmm2, xmm6
pxor xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [eax - 0x14], xmm1
sub ecx, 1
jne 0x459b13
lea eax, [edi + 4]
mov esi, 0xde
lea eax, [eax + edx*4]
sub esi, edx
nop dword [eax]
mov edx, dword [eax - 4]
lea eax, [eax + 4]
mov ecx, dword [eax - 4]
xor edx, ecx
and edx, 0x7ffffffe
and ecx, 1
xor edx, dword [eax - 8]
imul ecx, ecx, 0x9908b0df
shr edx, 1
xor edx, ecx
xor edx, dword [eax + 0x62c]
mov dword [eax - 8], edx
sub esi, 1
jne 0x459ba0
mov esi, dword [edi + 0x37c]
mov eax, esi
mov ecx, dword [edi + 0x378]
and eax, 1
xor ecx, esi
mov edx, dword [edi + 0x380]
and ecx, 0x7ffffffe
imul eax, eax, 0x9908b0df
xor ecx, dword [edi + 0x378]
shr ecx, 1
xor ecx, eax
mov eax, edx
xor ecx, dword [edi + 0x9ac]
and eax, 1
mov dword [edi + 0x378], ecx
mov ecx, esi
xor ecx, edx
imul eax, eax, 0x9908b0df
and ecx, 0x7ffffffe
xor ecx, esi
mov esi, dword [edi + 0x384]
shr ecx, 1
xor ecx, eax
mov eax, esi
xor ecx, dword [edi + 0x9b0]
and eax, 1
mov dword [edi + 0x37c], ecx
mov ecx, esi
xor ecx, edx
imul eax, eax, 0x9908b0df
and ecx, 0x7ffffffe
xor ecx, edx
mov edx, dword [edi + 0x388]
shr ecx, 1
xor ecx, eax
mov eax, edx
xor ecx, dword [edi + 0x9b4]
and eax, 1
mov dword [edi + 0x380], ecx
mov ecx, edx
xor ecx, esi
imul eax, eax, 0x9908b0df
and ecx, 0x7ffffffe
xor ecx, esi
mov esi, 0x18c
shr ecx, 1
xor ecx, eax
mov eax, dword [edi + 0x38c]
xor ecx, dword [edi + 0x9b8]
mov dword [edi + 0x384], ecx
mov ecx, eax
xor ecx, edx
and eax, 1
and ecx, 0x7ffffffe
imul eax, eax, 0x9908b0df
xor ecx, edx
lea edx, [edi + 0x390]
shr ecx, 1
xor ecx, eax
xor ecx, dword [edi + 0x9bc]
mov dword [edi + 0x388], ecx
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
mov eax, dword [edx - 4]
xor ecx, eax
and ecx, 0x7ffffffe
and eax, 1
xor ecx, dword [edx - 8]
imul eax, eax, 0x9908b0df
shr ecx, 1
xor ecx, eax
xor ecx, dword [edx - 0x394]
mov dword [edx - 8], ecx
sub esi, 1
jne 0x459cc1
mov ecx, dword [edi + 0x9bc]
mov eax, dword [edi]
xor ecx, eax
and ecx, 0x7ffffffe
mov dword [edi + 0x9c0], esi
xor ecx, dword [edi + 0x9bc]
and eax, 1
imul eax, eax, 0x9908b0df
shr ecx, 1
xor ecx, eax
xor ecx, dword [edi + 0x630]
mov dword [edi + 0x9bc], ecx
pop edi
pop esi
ret
Function at 0x45d140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5318f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x587084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x45d32b
cmp byte [ebx + 0x3d], 0
je 0x45d32b
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x45d199
xor al, al
jmp 0x45d32d
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
nop
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmp edx, 0x10
lea esi, [ebp - 0x28]
cmovae esi, eax
cmovae edi, eax
mov edx, dword [ecx]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x45d216
sub eax, 1
je 0x45d21a
mov edx, dword [ebp - 0x14]
sub eax, 2
mov eax, dword [ebp - 0x28]
je 0x45d2dd
xor bl, bl
jmp 0x45d2df
mov byte [ebx + 0x3d], 0
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp edx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae ecx, eax
sub esi, ecx
je 0x45d252
push dword [ebx + 0x4c]
cmp edx, 0x10
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, eax
push 1
push ecx
call fcn.004de5b7
mov edx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
mov eax, dword [ebp - 0x28]
jne 0x45d20f
cmp byte [ebx + 0x3d], 0
je 0x45d2dd
test esi, esi
jne 0x45d1d0
mov edi, dword [ebp - 0x18]
or ecx, 0xffffffff
sub ecx, edi
cmp ecx, 8
jbe 0x45d2d3
lea esi, [edi + 8]
cmp esi, 0xfffffffe
ja 0x45d2d3
cmp edx, esi
jae 0x45d2bb
push edi
push esi
lea ecx, [ebp - 0x28]
call fcn.0040a40a
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
test esi, esi
je 0x45d1d0
push 0
push 8
push dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
call fcn.004098d9
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], esi
cmovae eax, dword [ebp - 0x28]
mov byte [eax + esi], 0
jmp 0x45d1c9
test esi, esi
jne 0x45d295
cmp edx, 0x10
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x28]
cmovae ecx, eax
mov byte [ecx], 0
jmp 0x45d1c9
push str.string_too_long
call fcn.00482cd8
mov bl, 1
cmp edx, 0x10
jb 0x45d327
lea ecx, [edx + 1]
cmp ecx, 0x1000
jb 0x45d31e
test byte [ebp - 0x28], 0x1f
je 0x45d2fa
call fcn.004da3e6
mov ecx, dword [eax - 4]
cmp ecx, eax
jb 0x45d306
call fcn.004da3e6
sub eax, ecx
cmp eax, 4
jae 0x45d312
call fcn.004da3e6
cmp eax, 0x23
jbe 0x45d31c
call fcn.004da3e6
mov eax, ecx
push eax
call fcn.00498033
add esp, 4
mov al, bl
jmp 0x45d32d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497fef
mov esp, ebp
pop ebp
ret
Function at 0x45d4f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530a36
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x587084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00498000
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004834b1
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x10], ecx
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x34], esi
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov ecx, edi
mov eax, dword [edi + 0x20]
push 0
push dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
call fcn.0045d350
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x465ce0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x587084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x324], 0xa
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x328], eax
push edi
mov edi, edx
mov dword [eax + 0x191dc], 0
mov edx, dword [ebp + 0xc]
test edx, edx
mov dword [ebp - 0x340], 0xf4240
lea eax, [edx - 1]
cmovle eax, ecx
mov dword [ebp - 0x32c], eax
mov eax, dword [ebp + 8]
mov ecx, eax
and ecx, 1
mov dword [ebp - 0x330], ecx
mov ecx, eax
and ecx, 2
and eax, 4
mov dword [ebp - 0x338], ecx
mov dword [ebp + 8], eax
xor ecx, ecx
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x33c], ecx
mov dword [ebp - 0x334], esi
cmp dword [ebp - 0x330], ecx
je 0x465d86
lea esi, [ebp - 0x318]
mov dword [ebp - 0x314], edi
mov dword [ebp - 0x334], esi
mov dword [ebp - 0x318], 1
cmp dword [ebp - 0x338], ecx
je 0x465da4
lea ebx, [ebp - 0x214]
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], 1
test eax, eax
je 0x465dc4
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x33c], ecx
mov dword [ebp - 0x110], 1
test edx, edx
jg 0x465df3
mov eax, 0xbce4217d
imul edx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x320], eax
mov eax, dword [ebp + 0xc]
neg eax
cdq
idiv dword [ebp - 0x340]
mov dword [ebp - 0x31c], edx
jmp 0x465e07
mov dword [ebp - 0x320], 1
mov dword [ebp - 0x31c], 0
lea eax, [ebp - 0x320]
push eax
push ecx
push ebx
push esi
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jns 0x465e59
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x328]
mov dword [ecx + 0x191dc], eax
cmp eax, 0x2714
jne 0x465e5f
mov edx, dword [ebp - 0x324]
mov eax, edx
dec edx
test eax, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x324], edx
mov edx, dword [ebp + 0xc]
jg 0x465d50
jmp 0x465e5f
mov ecx, dword [ebp - 0x328]
mov edx, dword [ebp - 0x32c]
mov eax, edx
dec edx
mov dword [ebp - 0x32c], edx
test eax, eax
jle 0x465e80
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
test esi, esi
je 0x465d50
test esi, esi
jle 0x465eec
mov eax, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
xor esi, esi
cmp dword [ebp - 0x330], esi
je 0x465eab
push dword [ebp - 0x334]
push edi
call eax
test eax, eax
mov ecx, 1
mov eax, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
cmovne esi, ecx
cmp dword [ebp - 0x338], 0
je 0x465ebf
push ebx
push edi
call eax
test eax, eax
je 0x465ebf
or esi, 2
cmp dword [ebp + 8], 0
je 0x465ef8
push dword [ebp - 0x33c]
push edi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x465ef8
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497fef
mov esp, ebp
pop ebp
ret
jne 0x465ef8
mov dword [ecx + 0x191dc], 0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00497fef
mov esp, ebp
pop ebp
ret
Function at 0x471e80
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
test esi, esi
jne 0x471ebd
lea esi, [ebx + 2]
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*4 + 1]
call fcn.00468200
mov esi, eax
test esi, esi
jne 0x471ebd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], esi
mov byte [esi], 0
test edi, edi
jne 0x471ed0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 2
jle 0x471f44
lea ecx, [ebx - 3]
mov eax, 0xaaaaaaab
mul ecx
mov ecx, edx
shr ecx, 1
inc ecx
lea eax, [ecx*4]
sub eax, ecx
neg eax
add ebx, eax
mov dword [ebp + 0xc], ebx
mov ebx, ecx
nop word [eax + eax]
movzx eax, byte [edi]
mov edx, 4
movzx ecx, byte [edi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 2]
shl eax, 8
or eax, ecx
nop word [eax + eax]
mov ecx, eax
dec edx
and ecx, 0x3f
shr eax, 6
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + esi], cl
test edx, edx
jg 0x471f20
add esi, 4
add edi, 3
sub ebx, 1
jne 0x471f00
mov ebx, dword [ebp + 0xc]
mov byte [esi], 0
test ebx, ebx
jle 0x471fbd
xor ecx, ecx
xor edx, edx
test ebx, ebx
jle 0x471f78
mov edx, ebx
mov dword [ebp + 8], ebx
nop dword [eax + eax]
movzx eax, byte [edi]
lea edi, [edi + 1]
shl ecx, 8
or ecx, eax
sub edx, 1
jne 0x471f60
cmp ebx, 3
jge 0x471f88
mov edx, dword [ebp + 8]
mov eax, 3
sub eax, edx
nop
shl ecx, 8
sub eax, 1
jne 0x471f80
mov edx, 4
nop dword [eax]
mov eax, ecx
dec edx
and eax, 0x3f
shr ecx, 6
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + esi], al
test edx, edx
jg 0x471f90
mov ecx, 3
cmp ebx, ecx
jge 0x471fb9
nop
mov byte [ecx + esi], 0x3d
dec ecx
cmp ecx, ebx
jg 0x471fb0
mov byte [esi + 4], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4826a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi], 0
mov byte [esi + 4], 0
cmp dword [eax + 0x14], 8
jb 0x4826bb
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
mov byte [esi + 4], al
test al, al
je 0x4826f0
mov eax, dword [esi]
test eax, eax
je 0x4826f0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x494220
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c048
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x587084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp dword [edi + 0x14], 8
jb 0x49425b
mov eax, dword [edi]
jmp 0x49425d
mov eax, edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x494283
test esi, esi
je 0x49427c
mov dword [esi], 0
call fcn.00497f70
mov dword [esi + 4], eax
mov al, 1
jmp 0x494311
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x64], 0
call fcn.00497f70
mov dword [ebp - 0x60], eax
cmp ebx, 0xb7
jne 0x4942cf
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x6c]
push edi
push eax
call fcn.00494d30
add esp, 0xc
cmp dword [ebp - 0x6c], 3
sete al
test al, al
je 0x4942cf
test esi, esi
je 0x49430f
mov dword [esi], 0
call fcn.00497f70
jmp 0x49430c
test esi, esi
jne 0x494305
push str.boost::filesystem::create_directory
lea ecx, [ebp - 0x28]
call fcn.0040533b
mov dword [ebp - 4], esi
call fcn.00497f70
push eax
push ebx
push edi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00493a20
push 0x57d940
lea eax, [ebp - 0x5c]
push eax
call fcn.004d1d4b
call fcn.00497f70
mov dword [esi], ebx
mov dword [esi + 4], eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497fef
mov esp, ebp
pop ebp
ret

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

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x14], 8
jb 0x494a73
mov eax, dword [esi]
jmp 0x494a75
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x494a9d
push dword [esp + 0x18]
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00494950
add esp, 0xc
mov eax, dword [eax]
pop esi
pop ebx
add esp, 8
ret
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x494ab4
mov dword [edi], 0
call fcn.00497f70
mov dword [edi + 4], eax
pop edi
test ebx, 0x400
je 0x494aeb
push esi
call fcn.004944b0
add esp, 4
test al, al
je 0x494ae0
test bl, 0x10
mov eax, 4
mov ecx, 0xb
pop esi
cmovne eax, ecx
pop ebx
add esp, 8
ret
pop esi
mov eax, 9
pop ebx
add esp, 8
ret
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
pop esi
mov eax, ebx
pop ebx
add esp, 8
ret
Function at 0x494b70
Capabilities:
Check if file exists
Delete directory

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x14], 8
jb 0x494b7c
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x494bba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x494bba
cmp eax, 3
je 0x494bba
cmp eax, 0x7b
je 0x494bba
cmp eax, 0xf
je 0x494bba
cmp eax, 0x15
je 0x494bba
cmp eax, 0x57
je 0x494bba
cmp eax, 0xa1
je 0x494bba
cmp eax, 0x35
je 0x494bba
xor al, al
ret
mov al, 1
ret

Function at 0x494bc0
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x14], 8
jb 0x494bcc
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x494c0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x494c0a
cmp eax, 3
je 0x494c0a
cmp eax, 0x7b
je 0x494c0a
cmp eax, 0xf
je 0x494c0a
cmp eax, 0x15
je 0x494c0a
cmp eax, 0x57
je 0x494c0a
cmp eax, 0xa1
je 0x494c0a
cmp eax, 0x35
je 0x494c0a
xor al, al
ret
mov al, 1
ret
Function at 0x494d30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c2c2
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x587084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x34], esi
cmp dword [edi + 0x14], 8
jb 0x494d71
mov eax, dword [edi]
jmp 0x494d73
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
jne 0x494d92
push esi
push edi
push ebx
call fcn.00494950
add esp, 0xc
jmp 0x494e8e
test eax, 0x400
je 0x494e4d
cmp dword [edi + 0x14], 8
jb 0x494da7
mov eax, dword [edi]
jmp 0x494da9
mov eax, edi
push eax
lea ecx, [ebp - 0x28]
call fcn.0041fec3
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x2000000
push 3
push 0
push 7
push 0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x2c], esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004017e4
cmp esi, 0xffffffff
jne 0x494e02
push dword [ebp - 0x34]
push edi
push ebx
call fcn.00494950
add esp, 0xc
jmp 0x494e8e
push edi
call fcn.004944b0
add esp, 4
test al, al
jne 0x494e35
mov eax, dword [ebp - 0x38]
push eax
push edi
call fcn.00494590
add esp, 8
mov dword [ebx], 9
mov dword [ebx + 4], eax
push esi
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x494e8e
push esi
mov dword [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x494e5f
mov dword [esi], 0
call fcn.00497f70
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], 3
push eax
push edi
test al, 0x10
jne 0x494e76
mov dword [ebp - 0x30], 2
call fcn.00494590
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx]
add esp, 8
mov dword [ebx], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497fef
mov esp, ebp
pop ebp
ret
Function at 0x495250
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c386
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x587084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0
push 0
push ebx
mov dword [ebp - 0x50], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00493980
mov edi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
cmp edi, ecx
mov dword [ebp - 4], 0
sete al
test al, al
jne 0x4952d5
sub ecx, edi
sar ecx, 1
push ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4952d5
push edi
lea ecx, [ebp - 0x40]
call fcn.004019d4
mov ecx, eax
mov ebx, 1
jmp 0x4952ef
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov word [ebp - 0x28], ax
lea ebx, [eax + 2]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
mov byte [ebp - 4], 2
jb 0x49530b
mov eax, dword [esi]
jmp 0x49530d
mov eax, esi
xor edx, edx
push ecx
mov ecx, esi
mov word [eax], dx
call fcn.00407a52
or ebx, 4
test bl, 2
je 0x495352
and ebx, 0xfffffffd
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp eax, 8
jb 0x49533e
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00401c8b
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
test bl, 1
je 0x495384
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 4
cmp eax, 8
jb 0x495370
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00401c8b
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 5
test edi, edi
je 0x4953a0
mov ecx, dword [ebp - 0x44]
sub ecx, edi
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x4c]
call fcn.00401c8b
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497fef
mov esp, ebp
pop ebp
ret