joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407440
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448c06
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x461068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x2c8], ecx
push 0x200
lea eax, [ebp - 0x2c4]
mov bl, 1
push 0
push eax
call fcn.00427180
add esp, 0xc
lea eax, [ebp - 0x94]
push 0x80
push 0
push eax
call fcn.00427180
add esp, 0xc
lea eax, [ebp - 0x94]
push esi
push str._03d_part.bkd
push eax
call fcn.0040b6e0
add esp, 0xc
lea eax, [ebp - 0x94]
push 0x4596dc
push eax
call fcn.00429d4a
mov esi, eax
add esp, 8
mov dword [ebp - 0x2cc], esi
test esi, esi
je 0x407697
mov edi, dword [ebp + 8]
xor esi, esi
test edi, edi
je 0x407579
nop word [eax + eax]
push dword [ebp - 0x2c8]
lea eax, [ebp - 0x2c4]
push 0x200
push 1
push eax
call fcn.0042a2f8
add esp, 0x10
cmp eax, 0x200
jne 0x407556
lea ecx, [ebp - 0x2c4]
call fcn.00404610
push dword [ebp - 0x2cc]
lea eax, [ebp - 0x2c4]
push 0x200
push 1
push eax
call fcn.0042a661
add esp, 0x10
cmp eax, 0x200
jne 0x407548
inc esi
cmp esi, edi
jb 0x4074f0
jmp 0x407579
lea eax, [ebp - 0x94]
push eax
push 0x459e4c
jmp 0x40756f
cmp dword [0x461e30], 8
mov eax, 0x461e1c
cmovae eax, dword [0x461e1c]
push eax
push 0x459e90
call fcn.0040b710
add esp, 8
xor bl, bl
push dword [ebp - 0x2cc]
call fcn.00429dd7
add esp, 4
test bl, bl
je 0x407699
mov byte [ebp - 0x2c8], 0
lea edx, [ebp - 0x94]
push dword [ebp - 0x2c8]
lea ecx, [ebp - 0x2e4]
call fcn.004096c0
lea eax, [ebp - 0x2e4]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.00402cc0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2d0]
cmp edx, 8
jb 0x40760b
mov ecx, dword [ebp - 0x2e4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407601
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4076b7
push edx
push ecx
call fcn.00424e9e
add esp, 8
xor eax, eax
mov dword [ebp - 0x2d4], 0
push 0x459ed4
mov dword [ebp - 0x2d0], 7
mov word [ebp - 0x2e4], ax
call fcn.0040b710
add esp, 4
lea ecx, [ebp - 0xc0]
call fcn.004073b0
cmp dword [ebp - 0x98], 8
lea eax, [ebp - 0xac]
cmovae eax, dword [ebp - 0xac]
xor ecx, ecx
mov word [eax], cx
mov edx, dword [ebp - 0x98]
cmp edx, 8
jb 0x407699
mov ecx, dword [ebp - 0xac]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40768b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4076bc
push edx
push ecx
call fcn.00424e9e
add esp, 8
jmp 0x407699
xor bl, bl
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00424e8d
mov esp, ebp
pop ebp
ret
call fcn.00429c39
call fcn.00429c39
int3
Function at 0x407d30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x461068]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
push 0x200
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], ecx
push 0xff
push eax
mov esi, edx
mov byte [esp + 0x1f], 1
call fcn.00427180
mov ebx, dword [ebp + 8]
add esp, 0xc
test ebx, ebx
jne 0x407d9b
movzx edi, word [esi + 0x12]
test edi, edi
jne 0x407d95
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00424e8d
mov esp, ebp
pop ebp
ret
movzx ebx, word [esi + 0xc]
jmp 0x407d9d
xor edi, edi
cmp edi, ebx
jge 0x407e09
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push 0x200
push 1
push eax
call fcn.0042a661
add esp, 0x10
cmp eax, 0x200
jne 0x407e22
inc word [esi + 0x12]
mov ax, word [esi + 0x12]
cmp ax, word [esi + 0xc]
jne 0x407e04
inc word [esi + 0x10]
xor eax, eax
mov word [esi + 0x12], ax
mov ax, word [esi + 0x10]
cmp ax, word [esi + 0xa]
jne 0x407e04
xor eax, eax
mov word [esi + 0x10], ax
mov ax, word [esi + 0xe]
inc ax
movzx ecx, ax
mov word [esi + 0xe], ax
cmp cx, word [esi + 8]
jbe 0x407e04
mov word [esi + 8], cx
mov byte [esp + 0x13], 0
inc edi
cmp edi, ebx
jl 0x407da1
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00424e8d
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x14], 0xffffffff
mov eax, 0x461e1c
cmp dword [0x461e30], 8
cmovae eax, dword [0x461e1c]
push eax
push 0x45a068
call fcn.0040b710
mov ecx, dword [esp + 0x224]
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00424e8d
mov esp, ebp
pop ebp
ret

Function at 0x407e70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x208
mov eax, dword [0x461068]
xor eax, esp
mov dword [esp + 0x204], eax
push esi
push edi
push 0x200
lea eax, [esp + 0xc]
mov esi, edx
push 0xff
push eax
mov edi, ecx
call fcn.00427180
add esp, 0xc
lea eax, [esp + 8]
push edi
push 0x200
push 1
push eax
call fcn.0042a661
add esp, 0x10
cmp eax, 0x200
jne 0x407f15
inc word [esi + 0x12]
mov ax, word [esi + 0x12]
cmp ax, word [esi + 0xc]
jne 0x407ef9
inc word [esi + 0x10]
xor eax, eax
mov word [esi + 0x12], ax
mov ax, word [esi + 0x10]
cmp ax, word [esi + 0xa]
jne 0x407ef9
inc word [esi + 0xe]
xor eax, eax
mov word [esi + 0x10], ax
mov ax, word [esi + 0xe]
cmp ax, word [esi + 8]
ja 0x407f3d
push edi
push 0x200
lea eax, [esp + 0x10]
push 1
push eax
call fcn.0042a661
add esp, 0x10
cmp eax, 0x200
je 0x407ec3
mov dword [esi + 0x14], 0xffffffff
mov eax, 0x461e1c
cmp dword [0x461e30], 8
cmovae eax, dword [0x461e1c]
push eax
push 0x45a068
call fcn.0040b710
add esp, 8
mov ecx, dword [esp + 0x20c]
pop edi
pop esi
xor ecx, esp
call fcn.00424e8d
mov esp, ebp
pop ebp
ret
Function at 0x40da80
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x461068]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x14]
push edi
push 0x200
push 0
push eax
mov dword [esp + 0x20], edx
mov ebx, ecx
mov byte [esp + 0x1f], 1
call fcn.00427180
xor edi, edi
add esp, 0xc
cmp dword [ebp + 0xc], edi
jbe 0x40db9b
nop word [eax + eax]
push 0x200
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00427180
add esp, 0xc
push ebx
call fcn.0042f1b8
add esp, 4
test eax, eax
jne 0x40db06
push ebx
push 0x200
lea eax, [esp + 0x20]
push 1
push eax
call fcn.0042a2f8
add esp, 0x10
push ebx
call fcn.0042f1e3
add esp, 4
test eax, eax
jne 0x40db89
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push 0x200
push 1
push eax
call fcn.0042a661
add esp, 0x10
cmp eax, 0x200
jne 0x40db82
inc word [esi + 0x12]
mov ax, word [esi + 0x12]
cmp ax, word [esi + 0xc]
jne 0x40db76
inc word [esi + 0x10]
xor eax, eax
mov word [esi + 0x12], ax
mov ax, word [esi + 0x10]
cmp ax, word [esi + 0xa]
jne 0x40db76
xor eax, eax
mov word [esi + 0x10], ax
mov ax, word [esi + 0xe]
inc ax
movzx ecx, ax
mov word [esi + 0xe], ax
cmp cx, word [esi + 8]
jbe 0x40db76
mov word [esi + 8], cx
mov byte [esp + 0x13], 0
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x40dad0
jmp 0x40db9b
push 0x45b940
jmp 0x40db8e
push 0x45b8f8
call fcn.0040b710
mov byte [esp + 0x17], 0
add esp, 4
push dword [esp + 0x14]
call fcn.0042f4bc
mov ecx, dword [esp + 0x220]
add esp, 4
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00424e8d
mov esp, ebp
pop ebp
ret

Function at 0x43a0ec
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00439f6b

Function at 0x4415de
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00440f4c

Function at 0x4415e9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00441187

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x416dbb
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42535c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004088e5
mov dword [ebp - 0x14], eax
cmp dword [0x441f78], esi
jne 0x416eae
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x416e3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x416f8e
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x416f8e
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x416f8e
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x441f78], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x441f7c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x441f80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x441f88], eax
test eax, eax
je 0x416eab
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x441f84], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x416ed3
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x416ec6
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x416ee8
push 4
pop eax
jmp 0x416f90
cmp dword [ebp - 0x14], esi
je 0x416ee8
push dword [0x441f78]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x416ecd
mov eax, dword [0x441f84]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x416f46
cmp dword [0x441f88], edi
je 0x416f46
push eax
call ebx
push dword [0x441f88]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x416f46
test eax, eax
je 0x416f46
call ecx
test eax, eax
je 0x416f3b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x416f3b
test byte [ebp - 8], 1
jne 0x416f46
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x416f76
mov eax, dword [0x441f7c]
cmp eax, edi
je 0x416f73
push eax
call ebx
test eax, eax
je 0x416f73
call eax
mov esi, eax
test esi, esi
je 0x416f73
mov eax, dword [0x441f80]
cmp eax, edi
je 0x416f73
push eax
call ebx
test eax, eax
je 0x416f73
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x441f78]
call ebx
test eax, eax
je 0x416f8e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x416f90
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004065fc
mov esp, ebp
pop ebp
ret
Function at 0x10003b4b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000f030]
jne 0x10003b55
repz ret
jmp fcn.100053ab

Function at 0x10005a45
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100022d1
and dword [ebp - 4], 0
cmp dword [0x10010f10], 0
mov ebx, eax
jne 0x10005af6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10005ba7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10005ba7
push eax
call fcn.1000225f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10010f10], eax
call esi
push eax
call fcn.1000225f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10010f14], eax
call esi
push eax
call fcn.1000225f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10010f18], eax
call esi
push eax
call fcn.1000225f
pop ecx
mov dword [0x10010f20], eax
test eax, eax
je 0x10005af6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000225f
pop ecx
mov dword [0x10010f1c], eax
mov eax, dword [0x10010f1c]
cmp eax, ebx
je 0x10005b4e
cmp dword [0x10010f20], ebx
je 0x10005b4e
push eax
call fcn.100022da
push dword [0x10010f20]
mov esi, eax
call fcn.100022da
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10005b4e
test edi, edi
je 0x10005b4e
call esi
test eax, eax
je 0x10005b45
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10005b45
test byte [ebp - 0xc], 1
jne 0x10005b4e
or dword [ebp + 0x10], 0x200000
jmp 0x10005b87
mov eax, dword [0x10010f14]
cmp eax, ebx
je 0x10005b87
push eax
call fcn.100022da
pop ecx
test eax, eax
je 0x10005b87
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10005b87
mov eax, dword [0x10010f18]
cmp eax, ebx
je 0x10005b87
push eax
call fcn.100022da
pop ecx
test eax, eax
je 0x10005b87
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10010f10]
call fcn.100022da
pop ecx
test eax, eax
je 0x10005ba7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10005ba9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10007da0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov dword [ebp - 0x10], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov edx, dword [0x1000e640]
add edx, 0xffffd94f
mov dword [0x1000e63c], edx
mov esi, dword [ebp - 0x10]
mov esi, dword [esi + 0x10]
mov esi, dword [esi + 0x3c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
mov edx, ecx
add edx, 0xffffe3e9
mov esi, dword [ebp - 0x1c]
cmp word [esi + eax*2], 0
mov edi, eax
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
je 0x10007e3c
mov eax, dword [ebp - 0x24]
add eax, 1
cmp eax, 0x104
mov ecx, dword [ebp - 0x2c]
mov edx, eax
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], edi
jl 0x10007de2
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov dword [0x1000e63c], ecx
mov ecx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x1a], 0x6c
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], edx
jne 0x10007ee4
mov dword [0x1000e640], 0x7a0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x40]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x10007ee4
mov eax, dword [ebp - 0x3c]
add eax, 0xffffe7d7
mov dword [0x1000e63c], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x40]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x10007ee4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x40]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x10007ee4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x40]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x10007ee4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x40]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x10007ee4
mov eax, 1
mov dword [0x1000e63c], 0xb63
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x40]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x44], eax
je 0x10007eeb
xor eax, eax
mov dword [ebp - 0x44], eax
jmp 0x10007eeb
mov eax, dword [ebp - 0x44]
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10008ea0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x1000e644], 0
mov dword [0x1000e648], 0
mov dword [0x1000e654], 0
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
je 0x10008fff
jmp 0x10008fe9
mov eax, dword [0x1000e648]
mov ecx, dword [0x1000e644]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add edx, 1
mov dword [0x1000e63c], 0x581
mov edi, eax
add edi, 1
mov dword [ebp - 0x30], eax
mov eax, edx
cdq
idiv esi
mov dword [0x1000e644], edx
mov dword [0x1000e640], 0x20ec
mov ebx, dword [ebp - 0x1c]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x1000e648], edx
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x1000e64c], cl
mov dword [0x1000e640], 0x1c17
mov ebx, dword [ebp - 0x1c]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x1000e64c]
mov edx, dword [0x1000e648]
mov byte [ebx + edx], cl
mov edx, dword [0x1000e644]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x1000e648]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x1000e654], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x30]
xor cl, byte [edx + esi]
mov byte [0x1000e658], cl
mov dword [0x1000e63c], 0x13d7
mov dword [0x1000e640], 0x1ac9
mov edx, dword [ebp - 0x18]
mov byte [edx + esi], cl
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
mov dword [ebp - 0x20], edi
je 0x10008ffd
jmp 0x10008eef
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], eax
jmp 0x10008f06
jmp 0x10008fff
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10009010
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov dword [0x1000e63c], 0x895
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.100071a0
lea ecx, [0x10007d10]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], 0x158c00
mov edx, dword [0x1000e628]
mov dword [esp + 0x90], edx
mov edx, dword [0x1000e62c]
mov dword [esp + 0x8c], edx
mov edx, dword [0x1000e630]
mov dword [esp + 0x48], edx
mov edx, dword [0x1000e634]
mov dword [esp + 0x88], edx
mov edx, dword [0x1000e638]
mov dword [esp + 0x38], edx
mov dword [0x1000e640], 0x1d3f
mov dword [0x1000e63c], 0x2324
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x100090d3
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
je 0x100090e4
mov eax, dword [esp + 0x18]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
je 0x100090a9
jmp 0x100090c1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x68], eax
mov dword [0x1000e63c], 0x4417
mov dword [0x1000e640], 0x94b
mov eax, dword [eax + ecx + 0x50]
mov dword [esp + 0x80], eax
call fcn.10007da0
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x1000914b
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.100087d0
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x402660
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
push ebx
xor bl, bl
mov eax, dword [eax + 4]
test eax, eax
jne 0x402673
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0x20006
push 0
push eax
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4026d9
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
test eax, eax
jne 0x4026a8
mov eax, esi
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x4026b5
mov ecx, esi
push edx
mov edx, dword [esp + 0x14]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
jne 0x4026ce
mov bl, 1
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
ret 0x10

Function at 0x402700
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
push ebx
xor bl, bl
mov eax, dword [eax + 4]
test eax, eax
jne 0x402713
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0x20006
push 0
push eax
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402769
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x402741
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push 0
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40275e
mov bl, 1
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
ret 0x10
Function at 0x402840
Capabilities:
Delete registry value

Disassembly:
mov eax, dword [esp + 8]
push ebx
xor bl, bl
mov eax, dword [eax + 4]
test eax, eax
jne 0x402853
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0x20006
push 0
push eax
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40289e
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x402881
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edx, dword [esp + 0xc]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x402893
mov bl, 1
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
ret 0xc

Function at 0x4030e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
mov dword [esp], 0
mov eax, dword [eax + 4]
test eax, eax
jne 0x4030f9
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edx, dword [esp + 8]
lea ecx, [esp]
push ecx
push 0x20019
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40311b
xor al, al
pop ecx
ret 0x14
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
test eax, eax
jne 0x40312b
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push esi
push ecx
lea ecx, [esp + 0x14]
push edx
mov edx, dword [esp + 0xc]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
pop esi
pop ecx
ret 0x14