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

Disassembly:
push 0x220
mov eax, 0x100d8bb2
call fcn.10002415
mov dword [ebp - 0x220], ecx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
cmp byte [ebp + 0x10], bl
je 0x10071429
push ebx
push ebx
push ebx
push ebx
push 0x100
lea eax, [ebp - 0x218]
push eax
push 3
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.MSVCR100.dll__wsplitpath_s]
xor eax, eax
add esp, 0x24
cmp ax, word [ebp - 0x18]
jne 0x10071407
cmp ax, word [ebp - 0x218]
je 0x10071429
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10071429
test al, 0x10
je 0x10071429
mov ecx, dword [ebp - 0x220]
push edi
push esi
call fcn.100715f9
jmp 0x10071532
mov dword [ebp - 0x21c], ebx
lea eax, [ebp - 0x228]
push eax
push 0x5c
push esi
mov dword [ebp - 4], ebx
call fcn.1003f3d4
test al, al
jne 0x1007146c
lea eax, [ebp - 0x228]
push eax
push 0x2f
push esi
call fcn.1003f3d4
test al, al
jne 0x1007146c
push esi
lea ecx, [ebp - 0x21c]
call fcn.10006b7b
mov esi, dword [ebp - 0x21c]
jmp 0x10071497
push esi
call fcn.1003f71e
sub eax, dword [ebp - 0x228]
dec eax
push eax
push esi
lea eax, [ebp - 0x18]
push eax
call fcn.1003f64e
mov esi, dword [eax]
lea ecx, [ebp - 0x21c]
call fcn.10006bef
mov dword [ebp - 0x21c], esi
lea eax, [ebp - 0x224]
push eax
push esi
call fcn.1004d6d0
test al, al
jne 0x100714ac
push 0x40
jmp 0x10071520
test edi, edi
je 0x10071521
mov ecx, edi
call fcn.1002dd61
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.1002dd05
cmp word [eax], bx
je 0x10071521
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x22c]
push eax
mov ecx, edi
call fcn.1002dd33
mov eax, dword [eax]
mov dword [ebp - 0x220], eax
push dword [ebp - 0x21c]
mov ecx, esi
push eax
mov byte [ebp - 4], 1
call fcn.1007153a
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x220]
test al, al
jne 0x10071519
call fcn.10006bef
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.1002dd05
cmp word [eax], bx
je 0x10071521
jmp 0x100714cd
call fcn.10006bef
push 4
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.10006bef
mov eax, ebx
call fcn.10002556
ret 0xc

Function at 0x1007d5c1
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1000f7ac]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
cmp dword [ebp - 0x18], 0x800000
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.10002059
leave
ret
Function at 0x10098942
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x414
mov eax, 0x100cfd84
call fcn.10002415
mov esi, dword [ebp + 8]
push 0x200
lea ecx, [ebp - 0x420]
call fcn.10006ed4
xor eax, eax
mov word [ebp - 0x40c], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x420]
push eax
push esi
call fcn.1004e191
lea eax, [ebp - 0x420]
push eax
call fcn.1003f70f
mov edx, 0x104
cmp eax, edx
jbe 0x100989b4
mov eax, dword [ebp - 0x420]
xor ecx, ecx
mov byte [ebp - 0x418], 1
mov word [eax + 0x208], cx
push edx
lea ecx, [ebp - 0x420]
call fcn.10046f2c
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x420]
call fcn.1000863e
mov al, bl
call fcn.10002556
ret 4

Function at 0x10098c34
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
shr eax, 4
not eax
and eax, 1
pop ebp
ret 4
Function at 0x100ace70
Capabilities:
Hide graphical window

Disassembly:
push esi
test ecx, ecx
je 0x100ace7d
lea esi, [ecx - 0x90]
jmp 0x100ace7f
xor esi, esi
lea eax, [esi + 0x84]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
cmp dword [esi + 0x60], 0
je 0x100ace9c
push 0
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 8

Function at 0x100b339d
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1000f7ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
cmp ax, word [0x1013b686]
je 0x100b342f
push edi
mov esi, eax
lea eax, [ebp - 0x20]
push eax
xor edi, edi
push esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
call fcn.1000740a
test eax, eax
js 0x100b3410
mov eax, dword [ebp - 0x20]
push edi
push edi
push 0xa
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
push eax
push edi
push 0x85
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
call fcn.100b3447
test eax, eax
je 0x100b3410
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.100c6471
mov eax, dword [ebp - 0x1c]
test eax, eax
js 0x100b341c
cmp eax, 3
jle 0x100b341e
mov eax, edi
shl esi, 0x10
and eax, 3
or esi, eax
mov dword [0x1013b684], esi
pop edi
jmp 0x100b3435
mov esi, dword [0x1013b684]
mov ecx, dword [ebp - 4]
and esi, 3
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10002059
leave
ret

Function at 0x100b49fd
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1000f7ac]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10103df8], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
jne 0x100b4a26
mov esi, 0x8ff000ff
jmp 0x100b4a6b
test ebx, ebx
je 0x100b4a66
call fcn.10007519
mov esi, eax
test esi, esi
js 0x100b4a6b
push edi
call fcn.100b53d4
mov edi, eax
test edi, edi
je 0x100b4a66
test byte [edi + 0x1f], 4
jne 0x100b4a5d
push edi
call fcn.100b6868
mov esi, eax
test esi, esi
jns 0x100b4a5d
cmp esi, 0x8007000e
je 0x100b4a6b
xor esi, esi
mov eax, dword [ebp + 0xc]
dec eax
je 0x100b4a7e
dec eax
je 0x100b4a96
mov esi, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002059
leave
ret 0xc
mov eax, dword [edi + 0x18]
test eax, eax
je 0x100b4a96
cmp byte [edi + 0x1e], 0
jbe 0x100b4a96
mov eax, dword [eax]
and eax, 0xff
mov dword [ebx], eax
jmp 0x100b4a6b
push 3
lea eax, [ebp - 0xc]
push eax
push 0x1009
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jle 0x100b4a66
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.MSVCR100.dll__wtoi]
pop ecx
push ebx
push eax
call fcn.100b490d
mov esi, eax
jmp 0x100b4a6b
Function at 0x100b5dc9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x1000f7ac]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x218], 0
and dword [ebp - 0x220], 0
push ebx
push edi
mov edi, dword [ebp + 8]
push 0x10103de0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebx, [edi + 0x1f]
test byte [ebx], 2
jne 0x100b5fb6
cmp dword [edi + 0x14], 0
je 0x100b5e21
push dword [edi + 0x14]
mov ecx, 0x10103dfc
call fcn.100079c5
and dword [edi + 0x14], 0
mov byte [edi + 0x1d], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
push 8
lea eax, [ebp - 0x14]
push eax
push 0x1004
push dword [edi + 4]
call esi
test eax, eax
je 0x100b5f24
lea eax, [ebp - 0x238]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x100b5ff0
push 0
call fcn.10007c28
mov dword [ebp - 0x218], eax
test eax, eax
js 0x100b5f24
mov eax, dword [ebp - 0x234]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
mov dword [ebp - 0x220], 1
neg ecx
or ecx, eax
push ecx
mov ecx, 0x10103dfc
call fcn.10006323
mov dword [edi + 0x14], eax
test eax, eax
je 0x100b5f37
xor ebx, ebx
cmp dword [ebp - 0x234], ebx
jbe 0x100b5ee9
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 0x238]
push dword [eax + ebx*4]
call fcn.100b348f
mov dword [ebp - 0x218], eax
test eax, eax
js 0x100b5ed9
movzx edx, byte [edi + 0x1d]
mov ecx, dword [edi + 0x14]
mov eax, dword [ebp - 0x21c]
mov dword [ecx + edx*4], eax
inc byte [edi + 0x1d]
jmp 0x100b5ee0
cmp eax, 0x8007000e
je 0x100b5f0a
inc ebx
cmp ebx, dword [ebp - 0x234]
jb 0x100b5ea5
cmp byte [edi + 0x1d], 0
lea ebx, [edi + 0x1f]
jne 0x100b5fa2
mov eax, dword [ebp - 0x220]
mov byte [edi + 0x1d], al
mov eax, dword [edi + 0x14]
and dword [eax], 0
jmp 0x100b5fa2
push dword [edi + 0x14]
mov ecx, 0x10103dfc
call fcn.100079c5
and dword [edi + 0x14], 0
mov byte [edi + 0x1d], 0
jmp 0x100b5fb5
push 4
mov ecx, 0x10103dfc
call fcn.10006323
mov dword [edi + 0x14], eax
test eax, eax
jne 0x100b5f43
mov dword [ebp - 0x218], 0x8007000e
jmp 0x100b5fb5
mov byte [edi + 0x1d], 1
and dword [eax], 0
push 0x100
lea eax, [ebp - 0x214]
push eax
push 4
push dword [edi + 4]
call esi
test eax, eax
je 0x100b5fa2
and dword [ebp - 0x21c], 0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.100b5d59
test eax, eax
je 0x100b5f96
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call fcn.100b82b1
mov ecx, dword [edi + 0x14]
mov dword [ecx], eax
cmp dword [ebp - 0x218], 0x8007000e
je 0x100b5fb5
cmp dword [edi + 8], 0xc00
je 0x100b5fae
or byte [ebx], 2
and dword [ebp - 0x218], 0
pop esi
push 0x10103de0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x220], 0
pop edi
pop ebx
je 0x100b5fd8
lea eax, [ebp - 0x238]
push eax
call fcn.1000856f
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
xor ecx, ebp
call fcn.10002059
leave
ret 4
Function at 0x100ba6e3
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push edi
jne 0x100ba6f5
mov edi, 0x80004003
jmp 0x100ba73f
push 1
xor edi, edi
push edi
push 0x80
push 2
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call fcn.100c6edc
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x100ba73a
push esi
push eax
call fcn.100ba74b
pop ecx
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop esi
jne 0x100ba73f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 0x80004005
xor eax, eax
test edi, edi
setns al
pop edi
leave
ret 4

Function at 0x100ba793
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push edi
push ebx
xor esi, esi
call fcn.100c7077
pop ecx
pop ecx
mov dword [ebp + 8], eax
test eax, eax
je 0x100ba81c
cmp eax, ebx
ja 0x100ba81c
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push edx
push eax
mov eax, dword [ebp + 8]
push 0x100ba828
sub ebx, eax
push 0xffffffffffffffff
lea eax, [edi + eax*2]
push ebx
push eax
call dword [sym.imp.MSVCR100.dll__snwprintf_s]
add esp, 0x18
test eax, eax
jle 0x100ba81c
push esi
call fcn.100bac9f
pop ecx
test eax, eax
je 0x100ba7f2
push edi
call fcn.100ba6e3
mov esi, eax
test esi, esi
jne 0x100ba81c
push 0
call fcn.100bac9f
pop ecx
test eax, eax
jne 0x100ba81c
cmp word [0x10103ecc], ax
je 0x100ba81c
push 1
push edi
push 0x10103ecc
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x100ba81c
xor esi, esi
inc esi
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x100bb268
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x1000f7ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x240], eax
mov esi, 0x104
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.100be40c
pop ecx
pop ecx
test eax, eax
jne 0x100bb2a5
or eax, 0xffffffff
jmp 0x100bb44b
push ebx
xor eax, eax
lea ebx, [ebp - 0x22c]
push edi
mov dword [ebp - 0x234], ebx
cmp word [ebp - 0x22c], ax
je 0x100bb2cc
add ebx, 2
cmp word [ebx], ax
jne 0x100bb2be
mov dword [ebp - 0x234], ebx
push 1
call fcn.100be3a4
pop ecx
push dword [0x10139b58]
call fcn.1002bbdc
mov edi, eax
mov dword [ebp - 0x230], edi
cmp edi, 0x64
jbe 0x100bb2ef
xor edi, edi
inc edi
lea eax, [ebp - 0x22c]
sub ebx, eax
sar ebx, 1
push edi
push 0x100bb458
lea eax, [ebp - 0x24]
push 0xffffffffffffffff
push eax
call fcn.100bc282
add esp, 0x10
test ebx, ebx
js 0x100bb3a0
cmp ebx, esi
ja 0x100bb3a0
lea ecx, [ebp - 0x23c]
mov eax, esi
sub eax, ebx
push ecx
push eax
call fcn.100bd072
pop ecx
pop ecx
push dword [ebp - 0x23c]
lea eax, [ebp - 0x24]
push dword [ebp - 0x234]
push eax
call fcn.100c624e
push 1
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x22c]
push eax
call fcn.100c6edc
mov dword [ebp - 0x238], eax
cmp eax, 0xffffffff
jne 0x100bb403
cmp edi, 0x64
jb 0x100bb37b
xor edi, edi
inc edi
cmp edi, dword [ebp - 0x230]
jne 0x100bb2f9
push edi
push 0x100bb458
lea eax, [ebp - 0x24]
push 0xffffffffffffffff
push eax
call fcn.100bc282
add esp, 0x10
test ebx, ebx
jns 0x100bb3a6
call dword [sym.imp.MSVCR100.dll__invalid_parameter_noinfo_noreturn]
cmp ebx, esi
ja 0x100bb3a0
lea eax, [ebp - 0x230]
push eax
sub esi, ebx
push esi
call fcn.100bd072
pop ecx
pop ecx
push dword [ebp - 0x230]
lea eax, [ebp - 0x24]
push dword [ebp - 0x234]
push eax
call fcn.100c624e
mov ebx, 0x80
push ebx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
push 0
push ebx
push 2
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x22c]
push eax
call fcn.100c6edc
mov esi, eax
jmp 0x100bb409
mov esi, dword [ebp - 0x238]
cmp edi, 0x64
jb 0x100bb410
xor edi, edi
cmp byte [ebp + 0x10], 0
je 0x100bb425
lea eax, [edi + 1]
push eax
push dword [0x10139b58]
call fcn.100c8c69
call fcn.100bb0e9
mov eax, dword [ebp - 0x240]
pop edi
pop ebx
test eax, eax
je 0x100bb449
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.100ba2ad
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10002059
leave
ret
Function at 0x100bb52d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0xffffffff
jne 0x100bb53c
xor eax, eax
leave
ret
and dword [ebp - 4], 0
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor esi, esi
push eax
inc esi
call fcn.100bc2d7
mov ebx, eax
push ebx
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100bb660
push 0x10103e48
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
call fcn.100bac9f
pop ecx
test eax, eax
jne 0x100bb581
xor esi, esi
jmp 0x100bb64a
cmp byte [0x101040df], 0
je 0x100bb594
push 0x72766c72
call fcn.100ba0cd
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov byte [0x101040df], 1
call fcn.100bc2d7
pop ecx
cmp eax, ebx
jne 0x100bb5b5
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
je 0x100bb5e1
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
lea eax, [ebp - 4]
push eax
call fcn.100bc2d7
mov ebx, eax
push ebx
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x100bb5e1
push 0x72766c73
call fcn.100ba0cd
xor esi, esi
cmp dword [ebp + 0x14], 0
jne 0x100bb5ef
cmp ebx, 0xea60
ja 0x100bb57a
test esi, esi
je 0x100bb605
push dword [ebp + 0xc]
push dword [ebp - 4]
push ebx
push edi
call fcn.100bc490
add esp, 0x10
mov esi, eax
mov byte [0x101040df], 0
test esi, esi
je 0x100bb640
push 0
lea eax, [ebp - 8]
push eax
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100bb62f
cmp dword [ebp - 8], ebx
jne 0x100bb62f
xor esi, esi
inc esi
jmp 0x100bb631
xor esi, esi
push ebx
push edi
push dword [ebp + 0x10]
call fcn.100bc760
add esp, 0xc
jmp 0x100bb64a
push 0x74697970
call fcn.100ba0cd
push 0x10103e48
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x100bb660
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x100bc760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x100bc7a8
push esi
push 1
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call fcn.100c6edc
mov esi, eax
cmp esi, 0xffffffff
je 0x100bc7a7
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret
Function at 0x100bc7aa
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1000f7ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
test dword [0x10103e7c], 0x2000
je 0x100bc7d6
call fcn.100be329
jmp 0x100bc86b
push ebx
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.100be40c
pop ecx
pop ecx
test eax, eax
je 0x100bc86a
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x100bc878
call fcn.100c6af5
call fcn.100bb223
test al, al
je 0x100bc868
push edi
call fcn.100bb468
push 1
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.100bb268
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x100bc867
push esi
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
call fcn.100bb52d
add esp, 0x10
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x414]
test esi, esi
jne 0x100bc858
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x100bc867
push ebx
push 0x10103ecc
push eax
call fcn.100ba2ad
add esp, 0xc
pop edi
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10002059
leave
ret
Function at 0x100bd7bc
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1000f7ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov byte [eax], bl
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], ebx
mov esi, ebx
mov byte [edi], 1
call fcn.100be280
mov dword [ebp - 0x220], eax
cmp eax, 3
je 0x100bd9d6
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.100bd76c
pop ecx
pop ecx
test eax, eax
je 0x100bd9d6
xor eax, eax
inc eax
push eax
push ebx
push 0x80
push 3
push ebx
push eax
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call fcn.100c6edc
mov dword [ebp - 0x210], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x210]
cmp ecx, 0xffffffff
jne 0x100bd874
cmp eax, 0x20
jne 0x100bd86a
push 0x1c8016
call fcn.100ba0cd
mov eax, ebx
mov byte [edi], al
jmp 0x100bd9d6
cmp eax, 5
je 0x100bd861
xor eax, eax
inc eax
jmp 0x100bd863
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi - 0x8c]
cmp eax, 0xf74
ja 0x100bd9c0
push edi
call fcn.100bd5f8
mov esi, eax
test esi, esi
je 0x100bd9c0
push ebx
lea eax, [ebp - 0x218]
push eax
push edi
push esi
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100bd9c0
cmp edi, dword [ebp - 0x218]
jne 0x100bd9c0
push ebx
push edi
push esi
call fcn.100bb134
add esp, 0xc
test eax, eax
je 0x100bd9c0
cmp dword [esi + 0x78], ebx
jne 0x100bd9c0
mov eax, dword [esi + 0x7c]
push 0xc
xor edx, edx
pop ecx
div ecx
mov ecx, eax
imul ecx, ecx, 0xc
mov dword [ebp - 0x214], eax
cmp dword [esi + 0x7c], ecx
jne 0x100bd9c0
lea edi, [esi + 0x80]
test eax, eax
jle 0x100bd994
cmp dword [edi], 0x2102
ja 0x100bd93a
je 0x100bd95a
cmp dword [edi], 0x10
je 0x100bd95a
cmp dword [edi], 0x195b
je 0x100bd95a
cmp dword [edi], 0x19df
jbe 0x100bd96a
cmp dword [edi], 0x19e2
ja 0x100bd96a
jmp 0x100bd95a
cmp dword [edi], 0x24c8
jb 0x100bd96a
cmp dword [edi], 0x24cb
jbe 0x100bd95a
cmp dword [edi], 0x24cd
je 0x100bd95a
cmp dword [edi], 0x2696
jne 0x100bd96a
push dword [edi + 4]
push dword [edi]
call fcn.100ba3bd
mov eax, dword [ebp - 0x214]
cmp dword [edi], 0x195b
je 0x100bd982
cmp dword [edi], 0x19e1
je 0x100bd982
cmp dword [edi], 0x24cd
jne 0x100bd983
inc ebx
add edi, 0xc
dec eax
mov dword [ebp - 0x214], eax
jne 0x100bd911
cmp ebx, 3
je 0x100bd9a2
call fcn.100c41fa
test eax, eax
je 0x100bd9ad
cmp ebx, 2
jl 0x100bd9ad
mov ecx, dword [ebp - 0x21c]
mov byte [ecx], 1
jmp 0x100bd9c0
xor eax, eax
inc eax
cmp dword [ebp - 0x220], eax
jne 0x100bd9c0
mov ecx, dword [ebp - 0x21c]
mov byte [ecx], al
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x100bd9d6
push esi
call fcn.100bd609
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002059
leave
ret
Function at 0x100bdb72
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x1000f7ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.100bf422
and dword [ebp - 0x38], 0
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x38]
push eax
push 0x11
call fcn.100ba3bd
push dword [ebp - 0x24]
push 0x12
call fcn.100ba3bd
mov edi, SysReAllocStringLen
xor ecx, ecx
mov eax, edi
cpuid
lea esi, [ebp - 0x14]
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
cmp dword [ebp - 0x14], edi
jbe 0x100bdbf9
xor ecx, ecx
lea eax, [edi + 1]
cpuid
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
test dword [ebp - 8], 0x20000000
je 0x100bdbf5
push 9
jmp 0x100bdbfe
push 0
jmp 0x100bdbfe
push 0xffff
push 0x2699
call fcn.100ba3bd
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002059
leave
ret

Function at 0x100be052
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x1000f7ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push 0x118
lea eax, [ebp - 0x11c]
push esi
push eax
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x120], esi
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
push 1
push esi
push 0x100be1ec
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100be0fa
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x134]
push eax
push esi
push 0x100be218
push dword [ebp - 0x128]
mov dword [ebp - 0x12c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100be0ec
push dword [ebp - 0x130]
push 0x22df
call fcn.100ba3bd
push dword [ebp - 0x128]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100be104
push 0x1c800b
call fcn.100ba0cd
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
pop esi
test eax, eax
je 0x100be18f
push dword [ebp - 0x114]
push 0x1a
call fcn.100ba3bd
movzx ecx, word [ebp - 0xc]
movzx eax, word [ebp - 0xa]
shl ecx, 0x10
or ecx, eax
push ecx
push 0x43
call fcn.100ba3bd
movzx eax, word [ebp - 8]
push eax
push 0x3a5
call fcn.100ba3bd
push dword [ebp - 0x11c]
push 0x22e1
call fcn.100ba3bd
push dword [ebp - 0x118]
push 0x22e2
call fcn.100ba3bd
movzx eax, word [ebp - 0xc]
push eax
push 0x22e4
call fcn.100ba3bd
movzx eax, word [ebp - 0xa]
push eax
push 0x22e5
call fcn.100ba3bd
lea eax, [ebp - 0x124]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
test eax, eax
je 0x100be1c8
push dword [ebp - 0x124]
push 0x1af7
call fcn.100ba3bd
jmp 0x100be1de
push 0xffffffffffffffff
push 0x1af7
call fcn.100ba3bd
push 0x1c800c
call fcn.100ba0cd
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10002059
leave
ret