joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b5566
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 0x4b5603
push ebx
push esi
call fcn.004b552f
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.004b54c3
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4b55b0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4b5602
push edi
push eax
call fcn.004b09b1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4b55d0
call fcn.004aff83
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4b5601
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004b54c3
add esp, 0x20
test eax, eax
jne 0x4b55ef
push edi
call fcn.004aff83
jmp 0x4b55f7
push ebx
call fcn.004aff83
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 0x4b5606
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4b5617
pop esi
ret
push ebx
push edi
push esi
call fcn.004b552f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004b09b1
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4b563f
push ebx
push esi
push edi
call fcn.0049d000
add esp, 0xc
push 0
call fcn.004aff83
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4b5d99
Capabilities:
Set environment variable

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

Function at 0x4b8318
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004afb7e
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b8387
cmp esi, dword [ebp - 4]
je 0x4b8382
cmp dword [ebp + 0xc], 0
je 0x4b8382
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4b835f
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004b7e6a
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4b8389
xor eax, eax
inc eax
jmp 0x4b8389
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4b83ee
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x501040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004afb7e
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004afb7e
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4b8465
cmp word [ecx], dx
je 0x4b8465
mov eax, dword [0x4eb824]
push edi
dec eax
push eax
push 0x4eb710
call fcn.004b838d
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4b84d8
cmp word [eax], dx
je 0x4b84d8
mov eax, dword [edi]
test eax, eax
je 0x4b8489
cmp word [eax], dx
je 0x4b8489
lea eax, [ebp - 0x10]
push eax
call fcn.004b7d70
jmp 0x4b8492
lea eax, [ebp - 0x10]
push eax
call fcn.004b7e0b
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4b8502
mov eax, dword [0x4eb70c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4eb400
call fcn.004b838d
add esp, 0xc
test al, al
je 0x4b8502
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4b84cd
cmp word [eax], di
je 0x4b84cd
lea eax, [ebp - 0x10]
push eax
call fcn.004b7d70
pop ecx
jmp 0x4b8504
lea eax, [ebp - 0x10]
push eax
call fcn.004b7e0b
jmp 0x4b84ca
mov eax, dword [edi]
test eax, eax
je 0x4b84ef
cmp word [eax], dx
je 0x4b84ef
lea eax, [ebp - 0x10]
push eax
call fcn.004b7d25
pop ecx
jmp 0x4b8502
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4b85cd
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004b8212
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4b85cd
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4b85cd
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4b85cd
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4b855a
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004b06d2
test ebx, ebx
je 0x4b85c8
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004b06d2
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b85cd
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b85cd
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004bce05
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4b85cf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047299a
leave
ret
Function at 0x4be6e5
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004be661
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4be854
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4be854
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4be809
jg 0x4be741
test eax, eax
je 0x4be7ff
push 1
push 0x1000
call fcn.004afe69
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4be764
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4be7f6
push 0x8000
push ebx
call fcn.004a95e1
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4be78d
jg 0x4be788
cmp ecx, 0x1000
jb 0x4be78d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004b2b80
add esp, 0x10
cmp eax, 0xffffffff
je 0x4be7d2
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 0x4be788
jl 0x4be7b9
test ecx, ecx
jne 0x4be77a
push dword [ebp - 0xc]
push ebx
call fcn.004a95e1
push esi
call fcn.004aff83
add esp, 0xc
xor ebx, ebx
jmp 0x4be862
cmp byte [edi + 0x24], 0
je 0x4be7e9
cmp dword [edi + 0x20], 5
jne 0x4be7e9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4be7f4
mov ebx, dword [edi + 0x18]
jmp 0x4be7f6
xor ebx, ebx
push esi
call fcn.004aff83
pop ecx
jmp 0x4be862
test ecx, ecx
jg 0x4be7cb
jl 0x4be809
test eax, eax
jae 0x4be7cb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004b45a5
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4be829
cmp byte [edi + 0x1c], 0
je 0x4be7cb
jmp 0x4be85a
push ebx
call fcn.004b628f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4be7cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4be862
cmp byte [edi + 0x1c], 0
je 0x4be85f
mov ebx, dword [edi + 0x18]
jmp 0x4be862
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004b45a5
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4bfd50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4bfd7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4bfd7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x412565
Capabilities:
Read file on windows

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

Function at 0x41695c
Capabilities:
Set environment variable

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

Function at 0x416967
Capabilities:
Set environment variable

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

Function at 0x4060b6
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.004021ba
and dword [ebp - 4], 0
cmp dword [0x40b654], 0
mov ebx, eax
jne 0x406167
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406218
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406218
push eax
call fcn.00402148
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b654], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b658], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b65c], eax
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b664], eax
test eax, eax
je 0x406167
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b660], eax
mov eax, dword [0x40b660]
cmp eax, ebx
je 0x4061bf
cmp dword [0x40b664], ebx
je 0x4061bf
push eax
call fcn.004021c3
push dword [0x40b664]
mov esi, eax
call fcn.004021c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061bf
test edi, edi
je 0x4061bf
call esi
test eax, eax
je 0x4061b6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061b6
test byte [ebp - 0xc], 1
jne 0x4061bf
or dword [ebp + 0x10], 0x200000
jmp 0x4061f8
mov eax, dword [0x40b658]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4061f8
mov eax, dword [0x40b65c]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b654]
call fcn.004021c3
pop ecx
test eax, eax
je 0x406218
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40621a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433004
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x54f33360
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..text_1
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x748a41e2
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4016b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40fbf8
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x41700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x260], edx
mov dword [ebp - 0x25c], ecx
push 0x228
lea eax, [ebp - 0x254]
mov dword [ebp - 0x258], 0x22c
push 0
push eax
call fcn.00406780
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add esp, 0xc
push 0x414df0
push str.kernel32.dll
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0
push 2
test eax, eax
jne 0x401735
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
jmp 0x401737
call eax
mov esi, eax
cmp esi, 0xffffffff
je 0x40187f
xor eax, eax
mov dword [ebp - 0x14], 7
push eax
push 0x414da4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00402ac0
push 0x414e0c
push str.kernel32.dll
mov dword [ebp - 4], 0
call ebx
push eax
call edi
test eax, eax
jne 0x40178e
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x401798
lea ecx, [ebp - 0x258]
push ecx
push esi
call eax
test eax, eax
je 0x401866
cmp word [ebp - 0x234], 0
jne 0x4017ae
xor eax, eax
jmp 0x4017c6
lea eax, [ebp - 0x234]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4017b7
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402ac0
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov ecx, dword [ebp - 0x25c]
cmovae edx, dword [ebp - 0x28]
call fcn.00402730
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40182f
push 0x414e1c
push str.kernel32.dll
call ebx
push eax
call edi
test eax, eax
jne 0x40181b
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x401825
lea ecx, [ebp - 0x258]
push ecx
push esi
call eax
test eax, eax
jne 0x4017a0
jmp 0x401866
mov edi, dword [ebp - 0x250]
push 0x414e2c
push str.kernel32.dll
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push 0
push 0x1fffff
test eax, eax
jne 0x40185c
call dword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x40185e
call eax
mov ecx, dword [ebp - 0x260]
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40187f
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00403160
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004040e6
mov esp, ebp
pop ebp
ret
Function at 0x4018a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x41700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor bl, bl
push 0x414df0
push str.kernel32.dll
mov dword [ebp - 0x234], ecx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 2
test eax, eax
jne 0x4018e7
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
jmp 0x4018e9
call eax
mov esi, eax
cmp esi, 0xffffffff
je 0x40199c
push 0x414e0c
push str.kernel32.dll
mov dword [ebp - 0x230], 0x22c
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x401925
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x40192f
lea ecx, [ebp - 0x230]
push ecx
push esi
call eax
test eax, eax
je 0x401995
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [eax]
push dword [ebp - 0x234]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
movzx ebx, bl
push 0x414e1c
mov eax, 1
push str.kernel32.dll
cmove ebx, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x401987
lea eax, [ebp - 0x230]
push eax
push esi
call edi
jmp 0x401991
lea ecx, [ebp - 0x230]
push ecx
push esi
call eax
test eax, eax
jne 0x401940
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040e6
mov esp, ebp
pop ebp
ret

Function at 0x4019b0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x41700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0
push eax
push 0x28
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push ecx
xor bl, bl
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401a20
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov bl, 1
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004040e6
mov esp, ebp
pop ebp
ret
Function at 0x100ed820
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [0x101094bc]
add edx, 0xfffff1f6
mov dword [0x101094bc], edx
cmp ecx, 0
sete bl
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x15], bl
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 0x100eda15
mov dword [0x101094c0], 0x97
mov ecx, dword fs:[0x18]
xor eax, eax
mov ecx, dword [ecx + 0x30]
mov dword [0x101094bc], 0x103b
mov ecx, dword [ecx + 0xc]
mov edx, ecx
add edx, 0x14
mov ecx, dword [ecx + 0x14]
cmp ecx, edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], eax
je 0x100eda15
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [ebp - 0x20]
mov byte [ebp - 0x25], cl
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov cx, word [eax + 0x24]
mov edx, dword [eax + 0x28]
mov dword [0x101094bc], 0x1023
mov esi, dword [eax + 0x10]
mov edi, dword [ebp - 0x10]
cmp esi, edi
sete bl
mov bh, byte [ebp - 0x25]
and bh, bl
test bh, 1
mov edi, eax
mov dword [ebp - 0x30], eax
mov word [ebp - 0x32], cx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], edi
jne 0x100ed905
jmp 0x100ed915
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff8
mov dword [ebp - 0x1c], eax
jmp 0x100eda15
mov eax, dword [0x101094c0]
add eax, 0xffffeccc
mov dword [0x101094bc], eax
mov cx, word [ebp - 0x32]
shr cx, 1
mov word [ebp - 0x42], cx
mov ax, word [ebp - 0x42]
movzx ecx, ax
cmp ax, 0
mov dword [ebp - 0x48], ecx
je 0x100ed9ed
xor eax, eax
mov dword [ebp - 0x4c], eax
jmp 0x100ed94b
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x38]
mov dx, word [ecx + eax*2]
mov si, dx
add si, 0xffbf
mov di, dx
add di, 0x20
cmp si, 0x1a
mov dword [ebp - 0x50], eax
mov word [ebp - 0x52], dx
mov word [ebp - 0x54], di
jb 0x100ed97f
mov ax, word [ebp - 0x52]
mov word [ebp - 0x54], ax
mov ax, word [ebp - 0x54]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x50]
cmp word [ecx + edx*2], ax
sete bl
cmp ax, 0
sete bh
mov al, bl
xor al, 1
or bh, al
test bh, 1
mov al, bl
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x56], al
jne 0x100ed9d6
mov dword [0x101094c0], 0xe9d
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x48]
cmp eax, ecx
mov dl, byte [ebp - 0x55]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x56], dl
jb 0x100ed94b
mov al, byte [ebp - 0x56]
mov dword [0x101094bc], 0xeef
test al, 1
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x60], ecx
jne 0x100eda0f
xor eax, eax
mov dword [0x101094c0], 0x1d5f
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x24]
cmp edx, esi
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x60], eax
jne 0x100ed8c8
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100edf20
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]
mov dword [0x101094c4], 0
mov dword [0x101094c8], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [0x101094d4], 0
mov eax, dword [ebp - 0x10]
cmp eax, 0
je 0x100ee08a
jmp 0x100ee058
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, 0x100
add ecx, 1
mov edi, eax
add edi, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x101094c4], edx
mov ecx, dword [ebp - 0x1c]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x30]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x101094c8], edx
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x101094cc], cl
mov ebx, dword [ebp - 0x1c]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x101094cc]
mov edx, dword [0x101094c8]
mov byte [ebx + edx], cl
mov edx, dword [0x101094c4]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x101094c8]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x101094d4], ecx
mov edx, dword [0x101094bc]
add edx, 0xffffd9b1
mov dword [0x101094bc], edx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2c]
mov ch, byte [edx + esi]
mov dl, cl
add dl, byte [0x101094d9]
mov byte [0x101094d8], dl
mov byte [0x101094d9], ch
mov byte [0x101094da], cl
mov dword [0x101094c0], 0x117c
xor ch, cl
mov edx, dword [ebp - 0x18]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x38], edi
je 0x100ee088
jmp 0x100ee06c
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], eax
jmp 0x100edf72
mov eax, dword [0x101094c4]
mov ecx, dword [0x101094c8]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
jmp 0x100edf72
jmp 0x100ee08a
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret