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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x467218]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4247c5
cmp byte [ebx], 0xa
jne 0x4247c5
or byte [edi + eax + 0x28], 4
jmp 0x4247ca
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4248c9
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4248ac
inc eax
cmp dl, 0xd
je 0x4247f6
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x42481c
cmp eax, ecx
jae 0x42482a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4247de
jmp 0x4248c9
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4248a7
cmp dword [ebp - 0x10], 0
je 0x4248a7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x467218]
test byte [eax + edi + 0x28], 0x48
je 0x424881
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42486c
mov byte [esi], dl
jmp 0x42487d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x467218]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4248c9
cmp byte [ebp - 1], 0xa
jne 0x424890
cmp esi, ebx
jne 0x424890
mov byte [esi], 0xa
jmp 0x4248c8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042530b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4248c9
mov byte [esi], 0xd
jmp 0x4248c8
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x467218]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4248c6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4248c9
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4248d2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x467218]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x424918
cmp word [ebx], dx
jne 0x424918
or byte [eax + edi + 0x28], 4
jmp 0x42491d
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x424a80
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x424a60
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x42495e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x424994
cmp eax, edx
jae 0x4249a2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x424939
jmp 0x424a80
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x424a5b
cmp dword [ebp - 0x18], 0
je 0x424a5b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x467218]
test byte [eax + edi + 0x28], 0x48
je 0x424a31
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4249f5
mov word [esi], cx
jmp 0x424a2c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x467218]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x467218]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x467218]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x424a80
pop eax
cmp word [ebp - 4], ax
jne 0x424a41
cmp esi, ebx
jne 0x424a41
mov word [esi], ax
jmp 0x424a7d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042530b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x424a80
push 0xd
pop eax
jmp 0x424a3c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x467218]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x424a7a
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x424a80
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x426a3a
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x43d200]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x426a85
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00426bd5
test al, al
jne 0x426a7f
sub edx, 2
cmp edx, edi
jne 0x426a65
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x426aa7
lea eax, [edi + 2]
cmp edx, eax
je 0x426aa7
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00426986
add esp, 0x10
jmp 0x426ba1
push esi
lea ecx, [ebp - 0x255]
call fcn.00426bd5
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x426aea
push dword [ebp - 0x25c]
jmp 0x426a97
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x426b27
cmp word [ebp - 0x226], 0
je 0x426b48
cmp word [ebp - 0x226], ax
jne 0x426b27
cmp word [ebp - 0x224], 0
je 0x426b48
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00426986
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x426b94
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x426b01
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x426b7c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x426ba1
push 0x4267b6
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0042b5a0
add esp, 0x10
jmp 0x426b71
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415ffe
leave
ret

Function at 0x429b67
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004214f7
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x429bd6
cmp esi, dword [ebp - 4]
je 0x429bd1
cmp dword [ebp + 0xc], 0
je 0x429bd1
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x429bae
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004296b9
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x429bd8
xor eax, eax
inc eax
jmp 0x429bd8
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x429c3d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x43d200]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004214f7
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004214f7
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x429cb4
cmp word [ecx], dx
je 0x429cb4
mov eax, dword [0x435924]
push edi
dec eax
push eax
push 0x435810
call fcn.00429bdc
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x429d27
cmp word [eax], dx
je 0x429d27
mov eax, dword [edi]
test eax, eax
je 0x429cd8
cmp word [eax], dx
je 0x429cd8
lea eax, [ebp - 0x10]
push eax
call fcn.004295bf
jmp 0x429ce1
lea eax, [ebp - 0x10]
push eax
call fcn.0042965a
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x429d51
mov eax, dword [0x43580c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x435500
call fcn.00429bdc
add esp, 0xc
test al, al
je 0x429d51
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x429d1c
cmp word [eax], di
je 0x429d1c
lea eax, [ebp - 0x10]
push eax
call fcn.004295bf
pop ecx
jmp 0x429d53
lea eax, [ebp - 0x10]
push eax
call fcn.0042965a
jmp 0x429d19
mov eax, dword [edi]
test eax, eax
je 0x429d3e
cmp word [eax], dx
je 0x429d3e
lea eax, [ebp - 0x10]
push eax
call fcn.00429574
pop ecx
jmp 0x429d51
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x429e1c
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00429a61
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x429e1c
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x429e1c
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x429e1c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x429da9
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004222d7
test ebx, ebx
je 0x429e17
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004222d7
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x429e1c
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x429e1c
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0042bc40
add esp, 0x10
xor eax, eax
inc eax
jmp 0x429e1e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415ffe
leave
ret
Function at 0x42c2d5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0042c251
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42c444
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42c444
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42c3f9
jg 0x42c331
test eax, eax
je 0x42c3ef
push 1
push 0x1000
call fcn.00422430
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42c354
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x42c3e6
push 0x8000
push ebx
call fcn.0041f855
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42c37d
jg 0x42c378
cmp ecx, 0x1000
jb 0x42c37d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00423b3f
add esp, 0x10
cmp eax, 0xffffffff
je 0x42c3c2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x42c378
jl 0x42c3a9
test ecx, ecx
jne 0x42c36a
push dword [ebp - 0xc]
push ebx
call fcn.0041f855
push esi
call fcn.004217e2
add esp, 0xc
xor ebx, ebx
jmp 0x42c452
cmp byte [edi + 0x24], 0
je 0x42c3d9
cmp dword [edi + 0x20], 5
jne 0x42c3d9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x42c3e4
mov ebx, dword [edi + 0x18]
jmp 0x42c3e6
xor ebx, ebx
push esi
call fcn.004217e2
pop ecx
jmp 0x42c452
test ecx, ecx
jg 0x42c3bb
jl 0x42c3f9
test eax, eax
jae 0x42c3bb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042530b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42c419
cmp byte [edi + 0x1c], 0
je 0x42c3bb
jmp 0x42c44a
push ebx
call fcn.00427b38
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42c3bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x42c452
cmp byte [edi + 0x1c], 0
je 0x42c44f
mov ebx, dword [edi + 0x18]
jmp 0x42c452
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0042530b
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42d4d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42d4fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42d4fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401940
Capabilities:
Access peb ldr_data
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43b528
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x44a120]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, ecx
xor esi, esi
push 0x40
lea eax, [esp + 0x34]
push esi
push eax
mov dword [esp + 0x20], esi
call fcn.00420090
mov edx, dword [0x44bcf4]
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x44bcf4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x58], 0x181
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [ebp + 8]
push ebx
push ecx
push str.__s___s
lea edi, [esp + 0x24]
mov dword [esp + 0x8c], esi
call fcn.00402160
mov edi, dword [esp + 0x24]
add esp, 0xc
push edi
mov word [esp + 0x60], si
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, esi
jne 0x401a29
mov ecx, dword [ebp + 8]
push ebx
push ecx
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KFunction::RunApp_CreateProcessW_error:_d__wait:_d__show:_d__path:_ws__cmd:_ws
push 0x44cfe0
call fcn.00412920
add esp, 0x1c
jmp 0x401a3e
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x1c]
cmp eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x401a53
push eax
call ebx
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x401a62
push eax
call ebx
mov dword [esp + 0x20], esi
lea eax, [edi - 0x10]
mov dword [esp + 0x80], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401a89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4025e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x4025f3
push 0x80004005
call fcn.00401000
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x402600
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x402640
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x224
mov eax, dword [0x44a120]
xor eax, esp
mov dword [esp + 0x220], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x234]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x10]
mov esi, eax
test esi, esi
jne 0x4026ae
test ecx, ecx
je 0x4026a0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x10], ecx
je 0x4026bc
test ecx, ecx
je 0x402761
push ecx
jmp 0x40275b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x3c]
push edx
push 0
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
jne 0x40272e
jmp 0x4026f0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.00402640
mov edi, eax
test edi, edi
jne 0x40277d
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push eax
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
je 0x4026f0
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x402745
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x402761
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0041cb94
add esp, 0x224
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40278c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x402763
Function at 0x402c40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x43bef0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x44a120]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x414]
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x14], eax
call dword [section..data]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x410]
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp], eax
push 2
push eax
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x402cc9
call fcn.00402310
mov esi, eax
jmp 0x402daf
mov edx, dword [ebp - 0x14]
push edx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x402ce5
call fcn.00402310
jmp 0x402da6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x402cfe
call fcn.00402310
jmp 0x402da6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
cmp eax, ebx
mov dword [ebp - 0x14], ebx
jae 0x402d34
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x402d22
lea eax, [ebp]
call fcn.00404f70
lea esi, [ebp - 0x1c]
call fcn.00404b60
mov eax, 0x8007000e
jmp 0x402dc2
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.00404c30
mov dword [ebp - 4], 1
jmp 0x402d5c
mov esi, dword [ebp]
test esi, esi
jne 0x402d6a
mov esi, 0x8007000e
jmp 0x402da8
call dword [section..data]
mov ecx, dword [ebp - 0x20]
push ebx
push esi
push ebx
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x402d8b
call fcn.00402310
jmp 0x402da6
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.00403990
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x402dc0
lea eax, [ebp]
call fcn.00404f70
nop
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0041cb94
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4046a0
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push str.GlobalQingDaoFuUninst
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp dword [0x44cf60], 0
mov dword [esp + 0x10], 0
jne 0x40476b
lea eax, [esp + 0x10]
call fcn.00404590
test eax, eax
jl 0x40476b
cmp dword [esp + 0x10], 0
je 0x404755
mov eax, dword [0x44cf58]
mov esi, dword [eax]
test esi, esi
je 0x40474d
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
mov ebx, eax
push edi
push ebx
call ebp
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push edi
push ebx
call ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
call fcn.00405850
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
call eax
test eax, eax
je 0x40474d
call fcn.0040a6a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x405300
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
xor ecx, ecx
mov esi, eax
mov eax, dword [ebp]
cmp eax, ecx
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ecx
je 0x4053ce
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x1c]
push edx
push ecx
lea edx, [esp + 0x18]
push edx
push ecx
push str.Version
push eax
call ebx
cmp dword [esp + 0x10], 1
jne 0x4053ce
call fcn.00401cb0
mov eax, dword [esi]
mov ecx, dword [esp + 0x1c]
sub eax, 0x10
shr ecx, 1
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
add ecx, 1
sub eax, ecx
or edx, eax
jge 0x405372
mov eax, esi
call fcn.00401f60
mov edi, dword [esi]
mov eax, dword [ebp]
lea ecx, [esp + 0x1c]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push str.Version
push eax
call ebx
test eax, eax
jne 0x4053ce
mov ecx, dword [esp + 0x1c]
shr ecx, 1
mov word [edi + ecx*2], ax
mov edx, dword [esi]
test edx, edx
je 0x4053b6
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4053a5
sub eax, edi
sar eax, 1
js 0x4053dc
cmp eax, dword [edx - 8]
jg 0x4053dc
mov dword [edx - 0xc], eax
mov edx, dword [esi]
mov word [edx + eax*2], 0
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push 0x80070057
call fcn.00401000
int3