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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4926cc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [edi], 0
je 0x407468
cmp byte [edi + 1], 0
je 0x407457
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40746e
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452ca6
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x14]
mov dword [edi + 0x18], eax
cmp byte [edi], 0
je 0x40748d
cmp byte [edi + 1], 0
je 0x407489
push 1
push 0
push 0
push dword [edi + 4]
call ecx
sub eax, dword [edi + 0xc]
jmp 0x407490
xor eax, eax
jmp 0x407490
mov eax, dword [edi + 0x18]
push ebx
mov ebx, 0xffff
cmp eax, ebx
push esi
cmovb ebx, eax
push 0x404
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], ebx
call fcn.00455a70
mov esi, eax
add esp, 4
test esi, esi
jne 0x4074c6
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452ca6
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x10], 0
cmp ebx, eax
jbe 0x4075ca
lea ebx, [ebx]
mov ecx, dword [ebp - 0xc]
add eax, 0x400
cmp eax, ebx
mov edx, eax
cmova edx, ebx
mov ebx, dword [ebp - 0xc]
sub ecx, edx
sub ebx, ecx
cmp ebx, 0x404
mov eax, 0x404
cmova ebx, eax
cmp byte [edi], 0
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
je 0x40752e
cmp byte [edi + 1], 0
je 0x4075ca
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x407531
mov dword [edi + 0x18], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0x14], ebx
je 0x407559
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407554
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x407582
mov edx, dword [edi + 0x18]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x14]
jbe 0x40756c
mov ecx, dword [edi + 0x14]
sub ecx, edx
mov dword [ebp - 0x14], ecx
push ecx
mov ecx, dword [edi + 0x10]
add ecx, edx
push ecx
push esi
call fcn.004583d0
mov eax, dword [ebp - 0x14]
add esp, 0xc
add dword [edi + 0x18], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x4075ca
lea eax, [ebx - 3]
test eax, eax
jle 0x4075bc
dec eax
cmp byte [eax + esi], 0x50
jne 0x4075ae
cmp byte [eax + esi + 1], 0x4b
jne 0x4075ae
cmp byte [eax + esi + 2], 5
jne 0x4075ae
cmp byte [eax + esi + 3], 6
je 0x4075b4
test eax, eax
jg 0x407592
jmp 0x4075bc
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
jne 0x4075ca
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
cmp eax, ebx
jb 0x4074e0
push esi
call fcn.004547da
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esp, 4
xor ecx, ebp
pop esi
pop ebx
pop edi
call fcn.00452ca6
mov esp, ebp
pop ebp
ret
Function at 0x408560
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x4085fb
cmp dword [esi + 4], 0xffffffff
jne 0x4085fb
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x408590
cmp dword [ebp + 0x10], 1
mov eax, dword [0x4814f0]
mov dword [edi], eax
mov edi, dword [ebp + 8]
jne 0x4085c4
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4085c4
mov eax, 0x2000000
pop edi
pop esi
pop ecx
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
mov ecx, edi
call fcn.004070d0
add esp, 8
test eax, eax
jne 0x4085e6
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ecx
pop ebp
ret 0xc
mov ecx, eax
call fcn.004075f0
mov dword [esi], eax
mov eax, dword [0x495dd8]
pop edi
pop esi
pop ecx
pop ebp
ret 0xc
pop edi
mov eax, 0x1000000
pop esi
pop ecx
pop ebp
ret 0xc

Function at 0x408bb0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4926cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
push esi
mov esi, ecx
test ebx, ebx
je 0x408c9a
movzx eax, word [ebx]
test ax, ax
je 0x408c9a
push edi
mov edi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x408bee
cmp ax, 0x5c
jne 0x408bf0
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x408be2
cmp edi, ebx
je 0x408c3a
sub edi, ebx
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00455b02
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x408caa
xor eax, eax
lea edx, [ebp - 0x20c]
mov ecx, esi
mov word [ebp + edi - 0x20c], ax
call fcn.00408bb0
lea ecx, [ebp - 0x414]
sub ecx, esi
movzx eax, word [esi]
mov word [ecx + esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x408c42
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x408c53
lea edi, [ebp - 0x414]
sub ebx, esi
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x408c70
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push 0
lea eax, [ebp - 0x414]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00452ca6
mov esp, ebp
pop ebp
ret
call fcn.004553d2
int3
Function at 0x409500
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
test edi, edi
je 0x40969e
mov esi, dword [ebp + 8]
test esi, esi
je 0x40969e
mov dword [esi + 0xf0], 0xa
mov ecx, dword [edi]
mov eax, ecx
rol ecx, 8
and ecx, 0xff00ff
push ebx
ror eax, 8
and eax, 0xff00ff00
or eax, ecx
mov dword [esi], eax
mov edx, dword [edi + 4]
mov ecx, edx
lea eax, [esi + 4]
ror ecx, 8
and ecx, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or ecx, edx
mov dword [eax], ecx
mov edx, dword [edi + 8]
mov ecx, edx
ror ecx, 8
and ecx, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or ecx, edx
mov dword [esi + 8], ecx
mov ecx, dword [edi + 0xc]
mov ebx, ecx
mov edi, 0x47bb54
rol ecx, 8
and ecx, 0xff00ff
ror ebx, 8
and ebx, 0xff00ff00
or ebx, ecx
mov dword [esi + 0xc], ebx
mov ecx, ebx
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ecx*4 + 0x47bf78]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
xor edx, 0x1000000
mov ecx, dword [ecx*4 + 0x47d478]
and ecx, 0xff0000
and edx, 0xff000000
xor edx, ecx
mov ecx, ebx
shr ecx, 0x18
movzx ecx, byte [ecx*4 + 0x47b750]
xor edx, ecx
movzx ecx, bl
mov ecx, dword [ecx*4 + 0x47bb78]
and ecx, 0xff00
xor edx, ecx
xor edx, dword [esi]
mov ecx, dword [eax]
xor ecx, edx
mov dword [esi + 0x10], edx
mov edx, dword [esi + 8]
xor edx, ecx
mov dword [esi + 0x14], ecx
mov ecx, ebx
xor ecx, edx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], ecx
pop ebx
mov edi, edi
mov edx, dword [eax + 0x18]
lea eax, [eax + 0x10]
mov ecx, edx
shr ecx, 8
and ecx, 0xff
add edi, 4
mov esi, dword [ecx*4 + 0x47d478]
mov ecx, edx
shr ecx, 0x10
and ecx, 0xff
and esi, 0xff0000
mov ecx, dword [ecx*4 + 0x47bf78]
and ecx, 0xff000000
xor esi, ecx
mov ecx, edx
shr ecx, 0x18
movzx ecx, byte [ecx*4 + 0x47b750]
xor esi, ecx
movzx ecx, dl
mov ecx, dword [ecx*4 + 0x47bb78]
and ecx, 0xff00
xor esi, ecx
xor esi, dword [eax - 4]
xor esi, dword [edi - 4]
mov dword [eax + 0xc], esi
mov ecx, dword [eax]
xor ecx, esi
mov dword [eax + 0x10], ecx
mov edx, dword [eax + 4]
xor edx, ecx
mov dword [eax + 0x14], edx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x18], ecx
cmp edi, 0x47bb78
jne 0x409610
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x409c50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov edx, ecx
mov dword [ebp - 4], edx
cmp edi, 0x10
jb 0x409cbd
mov eax, edi
shr eax, 4
mov dword [ebp - 8], eax
sub esi, edx
mov eax, ebx
sub eax, edx
mov ecx, edx
mov dword [ebp - 0xc], eax
mov edx, 4
mov edi, eax
mov eax, dword [esi + ecx]
xor eax, dword [ecx]
lea ecx, [ecx + 4]
mov dword [edi + ecx - 4], eax
dec edx
jne 0x409c85
push dword [ebp + 0xc]
push ebx
push ebx
call fcn.004096b0
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov esi, ebx
sub edi, 0x10
add edx, 0x10
add esp, 0xc
add ebx, 0x10
dec dword [ebp - 8]
mov dword [ebp + 8], edi
mov dword [ebp - 4], edx
jne 0x409c73
test edi, edi
je 0x409dbc
mov ecx, esi
sub ecx, edx
mov dword [ebp - 0xc], ecx
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x10], ecx
mov ecx, 1
sub ecx, edx
mov dword [ebp - 0x14], ecx
mov ecx, 2
sub ecx, edx
mov dword [ebp - 0x18], ecx
mov ecx, 3
xor eax, eax
sub ecx, edx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0xc]
cmp eax, edi
jae 0x409d72
mov edi, dword [ebp - 0x10]
add edx, eax
mov cl, byte [ecx + edx]
xor cl, byte [edx]
mov byte [edi + edx], cl
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp + 8]
add ecx, edx
cmp ecx, edi
jae 0x409d71
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 8], ecx
mov cl, byte [ecx + eax - 1]
xor cl, byte [eax + esi + 1]
mov byte [ebx + eax + 1], cl
mov ecx, dword [ebp - 0x18]
add ecx, edx
cmp ecx, edi
jae 0x409d6c
mov ecx, dword [ebp - 8]
mov cl, byte [ecx + eax]
xor cl, byte [eax + esi + 2]
mov byte [ebx + eax + 2], cl
mov ecx, dword [ebp - 0x1c]
add ecx, edx
cmp ecx, edi
jae 0x409d67
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov cl, byte [ecx + eax + 1]
xor cl, byte [eax + esi + 3]
add eax, 4
mov byte [ebx + eax - 1], cl
mov ecx, dword [ebp - 0xc]
cmp eax, 0x10
jb 0x409cf6
jmp 0x409d8e
add eax, 3
jmp 0x409d72
add eax, 2
jmp 0x409d72
inc eax
cmp eax, 0x10
jae 0x409d8e
mov edx, 0x10
sub esi, ebx
lea ecx, [eax + ebx]
sub edx, eax
mov al, byte [esi + ecx]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x409d83
push dword [ebp + 0xc]
push ebx
push ebx
call fcn.004096b0
add esp, 0xc
mov esi, ebx
cmp edi, 0x10
jbe 0x409dbc
mov edx, dword [ebp - 4]
sub edi, 0x10
add edx, 0x10
add ebx, 0x10
mov dword [ebp + 8], edi
mov dword [ebp - 4], edx
test edi, edi
jne 0x409cc5
movq xmm0, qword [esi]
mov eax, dword [ebp + 0x10]
pop edi
movq qword [eax], xmm0
movq xmm0, qword [esi + 8]
pop esi
movq qword [eax + 8], xmm0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409e40
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x4926cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x409e9f
push 0x5c
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.0045a8b0
push edi
mov edx, esi
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
call fcn.0040b090
add esp, 0x10
lea edx, [ebp - 0x60]
mov ecx, ebx
call fcn.0040b180
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452ca6
mov esp, ebp
pop ebp
ret

Function at 0x40a660
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f9b8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4926cc]
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 dword [ebp - 0x54], ecx
mov esi, dword [ebp + 8]
cmp dword [esi], 0
je 0x40a7eb
cmp dword [0x495de0], 0
je 0x40a7eb
cmp dword [0x493c88], 0
jbe 0x40a7eb
mov eax, dword [esi + 4]
cmp eax, 0x100000
jg 0x40a7eb
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040a4e0
mov dword [ebp - 4], 0
push dword [esi + 4]
lea eax, [ebp - 0x44]
push eax
call fcn.0040a3a0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
mov byte [ebp - 4], 2
push 0
lea eax, [ebp - 0x44]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00401420
lea edx, [ebp - 0x4c]
mov ecx, esi
call fcn.0040a2d0
mov edi, dword [ebp - 0x4c]
add esp, 0x18
test al, al
je 0x40a7ce
push 0xc24
call fcn.00454627
mov ecx, dword [ebp - 0x1c]
add esp, 4
cmp dword [ebp - 0x18], 8
mov esi, eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x58], ecx
test eax, eax
jne 0x40a75e
xor ebx, ebx
jmp 0x40a778
push ecx
call fcn.004521af
add esp, 4
mov ebx, eax
push dword [ebp - 0x58]
push dword [ebp - 0x50]
push ebx
call fcn.004583d0
add esp, 0xc
mov dword [esi + 0xc18], ebx
test edi, edi
jne 0x40a786
xor ebx, ebx
jmp 0x40a7a0
push dword [ebp - 0x48]
call fcn.004521af
add esp, 4
mov ebx, eax
push dword [ebp - 0x48]
push edi
push ebx
call fcn.004583d0
add esp, 0xc
mov eax, dword [ebp - 0x48]
mov dword [esi + 0xc20], eax
xor eax, eax
push eax
push eax
push esi
push 0x40a910
push eax
mov dword [esi + 0xc1c], ebx
push eax
mov word [esi + 0x206], ax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 8], eax
test edi, edi
je 0x40a7db
push edi
call fcn.00453897
add esp, 4
lea ecx, [ebp - 0x44]
call fcn.004012d0
lea ecx, [ebp - 0x2c]
call fcn.0040aab0
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.00452ca6
mov esp, ebp
pop ebp
ret 4
Function at 0x40a810
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46f9e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4926cc]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
push edi
mov eax, dword [0x4926cc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [0x495de0], 0
mov eax, dword [ebp + 8]
jle 0x40a8f0
cmp dword [0x493c88], 0
je 0x40a8f0
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a8f0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jg 0x40a89b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a8f0
push edi
call fcn.004521af
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
push 0
lea ecx, [esp + 0x20]
push ecx
push edi
push eax
mov dword [esp + 0x40], 0
push esi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call fcn.0040a660
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40a8f0
push eax
call fcn.00453897
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00452ca6
mov esp, ebp
pop ebp
ret 4
Function at 0x4140d0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x4926cc]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x24c], eax
test eax, eax
je 0x4142c9
cmp eax, 0xffffffff
je 0x4142c9
lea ecx, [ebp - 0x244]
push ecx
push eax
mov dword [ebp - 0x244], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4142bd
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
cmp word [ebp - 0x220], bx
je 0x4141b5
lea edi, [ebp - 0x220]
lea ecx, [edi + 2]
lea esp, [esp]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x414150
sub edi, ecx
sar edi, 1
jns 0x414165
xor esi, esi
jmp 0x41419a
mov esi, 2
cmp edi, esi
jle 0x414176
mov edi, edi
add esi, esi
cmp esi, edi
jl 0x414170
lea eax, [esi*2 + 2]
push eax
push 0
call fcn.00455561
add esp, 8
test eax, eax
je 0x414199
mov ebx, eax
xor ecx, ecx
mov dword [ebp - 0x18], ebx
mov word [eax], cx
mov dword [ebp - 0x10], esi
inc esi
push edi
lea eax, [ebp - 0x220]
push eax
push esi
push ebx
call fcn.00454b08
add esp, 0x10
xor eax, eax
mov word [ebx + edi*2], ax
mov dword [ebp - 0x14], edi
xor eax, eax
mov dword [ebp - 0x250], eax
mov esi, 2
add esi, esi
cmp esi, 0xa
jl 0x4141c2
lea eax, [esi*2 + 2]
push eax
push 0
call fcn.00455561
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x4141ec
mov dword [ebp - 0x250], eax
xor eax, eax
mov word [ecx], ax
push 0xa
lea eax, [esi + 1]
mov esi, dword [ebp - 0x250]
push str.WeChat.exe
push eax
push esi
call fcn.00454b08
xor eax, eax
add esp, 0x10
mov word [esi + 0x14], ax
cmp word [esi], ax
mov ecx, 0x481274
cmovne ecx, esi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414220
sub ecx, edx
sar ecx, 1
cmp edi, ecx
jge 0x41423b
mov byte [ebp - 0x245], al
jmp 0x41424e
push esi
push ebx
call fcn.00455005
add esp, 8
test eax, eax
setne byte [ebp - 0x245]
push esi
call fcn.004547da
add esp, 4
cmp byte [ebp - 0x245], 0
je 0x414276
push dword [ebp - 0x23c]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x4142a2
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov esi, eax
test ebx, ebx
je 0x414298
push ebx
call fcn.004547da
add esp, 4
test esi, esi
jne 0x414127
jmp 0x4142ba
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.00404110
pop edi
pop esi
pop ebx
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452ca6
mov esp, ebp
pop ebp
ret
Function at 0x417d40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4926cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
push edi
push esi
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x417de2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x417de2
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x417ddb
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x417dd4
push ebx
push edi
push eax
call fcn.004583d0
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x417dcd
mov eax, dword [ebp - 8]
test eax, eax
je 0x417dcd
mov ecx, dword [ebp - 0xc]
push eax
call fcn.00417740
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452ca6
mov esp, ebp
pop ebp
ret
Function at 0x419210
Capabilities:
Identify system language via api

Disassembly:
test ecx, ecx
jne 0x41921d
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov eax, ecx
and eax, 0x3ff
cmp ax, 9
je 0x419253
cmp ax, 4
jne 0x419253
shr cx, 0xa
test cx, cx
je 0x419249
cmp cx, 2
je 0x419249
mov ecx, 0x404
jmp 0x427863
mov ecx, 4
jmp 0x427863
mov ecx, 9
jmp 0x427863
mov dword [0x49651c], ecx
ret
Function at 0x419ed0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4926cc]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
mov dword [ebp - 0x420], ecx
call fcn.0045a8b0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x419f41
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetLogicalDriveStrings_error:__d
call fcn.00456220
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452ca6
mov esp, ebp
pop ebp
ret
push esi
push edi
mov dword [ebp - 0xa], 0
xor esi, esi
lea edi, [ebp - 0x214]
push ebx
mov eax, dword [edi]
mov dword [ebp - 0xc], eax
push 0x104
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x41a001
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
cmp ebx, 0x104
jae 0x419fac
push ebx
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x420]
call fcn.0045552b
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x419fca
add edi, 8
test esi, esi
jne 0x41a015
test edi, edi
jne 0x419f53
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452ca6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x420]
lea eax, [eax + ebx*2]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x482780
push 0x496158
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov eax, 1
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452ca6
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryDosDrive_error:__d
call fcn.00456220
add esp, 8
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00452ca6
mov esp, ebp
pop ebp
ret
Function at 0x41bfb0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470573
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4926cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x4964e0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx], 0x4964e0
mov byte [ebp - 4], 1
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x479eb0
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.0041ae00
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x420490
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4926cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
push eax
mov dword [esi + 0x10], 0
call fcn.0045a8b0
push 0x104
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0045a8b0
add esp, 0x18
lea eax, [ebp - 0x418]
push eax
push 0x1a
push 0
mov dword [ebp - 0x418], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x420549
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x420549
push 0x104
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea eax, [ebp - 0x414]
push eax
mov ecx, esi
call fcn.00404230
mov eax, dword [esi + 4]
add eax, 8
push eax
mov ecx, esi
call fcn.004045c0
push 0x482e68
push eax
push dword [esi]
call fcn.004544c5
add dword [esi + 4], 8
mov eax, dword [esi + 4]
add esp, 0xc
add eax, 8
push eax
mov ecx, esi
call fcn.004045c0
push str.WeChat_
push eax
push dword [esi]
call fcn.004544c5
add dword [esi + 4], 8
add esp, 0xc
mov ecx, esi
call fcn.00420990
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00452ca6
mov esp, ebp
pop ebp
ret