joyce8/EMBER2024-capa huggingface dataset:
Function at 0x77227249
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x77227293
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x7722723a
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x77227249
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x7762ceec
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x7722729a
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.7720e110
cmp eax, dword [ebp + 0xc]
pop eax
je 0x77227339
add edi, 4
add eax, 2
dec ecx
jne 0x7722727f
call 0x772272e6
loope 0x772272dc
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x77227336
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x77227347
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x772272fa
cmp eax, ecx
ja 0x772272fa
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x77227384
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x7722737a
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.7720e5ef
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x401000
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x445064]
xor eax, ebp
mov dword [ebp + 0x194], eax
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.0041c790
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0x43ba94
push str.SoftwareTencentQQMicroGameBox_
push 0x80000001
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x80], 0x414
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x401079
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401079
xor eax, eax
inc eax
jmp 0x40107b
xor eax, eax
mov ecx, dword [ebp + 0x194]
xor ecx, ebp
call fcn.0041887e
add ebp, 0x198
leave
ret

Function at 0x40111d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x445064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.004010bf
test eax, eax
je 0x401142
xor eax, eax
inc eax
jmp 0x4011bf
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0041c790
lea eax, [ebp - 0x20c]
push eax
mov eax, esi
call fcn.004011cc
lea eax, [ebp - 0x414]
push 0x5c
mov ecx, 0x82
lea esi, [ebp - 0x20c]
lea edi, [ebp - 0x414]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00418a8b
add esp, 0x18
pop edi
test eax, eax
je 0x4011a9
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
call fcn.0040111d
pop ecx
jmp 0x4011ac
xor eax, eax
inc eax
test eax, eax
je 0x4011bf
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041887e
leave
ret
Function at 0x4014f2
Capabilities:
Check if file exists
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x4090]
mov eax, 0x4110
call fcn.0042a9e0
mov eax, dword [0x445064]
xor eax, ebp
mov dword [ebp + 0x408c], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp + 0x3f89]
push ebx
push eax
mov byte [ebp + 0x3f88], bl
call fcn.0041c790
add esp, 0xc
lea eax, [ebp + 0x3f88]
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push str.MacromediaFlash_Playermacromedia.com_support_flashplayer_sys_settings.sol
lea eax, [ebp + 0x3f88]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp + 0x3f88]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4015f5
mov esi, 0x4000
push esi
lea eax, [ebp - 0x7b]
push ebx
push eax
mov byte [ebp - 0x7c], bl
call fcn.0041c790
push 0x43bcc0
lea eax, [ebp + 0x3f88]
push eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], ebx
call fcn.00418dbc
add esp, 0x18
test eax, eax
jne 0x4015f5
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push esi
push 1
push eax
call fcn.004190af
push dword [ebp - 0x80]
mov edi, eax
call fcn.00419327
add esp, 0x14
xor ecx, ecx
cmp edi, ebx
jle 0x4015e4
lea esi, [ebp + ecx - 0x7c]
cmp byte [esi], 0xe
jne 0x4015df
xor eax, eax
mov dl, byte [esi + eax]
cmp dl, byte [eax + 0x43bc60]
jne 0x4015df
cmp eax, 0xf
je 0x4015e9
inc eax
cmp eax, 0x10
jl 0x4015c9
inc ecx
cmp ecx, edi
jl 0x4015be
xor eax, eax
inc eax
jmp 0x4015f7
xor eax, eax
cmp byte [ebp + ecx - 0x6c], 1
setne al
jmp 0x4015f7
xor eax, eax
mov ecx, dword [ebp + 0x408c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041887e
add ebp, 0x4090
leave
ret
Function at 0x40160f
Capabilities:
Check if file exists
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x4090]
mov eax, 0x4110
call fcn.0042a9e0
mov eax, dword [0x445064]
xor eax, ebp
mov dword [ebp + 0x408c], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp + 0x3f89]
push ebx
push eax
mov byte [ebp + 0x3f88], bl
call fcn.0041c790
add esp, 0xc
lea eax, [ebp + 0x3f88]
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push str.MacromediaFlash_Playermacromedia.com_support_flashplayer_sys_settings.sol
lea eax, [ebp + 0x3f88]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp + 0x3f88]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4016fe
mov esi, 0x4000
push esi
lea eax, [ebp - 0x7b]
push ebx
push eax
mov byte [ebp - 0x7c], bl
call fcn.0041c790
push 0x43bcc0
lea eax, [ebp + 0x3f88]
push eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], ebx
call fcn.00418dbc
add esp, 0x18
test eax, eax
jne 0x4016fe
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push esi
push 1
push eax
call fcn.004190af
mov edi, eax
add esp, 0x10
xor esi, esi
cmp edi, ebx
jle 0x4016f5
lea ecx, [ebp + esi - 0x7c]
cmp byte [ecx], 0xe
jne 0x4016f0
xor eax, eax
mov dl, byte [ecx + eax]
cmp dl, byte [eax + 0x43bc60]
jne 0x4016f0
cmp eax, 0xf
je 0x401718
inc eax
cmp eax, 0x10
jl 0x4016da
inc esi
cmp esi, edi
jl 0x4016cf
push dword [ebp - 0x80]
call fcn.00419327
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x408c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041887e
add ebp, 0x4090
leave
ret
mov al, byte [0x44e140]
cmp dword [ebp + 0x4098], ebx
jne 0x401727
mov al, 1
push dword [ebp - 0x80]
mov byte [ebp + esi - 0x6c], al
call fcn.00419327
lea eax, [ebp + 0x3f88]
mov dword [esp], 0x43bcc4
push eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], ebx
call fcn.00418dbc
add esp, 0xc
test eax, eax
jne 0x4016fe
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push edi
push 1
push eax
call fcn.0041922e
push dword [ebp - 0x80]
call fcn.00419327
xor eax, eax
add esp, 0x14
inc eax
jmp 0x401700
Function at 0x403f74
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x445064]
xor eax, ebp
mov dword [ebp + 0x194], eax
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x80], 0x104
call fcn.0041c790
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push str.Path
push str.SOFTWARETencentWebGamePlugin
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ecx, dword [ebp + 0x194]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0041887e
add ebp, 0x198
leave
ret

Function at 0x403ff0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x445064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x208
push esi
mov word [ebp - 0x210], ax
xor ebx, ebx
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.0041c790
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
push esi
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push ebx
push eax
call fcn.0041c790
add esp, 0xc
lea edi, [ebp - 0x41c]
lea esi, [ebp - 0x210]
call fcn.004040ff
test eax, eax
je 0x4040ee
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x404084
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
sub eax, edx
sar eax, 1
add eax, eax
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push str.Path
mov ebx, str.SOFTWARETencentWebGamePlugin
push ebx
mov edi, 0x80000001
push edi
call esi
test eax, eax
jne 0x4040ee
lea eax, [ebp - 0x41c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4040c4
sub eax, edx
sar eax, 1
add eax, eax
push eax
lea eax, [ebp - 0x41c]
push eax
push 1
push str.Version
push ebx
push edi
call esi
test eax, eax
jne 0x4040ee
inc eax
jmp 0x4040f0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041887e
leave
ret
Function at 0x4040ff
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x3f90]
mov eax, 0x4010
call fcn.0042a9e0
mov eax, dword [0x445064]
xor eax, ebp
mov dword [ebp + 0x3f8c], eax
xor eax, eax
push 0x3ffe
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.0041c790
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4041ac
cmp eax, 0x3fff
ja 0x4041ac
lea ecx, [ebp - 0x74]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4041ac
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x43bec4
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4041ac
mov eax, dword [ebp - 0x78]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push 0x43bec8
push 0x104
push edi
call fcn.00419a74
xor eax, eax
add esp, 0x1c
mov word [edi + 0x206], ax
inc eax
jmp 0x4041ae
xor eax, eax
mov ecx, dword [ebp + 0x3f8c]
xor ecx, ebp
call fcn.0041887e
add ebp, 0x3f90
leave
ret
Function at 0x409582
Capabilities:
Check if file exists
Create process on windows
Delete file

Disassembly:
push 0x64
mov eax, 0x436c7f
call fcn.00431ee3
xor eax, eax
mov ebx, ecx
push eax
cmp dword [ebp + 8], eax
je 0x4096bf
lea edi, [ebx - 0x44]
mov edx, dword [edi]
push 2
mov ecx, edi
call dword [edx + 4]
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x20]
push eax
lea esi, [ebp - 0x2c]
call fcn.00401e61
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4095ca
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40969f
cmp dword [ebx + 0x64], 8
jb 0x4095e4
mov eax, dword [ebx + 0x50]
jmp 0x4095e7
lea eax, [ebx + 0x50]
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x4095f3
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x30], eax
call fcn.0040b9bf
test eax, eax
mov eax, dword [edi]
push esi
mov ecx, edi
je 0x40969a
push 5
call dword [eax + 4]
push 0x38
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.0041c790
mov eax, dword [ebp - 0x28]
add esp, 0xc
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x6c], 0x40
mov dword [ebp - 0x70], 0x3c
jae 0x40963c
lea eax, [ebp - 0x28]
mov dword [ebp - 0x60], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x409693
push 0x493e0
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
or dword [ebp - 0x30], 0xffffffff
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [edi]
push esi
cmp dword [ebp - 0x30], esi
jne 0x409680
push 6
mov ecx, edi
jmp 0x40969c
cmp dword [ebp - 0x30], 0x103
mov ecx, edi
je 0x40968f
push 7
jmp 0x40969c
push 8
jmp 0x40969c
mov eax, dword [edi]
push esi
push 7
jmp 0x40967c
push 4
call dword [eax + 4]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4096ab
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push 1
lea esi, [ebp - 0x2c]
call fcn.0040200d
jmp 0x4096c9
lea ecx, [ebx - 0x44]
mov edx, dword [ecx]
push 3
call dword [edx + 4]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
call fcn.00431f66
ret 4
Function at 0x4096ee
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x445064]
xor eax, ebp
mov dword [ebp + 0x190], eax
and dword [ebp - 0x80], 0
push esi
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
mov esi, ecx
call fcn.0041c790
add esp, 0xc
push 0x104
lea eax, [ebp - 0x7c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.installer_
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40976a
lea eax, [ebp - 0x7c]
push eax
call fcn.0040111d
pop ecx
lea eax, [ebp - 0x7c]
push eax
call fcn.00401e61
mov ecx, dword [ebp + 0x190]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041887e
add ebp, 0x194
leave
ret
Function at 0x40abac
Capabilities:
Parse url

Disassembly:
push ebp
lea ebp, [esp - 0x1c0]
sub esp, 0x240
mov eax, dword [0x445064]
xor eax, ebp
mov dword [ebp + 0x1bc], eax
push 0x38
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.0041c790
mov eax, 0x100
add esp, 0xc
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x80]
push eax
push 0x80000000
push 0
lea ecx, [ebp - 0x44]
push ebx
mov dword [ebp - 0x80], 0x3c
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x4c], ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov ecx, dword [ebp + 0x1bc]
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.0041887e
add ebp, 0x1c0
leave
ret

Function at 0x40b18e
Capabilities:
Hash data with md5

Disassembly:
push esi
xor ecx, ecx
push 0x40
lea esi, [eax + 0x5c]
push ecx
push esi
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 4], 0x67452301
mov dword [eax + 8], 0xefcdab89
mov dword [eax + 0xc], 0x98badcfe
mov dword [eax + 0x10], 0x10325476
call fcn.0041c790
add esp, 0xc
mov byte [esi], 0x80
pop esi
ret

Function at 0x40b9bf
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x445064]
xor eax, ebp
mov dword [ebp + 0x198], eax
push esi
mov esi, ecx
push dword [esi]
mov dword [ebp - 0x78], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40baae
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ba19
xor eax, eax
jmp 0x40baad
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x74], eax
call fcn.004189b2
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x40ba3b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40baaa
push ebx
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x74]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov dword [ebp - 0x7c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x7c], ebx
je 0x40baa3
xor eax, eax
push 0x206
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x6e]
push ebx
push eax
call fcn.0041c790
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
mov ecx, edi
call fcn.0040bac4
test eax, eax
je 0x40baa3
push edi
call fcn.00418b32
mov eax, dword [ebp - 0x78]
push dword [eax + 4]
lea eax, [ebp - 0x70]
push eax
call fcn.004199e1
add esp, 0xc
neg eax
sbb eax, eax
inc eax
jmp 0x40baac
push edi
call fcn.00418b32
pop ecx
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x198]
xor ecx, ebp
pop esi
call fcn.0041887e
add ebp, 0x19c
leave
ret
Function at 0x41887e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x445064]
jne 0x418888
repz ret
jmp fcn.0041a8f2

Function at 0x418b3d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x418b6e
call fcn.0041b79f
mov dword [eax], esi
call fcn.0041b78c
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004196ec
add esp, 0x14
push 0x16
pop eax
jmp 0x418bc3
test dword [ebp + 0xc], 0xfffffff9
jne 0x418b4a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x418b9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041b7b2
pop ecx
call fcn.0041b78c
mov eax, dword [eax]
jmp 0x418bc3
test al, 0x10
jne 0x418bc1
test al, 1
je 0x418bc1
test byte [ebp + 0xc], 2
je 0x418bc1
call fcn.0041b79f
mov dword [eax], 5
call fcn.0041b78c
mov dword [eax], 0xd
jmp 0x418b92
xor eax, eax
pop esi
pop ebp
ret

Function at 0x42dff2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004201e6
and dword [ebp - 4], 0
cmp dword [0x44dc2c], 0
mov ebx, eax
jne 0x42e0a3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42e154
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42e154
push eax
call fcn.00420174
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44dc2c], eax
call esi
push eax
call fcn.00420174
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44dc30], eax
call esi
push eax
call fcn.00420174
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44dc34], eax
call esi
push eax
call fcn.00420174
pop ecx
mov dword [0x44dc3c], eax
test eax, eax
je 0x42e0a3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00420174
pop ecx
mov dword [0x44dc38], eax
mov eax, dword [0x44dc38]
cmp eax, ebx
je 0x42e0fb
cmp dword [0x44dc3c], ebx
je 0x42e0fb
push eax
call fcn.004201ef
push dword [0x44dc3c]
mov esi, eax
call fcn.004201ef
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42e0fb
test edi, edi
je 0x42e0fb
call esi
test eax, eax
je 0x42e0f2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42e0f2
test byte [ebp - 0xc], 1
jne 0x42e0fb
or dword [ebp + 0x10], 0x200000
jmp 0x42e134
mov eax, dword [0x44dc30]
cmp eax, ebx
je 0x42e134
push eax
call fcn.004201ef
pop ecx
test eax, eax
je 0x42e134
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42e134
mov eax, dword [0x44dc34]
cmp eax, ebx
je 0x42e134
push eax
call fcn.004201ef
pop ecx
test eax, eax
je 0x42e134
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44dc2c]
call fcn.004201ef
pop ecx
test eax, eax
je 0x42e154
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42e156
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x427200
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d264b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004c649f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x427282
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004c3536
mov eax, dword [eax]
push 0x19e7d44
push eax
call fcn.004b51a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004c672a
test bl, bl
je 0x427282
push 0x19e7d44
lea ecx, [esp + 0xc]
call fcn.004c6aba
push 0x19e7d50
lea ecx, [esp + 0xc]
call fcn.004c6aba
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4272be
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004c672a
jmp 0x427389
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x427342
lea edx, [esp + 0x7c]
push 0x19e7d4c
push edx
call fcn.004b51a4
add esp, 8
test eax, eax
je 0x427342
lea eax, [esp + 0x7c]
push 0x19e7d48
push eax
call fcn.004b51a4
add esp, 8
test eax, eax
je 0x427342
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4272d2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004c672a
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x427b80
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x427be2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc