joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401600
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00405a7e
add esp, 4
lea ecx, [ebp - 0xc]
push ecx
xor edi, edi
xor eax, eax
lea edx, [ebp - 4]
push edx
push edi
push 0x2001f
push edi
push edi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov eax, dword [str.SoftwareNeteaseCrashReportThrottling]
push edi
push eax
push 0x80000001
mov dword [ebp - 8], 0x28
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40167a
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x401673
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push ebx
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x3c]
push edx
push edi
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40169e
mov bl, 1
jmp 0x401735
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
push esi
mov esi, ecx
sub esi, dword [ebp - 0x3c]
mov eax, edx
sbb eax, dword [ebp - 0x38]
test eax, eax
jg 0x4016c2
jl 0x4016bd
cmp esi, 0x15180
jae 0x4016c2
mov edi, 1
mov esi, ecx
sub esi, dword [ebp - 0x34]
mov eax, edx
sbb eax, dword [ebp - 0x30]
test eax, eax
jg 0x4016dd
jl 0x4016da
cmp esi, 0x15180
jae 0x4016dd
add edi, 1
mov esi, ecx
sub esi, dword [ebp - 0x2c]
mov eax, edx
sbb eax, dword [ebp - 0x28]
test eax, eax
jg 0x4016f8
jl 0x4016f5
cmp esi, 0x15180
jae 0x4016f8
add edi, 1
mov esi, ecx
sub esi, dword [ebp - 0x24]
mov eax, edx
sbb eax, dword [ebp - 0x20]
test eax, eax
jg 0x401713
jl 0x401710
cmp esi, 0x15180
jae 0x401713
add edi, 1
sub ecx, dword [ebp - 0x1c]
pop esi
sbb edx, dword [ebp - 0x18]
test edx, edx
jg 0x40172b
jl 0x401728
cmp ecx, 0x15180
jae 0x40172b
add edi, 1
cmp edi, 5
setl bl
test bl, bl
je 0x401753
push 0x20
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.00405ac0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push 0x28
lea eax, [ebp - 0x3c]
push eax
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x401779
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x403410
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x403447
cmp dword [ebp - 4], 5
jne 0x403447
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
push ecx
mov ecx, dword [eax + 8]
push edx
mov edx, dword [eax + 4]
push ecx
push edx
call fcn.00403090
add esp, 0x10
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404740
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x404751
mov eax, dword [eax + 4]
jmp 0x404754
add eax, 4
push esi
push 0x413454
push eax
call fcn.00406b47
mov esi, eax
add esp, 8
test esi, esi
je 0x4047cf
push ebx
push edi
push 2
push 0
push esi
call fcn.004069fc
push esi
call fcn.00406907
mov edi, dword [ebp + 0xc]
add esp, 0x10
mov ebx, eax
push 0
push ebx
mov ecx, edi
call fcn.004043d0
test ebx, ebx
je 0x4047c1
push 0
push 0
push esi
call fcn.004069fc
mov eax, dword [edi + 4]
add esp, 0xc
test eax, eax
je 0x4047ac
mov ecx, dword [edi + 8]
sub ecx, eax
jne 0x4047b1
call fcn.00405f4f
mov edx, dword [edi + 4]
push esi
push ebx
push 1
push edx
call fcn.00406754
add esp, 0x10
push esi
call fcn.0040643c
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0xc]
pop esi
pop ebp
jmp fcn.00403660
Function at 0x405a6f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4170d0]
jne 0x405a79
repz ret
jmp fcn.0040903c
Function at 0x4064b8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4064f5
cmp dword [ebp + 0x14], edi
je 0x4064f5
cmp ecx, edi
jne 0x4064fc
call fcn.004079a0
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00405f2b
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x406510
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x406531
cmp ebx, 0xffffffff
je 0x406520
push ebx
push edi
push ecx
call fcn.00406350
add esp, 0xc
cmp esi, edi
je 0x4064dd
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4064dd
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x40654d
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x406554
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x406645
test word [esi + 0xc], 0x10c
je 0x4065a8
mov eax, dword [esi + 4]
test eax, eax
je 0x4065a8
jl 0x4066a6
cmp ebx, eax
mov edi, ebx
jb 0x406579
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x40664d
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0040554a
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x40663d
cmp ebx, dword [ebp - 0xc]
jb 0x406615
cmp dword [ebp - 0xc], 0
je 0x4065d2
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x4065c7
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4065ce
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4065dd
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x4065dd
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x406679
push eax
push dword [ebp - 8]
push esi
call fcn.0040ac48
pop ecx
push eax
call fcn.0040b577
add esp, 0xc
test eax, eax
je 0x4066b8
cmp eax, 0xffffffff
je 0x4066a6
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x40663d
push esi
call fcn.0040ae96
cmp eax, 0xffffffff
pop ecx
je 0x4066aa
cmp dword [ebp - 4], 0
je 0x406679
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x40655c
mov eax, dword [ebp + 0x14]
jmp 0x4064f7
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x406664
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00406350
add esp, 0xc
call fcn.004079a0
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4064ed
cmp dword [ebp + 0xc], 0xffffffff
je 0x40668f
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00406350
add esp, 0xc
call fcn.004079a0
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4064ed
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4064f7
or dword [esi + 0xc], 0x10
jmp 0x4066aa
Function at 0x40c292
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x417c90]
je 0x40c2ad
inc edi
cmp edi, 0x17
jb 0x40c29e
cmp edi, 0x17
jae 0x40c42d
push ebp
push 3
call fcn.00410f34
cmp eax, 1
pop ecx
je 0x40c3f9
push 3
call fcn.00410f34
test eax, eax
pop ecx
jne 0x40c2e1
cmp dword [0x4170e0], 1
je 0x40c3f9
cmp ebx, 0xfc
je 0x40c42c
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x418590
push ebp
call fcn.0040db98
add esp, 0xc
test eax, eax
je 0x40c317
push esi
push esi
push esi
push esi
push esi
call fcn.00405e2f
add esp, 0x14
push 0x104
mov esi, 0x4185a9
push esi
push 0
mov byte [0x4186ad], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40c35b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040db98
add esp, 0xc
test eax, eax
je 0x40c35b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00405e2f
add esp, 0x14
push esi
call fcn.004074a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40c3a0
push esi
call fcn.004074a0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4188a4
push 0x413ca4
sub ecx, eax
push ecx
push eax
call fcn.0040fa06
add esp, 0x14
test eax, eax
je 0x40c3a0
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00405e2f
add esp, 0x14
jmp 0x40c3a2
xor esi, esi
push 0x413ca0
push ebx
push ebp
call fcn.0040f946
add esp, 0xc
test eax, eax
je 0x40c3c2
push esi
push esi
push esi
push esi
push esi
call fcn.00405e2f
add esp, 0x14
push dword [edi*8 + 0x417c94]
push ebx
push ebp
call fcn.0040f946
add esp, 0xc
test eax, eax
je 0x40c3e4
push esi
push esi
push esi
push esi
push esi
call fcn.00405e2f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00410d77
add esp, 0xc
jmp 0x40c42c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40c42c
cmp ebp, 0xffffffff
je 0x40c42c
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x417c94]
push dword [esi]
call fcn.004074a0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x410d77
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00408a77
xor ebx, ebx
cmp dword [0x418c6c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x410e4d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x410f2d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x410f2d
push eax
call fcn.00408a09
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x418c6c], eax
call esi
push eax
call fcn.00408a09
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x418c70], eax
call esi
push eax
call fcn.00408a09
mov dword [0x418c74], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040c01f
test eax, eax
pop ecx
pop ecx
je 0x410e1b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00405e2f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x410e4d
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00408a09
cmp eax, ebx
pop ecx
mov dword [0x418c7c], eax
je 0x410e4d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00408a09
pop ecx
mov dword [0x418c78], eax
mov eax, dword [0x418c78]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x410ed2
cmp dword [0x418c7c], ecx
je 0x410ed2
push eax
call fcn.00408a80
push dword [0x418c7c]
mov esi, eax
call fcn.00408a80
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x410ed2
cmp edi, ebx
je 0x410ed2
call esi
cmp eax, ebx
je 0x410e9f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x410e9f
test byte [ebp - 0x18], 1
jne 0x410ed2
lea eax, [ebp - 0x10]
push eax
call fcn.0040c056
test eax, eax
pop ecx
je 0x410eba
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00405e2f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x410ec9
or dword [ebp + 0x10], 0x200000
jmp 0x410f0d
or dword [ebp + 0x10], 0x40000
jmp 0x410f0d
mov eax, dword [0x418c70]
cmp eax, dword [ebp - 8]
je 0x410f0d
push eax
call fcn.00408a80
cmp eax, ebx
pop ecx
je 0x410f0d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x410f0d
mov eax, dword [0x418c74]
cmp eax, dword [ebp - 8]
je 0x410f0d
push eax
call fcn.00408a80
cmp eax, ebx
pop ecx
je 0x410f0d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x418c6c]
call fcn.00408a80
cmp eax, ebx
pop ecx
je 0x410f2d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x410f2f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4011d0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x408
mov eax, dword [0x44a728]
xor eax, esp
mov dword [esp + 0x404], eax
push ebx
mov ebx, dword [esp + 0x414]
push ebp
mov ebp, dword [esp + 0x414]
push esi
push edi
xor eax, eax
push 0x3fe
push eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
lea eax, [esp + 0x1e]
push eax
mov edi, ecx
mov esi, edx
call fcn.004233a0
mov eax, 8
add esp, 0xc
cmp dword [edi + 0x1c], eax
jb 0x401227
mov edi, dword [edi + 8]
jmp 0x401229
add edi, eax
cmp dword [ebx + 0x18], eax
jb 0x401233
mov ebx, dword [ebx + 4]
jmp 0x401236
add ebx, 4
cmp dword [ebp + 0x18], eax
jb 0x401240
mov ebp, dword [ebp + 4]
jmp 0x401243
add ebp, 4
push edi
push 0x200
lea ecx, [esp + 0x1c]
push ecx
push 0x43ed84
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4012a7
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401266
sub eax, edx
sar eax, 1
je 0x4012a7
xor edi, edi
lea eax, [esp + 0x14]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov word [esi + 4], di
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401290
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x18]
push edx
jmp 0x4012bd
xor eax, eax
push eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], eax
mov word [esi + 4], ax
push 0x43ed84
call fcn.004017b0
mov ecx, dword [esp + 0x414]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004217b9
add esp, 0x408
ret 8

Function at 0x4012e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x44a728]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
cmp dword [eax], 0
push esi
mov esi, ecx
je 0x401372
push ebx
lea ecx, [esp + 8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
lea eax, [esp + 8]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401320
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xc]
add esi, 4
push edx
call fcn.004017b0
cmp word [esp + ebx*2 + 6], 0x5c
pop ebx
je 0x40134f
push 1
mov eax, esi
call fcn.004016e0
push 0
push edi
or eax, 0xffffffff
call fcn.00401620
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004217b9
add esp, 0x20c
ret 4
push 0xffffffffffffffff
push 0
lea ecx, [esi + 4]
mov eax, edi
call fcn.004014e0
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.004217b9
add esp, 0x20c
ret 4
Function at 0x402b60
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov eax, 0x6060
call fcn.00423690
mov eax, dword [0x44a728]
xor eax, esp
mov dword [esp + 0x605c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x606c]
push esi
push edi
push str.executeProcess___begins.
mov ebx, ecx
mov esi, edx
call fcn.00402210
push 0x1ffe
lea eax, [esp + 0x4072]
push 0
push eax
mov word [esp + 0x4078], 0
call fcn.004233a0
push 0x44
lea ecx, [esp + 0x34]
push 0
push ecx
call fcn.004233a0
xor eax, eax
add esp, 0x1c
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call fcn.00411f40
test eax, eax
jne 0x402be5
push 0x80004005
call fcn.00406390
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
push 0x1ffe
lea ecx, [esp + 0x206e]
mov edi, eax
push 0
push ecx
add edi, 0x10
mov word [esp + 0x2074], 0
call fcn.004233a0
add esp, 0xc
lea edx, [esp + 0x2068]
push edx
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x1ffe
lea eax, [esp + 0x6e]
push 0
push eax
mov word [esp + 0x74], 0
call fcn.004233a0
push ebx
lea ecx, [esp + 0x2078]
push ecx
push str._s_s
push 0x1000
lea edx, [esp + 0x84]
push 0x1000
push edx
call fcn.00421b5e
push esi
lea eax, [esp + 0x90]
push eax
push str._s__s
push 0x1000
lea ecx, [esp + 0x409c]
push 0x1000
push ecx
call fcn.00421b5e
lea edx, [esp + 0xa4]
push edx
call fcn.00402210
add esp, 0x40
push esi
call fcn.00402210
add esp, 4
push 1
push 0
push esi
mov eax, edx
push eax
push 0
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, eax
cmp esi, 0x20
jg 0x402d14
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push eax
push esi
push str.executeProcess___Failed_to_execute_with_ShellExecute__hInstResult:__d__GetLastError:__d__executeProcess_
call fcn.00402210
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x4088]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402d0d
call ebx
push eax
push str.Failed_to_execute_with_CreateProcess__GetLastError:__d__executeProcess_
call fcn.00402210
add esp, 8
jmp 0x402d21
push str.executeProcess___Succeed_to_execute_with_CreateProcess__executeProcess_
jmp 0x402d19
push str.executeProcess___Succeed_to_execute_with_ShellExecute__executeProcess_
call fcn.00402210
add esp, 4
push str.executeProcess___finished.
call fcn.00402210
lea eax, [edi - 0x10]
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402d4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x606c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004217b9
add esp, 0x6060
ret
Function at 0x403fb0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x437970
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x44a728]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
push str.CPatchExpClientDlg::CatchError__d__begins.
call fcn.00402210
add esp, 4
test edx, edx
jne 0x404003
push str.CPatchExpClientDlg::CatchError__d__return._nError__ERROR_INIT_SUCCESS.
call fcn.00402210
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
lea eax, [edx - 1]
cmp eax, 0xa
mov esi, 0x43fb00
ja case.0x404010.7
jmp dword [eax*4 + 0x404154]
mov esi, 0x43fb0c
jmp case.0x404010.7
mov esi, 0x43fb20
jmp case.0x404010.7
mov esi, 0x43fb4c
jmp case.0x404010.7
mov esi, 0x43fb74
jmp case.0x404010.7
mov esi, 0x43fbb0
jmp case.0x404010.7
mov esi, 0x43fc28
mov dword [edi + 0x2f4], 9
jmp case.0x404010.7
mov esi, 0x43fc5c
jmp case.0x404010.7
mov esi, 0x43fc74
call sub.PatchExpLib.dll__PLV5_GetLastError_0
push eax
lea ecx, [esp + 0x10]
call fcn.00406530
mov dword [esp + 0x18], 0
call sub.PatchExpLib.dll__PLV5_Uninit_0
push esi
lea ecx, [esp + 0xc]
call fcn.00406bc0
mov byte [esp + 0x18], 1
mov eax, dword [esp + 0xc]
cmp dword [eax - 0xc], 0
jle 0x4040ae
push 0xa
push str._n_n_Error__n
lea ecx, [esp + 0x10]
call fcn.00405fb0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x10]
call fcn.00405fb0
mov ecx, dword [esp + 8]
push 0
push 0x43f53c
push ecx
mov ecx, edi
call fcn.0040c053
push 5
push 0x43ed84
push 0x43ed84
push str.http:__cf.qq.com_web200905_info_dl_game.htm
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 2
mov ecx, edi
call fcn.00408b8d
push str.CPatchExpClientDlg::CatchError__d__finished.
call fcn.00402210
mov byte [esp + 0x1c], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40411a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404142
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x406240
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406259
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406294
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x406290
lea ebx, [ebx]
cmp esi, eax
jae 0x406294
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406280
cmp esi, eax
jb 0x40629a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x407ec5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x407f0b
call fcn.00410539
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x407f0b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x407f4e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x407f37
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x407f37
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x407f4b
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40fc55
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40fc98
call fcn.00410539
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40fc98
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40fcb3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040f80f
test ebx, ebx
mov esi, eax
je 0x40fcb1
test edi, edi
je 0x40fcb1
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x410dd1
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4368f4
call fcn.00422e88
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x410df6
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x410e42
call fcn.00411f40
push eax
lea ecx, [ebp - 0x10]
call fcn.004065d0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004106e9
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004021c0
mov eax, esi
call fcn.00422f60
ret 8

Function at 0x412955
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x412983
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4129a1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004128bf
jmp 0x4129a1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4129a1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004128bf
test edi, edi
mov eax, edi
jne 0x41298b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x44d768]
test ecx, ecx
je 0x412a64
jmp 0x412954
ret 8

Function at 0x4217b9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44a728]
jne 0x4217c3
repz ret
jmp fcn.004272d7