joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407fea
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x4016b8
call fcn.004082b0
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x400000], 0x5a4d
jne 0x40803d
mov eax, dword [0x40003c]
lea eax, [eax + 0x400000]
cmp dword [eax], 0x4550
jne 0x40803d
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x408055
cmp ecx, 0x20b
je 0x408042
mov dword [ebp - 0x60], ebx
jmp 0x408069
cmp dword [eax + 0x84], 0xe
jbe 0x40803d
xor ecx, ecx
cmp dword [eax + 0xf8], ebx
jmp 0x408063
cmp dword [eax + 0x74], 0xe
jbe 0x40803d
xor ecx, ecx
cmp dword [eax + 0xe8], ebx
setne cl
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x40aa94], edi
mov dword [0x40aa98], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x40aa88]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x40aa84]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40aa90], eax
call fcn.004082ac
cmp dword [0x40a040], ebx
jne 0x4080c6
push fcn.004082ac
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0040829a
push 0x40a018
push 0x40a014
call sub.msvcrt.dll__initterm
mov eax, dword [0x40aa80]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
push dword [0x40aa7c]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x74], eax
push 0x40a010
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
cmp byte [eax], 0x22
jne 0x408151
inc eax
mov dword [ebp - 0x78], eax
mov cl, byte [eax]
cmp cl, bl
je 0x408131
cmp cl, 0x22
jne 0x408122
cmp byte [eax], 0x22
jne 0x40813a
inc eax
mov dword [ebp - 0x78], eax
mov cl, byte [eax]
cmp cl, bl
je 0x408145
cmp cl, 0x20
jbe 0x408136
test byte [ebp - 0x30], 1
je 0x40815c
movzx ecx, word [ebp - 0x2c]
jmp 0x40815f
cmp byte [eax], 0x20
jbe 0x40813a
inc eax
mov dword [ebp - 0x78], eax
jmp 0x408151
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.00407a92
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x60], ebx
jne 0x40817d
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x4081b9
mov eax, esi
jmp 0x4081cd
call fcn.004082eb
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x1003e53
Capabilities:
Read file on windows

Disassembly:
push 0x48
push 0x10013f8
call fcn.010125ec
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov esi, dword [ebp + 0x20]
push esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.01012650
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
push esi
push dword [ebp + 0x1c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.01012650
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
mov ecx, dword [ebp - 0x34]
add ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x30]
adc eax, esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x58], ebx
xor eax, eax
lea edi, [ebp - 0x54]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x34]
or eax, dword [ebp - 0x30]
jne 0x1003ec3
push 0x4c
jmp 0x1003ed7
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push ecx
call fcn.01003d25
test eax, eax
jne 0x1003eed
push 0x52
push 0x100133c
push 0x10013a8
call fcn.01005dcd
xor eax, eax
jmp 0x1003fa2
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x1c]
mov ebx, eax
mov dword [ebp - 0x28], ebx
mov edx, dword [ebp + 0x1c]
mov edi, edx
sub edi, 1
sbb esi, 0
xor ecx, ecx
and eax, edi
and ecx, esi
or eax, ecx
je 0x1003f1a
lea ebx, [edx - 1]
not ebx
and ebx, dword [ebp - 0x1c]
add ebx, edx
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
and dword [ebp - 0x48], 0
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1003f56
push 0x64
push 0x100133c
push 0x10013a8
call fcn.01005dcd
jmp 0x1003f96
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
and eax, edi
and ecx, esi
or eax, ecx
je 0x1003f8f
mov esi, dword [ebp - 0x34]
push esi
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
mov ecx, dword [ebp - 0x44]
sub ecx, esi
xor eax, eax
mov edx, dword [ebp - 0x1c]
lea edi, [esi + edx]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp - 0x24], 1
or dword [ebp - 4], 0xffffffff
call fcn.01003faa
mov eax, dword [ebp - 0x20]
call fcn.01012627
ret 0x1c
Function at 0x1003ffb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1d0
mov eax, dword [0x1014c68]
push ebx
push esi
mov esi, dword [ebp + 0x1c]
push edi
push dword [ebp + 0x2c]
mov dword [ebp - 4], eax
push dword [ebp + 0x28]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
mov dword [ebp - 0x1a8], eax
push dword [ebp + 0xc]
mov dword [ebp - 0x1a4], esi
call fcn.01012650
push dword [ebp + 0x2c]
mov dword [ebp - 0x1a0], eax
push dword [ebp + 0x28]
mov dword [ebp - 0x19c], edx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.01012650
mov ecx, dword [ebp + 0x20]
mov ebx, eax
mov eax, edx
mov edx, dword [ebp + 0x24]
mov dword [ebp - 0x1b0], ebx
add ebx, ecx
mov edi, eax
adc edi, edx
mov dword [ebp - 0x1b8], edi
mov edi, dword [ebp - 0x1b0]
and dword [ebp - 0x1b8], 0
or edi, eax
jne 0x1004088
push 0xe7
jmp 0x1004175
xor eax, eax
lea edi, [ebp - 0x1d0]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x1014850]
cmp eax, 1
je 0x10040a4
cmp eax, 3
jne 0x10040b6
mov eax, dword [0x1014858]
add dword [ebp - 0x1a0], eax
adc dword [ebp - 0x19c], 0
mov eax, ecx
sub eax, 1
sbb edx, 0
mov dword [ebp - 0x198], esi
xor esi, esi
mov dword [ebp - 0x1b4], esi
mov esi, eax
and esi, dword [ebp - 0x1a4]
mov eax, dword [ebp - 0x1b4]
mov edi, edx
and edi, eax
mov eax, esi
or eax, edi
je 0x10040f7
lea eax, [ecx - 1]
not eax
and eax, dword [ebp - 0x1a4]
add eax, ecx
mov dword [ebp - 0x198], eax
mov eax, dword [ebp - 0x1a0]
and dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1c8], eax
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 0x1c4], eax
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x1b8]
push eax
push dword [ebp - 0x1b0]
push dword [ebp - 0x198]
push dword [ebp - 0x1a8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1004188
push dword [ebp + 0xc]
lea eax, [ebp - 0x194]
push dword [ebp - 0x1a0]
push dword [ebp - 0x1b0]
push dword [ebp - 0x198]
push dword [ebp - 0x1a8]
push 0x1001408
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
push 0x10a
push 0x100133c
push 0x10013a8
call fcn.01005dcd
xor eax, eax
jmp 0x10041c2
or esi, edi
je 0x10041bf
mov esi, dword [ebp - 0x1b0]
mov edi, dword [ebp - 0x1a4]
push esi
push dword [ebp - 0x198]
push edi
call dword [sym.imp.msvcrt.dll_memmove]
mov ecx, ebx
sub ecx, esi
mov edx, ecx
shr ecx, 2
add edi, esi
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 0xc
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01012308
leave
ret 0x28
Function at 0x10063a7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1014c68]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov dword [ebp - 4], eax
je 0x1006407
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
mov esi, 0x104
cmp eax, esi
pop ecx
jae 0x1006407
push esi
lea eax, [ebp - 0x210]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
and word [ebp - 8], 0
add esp, 0xc
push esi
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1006407
cmp eax, esi
ja 0x1006407
xor eax, eax
inc eax
jmp 0x1006409
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01012308
leave
ret 4
Function at 0x1007f35
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x10149bc]
cmp eax, 0xffffffff
je 0x1007f54
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x10149bc], 0xffffffff
mov ecx, 0x1014804
call fcn.01006780
test eax, eax
jne 0x1007fa5
push eax
mov eax, dword [0x1014c38]
neg eax
sbb eax, eax
and eax, 0x1ffff80
add eax, 0x80
push eax
push 3
push 0
push 0
push 0x100080
push dword [0x1014808]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x10149bc], eax
jne 0x1007fa9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
leave
ret
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 4]
mov dword [0x1014298], eax
or eax, ecx
mov dword [0x101429c], ecx
jne 0x1007fca
xor eax, eax
jmp 0x1007fcd
xor eax, eax
inc eax
cdq
mov dword [0x1014278], eax
xor eax, eax
mov dword [0x101427c], edx
inc eax
leave
ret
Function at 0x100a762
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x1014c68]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x8c]
push 0x1001c0c
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
push 0xf
lea eax, [ebp - 0x24]
push eax
xor eax, eax
push eax
push eax
push eax
push 0x64
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x100a7d3
push 0xc7
push 0x100242c
push 0x10023e0
call fcn.01005dcd
xor eax, eax
jmp 0x100a831
lea eax, [ebp - 0x154]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
pop ecx
pop ecx
push 0x10023d0
lea eax, [ebp - 0x24]
push eax
call esi
test eax, eax
jne 0x100a800
mov dword [edi], 2
jmp 0x100a82e
push 0x10023c8
lea eax, [ebp - 0x24]
push eax
call esi
test eax, eax
jne 0x100a817
mov dword [edi], 1
jmp 0x100a82e
push 0x10023bc
lea eax, [ebp - 0x24]
push eax
call esi
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 3
mov dword [edi], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01012308
leave
ret 0xc

Function at 0x100a9f0
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x1014c68]
and word [ebp - 0x12], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x41
mov dword [ebp - 4], eax
mov word [ebp - 0x16], 0x3a
mov word [ebp - 0x14], 0x5c
pop esi
push 0x33
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x18]
push eax
mov word [ebp - 0x18], si
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x100aa4c
push 0x30
lea eax, [ebp - 0x80]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x100aa64
inc esi
cmp si, 0x5a
jbe 0x100aa20
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01012308
leave
ret 8
xor eax, eax
mov word [edi], si
inc eax
jmp 0x100aa55
Function at 0x100b39a
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x1014c68]
and dword [ebp - 0x78], 0
and dword [ebp - 0x70], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x18]
cmp dword [esi], 0xa
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, 0x100195c
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edi
jne 0x100b3d8
xor esi, esi
jmp 0x100b472
push 0x33
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x100b3d1
push 0x30
push dword [ebp - 0x80]
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x100b423
mov eax, dword [esi]
lea ecx, [ebx + eax*8]
inc eax
mov dword [esi], eax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x70], 1
call fcn.0100af43
cmp dword [esi], 0xa
jne 0x100b423
xor esi, esi
inc esi
jmp 0x100b472
push 0xfa00
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 0x74], eax
jne 0x100b44b
push 0x397
push 0x100242c
push 0x10023e0
call fcn.01005dcd
jmp 0x100b3d1
push 0x7d00
push eax
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
cmp eax, 0xffffffff
mov dword [ebp - 0x84], eax
jne 0x100b48f
push dword [ebp - 0x74]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp - 0x70]
pop ecx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], edi
call fcn.01005ab1
lea ecx, [ebp + 8]
mov dword [ebp + 8], edi
call fcn.01005ab1
mov eax, esi
jmp 0x100b523
push 0xffffffffffffffff
push 1
push dword [ebp + 0xc]
lea ecx, [ebp - 0x7c]
call fcn.01005acf
push 0xffffffffffffffff
push 0
push dword [ebp - 0x74]
lea ecx, [ebp - 0x7c]
call fcn.01005acf
lea ecx, [ebp - 0x7c]
call fcn.01006780
test eax, eax
jne 0x100b4dd
push esi
push ebx
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push ecx
push ecx
mov ecx, esp
push 0xffffffffffffffff
push eax
call fcn.0100af15
call fcn.0100b39a
test eax, eax
je 0x100b4dd
mov dword [ebp - 0x70], 1
push 0x7d00
push dword [ebp - 0x74]
push dword [ebp - 0x84]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
test eax, eax
jne 0x100b48f
push dword [ebp - 0x74]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x84]
call dword [sym.imp.KERNEL32.dll_FindVolumeMountPointClose]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], edi
call fcn.01005ab1
lea ecx, [ebp + 8]
mov dword [ebp + 8], edi
call fcn.01005ab1
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 4]
call fcn.01012308
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x100b682
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi], ebx
jne 0x100b6a8
push esi
push 1
push ebx
push dword [ebp + 0xc]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x100b6e0
push edi
push dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
push edi
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x100b6df
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx]
cmp ecx, 1
jbe 0x100b6d7
shr ecx, 1
mov word [edi + ecx*2 - 2], bx
jmp 0x100b6df
mov word [edi], bx
mov eax, 0x3f2
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x100b6eb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0
jne 0x100b710
push esi
push 1
push 0
push dword [ebp + 0xc]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100b727
push dword [ebp + 0x18]
lea eax, [ebp + 8]
push dword [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
pop esi
pop ebp
ret 0x14

Function at 0x100b731
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi], edi
mov word [ebp - 4], di
jne 0x100b769
lea eax, [ebp + 8]
push eax
push esi
push edi
push 0xf003f
push edi
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x100b77e
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
leave
ret 0x18

Function at 0x100b789
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi], edi
mov word [ebp - 4], di
jne 0x100b7c1
lea eax, [ebp + 8]
push eax
push esi
push edi
push 0xf003f
push edi
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x100b7d7
push dword [ebp + 0x1c]
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x20]
push edi
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
leave
ret 0x1c
Function at 0x100b8e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x28
push 0x1002740
call fcn.010125ec
or dword [ebp - 0x20], 0xffffffff
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
push ebx
push 0x80
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x100b92b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
jmp 0x100b9a8
mov edi, dword [ebp + 0xc]
mov esi, dword [edi]
cmp esi, ebx
je 0x100b951
mov dword [ebp - 0x2c], esi
mov dword [edi], esi
cmp esi, ebx
je 0x100b9a8
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x100b96c
push 0x59
jmp 0x100b97c
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp esi, 0xffffffff
jne 0x100b937
push 0x49
jmp 0x100b97c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x38], eax
cmp eax, ebx
jne 0x100b98d
push 0x60
push 0x10026b8
push 0x10026f0
call fcn.01005dcd
jmp 0x100b9a8
push ebx
lea ecx, [ebp - 0x30]
push ecx
push esi
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100b9a8
mov dword [ebp - 0x28], 1
or dword [ebp - 4], 0xffffffff
call fcn.0100b9be
mov eax, dword [ebp - 0x1c]
call fcn.01012627
ret 0x10

Function at 0x100ba35
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor esi, esi
cmp dword [ebp + 8], esi
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
stosd dword es:[edi], eax
je 0x100bab7
lea eax, [ebp - 0x24]
push esi
mov dword [ebp - 0xc], eax
push 4
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 8], esi
call fcn.0100ca3c
test eax, eax
je 0x100bab7
push esi
push 0x80
push 4
lea eax, [ebp - 0x10]
push eax
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1025e68], eax
lea eax, [ebp - 0x10]
push eax
call fcn.0100cc38
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x1025e68]
cmp eax, 0xffffffff
jne 0x100babb
mov dword [0x1025e68], esi
xor eax, eax
jmp 0x100bad1
push esi
lea ecx, [ebp - 4]
push ecx
push 0x3a
push 0x100274c
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4
Function at 0x100bb03
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1074
call fcn.01012850
mov eax, dword [0x1014c68]
push ebx
xor ebx, ebx
cmp dword [0x1025e68], ebx
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov dword [ebp - 0x1074], ebx
je 0x100bbc8
lea eax, [ebp - 0x1070]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x100bb50
mov dword [ebp - 0x1070], ebx
mov dword [ebp - 0x106c], ebx
movsx eax, byte [ebp + 8]
push esi
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x1068]
push dword [ebp - 0x106c]
push dword [ebp - 0x1070]
push 0x1002788
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x20
push 2
push ebx
push ebx
push dword [0x1025e68]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x1068]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x100bb96
sub eax, ecx
push ebx
lea ecx, [ebp - 0x1074]
push ecx
push eax
lea eax, [ebp - 0x1068]
push eax
push dword [0x1025e68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x1068]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.01012308
leave
ret 0x10

Function at 0x100bc36
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x1014c68]
push ebx
xor ebx, ebx
cmp dword [0x1025e68], ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
jne 0x100bc5b
xor eax, eax
jmp 0x100bcd6
push esi
push edi
push ebx
push ebx
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push 0xffffffffffffffff
push eax
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x100bcba
push 0xe
pop ecx
mov esi, 0x10027a4
lea edi, [ebp - 0x404]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x404]
movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100bc95
push ebx
lea ecx, [ebp - 0x408]
push ecx
sub eax, edx
push eax
lea eax, [ebp - 0x404]
push eax
push dword [0x1025e68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea edi, [ebp - 0x404]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x100bcc1
mov esi, 0x10027a0
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
pop edi
inc eax
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01012308
leave
ret 4