joyce8/EMBER2024-capa huggingface dataset:
Function at 0x98e62e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x98e65c
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x98e663
cmp ebx, dword [eax + 4]
jae 0x98e663
xor eax, eax
jmp 0x98e853
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x98e674
xor eax, eax
inc eax
jmp 0x98e852
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x98e68a
cmp ecx, edx
jae 0x98e7cf
cmp dword [eax + 4], 0
je 0x98e693
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x98e67b
cmp dword [ebp + 8], 0
je 0x98e6b5
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x98e7cf
cmp eax, esi
jae 0x98e7cf
mov eax, dword [0xc2be88]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x98e6da
cmp dword [esi*4 + 0xc2be90], edi
je 0x98e7d3
inc esi
cmp esi, eax
jl 0x98e6c8
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x98e84f
cmp dword [ebp - 8], 0x1000000
jne 0x98e84f
test byte [ebp - 0xc], 0xcc
je 0x98e758
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x98e84f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x98e84f
cmp word [eax + 0x18], 0x10b
jne 0x98e84f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x98e84f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x98e758
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x98e758
test byte [ecx + 0x27], 0x80
jne 0x98e7cf
push 1
push 0xc2bed0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x98e66c
mov ecx, dword [0xc2be88]
test ecx, ecx
mov edx, ecx
jle 0x98e78c
lea eax, [ecx*4 + 0xc2be8c]
cmp dword [eax], edi
je 0x98e78c
dec edx
sub eax, 4
test edx, edx
jg 0x98e780
test edx, edx
jne 0x98e7bd
push 0xf
pop ebx
cmp ecx, ebx
jg 0x98e799
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x98e7b1
lea eax, [edx*4 + 0xc2be90]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x98e79f
cmp ecx, 0x10
jge 0x98e7bd
inc ecx
mov dword [0xc2be88], ecx
push 0
push 0xc2bed0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x98e66c
xor eax, eax
jmp 0x98e852
test esi, esi
jle 0x98e66c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0xc2bed0
call ebx
test eax, eax
jne 0x98e66c
cmp dword [esi*4 + 0xc2be90], edi
je 0x98e829
mov eax, dword [0xc2be88]
lea esi, [eax - 1]
test esi, esi
jl 0x98e817
cmp dword [esi*4 + 0xc2be90], edi
je 0x98e813
dec esi
jns 0x98e807
test esi, esi
jge 0x98e827
cmp eax, 0x10
jge 0x98e822
inc eax
mov dword [0xc2be88], eax
lea esi, [eax - 1]
jmp 0x98e829
je 0x98e841
xor ecx, ecx
test esi, esi
jl 0x98e841
lea eax, [ecx*4 + 0xc2be90]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x98e82f
push 0
push 0xc2bed0
call ebx
jmp 0x98e66c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x98e9fe
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0xbd33e0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0xbd3b00]
je 0x98ea33
inc eax
cmp eax, 0x13
jb 0x98ea24
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0xbd3b00]
jne 0x98eb59
mov eax, dword [0xc2bcb8]
cmp eax, 1
je 0x98eb31
cmp eax, edx
jne 0x98ea63
cmp dword [0xbd3674], 1
je 0x98eb31
cmp ecx, 0xfc
je 0x98eb59
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x98ea99
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0098b280
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0098a1e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x98eacd
mov eax, edi
push eax
call fcn.0098a1e0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0xb6e134
push edi
call fcn.00990ea0
add esp, 0x10
push edi
call fcn.0098a1e0
push dword [esi + 0xbd3b04]
mov ebx, eax
call fcn.0098a1e0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0098a5b0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0098b280
push edi
push ebx
call fcn.0098b290
push 0xb6e130
push ebx
call fcn.0098b290
push dword [esi + 0xbd3b04]
push ebx
call fcn.0098b290
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00990da0
add esp, 0x2c
jmp 0x98eb59
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0xbd3b04]
push dword [esi]
call fcn.0098a1e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00989fe9
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x98ebae
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0xbd33e0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x98ebdf
xor eax, eax
jmp 0x98ed68
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0xc2cc00]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x98ec1b
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.009926a7
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x98ecf6
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x98ed34
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x98ec7f
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x98ec70
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x98ec50
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x98ecbf
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x98ecc8
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x98ec41
jmp 0x98ecca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x98ed63
cmp dword [ebp - 0x6c], edi
je 0x98ed34
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x98ed29
call fcn.0098da0d
mov dword [eax], 9
call fcn.0098da16
mov dword [eax], esi
jmp 0x98ed5e
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x98ed1e
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x98ecca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x98ecca
push dword [ebp - 0x6c]
call fcn.0098da1f
pop ecx
jmp 0x98ed5e
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x98ed4c
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x98ed4c
xor eax, eax
jmp 0x98ed66
call fcn.0098da0d
mov dword [eax], 0x1c
call fcn.0098da16
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x98ed66
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00989fe9
add ebp, 0x3a0
leave
ret
Function at 0x990da0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0xc2c0e4], ebx
push esi
push edi
jne 0x990e20
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x990e5b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xb6efe0
push edi
call esi
test eax, eax
mov dword [0xc2c0e4], eax
je 0x990e5b
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0xc2c0e8], eax
call esi
cmp dword [0xc2bcf0], 2
mov dword [0xc2c0ec], eax
jne 0x990e20
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0xc2c0f4], eax
je 0x990e20
push str.GetProcessWindowStation
push edi
call esi
mov dword [0xc2c0f0], eax
mov eax, dword [0xc2c0f0]
test eax, eax
je 0x990e65
call eax
test eax, eax
je 0x990e4c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0xc2c0f4]
test eax, eax
je 0x990e4c
test byte [ebp - 8], 1
jne 0x990e65
cmp dword [0xc2bcfc], 4
jb 0x990e5f
or byte [ebp + 0x12], 0x20
jmp 0x990e84
xor eax, eax
jmp 0x990e94
or byte [ebp + 0x12], 4
jmp 0x990e84
mov eax, dword [0xc2c0e8]
test eax, eax
je 0x990e84
call eax
mov ebx, eax
test ebx, ebx
je 0x990e84
mov eax, dword [0xc2c0ec]
test eax, eax
je 0x990e84
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0xc2c0e4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x9921ae
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x9921c7
or eax, 0xffffffff
jmp 0x992228
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x992224
push 0x3d
push esi
call fcn.00993ede
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x992224
cmp esi, eax
je 0x992224
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0xc2bd10]
sete cl
cmp eax, dword [0xc2bd14]
mov dword [ebp - 8], ecx
jne 0x99220a
mov edi, eax
call fcn.0099214d
mov dword [0xc2bd10], eax
cmp eax, ebx
jne 0x992263
cmp dword [ebp + 0xc], ebx
je 0x99222c
cmp dword [0xc2bd18], ebx
je 0x99222c
call fcn.0098dae0
test eax, eax
je 0x992263
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x992235
xor eax, eax
jmp 0x992227
push 4
call fcn.0098bf94
cmp eax, ebx
pop ecx
mov dword [0xc2bd10], eax
je 0x992224
mov dword [eax], ebx
cmp dword [0xc2bd18], ebx
jne 0x992263
push 4
call fcn.0098bf94
cmp eax, ebx
pop ecx
mov dword [0xc2bd18], eax
je 0x992224
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0xc2bd10]
call fcn.00992100
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x9922c4
cmp dword [esi], ebx
je 0x9922c4
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0098be7c
cmp dword [ebp - 8], ebx
pop ecx
jne 0x9922a7
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x992305
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x99229e
mov eax, edi
shl eax, 2
push eax
push dword [0xc2bd10]
call fcn.0098bfa6
cmp eax, ebx
pop ecx
pop ecx
je 0x992305
jmp 0x992300
cmp dword [ebp - 8], ebx
jne 0x992370
cmp edi, ebx
jge 0x9922d3
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0xc2bd10]
call fcn.0098bfa6
cmp eax, ebx
pop ecx
pop ecx
je 0x992224
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0xc2bd10], eax
cmp dword [ebp + 0xc], ebx
je 0x99235a
push dword [ebp - 4]
call fcn.0098a1e0
inc eax
inc eax
push eax
call fcn.0098bf94
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x99235a
push dword [ebp - 4]
push esi
call fcn.0098b280
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x992353
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0098be7c
pop ecx
cmp dword [ebp - 8], ebx
je 0x992368
push dword [ebp - 4]
call fcn.0098be7c
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x992227
push dword [ebp - 4]
call fcn.0098be7c
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x992231
Function at 0x993876
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0098a5b0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x993911
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0xc2bcf0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x993911
cmp eax, 1
je 0x993932
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x993911
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x9938de
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x99390d
xor eax, eax
inc eax
jmp 0x993951
cmp edi, eax
jae 0x993915
xor eax, eax
jmp 0x993951
cmp eax, esi
jae 0x99391c
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0xc2bcf0]
jmp 0x993935
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002000
Capabilities:
Contain obfuscated stackstrings
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10009c18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ecx, [esi + 4]
call fcn.10001000
xor ebx, ebx
lea ecx, [esi + 0x2c]
mov dword [esp + 0x1d0], ebx
call fcn.10001000
lea ecx, [esi + 0x54]
mov byte [esp + 0x1d0], 1
call fcn.10001000
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1d0], 2
call fcn.10001000
mov al, 0x65
mov cl, 0x6c
mov byte [esp + 0x29], al
mov byte [esp + 0x2c], al
mov byte [esp + 0x1a], al
mov byte [esp + 0x1d], al
mov byte [esp + 0x20], al
mov byte [esp + 0x2d], cl
mov byte [esp + 0x32], cl
mov byte [esp + 0x33], cl
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
mov dl, 0x6e
push eax
push ecx
mov byte [esp + 0x1d8], 3
mov dword [esi], 0x1001c1e0
mov byte [esp + 0x30], 0x6b
mov byte [esp + 0x32], 0x72
mov byte [esp + 0x33], dl
mov byte [esp + 0x36], 0x33
mov byte [esp + 0x37], 0x32
mov byte [esp + 0x38], 0x2e
mov byte [esp + 0x39], 0x64
mov byte [esp + 0x3c], bl
mov byte [esp + 0x20], 0x43
mov byte [esp + 0x21], 0x72
mov byte [esp + 0x23], 0x61
mov byte [esp + 0x24], 0x74
mov byte [esp + 0x26], 0x45
mov byte [esp + 0x27], 0x76
mov byte [esp + 0x29], dl
mov byte [esp + 0x2a], 0x74
mov byte [esp + 0x2b], 0x41
mov byte [esp + 0x2c], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [esp + 0x38]
mov edi, eax
push edx
push 0x202
call dword [0x1002142c]
mov ebp, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
call ebp
add esp, 4
push ebx
push ebx
push 1
push ebx
call edi
push 0x30
mov dword [esi + 0xac], eax
call ebp
add esp, 4
mov byte [esi + 0xb5], bl
mov dword [esi + 0xa8], 0xffffffff
mov byte [esp + 0x10], 0x47
mov byte [esp + 0x11], 0x68
mov byte [esp + 0x12], 0x30
mov byte [esp + 0x13], 0x73
mov edx, dword [esp + 0x10]
lea ecx, [esi + 0xb0]
mov al, 0x74
pop edi
mov dword [ecx], edx
mov byte [ecx + 4], al
mov ecx, dword [esp + 0x1c4]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c4
ret
Function at 0x10003090
Capabilities:
Contain obfuscated stackstrings
Create thread

Disassembly:
sub esp, 0x30
mov cl, 0x6c
mov al, 0x65
mov byte [esp + 0x15], cl
mov byte [esp + 0x1a], cl
mov byte [esp + 0x1b], cl
mov cl, 0x74
mov byte [esp + 0x11], al
mov byte [esp + 0x14], al
mov byte [esp + 2], al
mov byte [esp + 5], al
mov byte [esp + 8], al
mov byte [esp + 4], cl
mov byte [esp + 0xa], cl
lea eax, [esp]
push esi
lea ecx, [esp + 0x14]
mov dl, 0x6e
push eax
push ecx
mov byte [esp + 0x1c], 0x6b
mov byte [esp + 0x1e], 0x72
mov byte [esp + 0x1f], dl
mov byte [esp + 0x22], 0x33
mov byte [esp + 0x23], 0x32
mov byte [esp + 0x24], 0x2e
mov byte [esp + 0x25], 0x64
mov byte [esp + 0x28], 0
mov byte [esp + 0xc], 0x43
mov byte [esp + 0xd], 0x72
mov byte [esp + 0xf], 0x61
mov byte [esp + 0x12], 0x45
mov byte [esp + 0x13], 0x76
mov byte [esp + 0x15], dl
mov byte [esp + 0x17], 0x41
mov byte [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
push 0
mov dword [esp + 0x28], edx
mov dl, byte [esp + 0x54]
push 0
push 0
push 0
mov dword [esp + 0x38], ecx
mov byte [esp + 0x3c], dl
call eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push 0x10003010
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov edx, dword [esp + 0x48]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x30
ret
Function at 0x1000c2d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001c200
push 0x100096ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 0x30
call dword [sym.imp.MSVCRT.dll_putchar]
add esp, 4
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x1000c447
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x1000c387
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x1000c387
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x1000c362
cmp al, 0x5c
je 0x1000c362
push esi
call dword [0x100213b0]
mov esi, eax
jmp 0x1000c34a
cmp byte [esi], 0
je 0x1000c36b
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x1000c380
cmp al, 0x5c
je 0x1000c380
push esi
call dword [0x100213b0]
mov esi, eax
jmp 0x1000c368
cmp byte [esi], 0
je 0x1000c3a6
jmp 0x1000c3a2
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x1000c3a6
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x1000c3a6
cmp al, 0x5c
jne 0x1000c3a6
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [esi]
test al, al
je 0x1000c40b
cmp al, 0x5c
jne 0x1000c3fd
mov byte [esi], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x1000c3f0
push 0
call ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1000c3fa
push eax
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000c3fa
push 0
call ebx
push edi
jmp 0x1000c43e
and eax, 0x10
cmp al, 0x10
je 0x1000c3fa
push edi
jmp 0x1000c43e
mov byte [esi], 0x5c
push esi
call dword [0x100213b0]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x1000c3ac
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000c4d0
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x78c
push ebx
push ebp
push esi
lea eax, [esp + 0x138]
push edi
push eax
mov dword [esp + 0x2c], ecx
push pe_nt_image_headers32
mov byte [esp + 0x3a4], 0x67
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
xor esi, esi
push str.Shell32.dll
lea ebp, [esp + 0x140]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push str.SHGetFileInfoA
push edi
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x34], eax
mov al, byte [esp + 0x13c]
test al, al
mov ebx, 1
je 0x1000c68e
jmp 0x1000c54b
xor esi, esi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x38]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x3c]
push ecx
push esi
push esi
push esi
push esi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x410
lea edx, [esp + 0x240]
push 0x160
push edx
push 0x80
push ebp
call dword [esp + 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x34c]
push eax
call esi
mov edi, eax
lea ecx, [esp + 0x38]
inc edi
push ecx
mov dword [esp + 0x30], edi
call esi
inc eax
mov dword [esp + 0x10], eax
mov al, byte [ebp]
cmp al, 0x41
je 0x1000c5fb
cmp al, 0x42
je 0x1000c5fb
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x1c]
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x1000c5fb
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, 0x14
call fcn.10009700
mov edx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x18]
mov ecx, 0x14
call fcn.10009700
mov dword [esp + 0x14], eax
jmp 0x1000c601
xor esi, esi
mov dword [esp + 0x14], esi
mov cl, byte [ebp]
push ebp
mov byte [esp + ebx + 0x3a0], cl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edx, dword [esp + 0x14]
mov ecx, edi
mov byte [esp + ebx + 0x39d], al
mov eax, ecx
mov dword [esp + ebx + 0x39e], esi
lea esi, [esp + 0x34c]
lea edi, [esp + ebx + 0x3a6]
mov dword [esp + ebx + 0x3a2], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x2c]
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
lea edx, [eax + ebx]
lea esi, [esp + 0x3c]
lea edi, [esp + edx + 0x3aa]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
add ecx, eax
lea ebx, [ebx + ecx + 0xa]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [eax + ebp + 1]
cmp byte [ebp], 0
jne 0x1000c549
mov edi, dword [esp + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x39c]
push ebx
push edx
call fcn.10011120
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78c
ret