joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10012ff1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [0x100164cb]
mov esi, 0xe
lea edi, [ebp - 0x28]
mov dword [0x10076df4], 0x90d
mov dword [0x10076df8], 0xb59
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0xe
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
call fcn.10013711
mov eax, dword [0x10076df4]
add eax, 0x1da2
mov dword [0x10076df8], eax
call fcn.1001329d
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.100134f7
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
je 0x10013135
mov dword [0x10076df8], 0xc01
mov eax, dword [ebp - 0x3c]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x10076df4], 0x1a95
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x44], eax
call fcn.10013341
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
mov dword [0x10076df8], 0x539
add ecx, 0xffc00000
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x40], ecx
mov ecx, dword [0x10076df8]
add ecx, 0xffffeed3
mov dword [0x10076df8], ecx
mov ecx, dword [ebp - 0x44]
mov dword [edx + 0x24], ecx
mov dword [0x10076df4], 0x147
cmp ecx, 0
mov dword [ebp - 0x40], eax
je 0x10013135
mov eax, dword [ebp - 0x44]
add eax, 0x1cf1
mov dword [0x10076df8], 0x1479
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x4c
pop esi
pop edi
pop ebp
ret
Function at 0x10013883
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x10076dfc], 0
mov dword [0x10076e00], 0
mov dword [0x10076e0c], 0
mov ebx, dword [0x10076df4]
add ebx, 0x5f1
mov dword [0x10076df4], ebx
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov eax, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
je 0x10013a16
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x14]
mov edi, 0x100
add edx, 0x214e
mov ebx, ecx
add ebx, 1
add eax, 1
mov dword [0x10076df4], edx
cdq
idiv edi
mov dword [0x10076dfc], edx
mov dword [0x10076df8], 0xe94
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x24]
movzx ecx, byte [ecx + edx]
add ecx, esi
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv edi
mov dword [0x10076e00], edx
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x10076e04], cl
mov edi, dword [ebp - 0x24]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x10076df4], 0x20fe
mov cl, byte [0x10076e04]
mov edx, dword [0x10076e00]
mov byte [edi + edx], cl
mov edx, dword [0x10076dfc]
movzx edx, byte [edi + edx]
mov ecx, dword [0x10076e00]
movzx ecx, byte [edi + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x10076e0c], ecx
mov dword [0x10076df4], 0x211
mov cl, byte [edi + ecx]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov ch, byte [edx + esi]
mov byte [0x10076e11], ch
mov byte [0x10076e12], cl
mov dword [0x10076df4], 0x1106
xor ch, cl
mov byte [0x10076e10], ch
mov edx, dword [ebp - 0x20]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x38], ebx
je 0x10013a16
mov eax, dword [0x10076df4]
mov ecx, dword [0x10076dfc]
mov edx, dword [0x10076e00]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x2c], esi
jmp 0x100138f1
mov eax, dword [0x10076df8]
add eax, 0x221
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [0x10076df8], eax
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10013ada
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x10076e00], 0
mov byte [0x10076e04], 0
mov dword [0x10076df4], 0x9b7
mov dword [0x10076dfc], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x10013b4e
mov dword [0x10076df4], 0x20f6
mov dword [0x10076df8], 0xbda
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov dword [0x10076dfc], 0
mov dword [ebp - 0x20], eax
jmp 0x10013b80
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x10076df4], 0x1a34
mov eax, dword [0x10076dfc]
add eax, 1
mov dword [0x10076dfc], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10013b4e
jmp 0x10013b3d
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x10076e08], 0
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x10076df8], 0xa70
mov edi, dword [0x10076e00]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x10076e08], esi
mov dword [0x10076df4], 0x2605
mov eax, esi
cdq
idiv ecx
mov dword [0x10076e00], edx
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x10076e04], cl
mov dword [0x10076df8], 0x1d7f
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov dword [0x10076df4], 0x14bd
mov cl, byte [0x10076e04]
mov esi, dword [0x10076e00]
mov byte [ebx + esi], cl
mov esi, dword [0x10076dfc]
add esi, 1
mov dword [0x10076dfc], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x10013b80
jmp 0x10013b21
Function at 0x10013c3a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [ebp + 8]
mov ecx, dword [0x10076df4]
add ecx, 0x89f
mov dword [0x10076df4], ecx
mov dword [0x10076df8], 0x1fa4
mov dword [ebp - 0x10], eax
call fcn.1001299e
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x10013c92
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x10076df4], 0xfffff354
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x24]
mov dword [0x10076df8], 0x1e93
mov edi, dword [edx + eax + 0x18]
cmp edi, 0
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
je 0x10013e0f
jmp 0x10013d1c
mov al, byte [ebp - 0x35]
test al, 1
jne 0x10013dd7
jmp 0x10013d90
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
xor esi, esi
add ecx, 0x89f
mov edi, dword [ebp - 0x28]
mov ebx, dword [edi + edx*4]
mov dword [0x10076df4], ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], esi
jmp 0x10013d36
xor eax, eax
mov ecx, 0xfffff354
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x2c]
add edx, esi
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], edx
jmp 0x10013cee
mov eax, dword [ebp - 0x58]
mov ecx, eax
mov edx, dword [ebp - 0x4c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x5d], bh
mov byte [ebp - 0x35], cl
je 0x10013cde
mov eax, dword [ebp - 0x5c]
add eax, 1
mov cl, byte [ebp - 0x5d]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x35]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x58], eax
jne 0x10013d36
jmp 0x10013cde
mov eax, dword [ebp - 0x48]
add eax, 2
mov ecx, dword [ebp - 0x50]
add ecx, 1
mov edx, dword [ebp - 0x30]
cmp ecx, edx
setb bl
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x68], ecx
mov byte [ebp - 0x69], bl
xor eax, eax
mov cl, byte [ebp - 0x69]
test cl, 1
mov edx, dword [ebp - 0x68]
mov esi, dword [ebp - 0x54]
mov edi, dword [ebp - 0x64]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x34], eax
jne 0x10013cee
jmp 0x10013e0f
mov eax, dword [ebp - 0x48]
mov cx, word [eax]
mov word [ebp - 0x6c], cx
mov ax, word [ebp - 0x6c]
movzx ecx, ax
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov dword [0x10076df4], 0x5ea
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x10076df8], 0x19e
mov dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x34]
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10013e1a
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [0x10076df4]
add eax, 0xfffff2a7
mov dword [0x10076df4], eax
mov dword [ebp - 0x10], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov dword [0x10076df8], 0x1944
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x10076df4], 0x2173
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
jmp 0x10013e83
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], eax
jge 0x10013e99
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
jne 0x10013e6c
mov eax, dword [ebp - 0x24]
mov dword [0x10076df8], 0x1341
mov dword [0x10076df4], 0x356f
mov ecx, dword [ebp - 0x18]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x28], eax
jne 0x10013f6c
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x10013f6c
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x10013f6c
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x10013f6c
mov dword [0x10076df4], 0x8c1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x10013f6c
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x10013f6c
mov eax, 0xb8a
mov ecx, 0x23bc
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
mov di, word [edx + esi*2 - 0xe]
cmp di, 0x6c
sete bl
cmp di, 0x6c
mov byte [ebp - 0x29], bl
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], eax
je 0x10013f53
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [0x10076df4], eax
mov cl, byte [ebp - 0x29]
and cl, 1
movzx eax, cl
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10004340
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10015738
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1001d2a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x100044e6
cmp byte [ebx + 0x49], 0
je 0x100044e6
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x100044d3
lea esi, [ebp - 0x2c]
call fcn.10003e50
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x100043b3
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x100043f3
dec eax
je 0x100043f7
sub eax, 2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
je 0x100044e1
call fcn.10002a80
xor al, al
jmp 0x100044e8
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x10004407
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x10004434
cmp edi, 0x10
jae 0x10004416
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.10006024
add esp, 0x10
cmp esi, eax
jne 0x100044c4
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x100044d7
test esi, esi
jne 0x100043a7
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x10004503
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x10004503
cmp edi, esi
jae 0x100044ad
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.10004a20
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x100043a7
mov ecx, eax
cmp edi, 0x10
jae 0x10004489
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x100044a4
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x100043a1
test esi, esi
jne 0x1000447f
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x100044bc
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x100043a1
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.10002a80
xor al, al
jmp 0x100044e8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10002a80
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10004fed
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.100129cd
int3
Function at 0x100048f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100156ab
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1001d2a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10012896
push 4
mov dword [ebp - 4], 0
call fcn.100055f1
mov edi, eax
add esp, 4
test edi, edi
je 0x1000496c
call fcn.100123e7
mov dword [edi], eax
call fcn.100121a6
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.100120db
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x10004962
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.10012103
jmp 0x1000496e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10004fed
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001d2a0]
jne 0x10004ff7
repz ret
jmp fcn.10006889
Function at 0x1000c70b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001d2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10008f87
and dword [ebp - 0x14], 0
cmp dword [0x1001f1b0], 0
mov dword [ebp - 0x18], eax
jne 0x1000c7be
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000c866
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1000c866
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1001f1b0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1001f1b4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1001f1b8], eax
call edi
push eax
call esi
mov dword [0x1001f1c0], eax
test eax, eax
je 0x1000c7be
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1001f1bc], eax
mov eax, dword [0x1001f1bc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1000c817
cmp dword [0x1001f1c0], ecx
je 0x1000c817
push eax
call esi
push dword [0x1001f1c0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1000c817
test ebx, ebx
je 0x1000c817
call edi
test eax, eax
je 0x1000c80e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000c80e
test byte [ebp - 8], 1
jne 0x1000c817
or dword [ebp + 0x10], 0x200000
jmp 0x1000c84a
mov eax, dword [0x1001f1b4]
cmp eax, dword [ebp - 0x18]
je 0x1000c84a
push eax
call esi
test eax, eax
je 0x1000c84a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000c84a
mov eax, dword [0x1001f1b8]
cmp eax, dword [ebp - 0x18]
je 0x1000c84a
push eax
call esi
test eax, eax
je 0x1000c84a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1001f1b0]
call esi
test eax, eax
je 0x1000c866
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1000c868
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10004fed
leave
ret
Function at 0x401260
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x43d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x3c]
push esi
push eax
call fcn.00401710
push 0xe
push 0
push str._launch_appid
lea ecx, [ebp - 0x3c]
call fcn.00401bb0
push 1
mov esi, eax
lea ecx, [ebp - 0x3c]
push esi
push 0x43a5a8
call fcn.00401bb0
test eax, eax
lea ecx, [ebp - 0x3c]
cmovs eax, dword [ebp - 0x28]
sub eax, esi
push eax
lea eax, [esi + 0xe]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004015a0
cmp dword [ebp - 0x44], 0
je 0x401357
push 0
push 0x43a5ac
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
jne 0x401346
push eax
push str.WeChatLoginWndForPC
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
jne 0x401346
push str.__wechat_app_desktop_launch
lea ecx, [ebp - 0x20]
call fcn.00401710
push str._launch_appid
push 0x43a5a8
lea ecx, [ebp - 0x20]
call fcn.004015d0
mov ecx, eax
call fcn.004015d0
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x58]
push ecx
mov ecx, eax
call fcn.00401fa0
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push 1
cmovae eax, dword [ebp - 0x1c]
push esi
push eax
push str.WeChat.exe
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x20]
call fcn.00401630
jmp 0x401357
lea edx, [ebp - 0x58]
mov ecx, esi
call fcn.00401490
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
lea ecx, [ebp - 0x58]
call fcn.00401630
lea ecx, [ebp - 0x3c]
call fcn.00401630
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00402c90
mov esp, ebp
pop ebp
ret 0x10

Function at 0x406c40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
dec ecx
jne 0x406b4c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [edx + 0x10]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [edx + 0x3c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x406d20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [eax + 0x78]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x406d50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
nop
nop
nop
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
je 0x4072d6
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 0x18]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x406e00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, dword [eax + 0x20]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add ebx, edx
nop
nop
nop

Function at 0x406e40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop