joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40457d
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.00441080
mov eax, dword [0x473a30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov esi, str.GET
lea edi, [ebp - 0x2008]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4045a8
lea edi, [ebp - 0x2008]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4045ba
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x2008]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4045d7
mov esi, str._HTTP_1.1_r_nHost:
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4045ee
lea edi, [ebp - 0x2008]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4045fe
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x2008]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40461d
push 0x24
pop ecx
mov esi, str._r_nConnection:_Keep_Alive_r_nAccept:___r_nAccept_Language:_zh_CN_r_nUser_Agent:_Mozilla_5.0__Windows_NT_6.1__WOW64__Trident_7.0__rv:11.0__like_Gecko_r_n
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x2008]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404638
mov esi, 0x46183c
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x2008]
movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404651
push 0
sub eax, edx
push eax
lea eax, [ebp - 0x2008]
push eax
push dword [ebp + 8]
call dword [0x459638]
cmp eax, 0xffffffff
jne 0x404689
call fcn.004040ed
push eax
push str.Failed_to_send_HTTP_header._s_n
call fcn.0040b797
add esp, 8
xor eax, eax
jmp 0x40468c
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043c573
leave
ret

Function at 0x40658a
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x40
push 0x3000
push ebx
xor esi, esi
xor eax, eax
lea edi, [ebp - 4]
push esi
stosd dword es:[edi], eax
call dword [0x459340]
mov edi, eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [eax], edi
call fcn.0043ee90
add esp, 0xc
test ebx, ebx
jle 0x4065e3
lea ecx, [edi + ebx - 4]
mov eax, dword [ebp + 8]
mov edx, dword [esi + eax]
mov eax, dword [ebp - 4]
xor eax, edx
mov dword [ecx], eax
xor eax, dword [0x475eb8]
add esi, 4
mov dword [ecx], eax
sub ecx, 4
cmp esi, ebx
mov dword [ebp - 4], edx
jl 0x4065c1
pop edi
mov eax, ebx
pop esi
leave
ret
Function at 0x409a99
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4ec
mov eax, dword [0x473a30]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x33], 0x88
mov byte [ebp - 0x32], 0x81
mov byte [ebp - 0x31], 0x93
mov byte [ebp - 0x30], 0x90
mov byte [ebp - 0x2f], 0x86
mov byte [ebp - 0x2e], 0x95
mov byte [ebp - 0x2d], 0x82
mov byte [ebp - 0x2c], 0x9b
mov byte [ebp - 0x2b], 0x8a
mov byte [ebp - 0x2a], 0xae
mov byte [ebp - 0x29], 0xa4
mov byte [ebp - 0x28], 0xb5
mov byte [ebp - 0x27], 0xa8
mov byte [ebp - 0x26], 0xb4
mov byte [ebp - 0x25], 0xa8
mov byte [ebp - 0x24], 0xa1
mov byte [ebp - 0x23], 0xb3
mov byte [ebp - 0x22], 0x9b
mov byte [ebp - 0x21], 0x90
mov byte [ebp - 0x20], 0xae
mov byte [ebp - 0x1f], 0xa9
mov byte [ebp - 0x1e], 0xa3
mov byte [ebp - 0x1d], 0xa8
mov byte [ebp - 0x1c], 0xb0
mov byte [ebp - 0x1b], 0xb4
mov byte [ebp - 0x1a], 0x9b
mov byte [ebp - 0x19], 0x84
mov byte [ebp - 0x18], 0xb2
mov byte [ebp - 0x17], 0xb5
mov byte [ebp - 0x16], 0xb5
mov byte [ebp - 0x15], 0xa2
mov byte [ebp - 0x14], 0xa9
mov byte [ebp - 0x13], 0xb3
mov byte [ebp - 0x12], 0x91
mov byte [ebp - 0x11], 0xa2
mov byte [ebp - 0x10], 0xb5
mov byte [ebp - 0xf], 0xb4
mov byte [ebp - 0xe], 0xae
mov byte [ebp - 0xd], 0xa8
mov byte [ebp - 0xc], 0xa9
mov byte [ebp - 0xb], 0x9b
mov byte [ebp - 0xa], 0x95
mov byte [ebp - 9], 0xb2
mov byte [ebp - 8], 0xa9
mov byte [ebp - 7], 0xc7
mov dword [ebp - 0x4ec], 0x258
lea eax, [ebp - 0x34]
mov byte [ebp - 0x34], 0x53
inc eax
xor byte [eax], 0xc7
jne 0x409b71
push ebx
push esi
push edi
lea eax, [ebp - 0x4e4]
push eax
lea eax, [ebp - 0x34]
push eax
lea edi, [ebp - 0x4ec]
call fcn.00408370
mov esi, 0x47a058
push esi
mov ebx, 0x479e50
call fcn.004099a3
add esp, 0xc
test eax, eax
jne 0x409bae
xor eax, eax
jmp 0x409c49
test byte [0x479c34], 8
jne 0x409c46
lea eax, [ebp - 0x4e8]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x4e4]
push eax
push 0x80000002
call dword [0x45902c]
test eax, eax
jne 0x409ba7
push 0x461cb0
push esi
lea eax, [ebp - 0x28c]
push str.__s___s
push eax
call dword [0x45950c]
lea eax, [ebp - 0x28c]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x409c03
sub eax, edx
sar eax, 1
add eax, eax
push eax
lea eax, [ebp - 0x28c]
push eax
push 1
push 0
push str.RVCTPL
push dword [ebp - 0x4e8]
call dword [0x459034]
push dword [ebp - 0x4e8]
mov esi, eax
call dword [0x459030]
test esi, esi
jne 0x409ba7
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c573
leave
ret
Function at 0x409d07
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x473a30]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x3f], 0x88
mov byte [ebp - 0x3e], 0x81
mov byte [ebp - 0x3d], 0x93
mov byte [ebp - 0x3c], 0x90
mov byte [ebp - 0x3b], 0x86
mov byte [ebp - 0x3a], 0x95
mov byte [ebp - 0x39], 0x82
mov byte [ebp - 0x38], 0x9b
mov byte [ebp - 0x37], 0x8a
mov byte [ebp - 0x36], 0xae
mov byte [ebp - 0x35], 0xa4
mov byte [ebp - 0x34], 0xb5
mov byte [ebp - 0x33], 0xa8
mov byte [ebp - 0x32], 0xb4
mov byte [ebp - 0x31], 0xa8
mov byte [ebp - 0x30], 0xa1
mov byte [ebp - 0x2f], 0xb3
mov byte [ebp - 0x2e], 0x9b
mov byte [ebp - 0x2d], 0x90
mov byte [ebp - 0x2c], 0xae
mov byte [ebp - 0x2b], 0xa9
mov byte [ebp - 0x2a], 0xa3
mov byte [ebp - 0x29], 0xa8
mov byte [ebp - 0x28], 0xb0
mov byte [ebp - 0x27], 0xb4
mov byte [ebp - 0x26], 0x9b
mov byte [ebp - 0x25], 0x84
mov byte [ebp - 0x24], 0xb2
mov byte [ebp - 0x23], 0xb5
mov byte [ebp - 0x22], 0xb5
mov byte [ebp - 0x21], 0xa2
mov byte [ebp - 0x20], 0xa9
mov byte [ebp - 0x1f], 0xb3
mov byte [ebp - 0x1e], 0x91
mov byte [ebp - 0x1d], 0xa2
mov byte [ebp - 0x1c], 0xb5
mov byte [ebp - 0x1b], 0xb4
mov byte [ebp - 0x1a], 0xae
mov byte [ebp - 0x19], 0xa8
mov byte [ebp - 0x18], 0xa9
mov byte [ebp - 0x17], 0x9b
mov byte [ebp - 0x16], 0x97
mov byte [ebp - 0x15], 0xa8
mov byte [ebp - 0x14], 0xab
mov byte [ebp - 0x13], 0xae
mov byte [ebp - 0x12], 0xa4
mov byte [ebp - 0x11], 0xae
mov byte [ebp - 0x10], 0xa2
mov byte [ebp - 0xf], 0xb4
mov byte [ebp - 0xe], 0x9b
mov byte [ebp - 0xd], 0x94
mov byte [ebp - 0xc], 0xbe
mov byte [ebp - 0xb], 0xb4
mov byte [ebp - 0xa], 0xb3
mov byte [ebp - 9], 0xa2
mov byte [ebp - 8], 0xaa
mov byte [ebp - 7], 0xc7
lea eax, [ebp - 0x40]
mov byte [ebp - 0x40], 0x53
inc eax
xor byte [eax], 0xc7
jne 0x409e02
push ebx
push esi
push edi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x40]
push eax
xor ebx, ebx
push 0x80000002
mov dword [ebp - 0x44], ebx
call dword [0x459024]
mov esi, dword [0x459034]
push 4
pop edi
push edi
lea eax, [ebp - 0x48]
push eax
push edi
push ebx
push str.ConsentPromptBehaviorAdmin
push dword [ebp - 0x44]
mov dword [ebp - 0x48], ebx
call esi
test eax, eax
je 0x409e48
xor eax, eax
jmp 0x409e7e
push edi
lea eax, [ebp - 0x48]
push eax
push edi
push ebx
push str.EnableLUA
push dword [ebp - 0x44]
call esi
test eax, eax
jne 0x409e44
push edi
lea eax, [ebp - 0x48]
push eax
push edi
push ebx
push str.PromptOnSecureDesktop
push dword [ebp - 0x44]
call esi
test eax, eax
jne 0x409e44
push dword [ebp - 0x44]
call dword [0x459030]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c573
leave
ret
Function at 0x40bbea
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
test esi, esi
je 0x40bcf1
mov ecx, dword [ebp + 8]
test ecx, ecx
jl 0x40bcf1
test eax, eax
je 0x40bce3
mov dword [ebp - 8], ecx
test ecx, ecx
jle 0x40bcdd
push ebx
mov cl, byte [esi]
inc esi
cmp dword [ebp - 8], 3
jl 0x40bc7c
mov dl, byte [esi]
inc esi
mov bl, byte [esi]
mov byte [ebp - 1], bl
movzx ecx, cl
mov ebx, ecx
shr ebx, 2
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], bl
movzx edx, dl
shl ecx, 4
mov ebx, edx
shr ebx, 4
or ebx, ecx
and ebx, 0x3f
mov cl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc esi
inc eax
mov byte [eax], cl
movzx ecx, byte [ebp - 1]
mov ebx, ecx
shr ebx, 6
shl edx, 2
or ebx, edx
and ebx, 0x3f
mov dl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc eax
mov byte [eax], dl
inc eax
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
jmp 0x40bccd
cmp dword [ebp - 8], 2
jne 0x40bc87
mov dl, byte [esi]
inc esi
jmp 0x40bc89
xor dl, dl
movzx ecx, cl
mov ebx, ecx
shr ebx, 2
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], bl
movzx edx, dl
shl ecx, 4
mov ebx, edx
shr ebx, 4
or ebx, ecx
and ebx, 0x3f
mov cl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc eax
mov byte [eax], cl
inc eax
cmp dword [ebp - 8], 1
jne 0x40bcbd
mov dl, 0x3d
jmp 0x40bcc7
and edx, 0xf
mov dl, byte [edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], dl
inc eax
mov byte [eax], 0x3d
sub dword [ebp - 8], 3
inc eax
cmp dword [ebp - 8], 0
jg 0x40bc19
pop ebx
mov ecx, dword [ebp + 8]
mov byte [eax], 0
lea eax, [ecx + 2]
cdq
push 3
pop ecx
idiv ecx
shl eax, 2
jmp 0x40bcf4
or eax, 0xffffffff
pop esi
leave
ret
Function at 0x40d650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa40c
call fcn.00441080
mov eax, dword [0x473a30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x400
xor ebx, ebx
lea eax, [ebp - 0x408]
push ebx
mov esi, 0x5000
push eax
mov dword [ebp - 0xa40c], esi
call fcn.0043ee90
add esp, 0xc
push esi
lea eax, [ebp - 0x5408]
push ebx
push eax
call fcn.0043ee90
add esp, 0xc
test byte [0x479c34], 2
push ebx
pop eax
sete al
inc eax
push eax
push 0x479bc4
push 0x474ecc
push 0x474e40
lea eax, [ebp - 0x408]
push str._s_sri_sequipment_d
push eax
call fcn.0043ca22
lea eax, [ebp - 0x5408]
push eax
lea eax, [ebp - 0x408]
push eax
lea edi, [ebp - 0xa40c]
call fcn.0040bf10
add esp, 0x20
test eax, eax
jne 0x40d77d
mov eax, dword [0x4823ac]
cmp eax, ebx
je 0x40d711
push 0x40bb74
lea esi, [eax - 4]
push dword [esi]
push 0x64
push eax
call fcn.0043dda7
push esi
call fcn.0041fc73
pop ecx
mov dword [0x4823ac], ebx
mov dword [0x4823a8], ebx
mov ebx, dword [ebp - 0xa40c]
lea esi, [ebx - 7]
shr esi, 1
xor edi, edi
test esi, esi
jle 0x40d74e
lea ecx, [ebp + ebx - 0x540b]
mov dl, byte [ecx]
lea eax, [ebp + edi - 0x5403]
xor byte [eax], dl
mov dl, byte [eax]
xor byte [ecx], dl
mov dl, byte [ecx]
xor byte [eax], dl
inc edi
dec ecx
cmp edi, esi
jl 0x40d735
lea ecx, [ebx - 5]
lea eax, [ebp - 0xa408]
lea edx, [ebp - 0x5403]
call fcn.0040bcf7
mov edx, dword [ebp - 0xa40c]
mov ebx, 0x4823ac
lea ecx, [ebp - 0xa408]
call fcn.0040bfa7
xor eax, eax
inc eax
jmp 0x40d77f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c573
leave
ret
Function at 0x419380
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x14000]
push edi
or ebp, 0xffffffff
jmp 0x4193a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4193a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419398
mov eax, 1
add ebx, ebx
jne 0x4193bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4193b0
jne 0x4193cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4193b0
xor ecx, ecx
sub eax, 3
jb 0x4193e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419452
mov ebp, eax
add ebx, ebx
jne 0x4193eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4193f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41941c
inc ecx
add ebx, ebx
jne 0x419408
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4193fd
jne 0x419419
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4193fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41943c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41942d
jmp 0x41939e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41943c
add edi, ecx
jmp 0x41939e
pop esi
mov edi, esi
mov ecx, 0x170
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41945a
cmp byte [edi], 5
jne 0x41945a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41945f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4194d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a430]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a494]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41948c
mov ecx, edi
jns 0x4194bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1a498]
or eax, eax
je 0x4194d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4194a9
call dword [esi + 0x1a4a0]
mov ebp, dword [esi + 0x1a49c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41950b
sub esp, 0xffffff80
jmp 0x40b05f
Function at 0x401a37
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0x258
mov eax, 0x5615d9
call fcn.00561213
mov edi, ecx
mov dword [ebp - 0x264], edi
xor eax, eax
mov esi, eax
push eax
push 2
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x25c], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401c16
xor eax, eax
push 0x22c
push eax
lea eax, [ebp - 0x240]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x240], 0x22c
lea eax, [ebp - 0x240]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x401c07
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x238], eax
je 0x401b8b
push 1
call dword [sym.imp.MSVCP120.dll_private:_static_class_std::locale::_Locimp____cdecl_std::locale::_Init_bool_]
pop ecx
mov dword [ebp - 0x260], eax
xor ecx, ecx
or esi, 1
mov dword [ebp - 4], ecx
mov ecx, eax
mov dword [ebp - 0x24c], eax
mov edx, dword [eax]
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x25c], esi
call dword [edx + 4]
lea edx, [edi + 0x14]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x258]
call fcn.004024c5
lea ecx, [ebp - 0x21c]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x401b05
mov esi, dword [ebp - 0x258]
lea eax, [ebp - 0x21c]
sub ecx, edx
lea edi, [ebp - 0x21c]
sar ecx, 1
lea eax, [eax + ecx*2]
mov dword [ebp - 0x250], eax
cmp esi, dword [ebp - 0x254]
je 0x401b60
cmp edi, eax
je 0x401b68
push edi
push esi
lea ecx, [ebp - 0x24c]
call fcn.004024e9
test al, al
je 0x401b80
mov eax, dword [ebp - 0x250]
add esi, 2
add edi, 2
cmp esi, dword [ebp - 0x254]
jne 0x401b37
cmp edi, eax
jne 0x401c1e
cmp esi, dword [ebp - 0x254]
jne 0x401c1e
mov byte [ebp - 0x241], 1
jmp 0x401c26
lea ecx, [ebp - 0x24c]
call fcn.00401679
xor eax, eax
mov byte [ebp - 0x241], al
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x248]
test al, 1
je 0x401bb5
and eax, 0xfffffffe
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x248], eax
call fcn.00401679
cmp byte [ebp - 0x241], 0
je 0x401bed
push dword [ebp - 0x238]
xor eax, eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401bed
cmp esi, 0xffffffff
je 0x401bed
push 0xdead
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x240]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov esi, dword [ebp - 0x248]
mov edi, dword [ebp - 0x264]
test eax, eax
jne 0x401aa6
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.005611c2
ret 4
xor eax, eax
mov byte [ebp - 0x241], al
lea ecx, [ebp - 0x24c]
call fcn.00401679
cmp byte [ebp - 0x241], 0
je 0x401b8b
mov byte [ebp - 0x241], 1
jmp 0x401b93
Function at 0x40337b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ecx + 0x14], 8
jb 0x403389
mov ecx, dword [ecx]
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 7
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4033b2
xor eax, eax
jmp 0x403434
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, 0x400
cmp eax, ecx
cmova eax, ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40342b
push edi
push eax
call fcn.0055da37
pop ecx
push esi
mov edi, eax
mov dword [ebp - 4], esi
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403422
push 2
pop eax
cmp dword [ebp - 4], eax
jb 0x40340a
cmp byte [edi], 0xff
jne 0x40340a
cmp byte [edi + 1], 0xfe
jne 0x40340a
xor esi, esi
inc esi
jmp 0x403422
cmp dword [ebp - 4], 3
jb 0x403422
cmp byte [edi], 0xef
jne 0x403422
cmp byte [edi + 1], 0xbb
jne 0x403422
cmp byte [edi + 2], 0xbf
cmove esi, eax
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
pop ecx
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40914c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor edx, edx
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x811c9dc5
movzx eax, byte [ebp + edx - 0x10]
xor eax, esi
imul esi, eax, 0x1000193
inc edx
cmp edx, 8
jb 0x409165
mov edx, dword [ecx + 0x14]
mov eax, edx
and eax, esi
pop edi
pop esi
cmp dword [ecx + 0x18], eax
ja 0x40918f
shr edx, 1
or ecx, 0xffffffff
sub ecx, edx
add eax, ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x409516
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x562592
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5c31c8]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x5c31c8]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x409657
cmp byte [esi + 0x45], bl
je 0x409657
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x409576
xor al, al
jmp 0x409659
push ebx
push 8
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00409810
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x2c]
cmp edi, 0x10
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
cmovae edx, ebx
lea ecx, [esp + 0x1c]
cmovae ecx, ebx
add eax, edx
push eax
push ecx
mov ecx, dword [esi + 0x40]
lea eax, [esi + 0x48]
push eax
call dword [sym.imp.MSVCP120.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x4095d9
dec eax
je 0x4095dd
dec eax
dec eax
je 0x409644
xor bl, bl
jmp 0x409646
mov byte [esi + 0x45], 0
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov ebx, dword [esp + 0x18]
cmp edi, 0x10
mov ecx, dword [esp + 0x14]
cmovae eax, ebx
sub ecx, eax
mov dword [esp + 0x10], ecx
je 0x409625
push dword [esi + 0x50]
cmp edi, 0x10
lea eax, [esp + 0x1c]
push ecx
cmovae eax, ebx
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
mov ecx, dword [esp + 0x20]
add esp, 0x10
cmp ecx, eax
jne 0x4095d5
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
cmp byte [esi + 0x45], 0
je 0x409644
test ecx, ecx
jne 0x40959e
push ecx
push 8
lea ecx, [esp + 0x20]
call fcn.00408dd9
jmp 0x409596
mov bl, 1
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.00401d3f
mov al, bl
jmp 0x409659
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0055daac
mov esp, ebp
pop ebp
ret
Function at 0x40f2c8
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 0x18], ebx
mov byte [edi + 0x20], bl
mov dword [edi + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push str.KgServiceShareData
push 0x1000
push ebx
push 4
push ebx
push 0xffffffffffffffff
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 0x24], eax
test eax, eax
je 0x40f31b
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x40f31b
push eax
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, edi
pop edi
pop esi
pop ebx
ret