joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4217b0
Capabilities:
Query environment variable

Disassembly:
push ebx
push edi
push esi
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
cmp byte [0x4370a3], 1
jne 0x4217cf
cmp byte [0x4370a2], 0
jne 0x4217ee
jmp 0x42181b
push str.LIBUNWIND_PRINT_APIS
call sym._getenv
add esp, 4
mov byte [0x4370a3], 1
test eax, eax
setne byte [0x4370a2]
je 0x42181b
mov edi, dword [dbg.__acrt_iob_func]
push 2
call edi
add esp, 4
push ebx
push esi
push str.libunwind:___unw_is_fpreg_cursor_p__regNum_d__n
push eax
call sym.fprintf__iobuf__char_const__..._
add esp, 0x10
push 2
call edi
add esp, 4
push eax
call sym._fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x433d34]
mov ecx, esi
push ebx
call edi
movzx eax, al
pop esi
pop edi
pop ebx
ret

Function at 0x421840
Capabilities:
Query environment variable

Disassembly:
push ebx
push edi
push esi
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
cmp byte [0x4370a3], 1
jne 0x42185f
cmp byte [0x4370a2], 0
jne 0x42187e
jmp 0x4218ab
push str.LIBUNWIND_PRINT_APIS
call sym._getenv
add esp, 4
mov byte [0x4370a3], 1
test eax, eax
setne byte [0x4370a2]
je 0x4218ab
mov edi, dword [dbg.__acrt_iob_func]
push 2
call edi
add esp, 4
push ebx
push esi
push str.libunwind:___unw_regname_cursor_p__regNum_d__n
push eax
call sym.fprintf__iobuf__char_const__..._
add esp, 0x10
push 2
call edi
add esp, 4
push eax
call sym._fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x38]
mov ecx, edi
call dword [0x433d34]
mov ecx, esi
push ebx
call edi
pop esi
pop edi
pop ebx
ret

Function at 0x4218d0
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
cmp byte [0x4370a3], 1
jne 0x4218ea
cmp byte [0x4370a2], 0
jne 0x421909
jmp 0x421935
push str.LIBUNWIND_PRINT_APIS
call sym._getenv
add esp, 4
mov byte [0x4370a3], 1
test eax, eax
setne byte [0x4370a2]
je 0x421935
mov edi, dword [dbg.__acrt_iob_func]
push 2
call edi
add esp, 4
push esi
push str.libunwind:___unw_is_signal_frame_cursor_p__n
push eax
call sym.fprintf__iobuf__char_const__..._
add esp, 0xc
push 2
call edi
add esp, 4
push eax
call sym._fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x2c]
mov ecx, edi
call dword [0x433d34]
mov ecx, esi
call edi
movzx eax, al
pop esi
pop edi
ret
Function at 0x421950
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov esi, dword [esp + 0x18]
cmp byte [0x4370a3], 1
jne 0x42196d
cmp byte [0x4370a2], 0
jne 0x42198c
jmp 0x4219b8
push str.LIBUNWIND_PRINT_APIS
call sym._getenv
add esp, 4
mov byte [0x4370a3], 1
test eax, eax
setne byte [0x4370a2]
je 0x4219b8
mov edi, dword [dbg.__acrt_iob_func]
push 2
call edi
add esp, 4
push esi
push str.libunwind:___unw_iterate_dwarf_unwind_cache_func_p__n
push eax
call sym.fprintf__iobuf__char_const__..._
add esp, 0xc
push 2
call edi
add esp, 4
push eax
call sym._fflush
add esp, 4
push 0x437094
call sym._AcquireSRWLockExclusive_4
mov edi, dword [0x436030]
cmp edi, dword [0x436034]
jae 0x4219ff
mov ebx, dword [edi]
mov eax, dword [edi + 4]
mov dword [esp], eax
mov ecx, esi
mov esi, dword [edi + 8]
mov ebp, dword [edi + 0xc]
call dword [0x433d34]
push ebx
push ebp
push esi
mov esi, ecx
push dword [esp + 0xc]
call ecx
add esp, 0x10
add edi, 0x10
cmp edi, dword [0x436034]
jb 0x4219d0
push 0x437094
call sym._ReleaseSRWLockExclusive_4
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4221a0
Capabilities:
Query environment variable

Disassembly:
cmp byte [0x4370a1], 1
jne 0x4221b4
cmp byte [0x4370a0], 0
setne al
ret
push str.LIBUNWIND_PRINT_UNWINDING
call sym._getenv
add esp, 4
test eax, eax
setne al
setne byte [0x4370a0]
mov byte [0x4370a1], 1
ret

Function at 0x4221e0
Capabilities:
Query environment variable

Disassembly:
cmp byte [0x4370a5], 1
jne 0x4221f4
cmp byte [0x4370a4], 0
setne al
ret
push str.LIBUNWIND_PRINT_DWARF
call sym._getenv
add esp, 4
test eax, eax
setne al
setne byte [0x4370a4]
mov byte [0x4370a5], 1
ret
Function at 0x425430
Capabilities:
Enumerate process modules
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x1014
call sym.__alloca
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push 0x1000
push edx
push eax
call sym._K32EnumProcessModules_16
test eax, eax
je 0x42556e
mov ecx, dword [esp + 0x10]
xor edx, edx
mov eax, 0
cmp ecx, 4
jb 0x4255db
shr ecx, 2
mov dword [esp + 8], ecx
jmp 0x425493
mov edx, dword [esp + 0xc]
inc edx
xor eax, eax
mov ecx, dword [esp + 8]
cmp edx, ecx
je 0x4255db
mov dword [esp + 0xc], edx
mov esi, dword [esp + edx*4 + 0x14]
mov eax, dword [esi + 0x3c]
movzx ecx, word [esi + eax + 0x14]
mov edx, dword [esp + 0x102c]
mov dword [edx], esi
mov dword [esp + 4], esi
movzx ebx, word [esi + eax + 6]
test ebx, ebx
je 0x425480
add eax, dword [esp + 4]
lea ebp, [eax + ecx]
add ebp, 0x18
mov dword [esp], 0
xor ecx, ecx
jmp 0x42550e
mov eax, dword [ebp + 8]
add eax, edi
mov ecx, dword [esp + 0x1028]
cmp eax, ecx
mov eax, esi
movzx esi, al
mov eax, esi
mov edx, 1
cmova eax, edx
cmp edi, ecx
mov ecx, eax
cmova ecx, esi
test cl, 1
je 0x425504
mov eax, dword [esp]
and al, 1
jne 0x42558a
add ebp, 0x28
dec ebx
je 0x425480
mov esi, ecx
mov edi, dword [ebp + 0xc]
add edi, dword [esp + 4]
push 8
push str..text
push ebp
call sym._strncmp
add esp, 0xc
test eax, eax
je 0x4254d0
push 8
push str..eh_frame
push ebp
call sym._strncmp
add esp, 0xc
test eax, eax
je 0x425550
mov ecx, esi
test cl, 1
jne 0x4254f9
jmp 0x425504
mov ecx, dword [esp + 0x102c]
mov dword [ecx + 4], edi
mov eax, dword [ebp + 8]
mov dword [ecx + 8], eax
mov al, 1
mov dword [esp], eax
mov ecx, esi
test cl, 1
jne 0x4254f9
jmp 0x425504
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp byte [0x4370a1], 1
jne 0x42558e
cmp byte [0x4370a0], 0
jne 0x4255ad
jmp 0x4255d9
mov al, 1
jmp 0x4255db
push str.LIBUNWIND_PRINT_UNWINDING
call sym._getenv
add esp, 4
mov byte [0x4370a1], 1
test eax, eax
setne byte [0x4370a0]
je 0x4255d9
mov edi, dword [dbg.__acrt_iob_func]
push 2
call edi
add esp, 4
push esi
push str.libunwind:_findUnwindSections:_EnumProcessModules_failed__returned_error__d_n
push eax
call sym.fprintf__iobuf__char_const__..._
add esp, 0xc
push 2
call edi
add esp, 4
push eax
call sym._fflush
add esp, 4
xor eax, eax
add esp, 0x1014
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x401ea0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x401ed1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x401ed1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x401ed1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4081ba
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x40822a
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea eax, [ebp + eax - 0x108]
jmp 0x40820c
mov dl, byte [eax - 1]
cmp dl, 0x20
je 0x40820b
cmp dl, 0x5c
je 0x40820b
cmp dl, 0x2f
jne 0x408216
dec eax
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x4081f9
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40822c
xor eax, eax
leave
ret 4

Function at 0x408300
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esi + 0x14], eax
jne 0x408335
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x4086e0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test esi, esi
je 0x408727
cmp byte [esi], al
je 0x408727
mov eax, dword [esp + 0xc]
mov ecx, dword [0x40e8c0]
push eax
push ecx
call fcn.0040a1aa
test eax, eax
je 0x408755
cmp dword [eax + 4], 0
mov ecx, esi
push edi
lea edi, [ecx + 1]
je 0x408730
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x408715
sub ecx, edi
push ecx
push esi
push eax
jmp loc.00412516
pop esi
pop ecx
ret 8
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x408730
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
sub ecx, edi
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 8
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 8

Function at 0x408760
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x4087b9
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4087b8
mov eax, dword [esp + 0x10]
mov ecx, dword [0x40e8c0]
push eax
push ecx
call fcn.0040a1aa
test eax, eax
je 0x4087b4
cmp dword [eax + 4], 0
je 0x4087a2
push esi
push edi
push eax
call fcn.004088a0
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc
Function at 0x438c92
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x438a14
sub edi, 1
dec edx
call fcn.00438ccb
or edx, edi
inc edx
xor dword [ebx], eax
sub edx, 1
or edx, edi
inc ebx
mov edx, edi
sub edi, edi
sub edx, edx
cmp ebx, ecx
jne fcn.00438c92
mov edx, 0x34ed52e5
or edi, edi
ret
Function at 0x449e89
Capabilities:
Encode data using xor

Disassembly:
add esp, 0x1c
ret
lea esi, [esi]
fild dword [esp + 0x28]
fxch st(1)
fxch st(2)
fscale
fstp st(1)
fxam
wait
fnstsw ax
shr ax, 8
and eax, 1
jne 0x449ec0
fucomi st(1)
fstp st(1)
setnp dl
cmove eax, edx
test al, al
je 0x449e85
jmp 0x449ec2
ror dword [eax], 0x49
dec ecx
test ecx, ecx
jg 0x449ecf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x94]
sub edx, 0x10
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x449eec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, edi
pop edi
pop esi
pop ebx
jmp 0x51d465
sti
or eax, 0x775e390c
adc al, 0xf2
invalid
jno 0x51d400
stosd dword es:[edi], eax
inc edx
retf
Function at 0x10c6058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x10c61a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10c607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10c606a
add dl, dl
jne 0x10c6089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10c60dc
xor eax, eax
add dl, dl
jne 0x10c6096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10c617d
add dl, dl
jne 0x10c60a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c60b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c60bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c60c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10c60d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10c6075
mov eax, 1
add dl, dl
jne 0x10c60ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c60f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10c60e1
sub eax, ebx
mov ebx, 1
jne 0x10c6128
mov ecx, 1
add dl, dl
jne 0x10c610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10c6119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10c6105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10c6075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10c613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10c614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10c6136
cmp eax, 0x7d00
jae 0x10c616d
cmp eax, 0x500
jb 0x10c6168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10c6075
cmp eax, 0x7f
ja 0x10c6170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10c6075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10c619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10c6075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1001bdfd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x1001be0c
pop dword [ebp - 0x24]
mov eax, 0xbc62e744
sub eax, 0xac612938
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xe02a90c1
sub dword [ebp - 0x34], 0x91d84b76
mov dword [ebp - 0x30], 0xe5a852a3
add dword [ebp - 0x30], 0x4c8af9a2
mov dword [ebp - 0x2c], 0x412aa99d
sub dword [ebp - 0x2c], 0xf4de656f
mov dword [ebp - 0x28], 0x8410bf09
sub dword [ebp - 0x28], 0x8410bf09
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x798dcfbe
sub dword [ebp - 0x34], 0x51b6668
mov dword [ebp - 0x30], 0x9e982132
sub dword [ebp - 0x30], 0x5d2bbfbd
mov dword [ebp - 0x2c], 0xa5b32e67
add dword [ebp - 0x2c], 0xbdbc3e05
mov dword [ebp - 0x28], 0xf1ff146c
add dword [ebp - 0x28], 0xe00eb94
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x3486794a
add eax, 0xdb7bd70a
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x41dd5
push 0
call eax
mov ecx, 0x5897
mov ebx, eax
mov esi, 0x10035a00
add esi, dword [ebp - 0x24]
mov edx, 0x3dedd548
sub edx, 0x945a7c79
xor dword [ebp - 0x14], edx
mov edi, dword [esi]
add dword [ebp - 0x14], eax
xor edi, edx
sub dword [ebp - 0x14], edi
mov dword [ebx], edi
add dword [ebp - 4], edi
add ebx, 0x3b748b5f
add ebx, 0xc48b74a5
add esi, 0x339689f0
add esi, 0xcc697614
loop 0x1001bf1d
add eax, 0xdd0d1946
sub eax, 0xdd0bc417
xor ebx, ebx
add ebx, eax
add eax, 0x85968e65
add eax, 0x7a6971a0
mov ecx, 0x10000000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x4019ef
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401a2e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401a2e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401a2e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401a2e
cmp dword [ecx + 0x74], 0xe
jbe 0x401a2e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000125d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
pop ebp
jmp 0x100013b4
push esi
mov esi, ecx
push edi
lea ecx, [esi + 8]
call fcn.100016e2
pop edi
test eax, eax
jne 0x100013d4
and dword [esi + 0x320], eax
lea ecx, [esi + 8]
pop esi
jmp fcn.10004075
pop esi
ret

Function at 0x10001a8f
Capabilities:
Get file attributes
Set file attributes

Disassembly:
test byte [ecx + 0xb8], 4
je 0x10001ab4
push esi
lea esi, [ecx + 0x98]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffd
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
ret
Function at 0x10002864
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0xffffffff
je 0x1000287b
xor eax, eax
inc eax
jmp 0x10002980
push ebx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp dword [ebp + 8], ebx
je 0x10002916
push dword [esi + 0x98]
call edi
cmp eax, 0xffffffff
jne 0x10002916
lea ecx, [esi + 0xd0]
call fcn.10005815
test eax, eax
je 0x10002916
or dword [ebp - 0x1c], 0xffffffff
or dword [ebp - 0x24], 0xffffffff
push ebx
lea eax, [ebp - 0x50]
push eax
push ebx
lea ecx, [esi + 0xd0]
mov dword [ebp - 0x34], ebx
call fcn.10005a7c
lea ecx, [esi + 0xd0]
call fcn.10005815
cmp eax, 1
jne 0x100028e6
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x50]
jne 0x100028e6
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x4c]
je 0x10002916
cmp dword [ebp + 0xc], ebx
jne 0x100028f9
push 2
push 0x1001c2f4
mov ecx, esi
call fcn.100016b4
push 8
mov ecx, esi
call fcn.10001e51
cmp dword [ebp + 0xc], ebx
jne 0x10002911
push ebx
push 0x15
mov ecx, esi
call fcn.10001780
or eax, 0xffffffff
jmp 0x1000297e
push ebx
push 0x80
push 4
push ebx
push 1
push 0x40000000
push dword [esi + 0x98]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push dword [esi + 0x98]
mov dword [esi + 0x4c], eax
call edi
test byte [esi + 0xb8], 4
je 0x1000295a
test al, 2
jne 0x1000295a
or eax, 2
push eax
push dword [esi + 0x98]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [esi + 0x4c], 0xffffffff
jne 0x10002964
xor eax, eax
jmp 0x1000297e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000297b
push dword [esi + 0x4c]
mov ecx, esi
call fcn.10001b2c
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x10002985
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
mov esi, ecx
inc edi
mov eax, dword [ebp + 8]
sub eax, ebx
jne 0x1000299e
mov dword [ebp + 8], edi
jmp 0x10002992
dec eax
je 0x10002a75
dec eax
je 0x100029b5
dec eax
je 0x10002a13
dec eax
je 0x100029cf
dec eax
jne 0x10002aa7
push edi
cmp byte [ebp + 0xc], bl
jne 0x10002a6e
push dword [esi + 0x30c]
call fcn.100024c1
jmp 0x10002ace
push dword [esi + 0x98]
mov eax, dword [esi + 0x30c]
push eax
call dword [sym.imp.MSVCR100.dll__mbscmp]
pop ecx
pop ecx
test eax, eax
je 0x100029ef
mov ecx, esi
call fcn.10001727
push 2
push 0x1001c2f4
mov ecx, esi
call fcn.100016b4
push 8
mov ecx, esi
call fcn.10001e51
push 4
push 0x15
mov ecx, esi
call fcn.10001780
jmp 0x10002a69
cmp byte [ebp + 0xc], bl
jne 0x10002a38
push dword [esi + 0x98]
mov eax, dword [esi + 0x30c]
push eax
call dword [sym.imp.MSVCR100.dll__mbscmp]
pop ecx
pop ecx
test eax, eax
je 0x10002a38
mov ecx, esi
call fcn.10001727
push ebx
push edi
mov ecx, esi
call fcn.10002864
test eax, eax
je 0x10002aa7
push ebx
push dword [esi + 0x4c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x1001c2f4
mov ecx, esi
mov dword [esi + 0x38], eax
call fcn.100016b4
push 0x40
mov ecx, esi
call fcn.10001e51
or eax, 0xffffffff
jmp 0x10002ad0
call fcn.100021d6
jmp 0x10002ace
cmp byte [ebp + 0xc], bl
jne 0x10002a9a
push dword [esi + 0x98]
mov eax, dword [esi + 0x30c]
push eax
call dword [sym.imp.MSVCR100.dll__mbscmp]
pop ecx
pop ecx
test eax, eax
je 0x10002a9a
mov ecx, esi
call fcn.10001727
push ebx
push edi
mov ecx, esi
call fcn.10002864
test eax, eax
jne 0x10002aab
xor eax, eax
jmp 0x10002ad0
push 4
push 0x1001c2f4
mov ecx, esi
call fcn.100016b4
push ebx
push ebx
push ebx
push dword [esi + 0x4c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esi + 0x4c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10002ad7
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov edi, 0x1001c2f4
cmp dword [ebp + 0xc], ebx
je 0x10002b2f
push ebx
push 1
call fcn.10002864
mov ecx, esi
test eax, eax
jne 0x10002b27
call fcn.1000197d
push 2
push edi
mov dword [ebp + 8], eax
call fcn.100016b4
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.1000190b
push 8
mov ecx, esi
call fcn.10001e51
push 3
pop eax
jmp 0x10002bba
push 4
push edi
call fcn.100016b4
mov eax, dword [ebp + 8]
sub eax, ebx
je 0x10002b98
dec eax
je 0x10002b98
dec eax
je 0x10002b55
dec eax
jne 0x10002bb7
push 8
mov ecx, esi
call fcn.10001e51
push 4
push 0x15
mov ecx, esi
call fcn.10001780
jmp 0x10002bb7
push 4
push edi
mov ecx, esi
call fcn.100016b4
lea ecx, [esi + 0xd0]
call fcn.10004ec9
push ebx
push dword [esi + 0x4c]
mov dword [ebp - 8], eax
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
cmp ecx, edi
jb 0x10002bb7
ja 0x10002b86
cmp eax, dword [ebp - 8]
jbe 0x10002bb7
push ebx
push edi
push dword [ebp - 8]
push dword [esi + 0x4c]
call fcn.100096b6
add esp, 0x10
jmp 0x10002bae
push 4
push edi
mov ecx, esi
call fcn.100016b4
push ebx
push ebx
push ebx
push dword [esi + 0x4c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esi + 0x4c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10002bf6
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
push dword [edi + 0x98]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10002c83
mov eax, dword [edi + 0xac]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x10002c1d
mov eax, ecx
cmp eax, ecx
je 0x10002c32
jle 0x10002c83
cmp eax, 5
jg 0x10002c83
push ecx
mov ecx, edi
call fcn.100021d6
jmp 0x10002c83
push esi
push 4
mov esi, 0x1001c2f4
push esi
mov ecx, edi
call fcn.100016b4
push dword [edi + 0x98]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x10002c82
mov ecx, edi
call fcn.1000197d
push 2
push esi
mov dword [ebp - 4], eax
call fcn.100016b4
lea eax, [ebp - 4]
push eax
mov ecx, edi
call fcn.1000190b
push 4
push esi
mov ecx, edi
call fcn.100016b4
push 0
mov ecx, edi
call fcn.100021d6
pop esi
pop edi
leave
ret
Function at 0x10003268
Capabilities:
Clear file content
Create thread
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x9c], 0
push edi
je 0x1000335f
lea ecx, [esi + 0xd0]
call fcn.10005180
and eax, edx
cmp eax, 0xffffffff
je 0x1000335f
and dword [ebp - 0x10], 0
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x4c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
or eax, dword [ebp - 0xc]
jne 0x1000330c
push 1
lea ecx, [esi + 0xd0]
call fcn.1000526b
xor edi, edi
push edi
lea ecx, [esi + 0xd0]
call fcn.10005180
push edx
push eax
push dword [esi + 0x4c]
call fcn.100096b6
add esp, 0x10
test al, al
je 0x100032f2
push dword [esi + 0x4c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov byte [ebp - 1], 1
test eax, eax
jne 0x100032f6
mov byte [ebp - 1], 0
push edi
lea ecx, [esi + 0xd0]
call fcn.1000526b
cmp byte [ebp - 1], 0
jne 0x1000330e
xor eax, eax
jmp 0x10003362
xor edi, edi
lea ecx, [esi + 0xd0]
call fcn.10005815
cmp eax, 1
jne 0x1000335f
lea ecx, [esi + 0xd0]
call fcn.10005180
cmp edx, edi
ja 0x10003334
cmp eax, 0x6400000
jbe 0x1000335f
lea eax, [esi + 0x30]
push eax
mov dword [esi + 8], 1
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x10002d0e
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10003375
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x1001a235
call fcn.1000e0f8
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x24], ebx
je 0x100033ed
lea ecx, [ebp - 0x18]
call fcn.10009ae5
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.10009abc
lea edi, [esi + 0x1c]
push edi
lea ecx, [ebp - 0x18]
call fcn.10009aca
mov ecx, dword [esi + 0x24]
imul ecx, ecx, 0xea60
cmp eax, ecx
jbe 0x100033e1
mov ecx, edi
call fcn.10009abc
lea eax, [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push 0x10002bc1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10009ab5
call fcn.1000e197
ret