joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412e30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455b00
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x46e018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x234], esi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x234], esi
push 0
push eax
call fcn.0042ff40
mov eax, dword fs:[0x2c]
add esp, 0xc
mov ecx, dword [eax]
mov eax, dword [0x470f08]
cmp eax, dword [ecx + 4]
jle 0x412ee0
push 0x470f08
call fcn.0042ddc0
add esp, 4
cmp dword [0x470f08], 0xffffffff
jne 0x412ee0
push 0x457660
mov dword [0x470f0c], 0
mov dword [0x470f1c], 0
mov dword [0x470f20], 7
call fcn.0042e0d2
push 0x470f08
call fcn.0042dd76
add esp, 8
cmp dword [0x470f1c], 0
jne 0x412fc1
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
mov dword [ebp - 0x230], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x230], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412f30
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00402a20
mov dword [ebp - 4], 0
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
mov ecx, 0x470f0c
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.00402a20
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x412fc1
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412fb7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412fe9
push edx
push ecx
call fcn.0042dc50
add esp, 8
push 0x470f0c
mov ecx, esi
call fcn.00402670
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042dc42
mov esp, ebp
pop ebp
ret
call fcn.0043276f
int3

Function at 0x412ff0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455b57
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x46e018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x228], esi
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x20a
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], 1
push eax
call fcn.0042ff40
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413090
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00402a20
mov ecx, esi
call fcn.00413630
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042dc42
mov esp, ebp
pop ebp
ret
Function at 0x4130e0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455b57
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x46e018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x228], esi
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x20a
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], 1
push eax
call fcn.0042ff40
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413180
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00402a20
mov ecx, esi
call fcn.00413630
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042dc42
mov esp, ebp
pop ebp
ret

Function at 0x4131d0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455b57
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x46e018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x228], esi
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x20a
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], 1
push eax
call fcn.0042ff40
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413270
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00402a20
mov ecx, esi
call fcn.00413630
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042dc42
mov esp, ebp
pop ebp
ret
Function at 0x4132c0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455b57
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x46e018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x228], esi
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x20a
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], 1
push eax
call fcn.0042ff40
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413360
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00402a20
mov ecx, esi
call fcn.00413630
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042dc42
mov esp, ebp
pop ebp
ret

Function at 0x413e60
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
test esi, esi
je 0x413e8b
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x413e74
pop edi
mov eax, edx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret
Function at 0x4151f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455e05
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x46e018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x415402
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415402
mov ecx, esi
call fcn.004148e0
test eax, eax
je 0x4152e7
mov ecx, esi
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415261
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00402a20
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00413630
push 0x463a38
lea ecx, [ebp - 0x28]
call fcn.00413a50
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.00413ea0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4152e7
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4152dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41541e
push edx
push ecx
call fcn.0042dc50
add esp, 8
lea ecx, [ebp - 0x44]
call fcn.00412020
mov eax, dword [ebp - 0x44]
cmp dword [eax - 0xc], 0
lea edx, [eax - 0x10]
je 0x415334
push 0
push eax
call fcn.0043c1d1
mov edx, dword [ebp - 0x44]
add esp, 8
add edx, 0xfffffff0
cmp eax, 0xffffffff
je 0x415334
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4153fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
jmp 0x415404
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x415349
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, esi
call fcn.00414df0
test eax, eax
je 0x4153fb
mov ecx, esi
mov dword [ebp - 0x40], 0
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415380
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00402a20
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 1
call fcn.00413630
push 0x463a50
lea ecx, [ebp - 0x40]
call fcn.00413a50
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
call fcn.00413ea0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4153fb
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4153f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415423
push edx
push ecx
call fcn.0042dc50
add esp, 8
mov eax, 1
jmp 0x415404
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042dc42
mov esp, ebp
pop ebp
ret
call fcn.0043276f
call fcn.0043276f
int3
Function at 0x4154c0
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455e4d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
push esi
push edi
mov eax, dword [0x46e018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x78], 0x44
xor eax, eax
movlpd qword [ebp - 0x74], xmm0
movlpd qword [ebp - 0x6c], xmm0
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x46], xmm0
movlpd qword [ebp - 0x3e], xmm0
mov word [ebp - 0x36], ax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x4c], 0x181
mov dword [ebp - 4], eax
call fcn.00402ca0
mov ecx, eax
test ecx, ecx
je 0x41565c
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x4644bc
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push str.__s___s
push eax
call fcn.00412cb0
add esp, 0x10
mov eax, 0xa
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4155d3
push 0x4644bc
push esi
push 1
push 0x1388
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QMTFunction::RunApp_CreateProcessW_error:_d__wait:_d__show:_d__path:_s__cmd:_s
push 0x46eca0
call fcn.004167a0
add esp, 0x1c
mov dword [ebp - 0x18], 0
jmp 0x41562a
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x1c], edi
push 0x1388
push esi
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41560b
push dword [ebp - 0x14]
push str.CQMTProcess::RunApp_WAIT_TIMEOUT_path_s.
push 0x46eca0
call fcn.004167a0
add esp, 0xc
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 1
test edi, edi
je 0x415623
push edi
call eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x41562a
push esi
call eax
mov esi, dword [ebp - 0x14]
or eax, 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x415645
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x80004005
call fcn.00410440
int3
Function at 0x445629
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45ce68
push 0x45ce60
push str.FlsAlloc
push 0x1e
call fcn.00445496
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44565d
push dword [ebp + 8]
mov ecx, esi
call dword [0x4582f8]
call esi
jmp 0x445663
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4456a7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45ce78
push 0x45ce70
push str.FlsGetValue
push 0x20
call fcn.00445496
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4456de
push dword [ebp + 8]
mov ecx, esi
call dword [0x4582f8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x44948c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x470a68]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4494cc
cmp byte [ebx], 0xa
jne 0x4494cc
or byte [eax + edi + 0x28], 4
jmp 0x4494d1
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4495cf
mov al, byte [edx]
cmp al, 0x1a
je 0x4495b1
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x449500
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x449525
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x44952f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4494e2
jmp 0x4495cf
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4495ac
cmp dword [ebp - 0xc], 0
je 0x4495ac
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x470a68]
test byte [eax + edi + 0x28], 0x48
je 0x449586
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x449571
mov byte [esi], dl
jmp 0x449582
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x470a68]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4495cf
cmp byte [ebp - 1], 0xa
jne 0x449595
cmp esi, ebx
jne 0x449595
mov byte [esi], 0xa
jmp 0x4495ce
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044942e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4495cf
mov byte [esi], 0xd
jmp 0x4495ce
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x470a68]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4495cb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4495cf
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4495d8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x470a68]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44961b
cmp word [esi], dx
jne 0x44961b
or byte [edi + eax + 0x28], 4
jmp 0x449620
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x449773
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x449753
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x449662
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x449698
cmp eax, edx
jae 0x4496a4
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x44963a
jmp 0x449773
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44974f
cmp dword [ebp - 0x14], 0
je 0x44974f
mov eax, dword [ebx*4 + 0x470a68]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x449727
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4496f0
mov word [esi], cx
jmp 0x449723
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x470a68]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x470a68]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x470a68]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x449773
pop ebx
cmp word [ebp - 4], bx
jne 0x449738
cmp esi, dword [ebp + 0xc]
jne 0x449738
mov word [esi], bx
jmp 0x449770
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0044942e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x449773
push 0xd
jmp 0x44976c
mov ecx, dword [ebx*4 + 0x470a68]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44976a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x449773
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44c15c
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x46e018]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x44c1a7
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0044c2fb
test al, al
jne 0x44c1a1
sub edx, 2
cmp edx, edi
jne 0x44c187
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x44c1c9
lea eax, [edi + 2]
cmp edx, eax
je 0x44c1c9
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0044c0a8
add esp, 0x10
jmp 0x44c2c3
push esi
lea ecx, [ebp - 0x255]
call fcn.0044c2fb
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44c20c
push dword [ebp - 0x25c]
jmp 0x44c1b9
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x44c249
cmp word [ebp - 0x226], 0
je 0x44c26a
cmp word [ebp - 0x226], ax
jne 0x44c249
cmp word [ebp - 0x224], 0
je 0x44c26a
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0044c0a8
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x44c2b6
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x44c223
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x44c29e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x44c2c3
push 0x44bed8
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00452cf0
add esp, 0x10
jmp 0x44c293
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042dc42
leave
ret

Function at 0x44cbce
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x44cbdf
pop esi
ret
push ebx
push edi
push esi
call fcn.0044cb97
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00443dbb
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x44cc07
push ebx
push esi
push edi
call fcn.0042f9c0
add esp, 0xc
push 0
call fcn.00443d81
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x44cfcb
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044cc1c
Function at 0x453a85
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00453a01
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x453bfd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x453bfd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x453bac
jg 0x453ade
test eax, eax
je 0x453ba2
push 1
push 0x1000
call fcn.00445198
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x453b04
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x453b99
push 0x8000
push ebx
call fcn.00441dec
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x453b30
jg 0x453b2b
cmp ecx, 0x1000
jb 0x453b30
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00448317
add esp, 0x10
cmp eax, 0xffffffff
je 0x453b75
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x453b2b
jl 0x453b5c
test ecx, ecx
jne 0x453b1d
push dword [ebp - 0xc]
push ebx
call fcn.00441dec
push esi
call fcn.00443d81
add esp, 0xc
xor edi, edi
jmp 0x453c0e
cmp byte [edi + 0x24], 0
je 0x453b8c
cmp dword [edi + 0x20], 5
jne 0x453b8c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x453b97
mov edi, dword [edi + 0x18]
jmp 0x453b99
xor edi, edi
push esi
call fcn.00443d81
pop ecx
jmp 0x453c0e
test ecx, ecx
jg 0x453b6e
jl 0x453bac
test eax, eax
jae 0x453b6e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0044942e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x453bcf
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x453b6e
jmp 0x453c06
push ebx
call fcn.0044d454
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x453b6e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x453c0e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x453c0b
mov edi, dword [edi + 0x18]
jmp 0x453c0e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0044942e
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219