joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d8b90
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [0x4f8ac8]
mov dword [ebp - 8], esi
push edi
test esi, esi
je 0x4d8d27
nop word [eax + eax]
cmp dword [esi], ecx
je 0x4d8bc5
mov esi, dword [esi + 0x30]
mov dword [ebp - 8], esi
test esi, esi
jne 0x4d8bb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 4], edx
mov edi, dword [0x4f07ac]
test edi, edi
jne 0x4d8c64
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0x10], eax
mov edx, eax
mov dword [ebp - 4], ecx
nop
movzx ebx, word [ecx + 0x2c]
xor edi, edi
mov esi, dword [ecx + 0x30]
shr ebx, 1
mov dword [ebp - 0xc], 0x811c9dc5
lea eax, [esi + ebx*2]
cmp esi, eax
cmova ebx, edi
test ebx, ebx
je 0x4d8c48
nop
mov cl, byte [esi]
lea esi, [esi + 2]
movsx edx, cl
sub cl, 0x41
mov eax, edx
or eax, 0x20
cmp cl, 0x19
cmova eax, edx
inc edi
xor eax, dword [ebp - 0xc]
imul eax, eax, 0x1000193
mov dword [ebp - 0xc], eax
cmp edi, ebx
jne 0x4d8c10
cmp eax, 0xc0323159
je 0x4d8d2e
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx]
mov ecx, eax
mov dword [ebp - 4], ecx
cmp eax, edx
je 0x4d8c59
cmp dword [ecx + 0x18], 0
jne 0x4d8bf0
xor edi, edi
mov esi, dword [ebp - 8]
mov dword [0x4f07ac], edi
mov eax, dword [0x4f8f34]
test eax, eax
jne 0x4d8d06
test edi, edi
je 0x4d8cff
mov eax, dword [edi + 0x3c]
mov ecx, dword [eax + edi + 0x78]
mov eax, dword [eax + edi + 0x7c]
mov dword [ebp - 0x14], eax
lea eax, [edi + ecx]
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x4d8cff
xor ecx, ecx
mov dword [ebp - 0xc], ecx
cmp dword [eax + 0x18], ecx
je 0x4d8cff
mov eax, dword [eax + 0x20]
add eax, edi
mov dword [ebp - 0x10], eax
mov edx, dword [eax]
mov eax, 0x811c9dc5
add edx, edi
mov bl, byte [edx]
inc edx
test bl, bl
je 0x4d8cea
mov esi, eax
movsx ecx, bl
lea edx, [edx + 1]
sub bl, 0x41
mov eax, ecx
or eax, 0x20
cmp bl, 0x19
mov bl, byte [edx - 1]
cmova eax, ecx
xor eax, esi
imul esi, eax, 0x1000193
test bl, bl
jne 0x4d8cb5
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], esi
cmp dword [ebp - 4], 0xf175c356
mov esi, dword [ebp - 8]
je 0x4d8d39
mov edx, dword [ebp - 0x14]
inc ecx
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
cmp ecx, dword [edx + 0x18]
jne 0x4d8ca3
xor eax, eax
mov dword [0x4f8f34], eax
lea ecx, [ebp - 0x28]
push ecx
push dword [esi]
call eax
movd xmm1, dword [ebp - 0x20]
movd xmm0, dword [esi + 8]
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss dword [esi + 0xc], xmm1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x18]
jmp 0x4d8c5b
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edi]
add eax, edi
jmp 0x4d8d01
Function at 0x4d8d80
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x20], edx
movzx edx, ax
push edi
mov edi, dword [0x4f8ac8]
shr eax, 0x10
mov dword [ebp - 0x1c], edx
mov dword [ebp + 0xc], eax
mov dword [ebp - 8], edi
test edi, edi
je 0x4d8f18
nop dword [eax]
cmp dword [edi], ecx
je 0x4d8dc5
mov edi, dword [edi + 0x30]
mov dword [ebp - 8], edi
test edi, edi
jne 0x4d8db0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [0x4f07ac]
test esi, esi
jne 0x4d8e64
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0x10], eax
mov edx, eax
mov dword [ebp - 4], ecx
nop dword [eax + eax]
movzx ebx, word [ecx + 0x2c]
xor edi, edi
mov esi, dword [ecx + 0x30]
shr ebx, 1
mov dword [ebp - 0xc], 0x811c9dc5
lea eax, [esi + ebx*2]
cmp esi, eax
cmova ebx, edi
test ebx, ebx
je 0x4d8e48
nop
mov cl, byte [esi]
lea esi, [esi + 2]
movsx edx, cl
sub cl, 0x41
mov eax, edx
or eax, 0x20
cmp cl, 0x19
cmova eax, edx
inc edi
xor eax, dword [ebp - 0xc]
imul eax, eax, 0x1000193
mov dword [ebp - 0xc], eax
cmp edi, ebx
jne 0x4d8e10
cmp eax, 0xc0323159
je 0x4d8f1f
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx]
mov ecx, eax
mov dword [ebp - 4], ecx
cmp eax, edx
je 0x4d8e59
cmp dword [ecx + 0x18], 0
jne 0x4d8df0
xor esi, esi
mov edi, dword [ebp - 8]
mov dword [0x4f07ac], esi
mov eax, dword [0x4f8f24]
test eax, eax
jne 0x4d8f06
test esi, esi
je 0x4d8eff
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + esi + 0x78]
mov eax, dword [eax + esi + 0x7c]
mov dword [ebp - 0x14], eax
lea eax, [esi + ecx]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x4d8eff
xor edx, edx
mov dword [ebp - 0xc], edx
cmp dword [eax + 0x18], edx
je 0x4d8eff
mov eax, dword [eax + 0x20]
add eax, esi
mov dword [ebp - 0x10], eax
mov eax, dword [eax]
mov ecx, 0x811c9dc5
add eax, esi
mov bl, byte [eax]
inc eax
test bl, bl
je 0x4d8eea
mov edi, ecx
movsx edx, bl
lea eax, [eax + 1]
sub bl, 0x41
mov ecx, edx
or ecx, 0x20
cmp bl, 0x19
mov bl, byte [eax - 1]
cmova ecx, edx
xor ecx, edi
imul edi, ecx, 0x1000193
test bl, bl
jne 0x4d8eb5
mov dword [ebp - 4], edi
cmp dword [ebp - 4], 0x8010a808
mov edi, dword [ebp - 8]
je 0x4d8f2a
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
inc edx
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], eax
cmp edx, dword [ecx + 0x18]
jne 0x4d8ea3
xor eax, eax
mov dword [0x4f8f24], eax
push 1
push dword [ebp + 0xc]
push dword [ebp - 0x1c]
push dword [ebp + 8]
push dword [ebp - 0x20]
push dword [edi]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x18]
jmp 0x4d8e5b
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + esi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + esi]
add eax, esi
jmp 0x4d8f01
Function at 0x4db6c0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [0x4f8b08]
mov eax, ebx
mov dword [ebp - 0xc], ebx
push esi
push edi
test eax, eax
je 0x4db6f4
nop dword [eax + eax]
mov dword [eax + 0x2c0], 0
mov eax, dword [eax + 0x2c4]
test eax, eax
jne 0x4db6e0
mov eax, ebx
test eax, eax
je 0x4db87d
nop
cmp dword [eax + 0x2a4], ecx
je 0x4db719
mov eax, dword [eax + 0x2c4]
test eax, eax
jne 0x4db700
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [eax + 0x2c0], 1
test ebx, ebx
je 0x4db87d
nop dword [eax + eax]
mov esi, dword [0x4f07ac]
test esi, esi
jne 0x4db7c8
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0x10], eax
mov edx, eax
mov dword [ebp - 4], ecx
movzx ebx, word [ecx + 0x2c]
xor edi, edi
mov esi, dword [ecx + 0x30]
shr ebx, 1
mov dword [ebp - 8], 0x811c9dc5
lea eax, [esi + ebx*2]
cmp esi, eax
cmova ebx, edi
test ebx, ebx
je 0x4db7ac
mov cl, byte [esi]
lea esi, [esi + 2]
movsx edx, cl
sub cl, 0x41
mov eax, edx
or eax, 0x20
cmp cl, 0x19
cmova eax, edx
inc edi
xor eax, dword [ebp - 8]
imul eax, eax, 0x1000193
mov dword [ebp - 8], eax
cmp edi, ebx
jne 0x4db774
cmp eax, 0xc0323159
je 0x4db884
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx]
mov ecx, eax
mov dword [ebp - 4], ecx
cmp eax, edx
je 0x4db7bd
cmp dword [ecx + 0x18], 0
jne 0x4db756
xor esi, esi
mov ebx, dword [ebp - 0xc]
mov dword [0x4f07ac], esi
mov eax, dword [0x4f8fe8]
test eax, eax
jne 0x4db860
test esi, esi
je 0x4db856
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + esi + 0x78]
lea eax, [esi + ecx]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x4db856
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp dword [eax + 0x18], ecx
je 0x4db856
mov eax, dword [eax + 0x20]
mov edx, dword [ebp - 4]
add eax, esi
mov dword [ebp - 0x10], eax
mov eax, dword [eax]
mov edi, 0x811c9dc5
add eax, esi
mov bl, byte [eax]
inc eax
test bl, bl
je 0x4db844
movsx edx, bl
lea eax, [eax + 1]
sub bl, 0x41
mov ecx, edx
or ecx, 0x20
cmp bl, 0x19
mov bl, byte [eax - 1]
cmova ecx, edx
xor ecx, edi
imul edi, ecx, 0x1000193
test bl, bl
jne 0x4db813
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
cmp edi, 0x3b435c0e
je 0x4db88f
mov eax, dword [ebp - 0x10]
inc ecx
add eax, 4
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
cmp ecx, dword [edx + 0x18]
jne 0x4db803
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov dword [0x4f8fe8], eax
push 1
push 0
push dword [ebx + 0x2a4]
call eax
mov ebx, dword [ebx + 0x2c4]
mov dword [ebp - 0xc], ebx
test ebx, ebx
jne 0x4db730
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x18]
jmp 0x4db7bf
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + esi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + esi]
add eax, esi
jmp 0x4db858
Function at 0x4df190
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [0x4f07ac]
mov dword [ebp - 0x18], ecx
push edi
test esi, esi
jne 0x4df231
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0xc], eax
mov edx, eax
mov dword [ebp - 4], ecx
movzx ebx, word [ecx + 0x2c]
xor edi, edi
mov esi, dword [ecx + 0x30]
shr ebx, 1
mov dword [ebp - 8], 0x811c9dc5
lea eax, [esi + ebx*2]
cmp esi, eax
cmova ebx, edi
test ebx, ebx
je 0x4df218
mov cl, byte [esi]
lea esi, [esi + 2]
movsx edx, cl
sub cl, 0x41
mov eax, edx
or eax, 0x20
cmp cl, 0x19
cmova eax, edx
inc edi
xor eax, dword [ebp - 8]
imul eax, eax, 0x1000193
mov dword [ebp - 8], eax
cmp edi, ebx
jne 0x4df1e0
cmp eax, 0xc0323159
je 0x4df2e9
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx]
mov ecx, eax
mov dword [ebp - 4], ecx
cmp eax, edx
je 0x4df229
cmp dword [ecx + 0x18], 0
jne 0x4df1c2
xor esi, esi
mov dword [0x4f07ac], esi
mov eax, dword [0x4f8f34]
test eax, eax
jne 0x4df2ca
test esi, esi
je 0x4df2c3
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + esi + 0x78]
lea eax, [esi + ecx]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x4df2c3
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp dword [eax + 0x18], ecx
je 0x4df2c3
mov eax, dword [eax + 0x20]
mov edx, dword [ebp - 4]
add eax, esi
mov dword [ebp - 0xc], eax
nop dword [eax]
mov eax, dword [eax]
mov edi, 0x811c9dc5
add eax, esi
mov bl, byte [eax]
inc eax
test bl, bl
je 0x4df2b1
movsx edx, bl
lea eax, [eax + 1]
sub bl, 0x41
mov ecx, edx
or ecx, 0x20
cmp bl, 0x19
mov bl, byte [eax - 1]
cmova ecx, edx
xor ecx, edi
imul edi, ecx, 0x1000193
test bl, bl
jne 0x4df280
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
cmp edi, 0xf175c356
je 0x4df2f4
mov eax, dword [ebp - 0xc]
inc ecx
add eax, 4
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
cmp ecx, dword [edx + 0x18]
jne 0x4df270
xor eax, eax
mov dword [0x4f8f34], eax
lea ecx, [ebp - 0x28]
push ecx
push dword [ebp - 0x18]
call eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
cdq
and edx, 3
pop edi
add eax, edx
pop esi
sar eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x18]
jmp 0x4df22b
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + esi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + esi]
add eax, esi
jmp 0x4df2c5
Function at 0x4015d0
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
sub edx, 0x58
push ebx
mov ebx, eax
sub esp, 0x10
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
test eax, eax
jne 0x401635
mov eax, dword [ebx]
lea esi, [ebx + 0x10]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x58
mov dword [esp], esi
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fread
test eax, eax
je 0x401635
mov edi, str.MEI_f_v_n_v
mov ecx, 8
repe cmpsb byte [esi], byte es:[edi]
setne al
add esp, 0x10
movzx eax, al
pop ebx
neg eax
pop esi
pop edi
ret
add esp, 0x10
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
ret
Function at 0x401690
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov ebx, dword [esp + 0x80]
mov edi, dword [esp + 0x84]
mov eax, dword [ebx]
test eax, eax
je 0x401810
mov esi, dword [ebx + 4]
mov eax, dword [edi + 4]
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp], eax
call ebp
sub esp, 4
add eax, esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [edi + 8]
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov esi, eax
je 0x401860
mov edx, dword [ebx]
mov eax, dword [edi + 8]
mov dword [esp + 0x1c], edx
mov dword [esp], eax
call ebp
sub esp, 4
mov edx, dword [esp + 0x1c]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 0xc], edx
call sub.msvcrt.dll_fread
test eax, eax
je 0x401845
cmp byte [edi + 0x10], 1
je 0x401751
mov eax, dword [ebx]
test eax, eax
je 0x401747
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [ebx], 0
add esp, 0x6c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00408620
mov eax, dword [edi + 0xc]
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [esp + 0x1c], eax
je 0x4018c7
mov eax, dword [edi + 8]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x28], esi
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0xc]
mov dword [esp], eax
call ebp
sub esp, 4
lea ebp, [esp + 0x28]
mov dword [esp + 8], 0x38
mov dword [esp + 4], 0x40c0b7
mov dword [esp + 0x38], eax
mov dword [esp], ebp
call fcn.00405ad0
test eax, eax
js 0x401873
mov dword [esp + 4], 4
mov dword [esp], ebp
call fcn.00405b70
test eax, eax
js 0x4018ad
mov dword [esp], ebp
call fcn.004079f0
mov dword [esp], esi
call sub.msvcrt.dll_free
mov esi, dword [esp + 0x1c]
jmp 0x401733
lea eax, [ebx + 0x68]
mov dword [esp + 4], 0x40c050
mov dword [esp], eax
call fcn.00402e90
test eax, eax
mov dword [ebx], eax
jne 0x4016af
mov dword [esp], str.Cannot_open_archive_file_n
xor esi, esi
call fcn.00401ea0
add esp, 0x6c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.Could_not_read_from_file_n
xor esi, esi
call fcn.00401ea0
jmp 0x401747
mov dword [esp], str.Could_not_allocate_read_buffer_n
xor esi, esi
call fcn.00401ea0
jmp 0x401747
mov edx, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], str.Error__d_from_inflateInit:__s_n
mov dword [esp + 8], edx
call fcn.00401ea0
mov dword [esp], esi
add edi, 0x12
xor esi, esi
call sub.msvcrt.dll_free
mov dword [esp + 4], edi
mov dword [esp], str.Error_decompressing__s_n
call fcn.00401ea0
jmp 0x401747
mov edx, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], str.Error__d_from_inflate:__s_n
mov dword [esp + 8], edx
call fcn.00401ea0
jmp 0x40188b
mov dword [esp], str.Error_allocating_decompression_buffer_n
call fcn.00401ea0
jmp 0x40188b
Function at 0x4018e0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.00401690
mov dword [esp], ebx
mov edi, eax
call fcn.004047b0
cmp eax, 0xffffffff
je 0x401969
lea ebp, [esi + 0x12]
add ebx, 0x2068
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.004049b0
mov ebx, eax
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ntohl]
sub esp, 4
test ebx, ebx
mov esi, eax
je 0x401988
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.msvcrt.dll_fwrite
cmp eax, 1
je 0x401957
test esi, esi
jne 0x401971
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov dword [esp], edi
call sub.msvcrt.dll_free
xor eax, eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], ebp
mov dword [esp], str.Failed_to_write_all_bytes_for__s_n
call fcn.00401ea0
mov eax, 0xffffffff
jmp 0x401969
mov dword [esp + 4], ebp
mov dword [esp], str._s_could_not_be_extracted__n
call fcn.00401ea0
mov eax, 0xffffffff
jmp 0x401969
Function at 0x404540
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x18
mov dword [esp], 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
mov dword [esp], ebx
call sub.msvcrt.dll_remove
add esp, 0x18
pop ebx
ret

Function at 0x404570
Capabilities:
Query environment variable

Disassembly:
push ebx
mov eax, 0x4018
call fcn.0040a590
sub esp, eax
mov eax, dword [esp + 0x4020]
lea ebx, [esp + 0x10]
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.004051d0
mov dword [esp + 8], 0x2000
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub esp, 0xc
test eax, eax
jne 0x4045d0
add esp, 0x4018
xor eax, eax
pop ebx
ret
lea eax, [esp + 0x2010]
mov dword [esp + 8], 0x2000
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
sub esp, 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.00405030
test eax, eax
je 0x4045bc
cmp byte [eax], 0
je 0x4045bc
mov dword [esp], eax
call sub.msvcrt.dll__strdup
add esp, 0x4018
pop ebx
ret

Function at 0x404620
Capabilities:
Set environment variable

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.004051d0
mov esi, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.004051d0
mov dword [esp], esi
mov ebx, eax
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
sub esp, 8
mov edi, eax
mov dword [esp], esi
call sub.msvcrt.dll_free
mov dword [esp], ebx
call sub.msvcrt.dll_free
add esp, 0x10
mov eax, edi
pop ebx
pop esi
pop edi
ret

Function at 0x404690
Capabilities:
Set environment variable

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [esp + 0x20]
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.004051d0
mov dword [esp + 4], 0
mov ebx, eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
sub esp, 8
mov esi, eax
mov dword [esp], ebx
call sub.msvcrt.dll_free
add esp, 0x14
mov eax, esi
pop ebx
pop esi
ret
Function at 0x4046e0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
push edi
mov eax, 0x202c
push esi
push ebx
call fcn.0040a590
sub esp, eax
lea ebx, [esp + 0x20]
mov esi, dword [esp + 0x2040]
mov dword [esp], 0x1000
mov dword [esp + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
sub esp, 8
lea edi, [esp + 0x10]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x1000
mov dword [esp], esi
mov ebx, 5
call fcn.00405030
call sub.msvcrt.dll__getpid
mov dword [esp + 4], str._MEI_d
mov dword [esp + 8], eax
mov dword [esp], edi
call sub.msvcrt.dll_sprintf
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__tempnam]
mov dword [esp], eax
mov ebp, eax
call sub.msvcrt.dll__mkdir
test eax, eax
je 0x404780
mov dword [esp], ebp
call sub.msvcrt.dll_free
sub ebx, 1
jne 0x404745
add esp, 0x202c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], ebp
mov dword [esp], esi
call sub.msvcrt.dll_strcpy
mov dword [esp], ebp
call sub.msvcrt.dll_free
add esp, 0x202c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x404810
Capabilities:
Delete directory

Disassembly:
push ebp
push edi
mov eax, 0x125c
push esi
push ebx
call fcn.0040a590
sub esp, eax
mov eax, dword [esp + 0x1270]
lea ebp, [esp + 0x24f]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcpy
mov dword [esp], ebp
call sub.msvcrt.dll_strlen
movzx edx, byte [esp + eax + 0x24e]
mov dword [esp + 0x12c], eax
cmp dl, 0x2f
je 0x40485f
cmp dl, 0x5c
jne 0x4048f0
lea ebx, [esp + 0x134]
mov edx, 0x2a
mov word [ebp + eax], dx
mov dword [esp], ebp
mov dword [esp + 4], ebx
call dword [sym.imp.msvcrt.dll__findfirst]
cmp eax, 0xffffffff
mov dword [esp + 0x128], eax
je 0x4048d1
lea esi, [esi]
mov ecx, 0x46
mov edi, esp
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, ebp
mov edx, dword [esp + 0x12c]
call fcn.00404910
mov eax, dword [esp + 0x128]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__findnext]
test eax, eax
je 0x404890
mov eax, dword [esp + 0x128]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__findclose]
mov eax, dword [esp + 0x1270]
mov dword [esp], eax
call sub.msvcrt.dll__rmdir
add esp, 0x125c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, 0x5c
mov word [ebp + eax], cx
lea eax, [eax + 1]
mov dword [esp + 0x12c], eax
jmp 0x40485f

Function at 0x404910
Capabilities:
Delete file

Disassembly:
push ebp
push edi
mov ecx, 2
push esi
push ebx
mov ebx, eax
mov edi, 0x40d33c
mov ebp, edx
sub esp, 0x1c
lea eax, [esp + 0x44]
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
seta cl
mov esi, ecx
setb cl
mov edx, esi
cmp dl, cl
je 0x40494b
mov edi, 0x40d33e
mov ecx, 3
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x404953
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [ebx + ebp], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_strcat
test byte [esp + 0x30], 0x10
mov dword [esp], ebx
jne 0x404980
call sub.msvcrt.dll_remove
test eax, eax
je 0x40494b
mov eax, ebx
call fcn.00404540
jmp 0x40494b
call fcn.00404810
jmp 0x40494b