joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406730
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x4344d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x43546c]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24c], ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4351b0]
cmp eax, dword [ecx + 4]
jg 0x4068f7
cmp dword [0x4344a8], 0
jne 0x4068da
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call fcn.00407510
test al, al
jne 0x4067e9
push esi
lea eax, [ebp - 0x1c]
push str._05d
push eax
call fcn.00401250
mov esi, eax
add esp, 0xc
cmp esi, 0x434498
je 0x4068d1
mov ecx, dword [0x4344ac]
cmp ecx, 0x10
jb 0x40688e
mov edx, dword [0x434498]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406884
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40692d
jmp 0x406884
push edi
push 0
push 2
mov dword [ebp - 0x24c], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov edi, eax
lea eax, [ebp - 0x244]
push 0
push eax
call fcn.00410a60
add esp, 0xc
mov dword [ebp - 0x248], 0x22c
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x406857
cmp dword [ebp - 0x240], esi
je 0x40684b
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406830
jmp 0x406857
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x24c], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp - 0x24c]
lea eax, [ebp - 0x1c]
push str._05d__05d
push eax
call fcn.00401250
add esp, 0x10
mov esi, eax
cmp esi, 0x434498
pop edi
jmp 0x4067a6
push ecx
push edx
call fcn.0040ee6f
add esp, 8
mov dword [0x4344a8], 0
mov dword [0x4344ac], 0xf
mov byte [0x434498], 0
movups xmm0, xmmword [esi]
movups xmmword [0x434498], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x4344a8], xmm0
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov dword [esi + 0x14], 0xf
lea ecx, [ebp - 0x1c]
call fcn.004014b0
pop esi
push 0x434498
mov ecx, ebx
call fcn.00402770
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040ee7d
mov esp, ebp
pop ebp
ret
push 0x4351b0
call fcn.0040f150
add esp, 4
cmp dword [0x4351b0], 0xffffffff
jne 0x40676d
push 0x4280f0
call fcn.0040f0ea
push 0x4351b0
call fcn.0040f0ff
add esp, 8
jmp 0x40676d
call fcn.0041228f
int3
Function at 0x406940
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427326
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4344d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x24c], esi
call fcn.00410a60
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push 0x7e
push eax
call fcn.00410760
lea ecx, [ebp - 0x218]
add esp, 8
mov edx, eax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4069c5
sub ecx, edi
mov dword [ebp - 0x220], 0
sar ecx, 1
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x230]
movups xmmword [ebp - 0x230], xmm0
push eax
test edx, edx
je 0x406abe
call fcn.00401f10
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040bba0
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00406f50
mov ecx, dword [ebp - 0x234]
add esp, 0x10
cmp ecx, 0x10
jb 0x406a6f
mov edx, dword [ebp - 0x248]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406a65
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406b03
push ecx
push edx
call fcn.0040ee6f
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x406ae6
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406adc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406b03
jmp 0x406adc
call fcn.00401f10
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 2
push eax
push esi
call fcn.0040bba0
add esp, 8
jmp 0x406a8a
push ecx
push edx
call fcn.0040ee6f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ee7d
mov esp, ebp
pop ebp
ret
call fcn.0041228f
int3
Function at 0x40e790
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0040e76c
pop esi
leave
ret 8

Function at 0x40f8d1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40f910
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40f910
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f910
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40f910
cmp dword [ecx + 0x74], 0xe
jbe 0x40f910
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41aa1b
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a99d
Function at 0x41d261
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x435b48]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41d2a1
cmp byte [ebx], 0xa
jne 0x41d2a1
or byte [eax + edi + 0x28], 4
jmp 0x41d2a6
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41d3a4
mov al, byte [edx]
cmp al, 0x1a
je 0x41d386
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41d2d5
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41d2fa
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41d304
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41d2b7
jmp 0x41d3a4
push 0
lea eax, [ebp - 0xc]
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 0x41d381
cmp dword [ebp - 0xc], 0
je 0x41d381
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x435b48]
test byte [eax + edi + 0x28], 0x48
je 0x41d35b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41d346
mov byte [esi], dl
jmp 0x41d357
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x435b48]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41d3a4
cmp byte [ebp - 1], 0xa
jne 0x41d36a
cmp esi, ebx
jne 0x41d36a
mov byte [esi], 0xa
jmp 0x41d3a3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041dcaf
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41d3a4
mov byte [esi], 0xd
jmp 0x41d3a3
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x435b48]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d3a0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d3a4
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41d3ad
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x435b48]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41d3f0
cmp word [esi], dx
jne 0x41d3f0
or byte [edi + eax + 0x28], 4
jmp 0x41d3f5
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41d548
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41d528
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41d437
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41d46d
cmp eax, edx
jae 0x41d479
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41d40f
jmp 0x41d548
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d524
cmp dword [ebp - 0x14], 0
je 0x41d524
mov eax, dword [ebx*4 + 0x435b48]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41d4fc
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41d4c5
mov word [esi], cx
jmp 0x41d4f8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x435b48]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x435b48]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x435b48]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41d548
pop ebx
cmp word [ebp - 4], bx
jne 0x41d50d
cmp esi, dword [ebp + 0xc]
jne 0x41d50d
mov word [esi], bx
jmp 0x41d545
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041dcaf
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41d548
push 0xd
jmp 0x41d541
mov ecx, dword [ebx*4 + 0x435b48]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d53f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d548
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41f060
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d318
push 0x42d310
push str.FlsAlloc
push 0x1e
call fcn.0041eefe
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41f094
push dword [ebp + 8]
mov ecx, esi
call dword [0x4291e8]
call esi
jmp 0x41f09a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41f0de
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d328
push 0x42d320
push str.FlsGetValue
push 0x20
call fcn.0041eefe
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41f115
push dword [ebp + 8]
mov ecx, esi
call dword [0x4291e8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x42051d
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 0x4205ba
push ebx
push esi
call fcn.004204e6
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.0041ecfa
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x420567
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4205b9
push edi
push eax
call fcn.0041b2cd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x420587
call fcn.0041b293
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4205b8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041ecfa
add esp, 0x20
test eax, eax
jne 0x4205a6
push edi
call fcn.0041b293
jmp 0x4205ae
push ebx
call fcn.0041b293
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 0x4252b5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00425231
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42542d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42542d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4253dc
jg 0x42530e
test eax, eax
je 0x4253d2
push 1
push 0x1000
call fcn.0041f417
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x425334
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4253c9
push 0x8000
push ebx
call fcn.0041899d
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x425360
jg 0x42535b
cmp ecx, 0x1000
jb 0x425360
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041e5fa
add esp, 0x10
cmp eax, 0xffffffff
je 0x4253a5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x42535b
jl 0x42538c
test ecx, ecx
jne 0x42534d
push dword [ebp - 0xc]
push ebx
call fcn.0041899d
push esi
call fcn.0041b293
add esp, 0xc
xor edi, edi
jmp 0x42543e
cmp byte [edi + 0x24], 0
je 0x4253bc
cmp dword [edi + 0x20], 5
jne 0x4253bc
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4253c7
mov edi, dword [edi + 0x18]
jmp 0x4253c9
xor edi, edi
push esi
call fcn.0041b293
pop ecx
jmp 0x42543e
test ecx, ecx
jg 0x42539e
jl 0x4253dc
test eax, eax
jae 0x42539e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041dcaf
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4253ff
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42539e
jmp 0x425436
push ebx
call fcn.00420987
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42539e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x42543e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42543b
mov edi, dword [edi + 0x18]
jmp 0x42543e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041dcaf
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x426800
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42682d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42682d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10002997
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
push edi
sub eax, 0
je 0x100029ef
sub eax, 1
jne 0x100029f6
call fcn.100027bf
test eax, eax
js 0x100029eb
mov eax, dword [ebp + 8]
mov esi, 0x104
push esi
mov edi, 0x100114e0
mov dword [0x100114d0], eax
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100029eb
add eax, 2
cmp eax, esi
ja 0x100029eb
push 0x10001a14
push esi
push edi
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_wcscat_s]
add esp, 0xc
jmp 0x100029f6
xor eax, eax
jmp 0x10002a0f
and dword [0x100114d0], 0
cmp dword [0x100114d8], 0
je 0x10002a0c
push dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
call fcn.10002c37
jmp 0x10002a0f
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10003860
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1000386d
sub esi, edi
sar esi, 1
lea eax, [esi*2 + 2]
push eax
push dword [ebp + 8]
push 1
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
pop edi
pop esi
test eax, eax
jle 0x1000389f
movzx eax, ax
or eax, 0x80070000
pop ebp
ret 4
Function at 0x10005a29
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100110e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov esi, 0x208
push edi
mov edi, 0x800
test bl, 2
je 0x10005aeb
cmp dword [0x100117c4], 0
jne 0x10005aeb
call dword [sym.imp.ntdll.dll_RtlGetNtSystemRoot]
push eax
push 0x10001c98
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.10005651
add esp, 0x10
lea eax, [ebp - 0x20c]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x100117c4], eax
test eax, eax
je 0x10005aeb
push 0x10001cc8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10001cdc
push dword [0x100117c4]
mov dword [0x100116fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10001cf0
push dword [0x100117c4]
mov dword [0x100116f8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10001d0c
push dword [0x100117c4]
mov dword [0x100116f4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100116f0], eax
test bl, 1
je 0x10005b8f
cmp dword [0x100117c8], 0
jne 0x10005b8f
call dword [sym.imp.ntdll.dll_RtlGetNtSystemRoot]
push eax
push 0x10001d28
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.10005651
add esp, 0x10
lea eax, [ebp - 0x20c]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x100117c8], eax
test eax, eax
je 0x10005ba0
push 0x10001d5c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100116ec], eax
test eax, eax
je 0x10005ba0
push 0x10001d74
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
push 0x10001da0
mov word [0x100117c0], ax
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
push 0x10001dcc
mov word [0x100117bc], ax
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
push 0x10001dfc
mov word [0x100117b8], ax
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov word [0x100117b4], ax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000efb0
leave
ret
mov eax, 0x80004005
jmp 0x10005b91
Function at 0x1000c5c0
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x100110e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x20], 0x5711
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov cx, word [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], ax
mov ax, word [edx + 0x2c]
mov word [ebp - 0x10], ax
mov ax, word [edx + 0x28]
mov word [ebp - 0x12], ax
mov eax, 0x5a0
push esi
mov word [ebp - 0xe], ax
mov esi, ebx
push edi
mov dword [ebp - 0x2c], edx
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x24], 0x9ac6cdd7
xor cx, word [eax]
lea edi, [ebp - 8]
add eax, 2
cmp eax, edi
jb 0x1000c61f
mov eax, dword [edx + 0x24]
push ebx
push ebx
push eax
mov word [ebp - 8], cx
mov dword [ebp - 0x20], eax
call dword [sym.imp.GDI32.dll_GetMetaFileBitsEx]
mov edi, eax
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1000c6e5
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
push edi
push dword [ebp - 0x20]
call dword [sym.imp.GDI32.dll_GetMetaFileBitsEx]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 0x1c]
push 0
push 4
mov eax, dword [ecx]
mov esi, dword [eax + 0x10]
lea eax, [ebp - 0x24]
push eax
push ecx
mov ecx, esi
call dword [0x100122bc]
call esi
mov esi, eax
test esi, esi
js 0x1000c6d6
mov ecx, dword [ebp - 0x1c]
push 0
push 0x12
mov eax, dword [ecx]
mov esi, dword [eax + 0x10]
lea eax, [ebp - 0x18]
push eax
push ecx
mov ecx, esi
call dword [0x100122bc]
call esi
mov esi, eax
test esi, esi
js 0x1000c6d6
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp - 0x1c]
mov edx, eax
push edi
call fcn.100091f7
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x1000c6d6
lea eax, [edi + 0x16]
mov dword [ecx], eax
mov edx, edi
mov ecx, ebx
call fcn.1000a080
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x24], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000efb0
leave
ret 4

Function at 0x1000f0c8
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x1000f105
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x1000f0fe
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x1000f10a
add edx, 0x28
cmp edx, esi
jne 0x1000f0ef
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x1000f107
Function at 0x10019241
Capabilities:
Encode data using xor

Disassembly:
call 0x100191ba
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x100191ea
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x10019206
xor edx, 0
jmp 0x10019211
xor edx, edx
jmp 0x10019228
jmp 0x10019234
xor eax, eax
push 0x8427d7c0
call 0x10019241
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x1001927d
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x10019256
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x10019294
add eax, 0
jno 0x10019299
add esi, 0
ret 0x10

Function at 0x1001a002
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x1001a024
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x1001a1c6
cmp edi, dword [ebp + 0x10]
jb 0x1001a1c6
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.10019aee
inc edi
jmp 0x1001a0ad
jmp 0x1001a0ba
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.10019aee
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.10019aee
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x1001a10e
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x1001a0f2
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.1001a13c
add dword [eax], 0x39
jle 0x1001a118
sub al, 0xf5
mov ch, al
call fcn.1001a151
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10