joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10050e7b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1009d0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x1c]
push edi
and dword [ebx + 0x770], 0
mov edi, dword [ebp + 0x18]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x28], ecx
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x18], ebx
mov dword [ebx + 0x76c], ecx
mov dword [ebx + 0x774], eax
test ecx, ecx
jne 0x10050ee6
call fcn.10050c30
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
test esi, esi
je 0x10050ee6
call fcn.10050c30
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
call fcn.10050c30
mov edx, ebx
lea ecx, [ebx + 0x10]
neg edx
mov esi, dword [eax]
sbb edx, edx
and edx, ecx
mov ecx, eax
push edx
call dword [esi]
mov ecx, dword [ebx + 0x76c]
test ecx, ecx
je 0x10050f0e
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov edi, eax
mov ecx, edi
call fcn.10009bc3
lea ecx, [ebp - 0x14]
mov ebx, eax
call fcn.1000f397
push 0
sub esp, 0x10
mov esi, eax
mov edi, esp
push 0x88
movsd dword es:[edi], dword [esi]
push SysReAllocString
push 0
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x18]
mov ecx, esi
call fcn.1001032e
mov edi, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
jmp 0x10050f53
push edi
call ebx
mov edi, eax
push edi
call ebx
test eax, eax
jne 0x10050f4e
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10057fdd
leave
ret 0x1c

Function at 0x10056aa0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1009d0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x210], ebx
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push esi
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov edi, eax
cmp esi, 0x26
ja 0x10056b4b
je 0x10056af6
sub esi, 0x21
je 0x10056af6
sub esi, 1
je 0x10056af6
sub esi, 1
je 0x10056af6
sub esi, 1
je 0x10056af6
sub esi, 1
jne 0x10056afc
or edi, 0x100
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.1005aaf0
add esp, 0xc
shl edi, 0x10
lea eax, [ebp - 0x20c]
push 0x104
push eax
push edi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.1000f3e0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10057fdd
leave
ret 0xc
sub esi, 0x27
je 0x10056af6
sub esi, 1
je 0x10056af6
sub esi, 5
jmp 0x10056aef
Function at 0x10056ddd
Capabilities:
Hide graphical window

Disassembly:
push 0x98
mov eax, 0x10079f39
call fcn.10058b1f
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebx + 0x10], eax
test eax, eax
je 0x10056eed
lea eax, [ebp - 0xa4]
push eax
call fcn.100565f4
mov ecx, dword [ebx + 0x10]
lea esi, [ebp - 0xa4]
xor eax, eax
push eax
sub esp, 0x10
mov edi, esp
push eax
movsd dword es:[edi], dword [esi]
push 0x40000080
push eax
mov eax, dword [ecx]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.10009bc3
push eax
mov ecx, ebx
call fcn.1001032e
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10056eed
mov esi, dword [ebx + 0x10]
mov ecx, esi
call fcn.100094ee
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.10009786
push 1
push dword [eax]
push 0x30
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 0x10]
movzx eax, word [ecx + 0x7a6]
push eax
movzx eax, word [ecx + 0x7a4]
mov ecx, ebx
push eax
call fcn.10057339
lea eax, [ebp - 0x94]
mov ecx, ebx
push eax
call fcn.100568f4
mov ecx, dword [ebx + 0x10]
and dword [ebp - 4], 0
add ecx, 0x1cc
push eax
call fcn.1000f55f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.1000f4e2
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10c]
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [ebx + 0x18], 1
call fcn.10058add
ret 4
Function at 0x1006859d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10058cc0
mov eax, dword [0x1009d0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1006baa4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100685df
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1006873b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10058d60
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x1009fc70]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1006de8f
mov ecx, dword [esi*4 + 0x1009fc70]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10068734
cmp eax, dword [ecx + edi + 0x24]
jne 0x10068734
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10068734
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1006de8f
add esp, 0x14
test edx, edx
jl 0x10068734
jg 0x100686aa
test eax, eax
jb 0x10068734
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10068734
jl 0x100686c4
cmp dword [ebp - 0x1008], eax
ja 0x10068734
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100686e2
test ebx, ebx
je 0x1006871b
cmp ecx, edi
jae 0x1006871b
mov al, byte [ecx]
cmp al, 0xd
jne 0x100686fc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10068708
cmp byte [ecx + 1], 0xa
jne 0x10068708
inc ecx
jmp 0x10068708
movzx eax, al
movsx eax, byte [eax + 0x1009d2d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100686e2
cmp edx, ebx
jne 0x100686e2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10068739
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10057fdd
leave
ret

Function at 0x10068e46
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1008c5e4
push 0x1008c5dc
push str.FlsAlloc
push 0x1f
call fcn.1006c0db
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1006c233
push dword [ebp + 8]
mov ecx, esi
call dword [0x1007b5b8]
call esi
jmp 0x1006c239
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1006c27d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1008c5f4
push 0x1008c5ec
push str.FlsGetValue
push 0x21
call fcn.1006c0db
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1006c2b4
push dword [ebp + 8]
mov ecx, esi
call dword [0x1007b5b8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1006c2bc
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1008c5fc
push 0x1008c5f4
push str.FlsSetValue
push 0x22
call fcn.1006c0db
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1006c2f6
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1007b5b8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1006d18d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1009fc70]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1006d1cd
cmp byte [ebx], 0xa
jne 0x1006d1cd
or byte [edi + eax + 0x28], 4
jmp 0x1006d1d2
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1006d2d1
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1006d2b4
inc eax
cmp dl, 0xd
je 0x1006d1fe
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1006d224
cmp eax, ecx
jae 0x1006d232
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1006d1e6
jmp 0x1006d2d1
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006d2af
cmp dword [ebp - 0x10], 0
je 0x1006d2af
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1009fc70]
test byte [eax + edi + 0x28], 0x48
je 0x1006d289
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1006d274
mov byte [esi], dl
jmp 0x1006d285
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1009fc70]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1006d2d1
cmp byte [ebp - 1], 0xa
jne 0x1006d298
cmp esi, ebx
jne 0x1006d298
mov byte [esi], 0xa
jmp 0x1006d2d0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1006dead
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1006d2d1
mov byte [esi], 0xd
jmp 0x1006d2d0
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1009fc70]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1006d2ce
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1006d2d1
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1006d2da
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1009fc70]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1006d320
cmp word [ebx], dx
jne 0x1006d320
or byte [eax + edi + 0x28], 4
jmp 0x1006d325
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1006d488
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1006d468
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1006d366
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1006d39c
cmp eax, edx
jae 0x1006d3aa
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1006d341
jmp 0x1006d488
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006d463
cmp dword [ebp - 0x18], 0
je 0x1006d463
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1009fc70]
test byte [eax + edi + 0x28], 0x48
je 0x1006d439
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1006d3fd
mov word [esi], cx
jmp 0x1006d434
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1009fc70]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1009fc70]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1009fc70]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1006d488
pop eax
cmp word [ebp - 4], ax
jne 0x1006d449
cmp esi, ebx
jne 0x1006d449
mov word [esi], ax
jmp 0x1006d485
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1006dead
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1006d488
push 0xd
pop eax
jmp 0x1006d444
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1009fc70]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1006d482
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1006d488
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10070420
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100704bd
push ebx
push esi
call fcn.100703e9
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1007037d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1007046a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100704bc
push edi
push eax
call fcn.1006ac60
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1007048a
call fcn.1006ac26
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100704bb
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1007037d
add esp, 0x20
test eax, eax
jne 0x100704a9
push edi
call fcn.1006ac26
jmp 0x100704b1
push ebx
call fcn.1006ac26
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x100764f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1007651d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1007651d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1001844
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x1001240
push 0x80000000
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100198f
cmp dword [ebp - 8], 1
jne 0x100198f
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, 0x1001248
push ebx
call edi
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push esi
push esi
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x100198d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x1001258
push 0x80000000
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100198d
push 0x1001268
call edi
push eax
push 0x1001268
push 1
push esi
push esi
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x100198d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x1001274
push 0x80000000
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100198d
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.01001803
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10c]
push 0x1001298
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call edi
push eax
lea eax, [ebp - 0x10c]
push eax
push 1
push esi
push esi
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x100198d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], esi
pop edi
pop ebx
cmp dword [ebp - 4], esi
pop esi
je 0x100199e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x100238c
Capabilities:
Check if file exists
Get file attributes
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
je 0x1002437
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x10013f8
push 0x80000002
mov byte [esi], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002429
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x10013f7
push dword [ebp - 4]
mov dword [ebp + 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002429
cmp dword [ebp - 8], 2
lea eax, [ebp - 0x10c]
jne 0x100240f
push dword [ebp + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov dword [ebp + 8], eax
jmp 0x1002429
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1002429
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 4], ebx
je 0x1002437
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
leave
ret 8
Function at 0x1003c25
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], ebx
je 0x1003ce4
cmp dword [ebp + 0x10], ebx
je 0x1003ce4
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x1003c68
mov dword [ebp - 4], 0x80040116
jmp 0x1003cd8
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1003c81
mov dword [ebp - 4], 0x80040116
jmp 0x1003cd0
push edi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
jne 0x1003c9a
mov dword [ebp - 4], 0x8007000e
jmp 0x1003ccf
push ebx
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1003cb7
mov dword [ebp - 4], 0x80040116
jmp 0x1003ccf
cmp esi, dword [ebp - 8]
je 0x1003cc5
mov dword [ebp - 4], 0x80004005
jmp 0x1003ccf
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
pop edi
mov eax, dword [ebp + 8]
cmp eax, ebx
pop esi
je 0x1003cdf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x1003ce9
mov eax, 0x80070057
pop ebx
leave
ret 0xc
Function at 0x4239f6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x423a05
pop dword [ebp - 0x38]
mov eax, 0x423a05
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x3c741
push 0
mov eax, 0x1099df39
sub eax, 0x10565f09
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0xa96b2e26
sub ecx, 0xa96adf06
mov esi, eax
mov edi, 0x8ca636d5
sub edi, 0x8c6170d5
add edi, dword [ebp - 0x38]
mov edx, 0x1cf49400
mov dword [ebp - 0x28], 0x5082cab
mov ebx, dword [edi]
mov dword [ebp - 0x18], 0xf4cf3bae
xor ebx, edx
xor dword [ebp - 0x28], 0xa5739cc2
mov dword [esi], ebx
add dword [ebp - 0x28], 0x3eede20f
add esi, 0xb6b510ea
sub esi, 0xb6b510e6
add edi, 0x58b9b011
add edi, 0xa7464ff3
loop 0x423a59
add eax, 0xd16d6a84
sub eax, 0xd16c3b31
mov ebx, eax
add eax, 0xbf4003b2
add eax, 0x40bffc53
mov ecx, 0xb02fe7d3
add ecx, 0x5010182d
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x4281f2
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x436de3
call fcn.004339e0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x43a908
mov dword [esi + 4], 0x43a8f4
mov dword [esi + 8], 0x438e70
mov dword [esi + 0xc], 0x43a8d8
mov dword [esi + 0x10], 0x43a8c4
mov dword [esi + 0x14], 0x43a8b4
mov dword [esi + 0x18], 0x438e60
mov dword [esi + 0x1c], 0x438e50
mov dword [esi + 0x20], 0x43a8ac
mov dword [esi + 0x24], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
or dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 4
call fcn.004028e9
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 5
call fcn.004028e9
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
or dword [esi + 0x9c], 0xffffffff
mov byte [ebp - 4], 7
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0xa0], ebx
mov byte [esi + 0xa4], bl
mov byte [esi + 0xa5], bl
mov byte [esi + 0xa6], bl
mov byte [esi + 0xa7], bl
mov byte [esi + 0xa8], bl
mov byte [esi + 0xa9], bl
mov byte [esi + 0xaa], bl
mov dword [esi + 0xac], ebx
mov dword [esi], 0x43a880
mov dword [esi + 4], 0x43a86c
mov dword [esi + 8], 0x43a854
mov dword [esi + 0xc], 0x43a838
mov dword [esi + 0x10], 0x43a824
mov dword [esi + 0x14], 0x43a814
mov dword [esi + 0x18], 0x43a804
mov dword [esi + 0x1c], 0x43a7f4
mov dword [esi + 0x20], 0x43a7ec
call fcn.0040d4f9
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x28], al
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret