joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dc78
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409b30
xor eax, eax
push ebp
push 0x40dd3a
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a530
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a6e0
mov eax, dword [ebx]
call fcn.0040db20
test al, al
jne 0x40dd15
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a530
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a6e0
mov eax, dword [ebx]
call fcn.0040db20
test al, al
jne 0x40dd15
mov eax, ebx
call fcn.00409a3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dd41
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409a9c
lea eax, [ebp - 4]
call fcn.00409a3c
pop eax
jmp eax

Function at 0x40f570
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x41c420
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41c479
test eax, edx
je 0x41c47c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41c437
movzx eax, word [eax]
sub eax, ecx
jmp 0x41c45e
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x41c45f
add ecx, 4
js 0x41c44f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41c45c
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41c45e
xor eax, eax
ret
test eax, eax
je 0x41c488
test edx, edx
jne 0x41c428
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x421584
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4215bd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409bd4
jmp 0x4215c6
mov eax, ebx
mov edx, esi
call fcn.00409e2c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4215d0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4215f4
movzx eax, word [esp]
jmp 0x4215f6
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x422a28
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x422b4f
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00422830
mov esi, eax
mov eax, dword [0x4ac74c]
cmp byte [eax], 0
je 0x422af5
mov eax, dword [0x4ac5a8]
call fcn.00407748
call fcn.004070bc
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4229f8]
call fcn.0040c664
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x422b68
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x422b31
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4ac578]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b0634]
call fcn.0040cbf8
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422b56
lea eax, [ebp - 4]
mov edx, dword [0x4229f8]
call fcn.0040c788
pop eax
jmp eax

Function at 0x424154
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00409f20
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040f550
mov edi, eax
cmp edi, 0x104
jbe 0x4240ff
mov eax, edi
add eax, eax
call fcn.00406f68
mov esi, eax
jmp 0x424101
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040f550
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42413a
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x424124
mov eax, esp
cmp esi, eax
je 0x424147
mov eax, esi
call fcn.00406f84
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x424180
cmp bl, 0
je 0x42417c
cmp bl, 0x41
jl 0x424177
cmp bl, 0x5a
jg 0x424177
or bl, 0x20
xor al, bl
inc esi
jmp 0x42415b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4240c0
Function at 0x424de4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x424e04
sub eax, 4
mov eax, dword [eax]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x424e1e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x424e19
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x424e23
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x424e91
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x424eda
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x424e4f
inc dword [ebp - 0xc]
jmp 0x424e67
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x424e67
cmp dword [ebp - 0xc], 0
jle 0x424e67
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x424e89
xor eax, eax
jmp 0x424e85
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x424e84
mov eax, esi
jmp 0x424edd
inc eax
cmp eax, ecx
jle 0x424e71
inc esi
cmp esi, dword [ebp - 8]
jl 0x424e3b
jmp 0x424eda
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x424eda
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x424eb2
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x424ed4
xor eax, eax
jmp 0x424ed0
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x424ecf
mov eax, esi
jmp 0x424edd
inc eax
cmp eax, ecx
jle 0x424ebc
inc esi
cmp esi, dword [ebp - 8]
jl 0x424e9a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42504c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x42506b
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42507b
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x42519d
test ebx, ebx
jl 0x42519d
test esi, esi
jle 0x42519d
mov eax, dword [ebp - 8]
call fcn.0040a494
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040a494
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x42513a
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x42519d
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42511f
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x4250ee
inc dword [ebp - 0x14]
jmp 0x4250fe
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x4250fe
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x425109
or eax, 0xffffffff
jmp 0x42511f
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42511c
inc eax
jmp 0x42511f
or eax, 0xffffffff
test eax, eax
jl 0x425127
cmp esi, eax
jg 0x4250dc
cmp esi, eax
jg 0x425132
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x4251a0
inc edx
dec dword [ebp - 0x1c]
jne 0x4250d8
jmp 0x42519d
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x42519d
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x425184
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x425163
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x42516e
or eax, 0xffffffff
jmp 0x425184
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x425181
inc eax
jmp 0x425184
or eax, 0xffffffff
test eax, eax
jl 0x42518c
cmp esi, eax
jg 0x42514c
cmp esi, eax
jg 0x425197
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x4251a0
inc edx
dec dword [ebp - 0x1c]
jne 0x425148
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x431a18
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x431a20
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4344f4
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x43450b
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x4344fb
mov eax, ecx
pop ebx
ret
Function at 0x49113c
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
or dl, byte [ebx + 0xd]
je 0x49117f
cmp byte [ebx + 0x11], 0
jne 0x49117f
cmp byte [ebx + 0x24], 0
jne 0x49117f
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x491196
mov ecx, dword [0x4ac70c]
mov dl, 1
mov eax, dword [0x46c1a8]
call fcn.00422c58
call fcn.00409134
pop ebx
ret
mov ecx, dword [0x4ac70c]
mov dl, 1
mov eax, dword [0x46c1a8]
call fcn.00422c58
call fcn.00409134
pop ebx
ret

Function at 0x4916bc
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x49170a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004910b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x491723
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x49172c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004910b4
dec esi
jne 0x49174e
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x49bbb4
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x49bbfc
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0049bb48
mov eax, dword [ebp - 4]
call fcn.0040a494
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49bc03
lea eax, [ebp - 4]
call fcn.00409a3c
pop eax
jmp eax

Function at 0x49be1c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x49beb3
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x49be67
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.00409bd4
jmp 0x49be9b
call sub.kernel32.dll_GetCommandLineW
mov ebx, eax
cmp word [ebx], 0
jne 0x49be7e
lea eax, [ebp - 4]
call fcn.00409a3c
jmp 0x49be91
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0049bcd4
mov ebx, eax
test esi, esi
je 0x49be91
dec esi
jmp 0x49be6e
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00409e2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49beba
lea eax, [ebp - 4]
call fcn.00409a3c
pop eax
jmp eax

Function at 0x49bec4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0041d2d0
add esp, 0x208
pop ebx
ret
Function at 0x49bf24
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0041d2d0
add esp, 0x208
pop ebx
ret

Function at 0x49c078
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x49c1b0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x49c198
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x49c0d5
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x49c198
cmp dword [ebp - 0x14], 0
jne 0x49c0ea
mov eax, dword [ebp - 0xc]
call fcn.00409a3c
mov bl, 1
jmp 0x49c198
cmp dword [ebp - 0x14], 0x70000000
jb 0x49c0f8
call fcn.00422b8c
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00409bd4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.00409fd0
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
je 0x49c09e
test eax, eax
jne 0x49c198
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x49c146
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x49c198
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x49c14e
dec esi
test esi, esi
je 0x49c15d
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x49c14d
cmp dword [ebp - 0x10], 7
jne 0x49c168
test esi, esi
je 0x49c168
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.0040a608
cmp dword [ebp - 0x10], 7
jne 0x49c18b
test esi, esi
je 0x49c18b
lea eax, [ebp - 4]
call fcn.00409fd0
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00409e2c
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c1b7
lea eax, [ebp - 4]
call fcn.00409a3c
pop eax
jmp eax
Function at 0x49c2e4
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
mov byte [ebp - 1], 0
mov edx, 0x4ac3b4
mov dword [ebp - 0x1c], edx
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0x20
push 2
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
je 0x49c4b6
xor eax, eax
push ebp
push 0x49c4af
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x49c4c0
push 0x49c4ec
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00410d6c
mov ebx, eax
test ebx, ebx
je 0x49c36a
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call ebx
test eax, eax
je 0x49c496
cmp dword [ebp - 0xc], 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
jmp 0x49c496
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
test eax, eax
jne 0x49c3bb
call sub.kernel32.dll_GetLastError
cmp eax, 0x3f0
je 0x49c39c
call fcn.00409228
jmp 0x49c4b6
lea eax, [ebp - 0x10]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x49c3bb
call fcn.00409228
jmp 0x49c4b6
xor eax, eax
push ebp
push 0x49c48f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x49c3fe
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
je 0x49c3fe
call fcn.00409228
call fcn.00409228
jmp 0x49c4b6
mov eax, dword [ebp - 0x14]
call fcn.00406f68
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x49c433
call fcn.00409228
call fcn.00409228
jmp 0x49c4b6
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
dec esi
test esi, esi
jl 0x49c46e
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x49c46a
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 8]
and eax, 0x14
cmp eax, 4
jne 0x49c46a
mov byte [ebp - 1], 1
jmp 0x49c46e
inc ebx
dec esi
jne 0x49c440
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c496
mov eax, dword [ebp - 0x18]
call fcn.00406f84
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c4b6
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_FreeSid
pop eax
jmp eax
movzx eax, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49da54
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x4b3884
mov eax, esi
mov edx, 8
test al, 1
je 0x49da70
shr eax, 1
xor eax, 0xedb88320
jmp 0x49da72
shr eax, 1
dec edx
jne 0x49da63
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x49da5c
pop esi
ret

Function at 0x49da88
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x4b3880], 0
jne 0x49dab2
call fcn.0049da54
mov dword [esp], 0x4b3880
mov edx, dword [esp]
mov eax, 1
lock xchg dword [edx], eax
mov eax, edi
test esi, esi
je 0x49dadc
mov edx, 0xff
and edx, ebx
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x4b3884]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x49dab8
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x49e760
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
mov esi, dword [esp + 0x84]
push edi
xor edi, edi
mov dword [esp + 0x24], edi
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
mov dword [esp + 0x2c], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esi + 4]
dec eax
mov dword [esp + 0x54], eax
mov eax, 1
shl eax, cl
dec eax
mov ebx, dword [esi + 0x48]
mov dword [esp + 0x58], eax
mov eax, dword [esi]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x34]
mov ebp, dword [esi + 0x28]
mov edx, dword [esi + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x40]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x70], eax
mov eax, dword [esi + 0x24]
mov esi, dword [esi + 0x18]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], esi
mov dword [eax], edi
cmp ebx, 0xffffffff
je 0x49efb6
cmp dword [esp + 0x1c], edi
jne 0x49e849
lea eax, [esp + 0x50]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x88]
mov al, byte [eax + 0x4c]
mov byte [esp + 0x50], al
cmp ebx, 0xfffffffe
jne 0x49e97b
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x40], 1
mov dword [esp + 0x34], 1
mov ecx, dword [eax + 4]
mov eax, 0x300
add byte [ebx], al
add byte [eax], al
test ebx, ebx
je 0x49e9d4
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
cmp edi, dword [esp + 0x94]
jae 0x49e9c0
mov eax, ebp
sub eax, ecx
cmp eax, edx
lea ecx, [eax + edx]
cmovb ecx, eax
mov al, byte [ecx + esi]
mov ecx, dword [esp + 0x90]
mov byte [esi + ebp], al
mov byte [edi + ecx], al
lea eax, [ebp + 1]
mov ecx, dword [esp + 0x14]
xor ebp, ebp
inc edi
cmp eax, edx
cmovne ebp, eax
sub ebx, 1
jne 0x49e987
mov esi, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x3c], ebp
test ebp, ebp
jne 0x49e9e6
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov bl, byte [eax + ecx - 1]
jmp 0x49e9ee
mov eax, dword [esp + 0x20]
mov bl, byte [eax + ebp - 1]