joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a62f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60c
mov eax, dword [case.0x100be6e1.80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x60c]
push esi
push edi
push eax
call fcn.102bda51
lea eax, [ebp - 0x60c]
push eax
call fcn.102bd105
mov edi, eax
lea eax, [ebp - 0x204]
push dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
inc ecx
push ecx
mov ecx, dword [edi + 0x14]
add ecx, 0x76c
push ecx
push str.Impactfail.txt
push eax
call fcn.100029e0
push str.log_
push 0x103c91c8
lea eax, [ebp - 0x104]
push str._s_s
push eax
call fcn.100029e0
add esp, 0x2c
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100a6385
push 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x104]
push 0x5c
push eax
lea esi, [ebp - 0x204]
call fcn.102a1020
mov ecx, esi
add esp, 8
sub eax, ecx
mov cl, byte [esi]
lea esi, [esi + 1]
mov byte [eax + esi - 1], cl
test cl, cl
jne 0x100a63a0
lea eax, [ebp - 0x104]
push 0x1031ff84
push eax
call fcn.102be73d
push ebx
push dword [edi]
mov esi, eax
mov eax, dword [edi + 0x10]
push dword [edi + 4]
inc eax
push dword [edi + 8]
push dword [edi + 0xc]
push eax
mov eax, dword [edi + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x604]
push str._r_n_04d_02d_02d__02d:_02d:_02d_t_s_n
push eax
call fcn.100029e0
lea eax, [ebp - 0x604]
push esi
push eax
call fcn.102be8b3
push esi
call fcn.102be43c
push esi
call fcn.102bdded
mov ecx, dword [ebp - 4]
add esp, 0x3c
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10291e04
mov esp, ebp
pop ebp
ret

Function at 0x100a83c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
call ebx
mov esi, eax
mov dword [ebp - 4], esi
call ebx
sub eax, esi
cmp eax, dword [ebp + 8]
jae 0x100a8430
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
je 0x100a8421
lea eax, [ebp - 0x20]
push eax
call edi
lea eax, [ebp - 0x20]
push eax
call ebx
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
jne 0x100a8403
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jb 0x100a83f1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100aa8d0
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
call fcn.100ab2a0
mov ecx, esi
pop esi
jmp fcn.100ab7a0
Function at 0x100ab7a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [case.0x100be6e1.80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1091
mov ebx, ecx
call fcn.100ccf47
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
push 0
push 0
push 0x188
push dword [esi + 0x20]
call edi
lea ecx, [ebp - 0x154]
push ecx
push eax
push 0x189
push dword [esi + 0x20]
call edi
push 0
push 0
push 0x184
push dword [esi + 0x20]
call edi
lea eax, [ebp - 0x104]
push eax
call fcn.1004ca90
add esp, 4
mov ecx, ebx
push 0x1132
call fcn.100cd5f9
lea ecx, [ebp - 0x104]
dec ecx
test eax, eax
je 0x100ab850
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x100ab820
mov eax, dword [str.A________.raw]
mov dword [ecx], eax
mov eax, dword [0x1031bd58]
mov dword [ecx + 4], eax
mov eax, dword [0x1031bd5c]
mov dword [ecx + 8], eax
mov ax, word [0x1031bd60]
mov word [ecx + 0xc], ax
jmp 0x100ab86b
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x100ab850
mov eax, dword [0x10324610]
mov dword [ecx], eax
mov ax, word [0x10324614]
mov word [ecx + 4], ax
lea eax, [ebp - 0x104]
push eax
call fcn.100bbbe0
add esp, 4
mov ecx, ebx
push eax
push 0x10cf
call fcn.100cdaf4
lea eax, [ebp - 0x104]
push eax
push 1
push 0x18d
push dword [esi + 0x20]
call edi
push 0x1132
mov ecx, ebx
call fcn.100cd5f9
test eax, eax
je 0x100ab8f4
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.102a1020
movq xmm0, qword [str.dark.raw]
add esp, 8
movq qword [eax + 1], xmm0
mov cl, byte [0x1031bd18]
mov byte [eax + 9], cl
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100ab8f4
push str.dark.raw
push 0
push 0x180
push dword [esi + 0x20]
call edi
lea eax, [ebp - 0x154]
push eax
push 0xffffffffffffffff
push 0x18c
push dword [esi + 0x20]
call edi
push 0
push 0
push 0x188
push dword [esi + 0x20]
call edi
test eax, eax
jns 0x100ab939
push 0
push 0
push 0x18b
push dword [esi + 0x20]
call edi
test eax, eax
jle 0x100ab939
push 0
push 0
push 0x186
push dword [esi + 0x20]
call edi
mov ecx, ebx
call fcn.100ab250
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10291e04
mov esp, ebp
pop ebp
ret
Function at 0x100b66a0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp ebx, 0x2b0f
jne 0x100b66ec
cmp dword [ebp + 0xc], 0xacdbbdca
jne 0x100b66ec
cmp dword [0x103c9a60], 0
push dword [ebp + 0x10]
je 0x100b66da
call dword [0x103ca3dc]
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [0x103ca3c0]
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, ebx
sub eax, 2
je 0x100b6710
sub eax, 0x79
jne 0x100b686a
push dword [ebp + 0x10]
call fcn.100b5920
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
lea eax, [ebp + 8]
push eax
push dword [0x103c9a70]
call edi
cmp dword [ebp + 8], 0x103
mov esi, dword [sym.imp.KERNEL32.dll_TerminateThread]
jne 0x100b673d
push 0
push dword [0x103c9a70]
call esi
lea eax, [ebp + 8]
push eax
push dword [0x103c9a74]
call edi
cmp dword [ebp + 8], 0x103
jne 0x100b675c
push 0
push dword [0x103c9a74]
call esi
lea eax, [ebp + 8]
push eax
push dword [0x103c9a78]
call edi
cmp dword [ebp + 8], 0x103
jne 0x100b677b
push 0
push dword [0x103c9a78]
call esi
lea eax, [ebp + 8]
push eax
push dword [0x103c9a84]
call edi
cmp dword [ebp + 8], 0x103
jne 0x100b679a
push 0
push dword [0x103c9a84]
call esi
lea eax, [ebp + 8]
push eax
push dword [0x103c9a88]
call edi
cmp dword [ebp + 8], 0x103
jne 0x100b67b9
push 0
push dword [0x103c9a88]
call esi
lea eax, [ebp + 8]
push eax
push dword [0x103c9a8c]
call edi
cmp dword [ebp + 8], 0x103
jne 0x100b67d8
push 0
push dword [0x103c9a8c]
call esi
lea eax, [ebp + 8]
push eax
push dword [0x103c9a90]
call edi
cmp dword [ebp + 8], 0x103
jne 0x100b67f7
push 0
push dword [0x103c9a90]
call esi
lea eax, [ebp + 8]
push eax
push dword [0x103c9a94]
call edi
cmp dword [ebp + 8], 0x103
jne 0x100b6816
push 0
push dword [0x103c9a94]
call esi
mov ecx, dword [0x103c914c]
pop edi
pop esi
test ecx, ecx
je 0x100b6858
call fcn.100ba410
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x103c914c]
call fcn.100b9e40
mov ecx, dword [0x103c914c]
test ecx, ecx
je 0x100b684e
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [0x103c914c], 0
mov dword [0x103c8efc], 1
call fcn.100514e0
mov ecx, dword [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100ca82c
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100b80d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
push 0
push 2
push 0x103c00dc
push dword [0x103cae74]
mov byte [0x103c00dd], al
call dword [sym.imp.WS2_32.dll_send]
pop ebp
ret

Function at 0x100b8130
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102fbbac
mov eax, dword fs:[0]
push eax
mov eax, dword [case.0x100be6e1.80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov al, byte [ebp + 8]
mov ecx, dword [0x103d0398]
mov byte [0x103cc384], al
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x103cc38c]
cmp eax, dword [ecx + 4]
jg 0x100b819e
push 0
push dword [0x103cc388]
push 0x103cc384
push dword [0x103cae74]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
push 0x103cc38c
call fcn.1029276c
add esp, 4
cmp dword [0x103cc38c], 0xffffffff
jne 0x100b8176
mov dword [ebp - 4], 0
push 1
push 0x103cc384
call fcn.100b9080
mov dword [0x103cc388], eax
mov dword [ebp - 4], 0xffffffff
push 0x103cc38c
call fcn.10292722
add esp, 0xc
jmp 0x100b8176

Function at 0x100b81f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102fbbdc
mov eax, dword fs:[0]
push eax
mov eax, dword [case.0x100be6e1.80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov al, byte [ebp + 8]
mov ecx, dword [0x103d0398]
mov byte [0x103cc390], al
mov al, byte [ebp + 0xc]
mov byte [0x103cc391], al
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x103cc398]
cmp eax, dword [ecx + 4]
jg 0x100b8266
push 0
push dword [0x103cc394]
push 0x103cc390
push dword [0x103cae74]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
push 0x103cc398
call fcn.1029276c
add esp, 4
cmp dword [0x103cc398], 0xffffffff
jne 0x100b823e
mov dword [ebp - 4], 0
push 2
push 0x103cc390
call fcn.100b9080
mov dword [0x103cc394], eax
mov dword [ebp - 4], 0xffffffff
push 0x103cc398
call fcn.10292722
add esp, 0xc
jmp 0x100b823e
Function at 0x100b9170
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0x1000
push 0
push 0x103cb0f0
call fcn.10296750
add esp, 0xc
push 0
push 0x1000
push 0x103cb0f0
push dword [0x103cae74]
call dword [sym.imp.WS2_32.dll_recv]
push dword [ebp + 8]
push 0x103cb0f0
call fcn.102970e0
add esp, 8
test eax, eax
setne al
pop ebp
ret
Function at 0x100b97e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [case.0x100be6e1.80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x204]
sub edx, eax
nop
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x100b9800
lea ecx, [ebp - 0x204]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100b9816
push 0
sub ecx, edx
lea eax, [ebp - 0x204]
push ecx
push eax
push dword [0x103cae74]
call dword [sym.imp.WS2_32.dll_send]
push 0
push 2
push 0x103cb0ec
push dword [0x103cae74]
mov word [0x103cb0ec], 0xa0d
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10291e04
mov esp, ebp
pop ebp
ret

Function at 0x100bac80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.findHidDevice
push esi
call edi
mov dword [0x103cc39c], eax
test eax, eax
jne 0x100bacc2
push str.Error:_Cannot_get_address_of_function.
push 0x1032e130
push 2
call fcn.102c9873
add esp, 4
push eax
call fcn.100bad90
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebp
ret
push str.closeDevice
push esi
call edi
mov dword [0x103cc3a0], eax
test eax, eax
je 0x100bac9f
push str.writeData
push esi
call edi
mov dword [0x103cc3a4], eax
test eax, eax
je 0x100bac9f
push str.readData
push esi
call edi
mov dword [0x103cc3a8], eax
test eax, eax
je 0x100bac9f
push str.hidRegisterDeviceNotification
push esi
call edi
mov dword [0x103cc3ac], eax
test eax, eax
je 0x100bac9f
push str.hidUnregisterDeviceNotification
push esi
call edi
mov dword [0x103cc3b0], eax
test eax, eax
je 0x100bac9f
push str.isMyDeviceNotification
push esi
call edi
mov dword [0x103cc3b4], eax
test eax, eax
je 0x100bac9f
push str.setFeature
push esi
call edi
mov dword [0x103cc3b8], eax
test eax, eax
je 0x100bac9f
push str.getOutputReportLength
push esi
call edi
mov dword [0x103cc3c0], eax
test eax, eax
je 0x100bac9f
push str.getInputReportLength
push esi
call edi
mov dword [0x103cc3c4], eax
test eax, eax
je 0x100bac9f
push str.getFeatureReportLength
push esi
call edi
mov dword [0x103cc3bc], eax
test eax, eax
je 0x100bac9f
pop edi
mov al, 1
pop esi
pop ebp
ret
Function at 0x100baf20
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [case.0x100be6e1.80]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov ecx, Ordinal_2
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x110], eax
neg edi
mov dword [ebp - 0x10c], edx
push 0
sbb edi, edi
mov esi, 0x40000000
xor eax, eax
add edi, 3
push 0x80
test edx, edx
push edi
sete al
test edx, edx
push 0
cmovne ecx, esi
mov dword [ebp - 0x114], eax
push eax
push ecx
push ebx
mov dword [ebp - 0x118], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100bb03b
mov dword [ebp - 0x108], 1
nop
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x100bafec
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push edi
push 0
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100bb03b
mov eax, dword [ebp - 0x108]
inc eax
mov dword [ebp - 0x108], eax
cmp eax, 3
jb 0x100bafa0
push ebx
call fcn.100bbbe0
cmp dword [ebp - 0x10c], 0
mov ecx, str.cant_create__s
push eax
mov eax, str.cant_open__s
cmovne eax, ecx
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.100029e0
push dword [ebp + 0x18]
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.100bb2d0
add esp, 0x1c
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10291e04
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x10c], 0
push 0
jne 0x100bb0bf
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [ebp + 0x10]
test edi, edi
jg 0x100bb06f
mov edi, eax
push 0
lea eax, [ebp - 0x108]
push eax
push edi
push dword [ebp - 0x110]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x100bb0d7
cmp edi, eax
je 0x100bb056
push edi
push eax
push ebx
call fcn.100bbbe0
add esp, 4
push eax
lea eax, [ebp - 0x104]
push str.size_of__s___d_instead__d_
push eax
call fcn.100029e0
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x18]
lea eax, [ebp - 0x104]
push eax
call fcn.100baf00
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10291e04
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push eax
push edi
push dword [ebp - 0x110]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x108], edi
je 0x100bb125
push ebx
call fcn.100bbbe0
push eax
lea eax, [ebp - 0x104]
push str.IO_file__s
push eax
call fcn.100029e0
push dword [ebp + 0x18]
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.100bb2d0
add esp, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10291e04
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10291e04
mov esp, ebp
pop ebp
ret
Function at 0x100bb150
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
test edi, edi
mov ecx, 0x40000000
push 0
sete al
push 0x80
lea eax, [eax*2 + 1]
push eax
xor eax, eax
test edi, edi
push 0
sete al
test edi, edi
push eax
mov eax, Ordinal_2
cmovne eax, ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100bb1d5
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push esi
test edi, edi
je 0x100bb1bf
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0x100bbfb0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [case.0x100be6e1.80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x18]
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x20c], ebx
push str._sLogImage
push eax
mov dword [ebp - 0x208], esi
call fcn.100029e0
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100bc014
push 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
push esi
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
push ebx
call fcn.100bc200
add esp, 0x14
test ebx, ebx
jle 0x100bc0a8
lea esi, [ebp - 0x204]
sub esi, edi
mov eax, edi
nop dword [eax + eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [esi + eax - 1], cl
test cl, cl
jne 0x100bc040
push edi
push dword [ebp - 0x208]
lea eax, [ebp - 0x104]
dec ebx
push dword [ebp - 0x20c]
push eax
push ebx
call fcn.100bc200
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100bc0a4
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100bc096
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x204]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test ebx, ebx
jg 0x100bc036
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10291e04
mov esp, ebp
pop ebp
ret
Function at 0x100be560
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [case.0x100be6e1.80]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x2e8
lea eax, [ebp - 0x36c]
push 0
push eax
call fcn.10296750
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x37c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x378], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x374], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x384], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x380], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x370], eax
lea eax, [ebp - 0x404]
push eax
push 0
lea eax, [ebp - 0x384]
push eax
push 0x100bfdc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x84]
push 1
push eax
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [ebp - 0x84]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10291e04
mov esp, ebp
pop ebp
ret

Function at 0x100be850
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push edi
push eax
push 0
push 0
push 0x100bff20
push 0
mov ecx, 0x81
mov edi, 0x103cc458
rep movsd dword es:[edi], dword [esi]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [0x103cc65c], eax
pop esi
pop ebp
ret

Function at 0x100bec80
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
test esi, esi
je 0x100becb7
push dword [ebp + 0xc]
mov dword [eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100becb0
push 0xff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret
Function at 0x100becc0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102fc131
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [case.0x100be6e1.80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
lea ebx, [ebp - 0x110]
mov edx, dword [ebp + 0xc]
sub ebx, ecx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ebx + ecx - 1], al
test al, al
jne 0x100bed00
mov esi, edx
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x100bed10
lea edi, [ebp - 0x110]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100bed20
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x134]
call fcn.100cedce
mov dword [ebp - 4], 0
lea eax, [ebp - 0x110]
push 0
push eax
lea ecx, [ebp - 0x134]
call fcn.100cf0b3
test eax, eax
je 0x100bee35
lea ecx, [ebp - 0x134]
call fcn.100cf26c
mov dword [ebp - 0x118], eax
lea ecx, [ebp - 0x134]
lea eax, [ebp - 0x114]
push eax
call fcn.100cf31b
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ebx + ecx - 1], al
test al, al
jne 0x100bed90
mov eax, dword [ebp - 0x114]
mov esi, dword [eax - 0xc]
test esi, esi
js 0x100bee63
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x100bedd1
push esi
lea ecx, [ebp - 0x114]
call fcn.10003170
mov eax, dword [ebp - 0x114]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100bedd3
lea edi, [ebp - 0x110]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100bede3
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x110]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x114]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100bee28
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x118], 0
jne 0x100bed64
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
call fcn.100cef95
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10291e04
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10002bc0
int3
Function at 0x100bee70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [case.0x100be6e1.80]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push esi
push edi
mov edi, dword [ebp + 0x14]
push 0x100
push eax
push dword [ebp + 0x10]
mov byte [edi], 0
call fcn.100ccffd
lea eax, [ebp - 0x104]
push 0x2e
push eax
call fcn.102a1020
mov esi, eax
add esp, 8
test esi, esi
je 0x100beece
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.102a1020
add esp, 8
cmp esi, eax
jae 0x100beeee
lea ecx, [ebp - 0x104]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x100beed5
mov eax, dword [0x1032463c]
mov dword [ecx], eax
mov al, byte [0x10324640]
mov byte [ecx + 4], al
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0x104]
push eax
call esi
cmp dword [ebp + 0x18], 0
je 0x100bef11
lea eax, [ebp - 0x104]
push eax
call esi
cmp eax, 0xffffffff
jne 0x100bef69
lea ecx, [ebp - 0x104]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100bef20
sub ecx, edx
cmp ecx, 0x28
jae 0x100bef69
lea eax, [ebp - 0x104]
push 0x3a
push eax
call fcn.102bb7d5
add esp, 8
test eax, eax
jne 0x100bef69
cmp byte [ebp - 0x104], 0x5c
je 0x100bef69
mov ecx, dword [ebp + 8]
mov edx, edi
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x100bef53
push edi
call fcn.100bae10
add esp, 4
lea edx, [ebp - 0x104]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x100bef71
sub edx, esi
dec edi
nop dword [eax + eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100bef80
mov ecx, edx
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, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10291e04
mov esp, ebp
pop ebp
ret