joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1076e48
Capabilities:
Get common file path
Query environment variable

Disassembly:
push 0x2e0
mov eax, 0x10b8fef
call fcn.010aacd7
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2e0], eax
lea eax, [ebp - 0x2d0]
push eax
xor ebx, ebx
push 0x101a200
lea ecx, [ebp - 0x2ec]
mov dword [ebp - 0x2d0], ebx
call fcn.010ab86f
mov dword [ebp - 0x2dc], ebx
mov dword [ebp - 0x2d8], ebx
mov dword [ebp - 0x2d4], ebx
push 0x15
pop ecx
mov esi, 0x101a1a8
lea edi, [ebp - 0xc4]
rep movsd dword es:[edi], dword [esi]
push 9
movsw word es:[edi], word [esi]
pop ecx
push 0xe
mov esi, 0x101a184
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
pop ecx
xor eax, eax
push 0x206
mov word [ebp - 0x2cc], ax
lea eax, [ebp - 0x2ca]
push ebx
mov esi, 0x101a14c
lea edi, [ebp - 0x6c]
push eax
rep movsd dword es:[edi], dword [esi]
call sub.msvcrt.dll_memset
mov esi, 0x104
add esp, 0xc
cmp dword [ebp + 0xc], esi
jb 0x1076f9c
mov edi, dword [ebp - 0x2e0]
cmp edi, ebx
je 0x1076f9c
xor eax, eax
push ebx
mov word [edi], ax
push 0x20019
lea eax, [ebp - 0xc4]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x2dc]
call fcn.01034f5b
cmp eax, ebx
jne 0x1076f61
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x2dc]
mov dword [ebp - 0x2e4], esi
call fcn.01071042
cmp eax, ebx
jne 0x1076f61
push dword [ebp + 0xc]
lea eax, [ebp - 0x2cc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1076f73
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1076f6d
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2d0], eax
cmp dword [ebp - 0x2d0], ebx
jge 0x1076f94
push edi
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push 0x802b
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
mov dword [ebp - 0x2d0], eax
mov esi, dword [ebp - 0x2d0]
jmp 0x1076fcb
mov eax, dword [section..data]
cmp eax, section..data
je 0x1076fc0
test byte [eax + 0x1c], 4
je 0x1076fc0
push 0x1019d30
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fea5
mov esi, 0x80070057
mov dword [ebp - 0x2d0], esi
lea ecx, [ebp - 0x2dc]
call fcn.01034ee8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2ec]
call fcn.010ab8b6
mov eax, esi
call fcn.010aad69
ret 8
Function at 0x10a72d9
Capabilities:
Get geographical location

Disassembly:
push 0x18
mov eax, 0x10bc186
call fcn.010aacd7
mov esi, ecx
mov dword [ebp - 0x1c], esi
call fcn.010a914e
and dword [ebp - 4], 0
push 0
push 0x1029b24
lea ecx, [ebp - 0x24]
mov dword [esi], 0x1029a64
call fcn.010ab86f
push 4
lea eax, [ebp - 0x18]
push eax
push 0xd
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, 0x1029a58
lea eax, [ebp - 0x18]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10a7349
test dx, dx
je 0x10a7345
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10a7349
add eax, 4
add ecx, 4
test dx, dx
jne 0x10a7323
xor eax, eax
jmp 0x10a734e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
lea ecx, [ebp - 0x24]
mov byte [esi + 0x40], al
mov dword [esi + 0x44], 0x60
call fcn.010ab8b6
mov eax, esi
call fcn.010aad69
ret

Function at 0x10a743a
Capabilities:
Capture webcam image

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
push 0
push 0x419
push dword [ecx + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
pop ebp
ret 4

Function at 0x10ac31b
Capabilities:
Inspect load icon resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 0x102b6c8
lea ecx, [ebp - 0xc]
call fcn.010ab86f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadIconW]
mov esi, eax
test esi, esi
jne 0x10ac389
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10ac35f
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x10ac389
test byte [eax + 0x1c], 4
je 0x10ac389
push dword [ebp - 4]
push 0x102b52c
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0107918f
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10ac395
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
lea ecx, [ebp - 0xc]
call fcn.010ab8b6
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x476089
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x478f10
call fcn.004767c8
push 1
call fcn.0047632c
pop ecx
test al, al
jne 0x475f32
push 7
call fcn.00476593
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.004762f7
mov byte [ebp - 0x24], al
mov eax, dword [0x49dd84]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x475f2b
test eax, eax
jne 0x475f9c
mov dword [0x49dd84], ecx
push 0x4783d8
push 0x4783c8
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x475f7f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x476083
push 0x4783c4
push 0x4783bc
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x49dd84], 2
jmp 0x475fa1
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00476489
pop ecx
call fcn.00476587
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x475fd1
push esi
call fcn.004763fc
pop ecx
test al, al
je 0x475fd1
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.004767c2
call esi
call fcn.0047658d
mov esi, eax
cmp dword [esi], edi
je 0x475fef
push esi
call fcn.004763fc
pop ecx
test al, al
je 0x475fef
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.004766a8
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.004766db
test al, al
jne 0x476028
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x476031
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.004764a6
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x476083
call fcn.0047680e
ret
call fcn.00475da3
jmp 0x475f13

Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..3ean
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x1a86733c
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..7LWLf
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x55a12deb
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x702d4b20
Capabilities:
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov bl, byte [edi + 1]
lea esi, [edi + 1]
test bl, bl
je 0x702d4b50
nop
cmp bl, 0x2f
je 0x702d4b3a
cmp bl, 0x5c
jne 0x702d4b48
push edi
mov byte [esi], 0
call fcn.703127b5
add esp, 4
mov byte [esi], bl
mov bl, byte [esi + 1]
inc esi
test bl, bl
jne 0x702d4b30
pop edi
pop esi
pop ebx
ret

Function at 0x702d6a00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x44c
mov eax, dword [0x7034b008]
xor eax, esp
mov dword [esp + 0x444], eax
push ebx
push ebp
mov ebp, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ebx, ecx
push esi
push edi
mov edi, edx
mov dword [esp + 0x44], str.config.cfg
mov dword [esp + 0x48], str.progs.dat
xor esi, esi
mov dword [esp + 0x4c], str.pak0.pak
nop dword [eax]
push dword [esp + esi*4 + 0x44]
lea eax, [esp + 0x54]
push ebx
push str._s__s
push 0x400
push eax
call fcn.702e4bb0
add esp, 0x14
test edi, edi
je 0x702d6aa7
push 0x104
push 0x7034d688
push 0xffffffffffffffff
lea eax, [esp + 0x5c]
push eax
push 0
push 0xfde9
call ebp
lea eax, [esp + 0x10]
push eax
push 0x7034d688
call fcn.702f829b
add esp, 8
test eax, eax
js 0x702d6ac5
mov ecx, dword [esp + 0x16]
xor eax, eax
and ecx, 0xf000
cmp ecx, 0x8000
sete al
jmp 0x702d6ac1
push 0
push 0
push 0
xor edx, edx
lea ecx, [esp + 0x5c]
call fcn.702d8c30
add esp, 0xc
neg eax
sbb eax, eax
neg eax
test eax, eax
jne 0x702d6ad3
inc esi
cmp esi, 3
jb 0x702d6a40
xor eax, eax
jmp 0x702d6ad8
mov eax, 1
mov ecx, dword [esp + 0x454]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.702e6155
add esp, 0x44c
ret
Function at 0x702dc900
Capabilities:
Compute adler32 checksum

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
mov eax, 0x5e6ea9af
push esi
push edi
mov edi, edx
movzx esi, cx
mul ebp
shr ecx, 0x10
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, ebp
sub edx, eax
mov dword [esp + 0xc], edx
test edi, edi
jne 0x702dc938
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
add esp, 0xc
ret
test ebp, ebp
je 0x702dca32
push ebx
xor ebx, ebx
cmp edx, 7
jbe 0x702dc99c
mov ebp, 7
sub ebp, edi
nop
movzx eax, byte [edi]
add ebx, 8
add esi, eax
movzx eax, byte [edi + 1]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 2]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 3]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 4]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 5]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 6]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 7]
add edi, 8
add ecx, esi
add esi, eax
add ecx, esi
lea eax, [edi + ebp]
cmp eax, edx
jb 0x702dc950
xor ebp, ebp
cmp ebx, edx
jae 0x702dc9f2
mov eax, edx
sub eax, ebx
cmp eax, 2
jb 0x702dc9e3
sub edx, ebx
sub edx, 2
shr edx, 1
inc edx
lea eax, [ebx + edx*2]
mov ebx, ebp
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [edi]
add esi, eax
movzx eax, byte [edi + 1]
add ebp, esi
add edi, 2
add esi, eax
add ebx, esi
sub edx, 1
jne 0x702dc9c0
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x10]
jae 0x702dc9ed
jmp 0x702dc9e5
mov ebx, ebp
movzx eax, byte [edi]
add esi, eax
add ecx, esi
inc edi
lea eax, [ebx + ebp]
add ecx, eax
mov eax, 0x80078071
mov ebp, dword [esp + 0x20]
mul esi
shr edx, 0xf
imul eax, edx, 0xffff000f
add esi, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
mov edx, 0x15b0
add ecx, eax
sub ebp, dword [esp + 0x10]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], edx
jne 0x702dc941
pop ebx
shl ecx, 0x10
pop edi
lea eax, [esi + ecx]
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x702e56d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, edx
push edi
mov edi, ecx
mov eax, dword [edi]
cmp ebx, 8
jb 0x702e576b
mov edx, ebx
shr edx, 3
mov ecx, edx
neg ecx
lea ebx, [ebx + ecx*8]
xor eax, dword [esi]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x703465f0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x703465f0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x703465f0]
mov ecx, eax
movzx eax, cl
shr ecx, 8
mov eax, dword [eax*4 + 0x703465f0]
xor eax, dword [esi + 4]
add esi, 8
xor eax, ecx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x703465f0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x703465f0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x703465f0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x703465f0]
sub edx, 1
jne 0x702e56f2
test bl, 4
je 0x702e57ac
xor eax, dword [esi]
sub ebx, 4
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x703465f0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x703465f0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x703465f0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x703465f0]
add esi, 4
test ebx, ebx
je 0x702e57ca
movzx edx, byte [esi]
lea esi, [esi + 1]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x703465f0]
sub ebx, 1
jne 0x702e57b0
mov dword [edi], eax
pop edi
pop esi
pop ebx
ret

Function at 0x702f2c5f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
je 0x702f2c9e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x702f2c9e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x702f2c9e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x702f2c9e
cmp dword [ecx + 0x74], 0xe
jbe 0x702f2c9e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x702f58cb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x7034c700]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x702f590b
cmp byte [ebx], 0xa
jne 0x702f590b
or byte [edi + eax + 0x28], 4
jmp 0x702f5910
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x702f5a0f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x702f59f2
inc eax
cmp dl, 0xd
je 0x702f593c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x702f5962
cmp eax, ecx
jae 0x702f5970
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x702f5924
jmp 0x702f5a0f
push 0
lea eax, [ebp - 0x10]
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 0x702f59ed
cmp dword [ebp - 0x10], 0
je 0x702f59ed
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x7034c700]
test byte [eax + edi + 0x28], 0x48
je 0x702f59c7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x702f59b2
mov byte [esi], dl
jmp 0x702f59c3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x7034c700]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x702f5a0f
cmp byte [ebp - 1], 0xa
jne 0x702f59d6
cmp esi, ebx
jne 0x702f59d6
mov byte [esi], 0xa
jmp 0x702f5a0e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.70317ac1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x702f5a0f
mov byte [esi], 0xd
jmp 0x702f5a0e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x7034c700]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x702f5a0c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x702f5a0f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x702f5a18
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x7034c700]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x702f5a5e
cmp word [ebx], dx
jne 0x702f5a5e
or byte [eax + edi + 0x28], 4
jmp 0x702f5a63
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x702f5bc6
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x702f5ba6
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x702f5aa4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x702f5ada
cmp eax, edx
jae 0x702f5ae8
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x702f5a7f
jmp 0x702f5bc6
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x702f5ba1
cmp dword [ebp - 0x18], 0
je 0x702f5ba1
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x7034c700]
test byte [eax + edi + 0x28], 0x48
je 0x702f5b77
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x702f5b3b
mov word [esi], cx
jmp 0x702f5b72
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x7034c700]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x7034c700]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x7034c700]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x702f5bc6
pop eax
cmp word [ebp - 4], ax
jne 0x702f5b87
cmp esi, ebx
jne 0x702f5b87
mov word [esi], ax
jmp 0x702f5bc3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.70317ac1
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x702f5bc6
push 0xd
pop eax
jmp 0x702f5b82
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x7034c700]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x702f5bc0
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x702f5bc6
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x702f8100
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x7034b008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x7033e344
push esi
call fcn.703216a2
pop ecx
pop ecx
test eax, eax
jne 0x702f812e
xor al, al
jmp 0x702f81ab
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.702f7d5d
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x702f8168
push dword [ebp - 0x210]
call fcn.7031279a
xor al, al
jmp 0x702f81a9
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x702f816e
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x702f818e
push edx
call fcn.702f8037
pop ecx
test al, al
je 0x702f8159
push esi
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x702f819c
mov bl, 1
push dword [ebp - 0x210]
call fcn.7031279a
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.702e6155
leave
ret
Function at 0x7031c86b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x7033f57c
push 0x7033f574
push str.FlsAlloc
push 0x1f
call fcn.7031c539
mov esi, eax
add esp, 0x10
test esi, esi
je 0x7031c89f
push dword [ebp + 8]
mov ecx, esi
call dword [0x7033d184]
call esi
jmp 0x7031c8a5
call dword [sym.imp.kernel32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x7031c8e9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x7033f58c
push 0x7033f584
push str.FlsGetValue
push 0x21
call fcn.7031c539
mov esi, eax
add esp, 0x10
test esi, esi
je 0x7031c920
push dword [ebp + 8]
mov ecx, esi
call dword [0x7033d184]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.kernel32.dll_TlsGetValue]

Function at 0x7031c928
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x7033f594
push 0x7033f58c
push str.FlsSetValue
push 0x22
call fcn.7031c539
mov esi, eax
add esp, 0x10
test esi, esi
je 0x7031c962
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x7033d184]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.kernel32.dll_TlsSetValue]
Function at 0x7031d9ab
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.7031d7b9
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x7031db1a
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x7031db1a
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x7031dacf
jg 0x7031da07
test eax, eax
je 0x7031dac5
push 1
push 0x1000
call fcn.7032024b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x7031da2a
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x7031dabc
push 0x8000
push ebx
call fcn.7031b28e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x7031da53
jg 0x7031da4e
cmp ecx, 0x1000
jb 0x7031da53
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.70318478
add esp, 0x10
cmp eax, 0xffffffff
je 0x7031da98
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 0x7031da4e
jl 0x7031da7f
test ecx, ecx
jne 0x7031da40
push dword [ebp - 0xc]
push ebx
call fcn.7031b28e
push esi
call fcn.7031b06c
add esp, 0xc
xor ebx, ebx
jmp 0x7031db28
cmp byte [edi + 0x24], 0
je 0x7031daaf
cmp dword [edi + 0x20], 5
jne 0x7031daaf
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x7031daba
mov ebx, dword [edi + 0x18]
jmp 0x7031dabc
xor ebx, ebx
push esi
call fcn.7031b06c
pop ecx
jmp 0x7031db28
test ecx, ecx
jg 0x7031da91
jl 0x7031dacf
test eax, eax
jae 0x7031da91
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.70317ac1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x7031daef
cmp byte [edi + 0x1c], 0
je 0x7031da91
jmp 0x7031db20
push ebx
call fcn.7031d523
pop ecx
push eax
call dword [sym.imp.kernel32.dll_SetEndOfFile]
test eax, eax
jne 0x7031da91
call dword [sym.imp.kernel32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x7031db28
cmp byte [edi + 0x1c], 0
je 0x7031db25
mov ebx, dword [edi + 0x18]
jmp 0x7031db28
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.70317ac1
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x703251e5
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.703250b9