joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f993
Capabilities:
Parse pe header

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

Function at 0x432150
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43217d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43217d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x6b766fd7
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x77516c36
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x100047d0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1000482d
call 0x10030e93
test eax, eax
jne 0x10004837
mov eax, dword [0x10025cec]
test eax, eax
je 0x100047fd
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1000482d
push 8
push 0
push 0x10026880
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea eax, [ebp - 4]
push eax
push 0
push 1
push 0x100101b0
push 0
push 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x14
push 8
push dword [0x10025d00]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10004875
xor ecx, ecx
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov word [eax + 0xc], cx
cmp dword [0x10025cf0], ecx
jne 0x10004885
push eax
push ecx
push dword [0x10025d00]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 4
mov dword [esi], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10005930
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edi, dword [esi + 0x138]
test edi, edi
je 0x1000594c
movzx eax, word [edi + 6]
jmp 0x1000594e
xor eax, eax
mov ecx, dword [ebp + 8]
movzx eax, ax
cmp ecx, eax
jle 0x10005983
mov edx, ecx
mov ecx, edi
call fcn.1000ff70
test eax, eax
jne 0x10005980
push eax
push eax
push 0x28
push eax
push eax
lea ecx, [esi + 8]
xor edx, edx
call fcn.1000a150
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x138]
test eax, eax
jne 0x10005991
xor esi, esi
jmp 0x10005994
mov esi, dword [eax + 8]
lea edi, [ebx + 0x24]
add esi, 0x10
lea ebx, [ebx]
dec ecx
mov ebx, edi
mov dword [ebp + 8], ecx
mov edx, 0x1f
mov eax, esi
sub ebx, esi
nop
lea ecx, [edx + 0x7fffffdf]
test ecx, ecx
je 0x100059d1
mov cl, byte [ebx + eax - 0x24]
test cl, cl
je 0x100059cc
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x100059b0
jmp 0x100059d0
test edx, edx
jne 0x100059d1
dec eax
mov byte [eax], 0
movzx eax, word [edi - 4]
mov word [esi - 8], ax
mov eax, dword [edi]
mov ecx, dword [ebp + 8]
mov dword [esi - 4], eax
movzx eax, word [edi + 4]
mov word [esi + 0x20], ax
mov eax, dword [edi + 8]
mov dword [esi + 0x24], eax
movzx eax, word [edi + 0xc]
mov word [esi + 0x28], ax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x2c], eax
movzx eax, word [edi + 0x14]
mov word [esi + 0x30], ax
movzx eax, word [edi + 0x16]
mov word [esi + 0x32], ax
movzx eax, word [edi + 0x18]
mov word [esi + 0x34], ax
mov eax, dword [edi + 0x1c]
add edi, 0x44
mov dword [esi + 0x38], eax
sub esi, 0xffffff80
test ecx, ecx
jne 0x100059a0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x1000bf40
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10023f14]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x108]
mov esi, ecx
push eax
push 0x104
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1000bfd6
cmp eax, 0x104
ja 0x1000bfd6
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.msvcrt.dll__tempnam]
mov esi, eax
add esp, 8
test esi, esi
je 0x1000bfd6
push edi
push 0x1b6
push 0x8342
push esi
call dword [sym.imp.msvcrt.dll__open]
push esi
mov edi, eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 0x10
cmp edi, 0xffffffff
je 0x1000bfc3
push 0x10001e40
push edi
call dword [sym.imp.msvcrt.dll__fdopen]
add esp, 8
mov ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10022100
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.10022100
mov esp, ebp
pop ebp
ret

Function at 0x1000c8b0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, 1
mov word [ebp - 4], ax
mov ecx, dword [esi + 0x2a8]
test ecx, ecx
je 0x1000c921
lea eax, [edx - 1]
imul eax, dword [esi + 0x2b0]
push 0
push eax
push ecx
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1000c902
push dword [esi + 0x2a8]
lea eax, [ebp - 4]
push 1
push 2
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
jne 0x1000c921
push 0
push 0
push 0x27
push 0
push 0
lea ecx, [esi + 8]
xor edx, edx
call fcn.1000a150
add esp, 0x14
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000ca80
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
push 0
mov dword [ebp - 0x14], ebx
lea eax, [ebx - 1]
imul eax, dword [edi + 0x2b0]
push eax
push dword [edi + 0x2a8]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1000cc19
cmp dword [edi + 0x168], 1
jne 0x1000cac8
movzx esi, word [edi + 0x144]
jmp 0x1000cadd
mov eax, dword [edi + 0x138]
test eax, eax
je 0x1000cad8
movzx eax, word [eax + 6]
jmp 0x1000cada
xor eax, eax
movzx esi, ax
xor eax, eax
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], eax
jbe 0x1000cbf1
mov edi, edi
push dword [edi + 0x2a8]
lea ecx, [eax + eax]
mov eax, dword [edi + 0x148]
push 1
add eax, ecx
mov dword [ebp - 0x10], ecx
push 2
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
test eax, eax
je 0x1000cc19
xor edx, edx
mov ecx, edi
xor ebx, ebx
call fcn.10005400
xor ecx, ecx
cmp cx, si
jge 0x1000cbde
lea esi, [eax + 0x68]
cmp dword [edi + 0x168], 3
jne 0x1000cb8e
push dword [edi + 0x2a8]
mov eax, dword [esi - 4]
add eax, dword [ebp - 0x10]
push 1
push 2
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
test eax, eax
je 0x1000cc19
push dword [edi + 0x2a8]
lea eax, [ebp - 4]
push 1
push 2
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
test eax, eax
je 0x1000cc19
mov ecx, dword [esi]
test ecx, ecx
je 0x1000cb8e
mov edx, dword [ebp - 0x10]
mov ax, word [ebp - 4]
mov word [ecx + edx], ax
movzx eax, word [esi - 0x1c]
cmp ax, 8
je 0x1000cba7
cmp ax, 0x18
je 0x1000cba7
mov eax, dword [esi - 0x18]
test eax, eax
je 0x1000cbcd
jmp 0x1000cbac
mov eax, 8
push dword [edi + 0x2a8]
push 1
push eax
mov eax, dword [esi - 0x14]
imul eax, dword [ebp - 0xc]
add eax, dword [esi - 8]
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
test eax, eax
je 0x1000cc19
inc ebx
sub esi, 0xffffff80
cmp bx, word [ebp - 8]
jl 0x1000cb33
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, dword [ebp + 8]
jb 0x1000caf0
mov ebx, dword [ebp - 0x14]
mov dword [edi + 0x15c], eax
dec eax
add eax, ebx
mov dword [edi + 0x160], ebx
mov dword [edi + 0x164], eax
xor eax, eax
mov dword [edi + 0x154], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x27
push 0
push 0
lea ecx, [edi + 8]
xor edx, edx
call fcn.1000a150
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000cc40
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0xc], esi
cmp dword [esi + 0x15c], 0
lea edi, [esi + 0x168]
lea ebx, [esi + 0x2a8]
mov dword [ebp - 0x14], edi
je 0x1000ce0b
mov ecx, dword [ebx]
test ecx, ecx
jne 0x1000cc8f
push ebx
mov edx, edi
mov ecx, esi
call fcn.1000c970
movzx eax, ax
add esp, 4
test ax, ax
jne 0x1000ce0d
mov ecx, dword [ebx]
jmp 0x1000cc9e
mov eax, dword [esi + 0x164]
cmp eax, dword [ebx + 4]
jbe 0x1000ce0b
mov eax, dword [esi + 0x160]
dec eax
imul eax, dword [ebx + 8]
push 0
push eax
push ecx
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1000ce17
cmp dword [edi], 1
jne 0x1000cccf
movzx ecx, word [esi + 0x144]
mov dword [ebp - 0x10], ecx
jmp 0x1000cce7
mov eax, dword [esi + 0x138]
test eax, eax
je 0x1000ccdf
movzx eax, word [eax + 6]
jmp 0x1000cce1
xor eax, eax
movzx eax, ax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [esi + 0x15c], eax
jbe 0x1000cdfd
jmp 0x1000cd00
push dword [ebx]
lea ecx, [eax + eax]
mov eax, dword [esi + 0x148]
push 1
add eax, ecx
push 2
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x1000ce17
mov eax, dword [esi + 0x138]
xor edi, edi
test eax, eax
jne 0x1000cd33
xor esi, esi
jmp 0x1000cd36
mov esi, dword [eax + 8]
xor eax, eax
cmp ax, word [ebp - 0x10]
jge 0x1000cde7
add esi, 0x68
mov eax, dword [ebp - 0x14]
cmp dword [eax], 3
jne 0x1000cd9e
push dword [ebx]
mov eax, dword [esi - 4]
mov edx, dword [ebp - 8]
push 1
push 2
lea eax, [eax + edx*2]
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x1000ce14
mov eax, dword [esi]
test eax, eax
je 0x1000cd80
mov edx, dword [ebp - 8]
lea ecx, [edx + edx]
movzx eax, word [eax + ecx]
jmp 0x1000cd83
or eax, 0xffffffff
push dword [ebx]
mov word [ebp - 4], ax
lea eax, [ebp - 4]
push 1
push 2
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x1000ce14
movzx eax, word [esi - 0x1c]
cmp ax, 8
je 0x1000cdb7
cmp ax, 0x18
je 0x1000cdb7
mov eax, dword [esi - 0x18]
test eax, eax
je 0x1000cdd9
jmp 0x1000cdbc
mov eax, 8
push dword [ebx]
push 1
push eax
mov eax, dword [esi - 0x14]
imul eax, dword [ebp - 8]
add eax, dword [esi - 8]
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x1000ce14
inc edi
sub esi, 0xffffff80
cmp di, word [ebp - 0x10]
jl 0x1000cd45
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [esi + 0x15c]
jb 0x1000cd00
mov eax, dword [esi + 0x164]
cmp dword [ebx + 4], eax
jae 0x1000ce0b
mov dword [ebx + 4], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xc]
push 0
push 0
push 0x27
push 0
push 0
lea ecx, [esi + 8]
xor edx, edx
call fcn.1000a150
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000dd40
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
xor edi, edi
mov eax, dword [ebx + 0x138]
mov dword [ebp - 4], edi
test eax, eax
je 0x1000dd75
movzx edx, word [ebx + 0x144]
movsx esi, dx
shl esi, 7
add esi, dword [eax + 8]
mov ax, word [eax + 6]
sub ax, dx
jmp 0x1000dd81
mov ax, word [ebx + 0x144]
xor esi, esi
neg ax
movzx eax, ax
test ax, ax
je 0x1000dec9
lea ecx, [ecx]
dec eax
mov dword [ebp - 0x1c], eax
movzx eax, word [esi + 8]
cmp ax, 8
je 0x1000dda8
cmp ax, 0x18
jne 0x1000deba
cmp dword [esi + 0x7c], 0
jne 0x1000ddc3
mov ecx, 0x10001e6c
call fcn.1000bf40
mov dword [esi + 0x7c], eax
test eax, eax
je 0x1000deeb
test edi, edi
jne 0x1000dde6
push 0x10000
push edi
push dword [0x10025d00]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x1000df07
push 2
push 0
push dword [esi + 0x7c]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1000deeb
push dword [esi + 0x7c]
call dword [sym.imp.msvcrt.dll_ftell]
add esp, 4
mov dword [ebp - 0x18], eax
xor edx, edx
mov edi, 0x7fffffff
mov dword [ebp - 8], edx
jmp 0x1000de20
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0xc], 0xffff
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
cmp edi, 0xffff
jg 0x1000de3b
mov dword [ebp - 0xc], edi
movsx eax, word [esi + 0x44]
movzx ecx, word [esi]
push edx
lea edx, [ebp - 0x10]
push edx
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push ecx
push dword [ebx + 0x1c]
push 7
push 0x15
push dword [ebx]
call fcn.10010230
add esp, 0x28
test ax, ax
jne 0x1000df44
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 4]
jne 0x1000df28
mov eax, dword [ebp - 0x10]
test eax, eax
jle 0x1000dea9
push dword [esi + 0x7c]
push 1
push eax
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x1000deeb
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
sub edi, dword [ebp - 0x10]
jne 0x1000de20
jmp 0x1000deac
mov edx, dword [ebp - 8]
mov eax, dword [esi + 0x60]
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x1c]
sub esi, 0xffffff80
test ax, ax
jne 0x1000dd90
xor esi, esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x1000dee1
push eax
push 0
push dword [0x10025d00]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ax, si
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x27
push 0
push 0
lea ecx, [ebx + 8]
xor edx, edx
call fcn.1000a150
add esp, 0x14
or esi, 0xffffffff
jmp 0x1000decb
push 0
push 0
push 0x28
push 0
push 0
lea ecx, [ebx + 8]
xor edx, edx
call fcn.1000a150
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x55
push 0
push 0
lea ecx, [ebx + 8]
xor edx, edx
call fcn.1000a150
add esp, 0x14
or esi, 0xffffffff
jmp 0x1000decb
push dword [ebx]
mov edx, dword [ebx + 0x1c]
lea ecx, [ebx + 8]
call fcn.1000a260
add esp, 4
or esi, 0xffffffff
jmp 0x1000decb
Function at 0x10010a80
Capabilities:
Create thread

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov eax, dword [esi + 0x4e4]
test eax, eax
je 0x10010a98
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x10010ab0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x4e4], eax
test eax, eax
je 0x10010b1c
mov eax, dword [esi + 0x4e8]
test eax, eax
je 0x10010ac3
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x10010adb
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x4e8], eax
test eax, eax
je 0x10010b1c
cmp dword [esi + 0x4ec], 0
jne 0x10010b18
lea eax, [esi + 0x4f0]
push eax
push 0
push esi
push 0x10010650
push 0
push 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x4ec], eax
test eax, eax
je 0x10010b1c
push 0xffffffffffffffff
push dword [esi + 0x4e8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x4e4]
test eax, eax
je 0x10010b37
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x4e4], 0
mov eax, dword [esi + 0x4e8]
test eax, eax
je 0x10010b52
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x4e8], 0
or eax, 0xffffffff
pop esi
ret
Function at 0x10018220
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10023f14]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
movsx eax, dx
mov ebx, dword [esi + 0x2b4]
sub eax, 0
je 0x10018289
sub eax, 1
je 0x10018282
mov eax, dword [esi + 0x16c]
mov ecx, dword [esi + 0x2a4]
test al, 2
je 0x100183f7
or eax, 4
mov dword [esi + 0x16c], eax
test ecx, ecx
je 0x100183f7
mov eax, dword [esi + 0x2a0]
mov edx, 5
mov word [ecx + eax*2], dx
jmp 0x100183f7
or dword [esi + 0x16c], 4
mov ecx, dword [esi + 0x2a4]
mov edx, 4
inc dword [esi + 0x24]
test ecx, ecx
je 0x100182a5
mov eax, dword [esi + 0x2a0]
mov word [ecx + eax*2], dx
mov ecx, dword [ebx + 0x1c]
push 1
push 0
push 0xffffffffffffffff
mov eax, dword [ecx + 0x14]
push 0x100036f8
push ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0x18]
push 5
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x1c]
push 0x19
push dword [ebx]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0xc], eax
call fcn.10010230
add esp, 0x20
test eax, eax
jne 0x100183f7
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push eax
push 0xffffffffffffffff
push 0xb
push 0x10
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
push 0x10003710
push dword [ebx + 0x1c]
push 0xb
push 8
push dword [ebx]
call fcn.10010230
add esp, 0x38
test eax, eax
jne 0x100183f7
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push eax
push 0xffffffffffffffff
push 5
push 0x14
lea eax, [ebp - 0x2c]
push eax
push 0xffffffffffffffff
push 0x10003714
push dword [ebx + 0x1c]
push 0xb
push 8
push dword [ebx]
call fcn.10010230
add esp, 0x38
test eax, eax
jne 0x100183f7
push dword [ebx + 0x1c]
push 1
push 0x12
push dword [ebx]
call fcn.10010230
add esp, 0x10
test eax, eax
jne 0x100183f7
mov ecx, 4
push edi
lea edi, [esi + 0x2a8]
mov word [ebp - 0x30], cx
cmp dword [edi], eax
jne 0x10018385
push edi
lea edx, [esi + 0x168]
mov ecx, esi
call fcn.1000c970
add esp, 4
test ax, ax
jne 0x100183f6
push 2
push 0
push dword [edi]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x100183df
push dword [edi]
lea eax, [ebp - 0x30]
push 1
push 2
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x100183df
mov eax, dword [esi + 0x138]
test eax, eax
je 0x100183bc
mov eax, dword [eax + 8]
push dword [edi]
push 1
push dword [eax + 0x50]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x100183df
inc dword [esi + 0x298]
inc dword [edi + 4]
jmp 0x100183f6
push 0
push 0
push 0x27
push 0
push 0
lea ecx, [esi + 8]
xor edx, edx
call fcn.1000a150
add esp, 0x14
pop edi
lea edx, [ebx + 8]
lea ecx, [esi + 8]
call fcn.1000a0f0
mov ecx, edx
call fcn.1000a430
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10022100
mov esp, ebp
pop ebp
ret
Function at 0x1002198c
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x10023f14]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x110]
xor ebx, ebx
push eax
push 0x20019
push ebx
push 0x100041f0
push 0x80000000
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10021a6f
push edi
lea eax, [ebp - 0x114]
mov dword [ebp - 0x10c], 1
push eax
lea eax, [ebp - 0x108]
mov edi, 0x104
push eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x114], edi
push eax
push ebx
push ebx
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10021a5e
cmp dword [ebp - 0x10c], 2
mov byte [ebp - 5], bl
jne 0x10021a2f
push edi
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb ebx, ebx
inc ebx
jmp 0x10021a5e
lea ecx, [ebp - 0x108]
sub ecx, esi
lea eax, [edi + 0x7ffffefa]
test eax, eax
je 0x10021a55
mov al, byte [ecx + esi]
test al, al
je 0x10021a50
mov byte [esi], al
inc esi
sub edi, 1
jne 0x10021a37
test edi, edi
jne 0x10021a55
dec esi
mov byte [esi], bl
xor ebx, ebx
test edi, edi
setne bl
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
jmp 0x10021a71
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10022100
leave
ret

Function at 0x10022340
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1002237e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10022376
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10022380
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10022366
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10022460
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x10022491
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10022491
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x10022491
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x419180
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x496f33
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push 0xb
mov esi, ecx
xor ebx, ebx
push str.shieldGlowP
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.00403b80
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
mov dword [esp + 0x34], ebx
call dword [eax + 0x40]
cmp dword [esp + 0x24], 0x10
mov dword [esp + 0x30], 0xffffffff
jb 0x4191ea
mov edx, dword [esp + 0x10]
push edx
call fcn.0046256d
add esp, 4
push 0x130
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
call fcn.00461be1
add esp, 4
mov dword [esp + 8], eax
cmp eax, ebx
mov dword [esp + 0x30], 1
je 0x419222
push 1
mov ecx, eax
call fcn.00441b10
jmp 0x419224
xor eax, eax
mov edx, dword [esi]
push eax
mov ecx, esi
mov dword [esp + 0x34], 0xffffffff
mov dword [esi + 0x11c], eax
call dword [edx + 0xdc]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x1e
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x4a341c
mov byte [ecx + 4], bl
call fcn.00403b80
mov ecx, dword [esi + 0x11c]
call fcn.00441900
mov ecx, dword [esi + 0x11c]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x60]
mov ecx, dword [esi + 0x11c]
push esi
push ebx
call fcn.00441890
push 4
mov ecx, esi
call fcn.0043f340
mov ecx, dword [esp + 0x28]
mov byte [esi + 0x12c], 1
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret

Function at 0x419690
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x496f50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x4bd96c]
push ebx
push esi
mov dword [esp + 0x24], eax
mov esi, ecx
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.00403a90
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
mov byte [esp + 0x30], 1
jae 0x4196f0
lea eax, [esp + 0xc]
push ebx
push ebx
push ebx
push eax
mov ecx, esi
call fcn.00407650
cmp dword [esp + 0x20], 0x10
jb 0x41970f
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0046256d
add esp, 4
cmp dword [esp + 0x50], 0x10
pop esi
mov dword [esp + 0x18], ebx
mov byte [esp + 8], bl
mov dword [esp + 0x1c], 0xf
pop ebx
jb 0x419735
mov edx, dword [esp + 0x34]
push edx
call fcn.0046256d
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1c]
call fcn.00462751
add esp, 0x2c
ret 0x1c