joyce8/EMBER2024-capa huggingface dataset:
Function at 0x482d90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
push esi
test edx, edx
je 0x482e7d
mov esi, dword [esp + 0xc]
test esi, esi
jbe 0x482e7d
mov eax, dword [esp + 0x10]
push edi
not eax
mov ecx, 0xff
cmp esi, 8
jb 0x482e5f
mov edi, esi
shr edi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x520200]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x520200]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x520200]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x520200]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x520200]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x520200]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x520200]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x520200]
inc edx
sub esi, 8
dec edi
jne 0x482dc4
pop ebx
test esi, esi
je 0x482e78
movzx edi, byte [edx]
xor edi, eax
and edi, ecx
shr eax, 8
xor eax, dword [edi*4 + 0x520200]
inc edx
dec esi
jne 0x482e63
pop edi
not eax
pop esi
ret
mov eax, dword [esp + 0x10]
pop esi
ret

Function at 0x482e83
Capabilities:
Check os version
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ebx, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
cmp al, 6
jae 0x482e9e
mov ebx, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
and dword [ebp - 4], 0
push 0
push 0x18
push ebx
mov edi, str.SMTContainer
push edi
lea eax, [ebp - 4]
push eax
call esi
test eax, eax
jne 0x482ec9
push 8
push 0x18
push ebx
push edi
lea eax, [ebp - 4]
push eax
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x482ed1
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
push edi
xor edi, edi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ecx
cmp dword [ebp + 8], edi
jne 0x482efc
xor eax, eax
jmp 0x482ff9
push ebx
push esi
push 0x20
pop esi
cmp eax, edi
jne 0x482f0f
mov dword [ebp - 0x48], str.vc8v7vghw7v278vn2v8239vh29vh890m
mov dword [ebp + 0x10], esi
push 0x10
pop eax
cmp ecx, edi
jne 0x482f20
mov dword [ebp - 0x4c], str.aqkeezgxijvlm2op
mov dword [ebp + 0x18], eax
cmp dword [ebp + 0x10], esi
jbe 0x482f28
mov dword [ebp + 0x10], esi
xor ecx, ecx
push 0x2c
mov byte [ebp - 0x40], 8
mov byte [ebp - 0x3f], 2
mov word [ebp - 0x3e], cx
mov dword [ebp - 0x3c], 0x6610
mov dword [ebp - 0x38], esi
pop ebx
cmp dword [ebp + 0x10], eax
ja 0x482f55
push 0x1c
pop ebx
mov dword [ebp - 0x3c], 0x660e
mov dword [ebp - 0x38], eax
push esi
lea eax, [ebp - 0x34]
push edi
push eax
call fcn.0049d740
push dword [ebp + 0x10]
lea eax, [ebp - 0x34]
push dword [ebp - 0x48]
push esi
push eax
call fcn.0049ac45
add esp, 0x1c
lea eax, [ebp - 0x44]
push eax
push edi
push edi
push ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x44], edi
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x482ff4
cmp dword [ebp - 0x44], edi
je 0x482ff4
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push edi
lea eax, [ebp - 0x48]
push eax
push 4
push dword [ebp - 0x44]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x48], ebx
call esi
push edi
lea eax, [ebp - 0x50]
push eax
push 3
push dword [ebp - 0x44]
mov dword [ebp - 0x50], ebx
call esi
push 0x10
pop eax
cmp dword [ebp + 0x18], eax
jbe 0x482fc5
mov dword [ebp + 0x18], eax
push dword [ebp + 0x18]
xor eax, eax
push dword [ebp - 0x4c]
mov byte [ebp - 0x14], 0
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.0049ac45
add esp, 0x10
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x44]
call esi
mov eax, dword [ebp - 0x44]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0049a49b
leave
ret
Function at 0x483006
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 8], ebx
je 0x4830aa
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x4830aa
mov esi, dword [ebp + 0x14]
cmp dword [ebp + 0x10], ebx
je 0x483031
cmp dword [esi], edi
jb 0x4830aa
mov dword [ebp - 4], edi
mov dword [ebp - 8], ebx
call fcn.00482e83
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x4830a5
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
call fcn.00482ed1
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x48309a
cmp dword [ebp + 0x10], 0
je 0x483075
push edi
push dword [ebp + 8]
push dword [esi]
push dword [ebp + 0x10]
call fcn.0049ac45
add esp, 0x10
push dword [esi]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push 0
push 1
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push ebx
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
jmp 0x4830ac
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4830b1
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor eax, eax
push esi
push edi
cmp dword [ebp + 8], eax
je 0x483195
cmp dword [ebp + 0xc], eax
je 0x483195
cmp dword [ebp + 0x10], eax
je 0x483195
mov ebx, dword [ebp + 0x14]
cmp ebx, eax
je 0x483195
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 0x1c]
cmp edi, eax
je 0x4830f4
cmp dword [esi], ebx
jb 0x483195
mov dword [ebp - 8], eax
call fcn.00482e83
xor ecx, ecx
mov dword [ebp - 0xc], eax
cmp eax, ecx
je 0x483190
lea edx, [ebp - 4]
push edx
push ecx
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x483185
push ebx
push dword [ebp + 0x10]
push dword [esi]
push edi
call fcn.0049ac45
mov eax, dword [esi]
add esp, 0x10
push eax
push esi
push edi
push 0
push 1
push 0
push dword [ebp - 4]
mov dword [esi], ebx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov dword [ebp - 8], eax
test eax, eax
je 0x48317c
test edi, edi
je 0x48317c
xor eax, eax
test dword [esi], 0xfffffffe
jbe 0x48317c
mov edx, dword [esi]
mov cl, byte [eax + edi]
sub edx, eax
mov dl, byte [edx + edi - 1]
mov byte [eax + edi], dl
mov edx, dword [esi]
sub edx, eax
mov byte [edx + edi - 1], cl
mov ecx, dword [esi]
inc eax
shr ecx, 1
cmp eax, ecx
jb 0x48315d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
jmp 0x483197
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4831f0
Capabilities:
Encode data using base64 via winapi

Disassembly:
push 0x40
mov eax, 0x50c6c0
call fcn.0049e056
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi]
mov ecx, eax
shr ecx, 6
lea eax, [ecx + eax + 0xa]
push eax
mov dword [ebp - 0x38], eax
call fcn.00499a0f
push dword [ebp - 0x38]
mov edi, eax
push 0
push edi
call fcn.0049d740
add esp, 0x10
lea eax, [ebp - 0x38]
push eax
push edi
push reloc.WS2_32.dll_accept
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
push edi
lea ecx, [ebp - 0x2c]
mov ebx, eax
call fcn.00401644
and dword [ebp - 4], 0
push edi
call fcn.0049a490
pop ecx
test ebx, ebx
jne 0x483270
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004017de
mov eax, esi
call fcn.0049e0d9
ret
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00411420
jmp 0x4832b2
lea ecx, [ebp - 0x34]
call fcn.00411f9c
cmp byte [eax], 0xa
jne 0x4832aa
push dword [ebp - 0x30]
lea eax, [ebp - 0x4c]
push dword [ebp - 0x34]
lea ecx, [ebp - 0x2c]
push eax
call fcn.0048319c
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
jmp 0x4832b2
lea ecx, [ebp - 0x34]
call fcn.00419dda
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004179b6
push eax
lea ecx, [ebp - 0x34]
call fcn.00419e13
test al, al
je 0x48327e
mov eax, dword [esi]
cmp dword [ebp - 0x18], eax
jbe 0x4832d6
xor ebx, ebx
jmp 0x4832f7
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebp - 0x28]
jae 0x4832e2
lea ecx, [ebp - 0x28]
push dword [ebp - 0x18]
push ecx
push eax
push dword [ebp - 0x3c]
call fcn.004a3015
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov dword [esi], eax
mov esi, ebx
jmp 0x48325c

Function at 0x4857be
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
lea ecx, [esi + 0x6af58]
lea eax, [esi + 0x6af60]
push edi
mov dword [eax], ebx
cmp dword [ecx], ebx
jne 0x4857e5
mov dword [eax], 1
mov dword [ecx], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af58]
push ebx
push eax
mov dword [esi + 0x6af54], ebx
call fcn.0049d740
add esp, 0xc
mov eax, 0x102
push 0x10000
lea edi, [esi + 0x1af58]
push edi
mov ecx, esi
mov dword [esi + 0x6af80], eax
mov dword [esi + 0x6af84], 0x20
mov dword [esi + 0x6af88], eax
mov dword [esi + 0x6af7c], 0x1000
mov dword [esi + 0x6af6c], ebx
mov dword [esi + 0x6af5c], ebx
call fcn.0048532d
mov dword [esi + 0x6af78], eax
cmp eax, ebx
je 0x48588d
cmp eax, 0xffffffff
je 0x48588d
mov dword [esi + 0x6af74], ebx
cmp eax, 0x106
jae 0x485865
call fcn.004856aa
mov dword [esi + 0x6af64], ebx
movzx eax, byte [edi + ebx]
mov ecx, dword [esi + 0x6af64]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
inc ebx
mov dword [esi + 0x6af64], eax
cmp ebx, 2
jb 0x48586b
jmp 0x48589d
mov dword [esi + 0x6af74], 1
mov dword [esi + 0x6af78], ebx
pop edi
pop esi
pop ebx
ret
Function at 0x486bb4
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x486c03
mov eax, dword [esp + 8]
test eax, eax
je 0x486c03
mov dx, word [ecx + 6]
mov word [eax + 4], dx
mov dx, word [ecx + 8]
mov word [eax + 6], dx
mov dx, word [ecx + 0xa]
mov word [eax + 8], dx
mov dx, word [ecx + 0xc]
mov word [eax + 0xa], dx
mov dx, word [ecx + 0xe]
mov word [eax + 0xc], dx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0xe], edx
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x12], edx
mov ecx, dword [ecx + 0x18]
mov dword [eax + 0x16], ecx
xor eax, eax
inc eax
jmp 0x486c05
xor eax, eax
ret 8
Function at 0x487460
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
mov esi, dword [ebp + 0x19c]
push edi
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], esi
cmp dword [ebx + 0x10], edi
je 0x48749a
xor eax, eax
jmp 0x487567
cmp esi, edi
je 0x487493
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4874b5
push esi
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
jne 0x487493
lea esi, [ebx + 0x1c]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
mov ecx, 0x314
cdq
idiv ecx
test eax, eax
jbe 0x487564
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.0049d740
add esp, 0xc
push edi
mov ecx, esi
call fcn.00486c08
add eax, 4
push eax
push dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x78]
push eax
call fcn.0049d71b
pop ecx
xor ecx, ecx
test eax, eax
jbe 0x487527
lea edx, [ebp + ecx*2 - 0x78]
cmp word [edx], 0x2f
jne 0x487522
push 0x5c
pop ebx
mov word [edx], bx
mov ebx, dword [ebp - 0x7c]
inc ecx
cmp ecx, eax
jb 0x48750f
push edi
mov ecx, esi
call fcn.00486c08
mov eax, dword [eax]
test byte [eax + 0x26], 0x10
lea eax, [ebp - 0x78]
push eax
je 0x487545
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
jmp 0x48754d
push edi
mov ecx, ebx
call fcn.0048722e
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
mov ecx, 0x314
cdq
idiv ecx
inc edi
cmp edi, eax
jb 0x4874ce
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a49b
add ebp, 0x194
leave
ret 4

Function at 0x488012
Capabilities:
Check if file exists
Get file size
Read file via mapping

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
xor edi, edi
mov esi, ecx
cmp ebx, edi
jne 0x488025
xor eax, eax
jmp 0x488094
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x488021
push edi
push 0x80
push 3
push edi
push 1
push connect
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x488021
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x14], eax
cmp eax, 0x16
jb 0x488021
push edi
push edi
push edi
push 2
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
cmp dword [esi + 4], edi
je 0x488021
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
cmp eax, edi
je 0x488021
push dword [esi + 0x14]
mov ecx, esi
push eax
call fcn.00487f6e
pop edi
pop esi
pop ebx
ret 4
Function at 0x48b914
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x48b939
cmp eax, edi
jge 0x48b931
mov eax, esi
call fcn.0048b2d2
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor ecx, ecx
cmp dword [esi + 8], ecx
jle 0x48b95b
mov al, byte [esi + 0xc]
shr dword [esi + 0xc], 8
add dword [esi + 8], 0xfffffff8
mov byte [ebp + ecx - 4], al
inc ecx
cmp dword [esi + 8], 0
jg 0x48b940
cmp ecx, 4
jge 0x48b978
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x48b968
xor edx, edx
jmp 0x48b96e
movzx edx, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx - 4], dl
inc ecx
cmp ecx, 4
jl 0x48b95e
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x48b9ac
mov dword [0x558c54], str.zlib_corrupt
xor eax, eax
jmp 0x48b9ec
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x48b9c1
mov dword [0x558c54], str.read_past_buffer
jmp 0x48b9a8
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x48b9d6
mov ecx, edi
call fcn.0048b2fb
test eax, eax
je 0x48b9a8
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0049d7c0
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret
Function at 0x490032
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xc8
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
lea eax, [ebp - 0x50]
push eax
mov dword [0x558d80], 0x20
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ebx, ebx
inc ebx
test eax, eax
je 0x49013d
mov eax, dword [ebp - 0x24]
push 4
pop ecx
sub eax, ecx
je 0x490118
dec eax
je 0x4900cd
dec eax
jne 0x490137
mov eax, dword [ebp - 0x20]
sub eax, 0
je 0x4900c0
dec eax
je 0x4900ae
dec eax
jne 0x49013d
cmp byte [ebp + 0x72], bl
setne al
add eax, 9
jmp 0x4900b9
xor eax, eax
cmp byte [ebp + 0x72], bl
sete al
add eax, 7
mov dword [0x551910], eax
jmp 0x49013d
xor eax, eax
cmp byte [ebp + 0x72], bl
setne al
add eax, 6
jmp 0x4900b9
mov eax, dword [ebp - 0x20]
sub eax, 0
je 0x49010c
dec eax
je 0x4900e0
dec eax
jne 0x49013d
cmp byte [ebp + 0x72], bl
jne 0x4900e8
mov dword [0x551910], ecx
jmp 0x49013d
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call esi
test eax, eax
jne 0x490102
mov dword [0x551910], 5
jmp 0x49013d
push 0x59
call esi
test eax, eax
je 0x49013d
jmp 0x4900f6
mov dword [0x551910], 3
jmp 0x49013d
cmp dword [ebp - 0x20], 0
je 0x49012a
cmp dword [ebp - 0x20], 0xa
je 0x490137
cmp dword [ebp - 0x20], 0x5a
jmp 0x490135
push 2
pop eax
cmp dword [ebp - 0x18], eax
je 0x4900b9
cmp dword [ebp - 0x18], ebx
jne 0x49013d
mov dword [0x551910], ebx
and dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 0x2c], ebx
pop esi
pop ebx
jne 0x490163
mov dword [0x558d80], 0x40
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
and eax, 0x3ff
cmp ax, 4
jne 0x490183
mov dword [0x551914], 2
jmp 0x490196
xor ecx, ecx
cmp ax, 9
sete cl
lea ecx, [ecx + ecx + 1]
mov dword [0x551914], ecx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.0049a49b
add ebp, 0x78
leave
ret
Function at 0x4910ef
Capabilities:
Read file via mapping

Disassembly:
push 0x38
mov eax, 0x50c88e
call fcn.0049e056
xor eax, eax
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
or dword [ebp - 0x40], 0xffffffff
mov esi, ecx
mov dword [ebp - 0x34], edi
cmp edi, 0x200000
ja 0x491164
push edi
mov dword [ebp - 0x38], 1
call fcn.0049b479
xor ebx, ebx
pop ecx
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x4911db
lea ecx, [esi + 0x20]
mov eax, dword [ecx]
mov dword [ebp - 0x44], ecx
call dword [eax + 4]
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00491053
or dword [ebp - 4], 0xffffffff
push 5
mov edi, eax
pop ecx
lea esi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x4911db
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
mov dword [ebp - 0x38], ebx
call fcn.004913e9
pop ecx
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], 1
jae 0x491186
lea eax, [ebp - 0x28]
push ebx
push 0x4000100
push 2
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40], eax
push ebx
cmp eax, 0xffffffff
jne 0x4911e6
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040184d
cmp dword [ebp - 0x30], ebx
je 0x4911c0
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x30], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3c], ebx
je 0x4911d0
push dword [ebp - 0x3c]
call esi
cmp dword [ebp - 0x40], 0xffffffff
je 0x4911db
push dword [ebp - 0x40]
call esi
mov eax, dword [ebp - 0x30]
call fcn.0049e0d9
ret 4
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4911f7
push ebx
jmp 0x4911a5
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
test eax, eax
je 0x4911a5
push ebx
push ebx
push 4
push ebx
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x3c], eax
push ebx
cmp eax, ebx
je 0x4911a5
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x30], eax
cmp eax, ebx
jne 0x49123a
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040184d
jmp 0x4911c0
lea ecx, [esi + 0x20]
mov eax, dword [ecx]
mov dword [ebp - 0x44], ecx
call dword [eax + 4]
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00491053
push 5
mov edi, eax
pop ecx
lea esi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx]
mov byte [ebp - 4], 1
call dword [eax + 8]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040184d
jmp 0x4911db
Function at 0x4913e9
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x42c
lea ebp, [esp - 4]
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp + 0x42c], eax
push 8
mov eax, 0x50c8bb
call fcn.0049dfed
mov eax, dword [ebp + 0x438]
xor ebx, ebx
push ebx
lea ecx, [ebp]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ebx
mov dword [ebp + 0x18], 7
call fcn.00401afa
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0049d740
add esp, 0xc
lea eax, [ebp + 0x1c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, ebx
je 0x4914a3
cmp eax, esi
ja 0x4914a3
xor eax, eax
push edi
mov word [ebp + 0x224], ax
lea eax, [ebp + 0x226]
push ebx
push eax
call fcn.0049d740
add esp, 0xc
lea eax, [ebp + 0x224]
push eax
push ebx
push 0x5226ac
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4914a3
lea eax, [ebp + 0x224]
push eax
lea ecx, [ebp]
call fcn.00401829
mov ecx, dword [ebp - 0x10]
lea eax, [ebp]
push eax
call fcn.00403757
push ebx
push 1
lea ecx, [ebp]
call fcn.0040184d
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x42c]
xor ecx, ebp
call fcn.0049a49b
add ebp, 0x430
leave
ret

Function at 0x49238c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
jne 0x4923a2
xor al, al
jmp 0x492465
mov eax, dword [esi]
push edi
mov edi, 0x4e20
push edi
lea ecx, [ebp - 4]
push ecx
push str.kill_server
mov ecx, esi
mov dword [ebp - 4], ebx
call dword [eax + 4]
cmp dword [ebp - 4], ebx
je 0x4923d2
cmp al, 1
jne 0x4923d2
push dword [ebp - 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov dword [ebp - 4], ebx
call dword [esi + 0x14]
test al, al
je 0x492462
mov eax, dword [esi]
push edi
lea ecx, [ebp - 4]
push ecx
push str.kill_kingsoftadb
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 4], ebx
je 0x492404
cmp al, 1
jne 0x492404
push dword [ebp - 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov dword [ebp - 4], ebx
call dword [esi + 0x14]
test al, al
je 0x492462
push 0x13ad
mov ecx, esi
call fcn.00492255
cmp eax, ebx
je 0x492462
push eax
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x492462
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
test eax, eax
jne 0x49245c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.TerminateProcess_Adb_Error:_d
push 3
call fcn.00409c47
push eax
call fcn.00474128
add esp, 0x10
jmp 0x492462
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret