joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003138
Capabilities:
Check os version
Get common file path
Get file attributes
Get hostname

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1210
call fcn.01003b20
mov eax, dword [0x1009040]
push esi
push dword [ebp + 0xc]
mov esi, 0x104
push dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x1210], esi
call fcn.010025b2
test eax, eax
jne 0x100317b
push 0x1000
lea eax, [ebp - 0x120c]
push eax
push 0xff02
jmp 0x10031e3
push 0x100a080
mov dword [0x100a080], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [0x100a084], 5
jb 0x1003168
push esi
push 0x1009e40
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x10031bc
push 0x1000
lea eax, [ebp - 0x120c]
push eax
push 0xff00
jmp 0x10031e3
lea eax, [ebp - 0x1210]
push eax
push 0x1009f60
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x10031ff
push 0x1000
lea eax, [ebp - 0x120c]
push eax
push 0xff06
push 0
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x120c]
push eax
call fcn.0100259c
or eax, 0xffffffff
jmp 0x1003347
push ebx
xor ebx, ebx
cmp dword [0x10096cc], ebx
je 0x1003310
xor eax, eax
mov cl, byte [eax + 0x1009f60]
mov byte [ebp + eax - 0x20c], cl
inc eax
cmp cl, bl
jne 0x1003210
push edi
lea edi, [ebp - 0x20c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x100322a
cmp byte [0x1009c20], bl
mov esi, 0x100145c
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop edi
je 0x100328f
mov esi, 0x1009c20
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x100327e
push 0x1000
lea eax, [ebp - 0x120c]
push eax
push 0xff02
push ebx
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x120c]
push eax
call fcn.0100259c
or eax, 0xffffffff
jmp 0x1003346
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
jmp 0x10032e3
push 0x104
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.01003cc0
cmp eax, ebx
pop ecx
pop ecx
je 0x10032ba
mov byte [eax], bl
jmp 0x10032ce
xor eax, eax
mov cl, byte [eax + 0x1009e40]
mov byte [ebp + eax - 0x108], cl
inc eax
cmp cl, bl
jne 0x10032bc
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.01001fb1
lea eax, [ebp - 0x108]
push eax
push 1
call fcn.010022cb
test eax, eax
jne 0x1003310
push 0x1000
lea eax, [ebp - 0x120c]
push eax
push 0xff03
jmp 0x1003263
call fcn.010026e1
call fcn.0100287f
mov esi, eax
cmp esi, 0xfffffffe
jne 0x100332c
push ebx
push 0xff0b
call fcn.0100263a
push 0x1001224
push ebx
call fcn.0100263a
cmp dword [0x10096cc], ebx
je 0x1003344
call fcn.01002323
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.010033d8
leave
ret
Function at 0x10033d8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1009040]
jne 0x10033e1
ret
jmp 0x10033e6
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x1009040]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x100a11c]
test eax, eax
je 0x100340a
call eax
cmp dword [0x100a120], 0
je 0x1003451
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x100a120]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.010033d8
add ebp, 0x2a8
leave
ret

Function at 0x10034f7
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push 0x18
push 0x1001490
call fcn.0100375c
mov ebx, 0x94
push ebx
push 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1003538
mov dword [esi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
test eax, eax
jne 0x1003542
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0xff
jmp 0x100368f
mov eax, dword [esi + 0x10]
mov dword [0x10096e8], eax
mov eax, dword [esi + 4]
mov dword [0x10096f4], eax
mov eax, dword [esi + 8]
mov dword [0x10096f8], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x10096ec], eax
xor ebx, ebx
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x10096e8], 2
je 0x1003583
or byte [0x10096ed], 0x80
mov eax, dword [0x10096f4]
shl eax, 8
add eax, dword [0x10096f8]
mov dword [0x10096f0], eax
call fcn.0100349b
mov dword [ebp - 0x1c], eax
push ebx
call fcn.01004764
pop ecx
test eax, eax
jne 0x10035ca
cmp dword [0x10096d8], 2
je 0x10035b7
call fcn.01003fcc
push 0x1c
call fcn.01003e6b
push 0xff
call fcn.01003ced
pop ecx
pop ecx
mov dword [ebp - 4], ebx
call fcn.01004587
test eax, eax
jge 0x10035de
push 0x1b
call fcn.01003476
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100b4d4], eax
call fcn.01004461
mov dword [0x10096d0], eax
call fcn.010043c0
test eax, eax
jge 0x1003604
push 8
call fcn.01003476
pop ecx
call fcn.01004176
test eax, eax
jge 0x1003615
push 9
call fcn.01003476
pop ecx
call fcn.01003d1d
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x1003628
push eax
call fcn.01003476
pop ecx
mov eax, dword [0x1009708]
mov dword [0x100970c], eax
push eax
push dword [0x1009700]
push dword [0x10096fc]
call fcn.01003138
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1003657
push esi
call fcn.01003e2b
call fcn.01003e4d
jmp 0x1003689
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01003797
ret
Function at 0x1003e6b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, dword [eax*8 + 0x1009050]
je 0x1003e83
inc eax
cmp eax, 0x12
jb 0x1003e74
push esi
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1009050]
mov dword [ebp + 8], esi
jne 0x1003fc9
mov eax, dword [0x10096d8]
cmp eax, 1
push ebx
je 0x1003f99
test eax, eax
jne 0x1003eb8
cmp dword [0x1009048], 1
je 0x1003f99
cmp ecx, 0xfc
je 0x1003fc8
push edi
push 6
pop ecx
mov esi, 0x1001810
mov edi, 0x1009730
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x100974a
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x100984e], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1003f06
push 5
pop ecx
mov esi, 0x10017f8
mov edi, 0x100974a
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003f0b
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1003f3e
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003f1f
sub eax, edx
push 3
lea eax, [eax + 0x100970f]
push 0x10017f4
push eax
call fcn.01006790
add esp, 0xc
mov edx, 0x1009730
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1003f46
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1009054]
mov esi, 0x10017f0
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003f61
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1003f6d
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x10017c8
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01006696
add esp, 0xc
pop edi
jmp 0x1003fc8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1003fc8
mov esi, dword [esi + 0x1009054]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x1003fb0
push 0
sub ecx, edx
lea edx, [ebp - 4]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x1005123
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x1005151
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x1005158
cmp ebx, dword [eax + 4]
jae 0x1005158
xor eax, eax
jmp 0x1005348
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x1005169
xor eax, eax
inc eax
jmp 0x1005347
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x100517f
cmp ecx, edx
jae 0x10052c4
cmp dword [eax + 4], 0
je 0x1005188
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x1005170
cmp dword [ebp + 8], 0
je 0x10051aa
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x10052c4
cmp eax, esi
jae 0x10052c4
mov eax, dword [0x1009b68]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x10051cf
cmp dword [esi*4 + 0x1009b70], edi
je 0x10052c8
inc esi
cmp esi, eax
jl 0x10051bd
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1005344
cmp dword [ebp - 8], 0x1000000
jne 0x1005344
test byte [ebp - 0xc], 0xcc
je 0x100524d
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x1005344
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1005344
cmp word [eax + 0x18], 0x10b
jne 0x1005344
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x1005344
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x100524d
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x100524d
test byte [ecx + 0x27], 0x80
jne 0x10052c4
push 1
push 0x1009bb0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x1005161
mov ecx, dword [0x1009b68]
test ecx, ecx
mov edx, ecx
jle 0x1005281
lea eax, [ecx*4 + 0x1009b6c]
cmp dword [eax], edi
je 0x1005281
dec edx
sub eax, 4
test edx, edx
jg 0x1005275
test edx, edx
jne 0x10052b2
push 0xf
pop ebx
cmp ecx, ebx
jg 0x100528e
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x10052a6
lea eax, [edx*4 + 0x1009b70]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x1005294
cmp ecx, 0x10
jge 0x10052b2
inc ecx
mov dword [0x1009b68], ecx
push 0
push 0x1009bb0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x1005161
xor eax, eax
jmp 0x1005347
test esi, esi
jle 0x1005161
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x1009bb0
call ebx
test eax, eax
jne 0x1005161
cmp dword [esi*4 + 0x1009b70], edi
je 0x100531e
mov eax, dword [0x1009b68]
lea esi, [eax - 1]
test esi, esi
jl 0x100530c
cmp dword [esi*4 + 0x1009b70], edi
je 0x1005308
dec esi
jns 0x10052fc
test esi, esi
jge 0x100531c
cmp eax, 0x10
jge 0x1005317
inc eax
mov dword [0x1009b68], eax
lea esi, [eax - 1]
jmp 0x100531e
je 0x1005336
xor ecx, ecx
test esi, esi
jl 0x1005336
lea eax, [ecx*4 + 0x1009b70]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x1005324
push 0
push 0x1009bb0
call ebx
jmp 0x1005161
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10061ec
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.01003b20
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1006287
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x10096e8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x1006287
cmp eax, 1
je 0x10062a8
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1006287
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x1006254
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x1006283
xor eax, eax
inc eax
jmp 0x10062c7
cmp edi, eax
jae 0x100628b
xor eax, eax
jmp 0x10062c7
cmp eax, esi
jae 0x1006292
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10096e8]
jmp 0x10062ab
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1006696
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1009be8], ebx
push esi
push edi
jne 0x1006716
push 0x1001e60
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1006751
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001e54
push edi
call esi
test eax, eax
mov dword [0x1009be8], eax
je 0x1006751
push 0x1001e44
push edi
call esi
push 0x1001e30
push edi
mov dword [0x1009bec], eax
call esi
cmp dword [0x10096e8], 2
mov dword [0x1009bf0], eax
jne 0x1006716
push 0x1001e14
push edi
call esi
test eax, eax
mov dword [0x1009bf8], eax
je 0x1006716
push 0x1001dfc
push edi
call esi
mov dword [0x1009bf4], eax
mov eax, dword [0x1009bf4]
test eax, eax
je 0x100675b
call eax
test eax, eax
je 0x1006742
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1009bf8]
test eax, eax
je 0x1006742
test byte [ebp - 8], 1
jne 0x100675b
cmp dword [0x10096f4], 4
jb 0x1006755
or byte [ebp + 0x12], 0x20
jmp 0x100677a
xor eax, eax
jmp 0x100678a
or byte [ebp + 0x12], 4
jmp 0x100677a
mov eax, dword [0x1009bec]
test eax, eax
je 0x100677a
call eax
mov ebx, eax
test ebx, ebx
je 0x100677a
mov eax, dword [0x1009bf0]
test eax, eax
je 0x100677a
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1009be8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10078c9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x100b3a8]
push ebx
push esi
push edi
jae 0x1007a4e
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x100b3c0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x14], ebx
je 0x1007a4e
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
jne 0x100791d
xor eax, eax
jmp 0x1007a62
test al, 0x20
je 0x100792e
push 2
push edi
push edi
push ecx
call fcn.01007cf6
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x10079ea
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp + 8], edi
jbe 0x1007a22
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x418]
cmp ecx, dword [ebp + 0x10]
jae 0x1007984
mov edx, dword [ebp - 4]
inc dword [ebp - 4]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1007975
inc dword [ebp - 0x10]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x14]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x100795a
mov edi, eax
lea eax, [ebp - 0x418]
sub edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x418]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10079c4
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
cmp eax, edi
jl 0x10079cd
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x100794e
jmp 0x10079cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x1007a49
cmp dword [ebp + 8], edi
je 0x1007a22
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x1007a17
mov dword [0x10096e0], eax
jmp 0x1007a55
push edi
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1007a0c
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], edi
mov dword [ebp - 8], eax
jmp 0x10079cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x10079cf
push dword [ebp + 8]
call fcn.01007be1
pop ecx
jmp 0x1007a5f
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1007a37
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x1007916
mov dword [0x10096dc], 0x1c
mov dword [0x10096e0], edi
jmp 0x1007a5f
sub eax, dword [ebp - 0x10]
jmp 0x1007a62
and dword [0x10096e0], 0
mov dword [0x10096dc], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x501cf0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502328
push 0x501ef0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x503424], 0xffffffff
mov dword [0x503428], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x503420]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x50341c]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x50342c], ecx
call fcn.00501ee0
mov eax, dword [0x503154]
test eax, eax
jne 0x501d81
push 0x501ed0
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00501eb0
push 0x50300c
push 0x503008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x503418]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x503414]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x503004
push 0x503000
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x501e8f
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x501df5
cmp al, 0x22
jne 0x501de7
cmp byte [esi], 0x22
jne 0x501dfe
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x501e0e
cmp al, 0x20
ja 0x501e0e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x501dfe
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x501e2f
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x501e34
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x501e74
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x501dfe
inc esi
mov dword [ebp - 0x74], esi
jmp 0x501e8f
Function at 0x10001750
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x10001770
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x10001786
push 0x80004005
call fcn.10001140
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov ecx, dword [esp + 0xc]
mov edx, dword [edi]
add eax, 1
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc

Function at 0x100017b0
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x100017c8
push 0x80004005
call fcn.10001140
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
add esi, eax
add edi, eax
cmp eax, 1
jne 0x100017d5
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x10002bc0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x101608ab
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x101b7324]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b7324]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x140]
xor esi, esi
mov ebp, ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x138], esi
mov eax, dword [ebp]
lea ecx, [esp + 0x1c]
push ecx
push 0x2001f
push esi
push ebx
push eax
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
cmp edi, esi
jne 0x10002cf2
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, esi
je 0x10002c4e
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], esi
cmp eax, esi
mov ecx, dword [esp + 0x1c]
mov edi, eax
mov dword [esp + 0x14], ecx
jne 0x10002cf2
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea edx, [esp + 0x24]
push edx
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x40]
push edx
push esi
push ecx
mov dword [esp + 0x38], 0x100
call edi
test eax, eax
jne 0x10002cd2
jmp 0x10002c90
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.10002bc0
mov ebx, eax
cmp ebx, esi
jne 0x10002d3c
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x18]
push esi
push esi
push esi
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x40]
push eax
push esi
push ecx
mov dword [esp + 0x38], 0x100
call edi
test eax, eax
je 0x10002c90
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x10002ce5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], esi
mov edx, dword [ebp]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edi, eax
mov dword [esp + 0x138], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x10002d10
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], esi
mov eax, edi
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.100ffa66
add esp, 0x128
ret 4
mov dword [esp + 0x138], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x10002d5a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], esi
mov eax, ebx
jmp 0x10002d12
Function at 0x100086d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x20
push 0x1016b4fc
mov eax, dword [ebp + 8]
push eax
call fcn.101011d9
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100086f9
xor al, al
jmp 0x10008781
push 2
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.10101154
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
call fcn.1010105f
add esp, 4
mov dword [ebp - 4], eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.10101154
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call fcn.100ff4c8
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1000874d
mov edx, dword [ebp - 8]
push edx
call fcn.10100b94
add esp, 4
xor al, al
jmp 0x10008781
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp - 0xc]
push edx
call fcn.10100eac
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.10100b94
add esp, 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov al, 1
mov esp, ebp
pop ebp
ret