joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40558b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.00403f50
lea eax, [ebp - 0x104]
push eax
call fcn.00403f3c
add esp, 0xc
lea edx, [ebp + eax - 0x104]
lea eax, [ebp - 0x104]
cmp edx, eax
jb 0x4055cb
cmp byte [edx], 0x5c
je 0x4055cb
dec edx
jmp 0x4055b9
cmp byte [ebp - 0x103], 0x3a
lea eax, [ebp - 0x104]
jne 0x4055e2
lea eax, [ebp - 0x100]
jmp 0x405626
cmp byte [ebp - 0x104], 0x5c
jne 0x405626
cmp byte [ebp - 0x103], 0x5c
jne 0x405626
mov cl, byte [ebp - 0x102]
lea eax, [ebp - 0x102]
test cl, cl
je 0x40560f
cmp cl, 0x5c
je 0x40560f
mov cl, byte [eax + 1]
inc eax
jmp 0x405600
cmp byte [eax], 0
je 0x405615
inc eax
mov cl, byte [eax]
test cl, cl
je 0x405620
cmp cl, 0x5c
jne 0x405614
cmp byte [eax], 0
je 0x405626
inc eax
cmp edx, eax
jb 0x40563a
and byte [edx], 0
lea eax, [ebp - 0x104]
push eax
call fcn.0040558b
pop ecx
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
leave
ret
Function at 0x405b2e
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405b83
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
lea eax, [ebp - 0xc]
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 1
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40288e
pop dword [ebp - 0x44]
mov eax, 0xca33c258
sub eax, 0xc9f399ca
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xb874bda9
sub dword [ebp - 0x54], 0x6a22785e
mov dword [ebp - 0x50], 0xbe0ba29b
sub dword [ebp - 0x50], 0x8bd85656
mov dword [ebp - 0x4c], 0xfda795d4
sub dword [ebp - 0x4c], 0xb15b51a6
mov dword [ebp - 0x48], 0xf71d34ed
add dword [ebp - 0x48], 0x8e2cb13
lea eax, [ebp - 0x54]
push eax
mov eax, 0xbd4a265
sub eax, 0xb943201
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xa94d45fd
add dword [ebp - 0x54], 0xcb252359
mov dword [ebp - 0x50], 0x655a5426
sub dword [ebp - 0x50], 0x23edf2b1
mov dword [ebp - 0x4c], 0xd7757cdd
add dword [ebp - 0x4c], 0x8bf9ef8f
mov dword [ebp - 0x48], 0xefb554e8
sub dword [ebp - 0x48], 0xefb554e8
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3b042
push 0
call eax
mov ecx, 0x59ae
xor edx, edx
add edx, eax
mov ebx, 0x410000
add ebx, dword [ebp - 0x44]
mov edi, 0xfad9c21d
mov esi, dword [ebx]
xor dword [ebp - 8], edx
xor esi, edi
xor dword [ebp - 0x34], 0x279b8d55
mov dword [edx], esi
sub dword [ebp - 0x1c], edi
add edx, 0xb53b8ff9
add edx, 0x4ac4700b
add ebx, 0x9811f8f1
add ebx, 0x67ee0713
loop 0x40299b
add eax, 0x1598b
xor ebx, ebx
add ebx, eax
add eax, 0x66c15eb9
add eax, 0x993ea14c
mov ecx, 0x9a92f5c8
add ecx, 0x65ad0a38
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x2ce547dd
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..rdata
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x18f77fa9
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x100055c2
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp ecx, 0
sete dl
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x15], dl
mov eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
sete dl
mov dh, byte [ebp - 0x15]
and dh, dl
test dh, 1
mov dword [ebp - 0x1c], eax
jne 0x10005650
mov dword [0x100224fc], 0xa8c
mov dword [0x100224f8], 0x25b1
mov ecx, dword fs:[0x18]
xor eax, eax
mov dword [0x100224f8], 0x1332
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0xc]
mov edx, ecx
add edx, 0x14
mov dword [0x100224f8], 0x20f
mov ecx, dword [ecx + 0x14]
cmp ecx, edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], eax
jne 0x10005675
mov eax, dword [ebp - 0x1c]
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [0x100224fc], 0x14b4
mov al, byte [ebp - 0x25]
test al, 1
jne 0x10005776
jmp 0x1000578b
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [ebp - 0x20]
mov byte [ebp - 0x26], cl
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov ecx, eax
add ecx, 0x24
mov edx, dword [eax + 0x28]
mov esi, dword [eax + 0x10]
mov edi, dword [ebp - 0x10]
cmp esi, edi
sete bl
mov bh, byte [ebp - 0x26]
and bh, bl
test bh, 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], esi
jne 0x100056ba
jmp 0x100056cd
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff8
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x1c], eax
jmp 0x10005650
mov eax, dword [ebp - 0x34]
mov cx, word [eax]
mov dword [0x100224f8], 0x2fd
shr cx, 1
mov word [ebp - 0x42], cx
xor eax, eax
mov cx, word [ebp - 0x42]
movzx edx, cx
cmp cx, 0
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], eax
je 0x1000578b
mov eax, dword [ebp - 0x4c]
mov ecx, eax
add ecx, 1
mov edx, dword [ebp - 0x38]
mov si, word [edx + eax*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ecx
mov word [ebp - 0x56], si
mov word [ebp - 0x58], bx
jb 0x1000573e
mov ax, word [ebp - 0x56]
mov word [ebp - 0x58], ax
mov ax, word [ebp - 0x58]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x50]
cmp word [ecx + edx*2], ax
sete bl
cmp ax, 0
setne bh
mov al, bl
and al, bh
mov esi, dword [ebp - 0x54]
mov edi, dword [ebp - 0x48]
cmp esi, edi
setb bh
and al, bh
test al, 1
mov byte [ebp - 0x25], bl
mov dword [ebp - 0x4c], esi
jne 0x100056ff
jmp 0x1000565b
mov dword [0x100224f8], 0xe97
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
jmp 0x10005650
xor eax, eax
mov ecx, dword [0x100224fc]
add ecx, 0x103f
mov dword [0x100224f8], ecx
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x24]
cmp edx, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], edx
je 0x10005650
jmp 0x10005689
Function at 0x1000591b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x10022500], 0
mov dword [0x10022504], 0
mov dword [0x1002250c], 0
mov dword [0x100224fc], 0x34e8
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x10005a58
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x100224f8], 0x44c
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x10022500], edx
mov ecx, dword [ebp - 0x20]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x10022504], edx
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x10022508], cl
mov dword [0x100224f8], 0xabc
mov edi, dword [ebp - 0x20]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x10022508]
mov edx, dword [0x10022504]
mov byte [edi + edx], cl
mov edx, dword [0x10022500]
movzx edx, byte [edi + edx]
mov ebx, dword [0x10022504]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x1002250c], ebx
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov cl, byte [edx + ecx]
xor cl, byte [edi + ebx]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
mov byte [ebx + edx], cl
add edx, 1
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
mov dword [ebp - 0x38], edx
je 0x10005a58
mov eax, dword [0x10022500]
mov ecx, dword [0x10022504]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], edx
jmp 0x1000597e
mov dword [0x100224f8], 0x11a
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10005ae2
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x2c
mov dword [ebp - 8], 0
mov dword [0x100224f8], 0x14c7
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov edx, dword [0x100224fc]
add edx, 0xffffdd43
mov dword [0x100224fc], edx
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
jmp 0x10005b8b
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff6
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2], 0x64
je 0x10005bdd
jmp 0x10005c29
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov dword [0x100224f8], ecx
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
je 0x10005bcc
jmp 0x10005c29
mov dword [0x100224f8], 0x26cc
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x10005b2b
jmp 0x10005c29
mov eax, dword [ebp - 0x14]
mov ecx, 0x26c5
mov edx, dword [ebp - 0x10]
cmp word [edx + eax*2], 0
mov esi, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], esi
je 0x10005b4d
mov eax, 0x109c
mov ecx, dword [ebp - 0x28]
add ecx, 1
cmp ecx, 0x104
mov edx, ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ecx
jl 0x10005b8b
jmp 0x10005b4d
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x10005b6d
jmp 0x10005c29
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x10005c29
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x10], 0x6c
sete dl
mov byte [ebp - 0x29], dl
mov al, byte [ebp - 0x29]
test al, 1
jne 0x10005c08
jmp 0x10005c29
mov eax, 1
mov dword [0x100224fc], 0x869
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x30], eax
je 0x10005c30
xor eax, eax
mov dword [ebp - 0x30], eax
jmp 0x10005c30
mov eax, dword [ebp - 0x30]
add esp, 0x2c
pop esi
pop ebp
ret
Function at 0x10005e83
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov dword [0x100224fc], 0xc22
mov dword [ebp - 0x10], eax
call fcn.100057ba
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x10005ec9
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x100224f8], 0x2260
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov dword [0x100224fc], 0x790
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x10005fed
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
jmp 0x10005f7b
xor eax, eax
mov ecx, dword [ebp - 0x3c]
add ecx, 2
mov edx, dword [ebp - 0x40]
add edx, 1
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
jb 0x10005f7b
jmp 0x10005fed
mov al, byte [ebp - 0x41]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x48]
add edx, 1
mov ah, byte [ebp - 0x49]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x50], edx
jne 0x10005f95
mov al, byte [ebp - 0x49]
test al, 1
jne 0x10005fc0
jmp 0x10005f20
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
mov ecx, eax
mov edx, dword [ebp - 0x54]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x41], bh
mov byte [ebp - 0x49], cl
je 0x10005f72
jmp 0x10005f49
mov eax, dword [ebp - 0x3c]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov dword [0x100224f8], 0xaf6
shl ecx, 2
add edx, ecx
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x58]
add eax, dword [ecx]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10005ff8
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov edi, dword [0x100224fc]
add edi, 0xffffe8a4
mov dword [0x100224f8], edi
mov dword [0x10022504], 0
mov dword [0x100224fc], 0x1ede
mov byte [0x10022508], 0
mov dword [0x10022500], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x10006062
mov dword [0x10022500], 0
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x10006094
mov eax, dword [ebp - 0x1c]
mov dword [0x100224f8], 0x2483
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x10022500]
add eax, 1
mov dword [0x10022500], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10006062
jmp 0x10006051
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov edx, dword [0x10022504]
mov dword [ebp - 0x24], eax
xor esi, esi
mov dword [ebp - 0x28], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x24]
movzx esi, byte [edi + ebx]
mov edi, dword [ebp - 0x28]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov eax, esi
cdq
idiv ecx
mov dword [0x10022504], edx
mov dword [0x100224f8], 0x2056
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + ebx]
mov byte [0x10022508], cl
mov esi, dword [ebp - 0x18]
mov cl, byte [esi + edx]
mov byte [esi + ebx], cl
mov edx, dword [0x100224f8]
add edx, 0x8ef
mov dword [0x100224f8], edx
mov cl, byte [0x10022508]
mov edx, dword [0x10022504]
mov byte [esi + edx], cl
mov edx, dword [0x10022500]
add edx, 1
mov dword [0x10022500], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x10006094
mov dword [0x100224f8], 0xbc6
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10006378
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov dword [0x100224f8], 0x21a9
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.100069d9
lea ecx, [0x100061dd]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x70], edx
mov dword [esp + 0x60], 0x13b200
mov edx, dword [0x100224e4]
mov dword [esp + 0x40], edx
mov edx, dword [0x100224e8]
mov dword [esp + 0x7c], edx
mov edx, dword [0x100224ec]
mov dword [esp + 0x88], edx
mov edx, dword [0x100224f0]
mov dword [esp + 0x74], edx
mov edx, dword [0x100224f4]
mov dword [esp + 0x6c], edx
mov dword [0x100224f8], 0x2343
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x10006418
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x14], ecx
je 0x10006443
jmp 0x10006427
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
je 0x10006402
mov eax, dword [esp + 0x18]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
jmp 0x10006418
mov eax, dword [esp + 0x18]
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x50], edx
call fcn.10005ae2
cmp eax, 0
sete bl
mov byte [esp + 0xf], bl
xor eax, eax
mov cl, byte [esp + 0xf]
test cl, 1
mov dword [esp + 8], eax
jne 0x10006479
jmp 0x100064bc
mov eax, dword [0x100224f8]
add eax, 0xfffff804
mov dword [0x100224fc], eax
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10006841
mov dword [0x100224f8], 0x928
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
lea esp, [ebp - 4]
pop ebx
pop ebp
ret
Function at 0x10006841
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 1
lea esi, [ebp - 0x24]
mov dword [0x100224f8], 0x26f
mov dword [0x100224fc], 0x318
mov byte [ebp - 0x24], 0x56
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edx
jmp 0x1000691b
mov eax, dword [ebp - 0x38]
add eax, 0x2413
mov ecx, dword [ebp - 0x3c]
mov dword [0x100224f8], eax
mov dword [ebp - 0x40], ecx
mov eax, esp
mov dword [eax + 0xc], 0x40
mov dword [eax + 8], 0x1000
mov dword [eax + 4], 0x6000
mov dword [eax], 0
mov eax, dword [ebp - 0x40]
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x44], eax
call fcn.10005d6a
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x10], ecx
mov dword [0x100224fc], 0xb0a
mov ecx, dword [ebp - 0x44]
mov dword [edx + 0x2c], ecx
mov dword [0x100224f8], 0x9cc
cmp ecx, 0
mov dword [ebp - 0x48], eax
je 0x100069a3
jmp 0x1000698e
mov eax, dword [ebp - 0x34]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x100074ec]
mov dh, byte [eax + 0x100074bd]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x34], ecx
jne 0x1000691b
mov dword [0x100224fc], 0xffffeaef
call fcn.100065c2
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call fcn.100066cb
xor ecx, ecx
mov edx, dword [0x100224f8]
mov esi, edx
add esi, 0x463
mov dword [0x100224f8], esi
cmp eax, 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x48], ecx
je 0x100069a3
jmp 0x1000687f
mov eax, dword [ebp - 0x44]
add eax, 0x14a3
mov dword [0x100224f8], 0x21f
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
add esp, 0x54
pop esi
pop ebp
ret
Function at 0x410039d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x410039e6
push 0x80004005
call fcn.410011f0
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push edi
push esi
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [ebp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x41003a4b
mov ecx, dword [edi]
test ecx, ecx
je 0x41003a46
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x41003a6e
cmp edx, 2
jbe 0x41003a51
cmp edx, 7
jne 0x41003a6e
test cl, 1
jne 0x41003a41
shr ecx, 1
cmp ecx, 1
jb 0x41003a41
cmp word [esi + ecx*2 - 2], 0
jne 0x41003a41
cmp ecx, 1
jbe 0x41003a4b
cmp word [esi + ecx*2 - 4], 0
je 0x41003a4b
mov eax, 0xd
xor ecx, ecx
mov word [esi], cx
pop edi
pop esi
pop ebp
ret 0xc
test cl, 1
jne 0x41003a60
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x41003a4b
xor edx, edx
pop edi
mov word [esi], dx
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc