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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.WS2_32.dll_accept
xor bl, bl
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41c1d4
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
push eax
push eax
mov eax, dword [ebp - 4]
push str.ProxyEnable
push eax
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41c1d4
cmp dword [ebp - 0xc], 1
jne 0x41c1cb
lea ecx, [ebp - 4]
mov ebx, edi
call fcn.0041c1f0
test al, al
setne cl
mov byte [edi + 0x840], cl
jmp 0x41c1d2
mov byte [edi + 0x840], 0
mov bl, 1
mov eax, dword [ebp - 4]
test eax, eax
je 0x41c1e2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41c1f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x496684]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x110], 0
call fcn.004316d0
mov eax, dword [esi]
add esp, 0xc
test eax, eax
je 0x41c372
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x110]
push edx
push 0
push 0
push str.ProxyServer
push eax
mov dword [ebp - 0x118], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41c372
lea eax, [ebp - 0x110]
push eax
push str.IE_Proxy:__s
push str..._srcdownloader.cpp
push 0x499db8
push 1
mov edx, 0x68d
mov ecx, str.Downloader::readIEProxyFromReg
call fcn.0041ff40
add esp, 0x14
lea ecx, [ebp - 0x110]
push str.socks
mov edi, 3
push ecx
mov dword [ebx + 0x844], edi
call fcn.00431b80
mov esi, eax
add esp, 8
test esi, esi
je 0x41c2bc
mov dword [ebx + 0x844], 2
add esi, 6
jmp 0x41c2df
lea edx, [ebp - 0x110]
push str.http
push edx
call fcn.00431b80
mov esi, eax
add esp, 8
test esi, esi
je 0x41c2e3
mov dword [ebx + 0x844], edi
add esi, 5
test esi, esi
jne 0x41c2e9
lea esi, [ebp - 0x110]
push 0x48cff0
push esi
call fcn.00431b80
add esp, 8
test eax, eax
je 0x41c2fe
mov byte [eax], 0
push 0x48cff4
push esi
call fcn.00431b80
mov edi, eax
add esp, 8
test edi, edi
je 0x41c372
mov eax, esi
mov byte [edi], 0
inc edi
lea edx, [eax + 1]
jmp 0x41c320
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c320
sub eax, edx
je 0x41c372
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c330
sub eax, edx
je 0x41c372
push 0x100
lea eax, [ebx + 0x848]
push esi
push eax
call fcn.0042f2a0
add esp, 0xc
push edi
call fcn.0042d846
mov word [ebx + 0x948], ax
add esp, 4
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca72
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.0042ca72
mov esp, ebp
pop ebp
ret
Function at 0x41ce20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47acc4
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x496684]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
mov dword [0x498508], eax
mov dword [0x49850c], ecx
je 0x41ce80
push 0xffffffffffffffff
push 0
lea edx, [ebp + 8]
push edx
mov ecx, 0x499f00
call fcn.00405160
jmp 0x41d026
push 0x4886f6
lea ecx, [ebp - 0x250]
call fcn.004055e0
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
mov bl, 1
mov byte [ebp - 4], bl
push ecx
mov word [ebp - 0x218], ax
call fcn.004316d0
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0xfa
jae 0x41cf1b
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41ced5
sub eax, edx
sar eax, 1
cmp eax, 0xfa
jae 0x41cf1b
lea esi, [ebp - 0x218]
lea edi, [ebp - 0x26c]
call fcn.0041cc30
mov edi, eax
lea esi, [ebp - 0x250]
mov byte [ebp - 4], 2
call fcn.004050d0
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], bl
call fcn.00405780
lea ebx, [ebp - 0x234]
call fcn.0041cd10
push 0x104
push 0
push 0x499db8
mov byte [ebp - 4], 3
call fcn.004316d0
add esp, 0xc
push 0x488730
mov ebx, 1
lea eax, [ebp - 0x234]
call fcn.0040bab0
cmp eax, 0xffffffff
je 0x41cfbb
lea ecx, [eax + 1]
push 0xffffffffffffffff
lea eax, [ebp - 0x26c]
push eax
lea edx, [ebp - 0x234]
call fcn.00401670
mov edi, eax
lea esi, [ebp - 0x234]
mov byte [ebp - 4], 4
call fcn.004050d0
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 3
call fcn.00405780
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x41cfc4
cmp dword [ebp - 0x220], 0x10
mov ecx, dword [ebp - 0x234]
jae 0x41cfaa
mov ecx, esi
push eax
push ecx
push 0x499db8
call fcn.00431360
add esp, 0xc
jmp 0x41cfd6
cmp dword [ebp - 0x224], 0
jne 0x41cfd6
push 3
push 0x48d118
lea ecx, [ebp - 0x234]
call fcn.004054e0
push 0
lea ecx, [ebp - 0x234]
push ecx
or eax, 0xffffffff
lea esi, [ebp - 0x250]
call fcn.004030f0
push 6
mov eax, str..1.log
mov ecx, esi
call fcn.00402d60
push 0xffffffffffffffff
push 0
mov edx, esi
push edx
mov ecx, 0x499f00
call fcn.00405160
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
call fcn.00405780
mov ecx, esi
mov byte [ebp - 4], 0
call fcn.00405780
mov byte [0x499ec0], 1
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00405780
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ca72
mov esp, ebp
pop ebp
ret
Function at 0x41db50
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479138
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x496684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
mov esi, 0x10
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
cmp dword [ebp + 0x1c], esi
jae 0x41db92
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41dbd3
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], esi
jae 0x41dba8
lea eax, [ebp + 8]
push edi
push 0x80
push 3
push edi
push 7
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00405780
mov eax, esi
mov edx, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x420ad0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x496684]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [esi]
test eax, eax
jne 0x420af6
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca72
mov esp, ebp
pop ebp
ret
push 0
push 0x17
push eax
call fcn.004304d9
add esp, 0xc
test eax, eax
jne 0x420ae6
mov eax, dword [esi]
push eax
push 0x400
push 1
push ebx
call fcn.0042dbfe
add esp, 0x10
cmp eax, 0x400
jne 0x420ae6
mov ecx, dword [esi]
push ecx
push eax
lea edx, [ebx + 0x400]
push 1
push edx
call fcn.0042dbfe
add esp, 0x10
cmp eax, 0x400
jne 0x420ae6
mov eax, dword [esi]
push eax
push 4
lea ecx, [ebx + 0x800]
push 1
push ecx
call fcn.0042dbfe
add esp, 0x10
cmp eax, 4
jne 0x420ae6
mov edx, dword [esi]
push edi
push edx
push eax
lea edi, [ebx + 0x804]
push 1
push edi
call fcn.0042dbfe
add esp, 0x10
cmp eax, 4
jne 0x420bcc
cmp dword [edi], 0
mov dword [ebp - 0x74], 0
jbe 0x420bbb
nop
mov eax, dword [esi]
push eax
push 0x6c
lea ecx, [ebp - 0x70]
push 1
push ecx
call fcn.0042dbfe
add esp, 0x10
cmp eax, 0x6c
jne 0x420bcc
cmp dword [ebp - 8], 0x17
jne 0x420bcc
lea edi, [ebx + 0x808]
lea eax, [ebp - 0x70]
call fcn.0041c6f0
mov eax, dword [ebp - 0x74]
inc eax
mov dword [ebp - 0x74], eax
cmp eax, dword [ebx + 0x804]
jb 0x420b80
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca72
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop edi
call fcn.0042ca72
mov esp, ebp
pop ebp
ret

Function at 0x420be0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edi]
push 0
push 0x81f
push eax
call fcn.004304d9
add esp, 0xc
test eax, eax
je 0x420bff
xor al, al
pop ebp
ret 4
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push esi
mov esi, dword [eax]
cmp esi, eax
je 0x420c38
jmp 0x420c10
mov dword [esi + 0x70], 0x17
mov edx, dword [edi]
push edx
push 0x6c
lea eax, [esi + 8]
push 1
push eax
call fcn.0042f6d0
add esp, 0x10
cmp eax, 0x6c
jne 0x420c3f
mov esi, dword [esi]
mov ecx, dword [ebp + 8]
cmp esi, dword [ecx]
jne 0x420c10
mov al, 1
pop esi
pop ebp
ret 4
xor al, al
pop esi
pop ebp
ret 4
Function at 0x420c50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x496684]
xor eax, ebp
mov dword [ebp - 4], eax
test esi, esi
je 0x420d68
test ebx, ebx
je 0x420d68
mov eax, dword [edi]
test eax, eax
je 0x420d68
push 0
push 0x17
push eax
call fcn.004304d9
add esp, 0xc
test eax, eax
jne 0x420d68
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420c97
sub eax, edx
cmp eax, 0x400
ja 0x420d68
push 0x400
lea eax, [ebp - 0x404]
push esi
push eax
call fcn.0042f2a0
mov ecx, dword [edi]
push ecx
push 0x400
lea edx, [ebp - 0x404]
push 1
push edx
call fcn.0042f6d0
add esp, 0x1c
cmp eax, 0x400
jne 0x420d68
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420ce6
sub eax, edx
cmp eax, 0x400
ja 0x420d68
push 0x400
lea eax, [ebp - 0x804]
push ebx
push eax
call fcn.0042f2a0
mov ecx, dword [edi]
push ecx
push 0x400
lea edx, [ebp - 0x804]
push 1
push edx
call fcn.0042f6d0
add esp, 0x1c
cmp eax, 0x400
jne 0x420d68
mov eax, dword [edi]
push eax
push 4
lea ecx, [ebp + 8]
push 1
push ecx
call fcn.0042f6d0
add esp, 0x10
cmp eax, 4
jne 0x420d68
mov edx, dword [edi]
push edx
push eax
lea eax, [ebp + 0xc]
push 1
push eax
call fcn.0042f6d0
add esp, 0x10
cmp eax, 4
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca72
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.0042ca72
mov esp, ebp
pop ebp
ret 8

Function at 0x421410
Capabilities:
Create thread

Disassembly:
mov eax, dword [esi + 0xc]
cmp eax, 2
jne 0x42141b
xor al, al
ret
cmp eax, 3
jne 0x421441
mov eax, dword [esi + 4]
test eax, eax
je 0x421441
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
lea ecx, [esi + 8]
push ecx
push 0
push esi
push 0x421470
push 0
push 0
call fcn.0043000f
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
je 0x421467
mov dword [esi + 0xc], 4
setne al
ret
Function at 0x421980
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478bf8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
push edi
mov eax, dword [0x496684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
cmp dword [0x499c48], 0
jne 0x4219db
lea esi, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00403600
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
push 0x44
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.004316d0
xor eax, eax
mov ecx, 5
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, 8
add esp, 0xc
mov word [ebp - 0x3c], cx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x6c], 0x44
mov dword [ebp - 0x40], 1
cmp dword [ebp + 0x1c], eax
jae 0x421a20
lea ecx, [ebp + 8]
cmp dword [0x499c4c], eax
mov eax, dword [0x499c38]
jae 0x421a32
mov eax, 0x499c38
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x6c]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x421a72
mov eax, dword [ebp - 0x20]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x20]
push edx
call esi
lea esi, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00403600
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x421b70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4906d8
push 0x435570
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x496684]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov edx, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], dx
jne 0x421c12
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x421c12
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x421c12
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x421c12
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421ff0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [0x499c04], ebx
je 0x422009
mov eax, 0x10dd
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x499c04
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x421fff
push esi
mov esi, dword [0x499bf8]
mov dword [0x499c00], ebx
mov dword [0x499c14], ebx
mov dword [0x499c10], ebx
mov dword [0x499c08], ebx
mov dword [0x499c0c], ebx
cmp esi, ebx
je 0x422066
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x422050
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x422070
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x499c04], eax
je 0x42208d
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
mov esi, dword [0x499c14]
push edi
test esi, esi
je 0x422100
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 4]
push eax
movzx eax, byte [edx + 0x17]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call ebx
xor ecx, ecx
cmp dword [esi + 4], ecx
jne 0x4220ef
mov eax, dword [esi + 0x10]
cmp eax, ecx
je 0x4220ef
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov edx, eax
mov dword [eax + 0x1c], ecx
and edx, 0xffff0000
mov edi, dword [edx + 8]
mov dword [eax + 0x18], edi
mov dword [edx + 8], eax
mov dword [esi + 0x10], ecx
mov edi, dword [esi]
push esi
call fcn.0042ca67
add esp, 4
mov esi, edi
test edi, edi
jne 0x4220a0
mov esi, dword [0x499bf8]
mov dword [0x499c14], 0
test esi, esi
je 0x422129
lea edx, [ebp - 8]
push edx
push 0x20
push 0x10000
push esi
call ebx
mov esi, dword [esi + 4]
test esi, esi
jne 0x422114
mov esi, dword [0x499c10]
test esi, esi
je 0x422157
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
lea esp, [esp]
mov eax, dword [esi + 4]
push eax
call ebx
mov edi, dword [esi]
push esi
call fcn.0042ca67
add esp, 4
mov esi, edi
test edi, edi
jne 0x422140
pop edi
xor eax, eax
pop esi
mov dword [0x499c10], eax
mov dword [0x499c04], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4224b0
Capabilities:
Suspend thread

Disassembly:
push edi
mov edi, eax
mov eax, dword [0x499c08]
test eax, eax
jne 0x422525
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp edi, eax
jne 0x4224ca
xor eax, eax
pop edi
ret
push esi
push 8
call fcn.0042d5e8
mov esi, eax
add esp, 4
test esi, esi
jne 0x4224e0
lea edi, [eax + 8]
jmp 0x4224fd
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x422512
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.0042ca67
add esp, 4
pop esi
mov dword [0x499c08], edi
mov eax, edi
mov dword [0x499c0c], 0
pop edi
ret
mov eax, dword [0x499c10]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x499c10], esi
xor eax, eax
pop esi
pop edi
ret
Function at 0x422530
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor edi, edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x499c04], eax
je 0x422554
mov eax, 0x10dd
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x499c08]
cmp eax, edi
jne 0x422748
push esi
mov esi, dword [0x499c54]
cmp esi, edi
jne 0x422586
mov eax, 6
pop esi
mov dword [0x499c08], eax
mov dword [0x499c0c], 0x499c54
pop edi
mov esp, ebp
pop ebp
ret
push ebx
mov dword [ebp - 8], edi
call fcn.00421fa0
mov ebx, eax
mov esi, 0x4215e0
mov dword [ebp - 0xc], ebx
call fcn.00421fa0
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x4225b6
cmp dword [0x499c00], edi
jne 0x4226f8
jmp 0x4226d4
push 0x18
call fcn.0042d5e8
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x4225d3
mov dword [ebp - 4], 8
jmp 0x4226d4
mov eax, ebx
call fcn.00421cb0
mov edi, eax
test edi, edi
jne 0x4225ec
mov dword [ebp - 4], 8
jmp 0x4226d4
mov esi, ebx
xor ebx, ebx
lea eax, [ebx + edi]
push eax
lea edx, [ebp - 4]
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
call fcn.00424450
cmp dword [ebp - 4], 0
mov esi, eax
jne 0x422637
mov ecx, dword [ebp - 0x14]
mov ebx, esi
sub ebx, dword [ebp - 0xc]
call fcn.00421c60
test eax, eax
jne 0x422637
cmp ebx, 5
jl 0x4225f0
cmp ebx, 0x12
jbe 0x422655
mov dword [ebp - 4], 6
jmp 0x4226d4
cmp ebx, 5
jge 0x422626
cmp dword [0x499c00], 0
mov dword [ebp - 4], 9
jne 0x4226dd
jmp 0x4226d4
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0xc]
mov dword [edi + 0x1c], eax
lea ecx, [ebx + esi]
mov dword [edi + 0x18], ecx
lea eax, [edi + 0x17]
lea edx, [ebx + edi + 5]
mov byte [eax], bl
sub ecx, edx
mov byte [ebx + edi], 0xe9
mov dword [ebx + edi + 1], ecx
lea ecx, [ebx + edi + 5]
call fcn.00421c30
lea ecx, [ebp - 0x10]
push ecx
push 0x40
push ebx
push esi
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4226cb
mov ecx, esi
call fcn.00421ef0
mov ebx, eax
test ebx, ebx
je 0x42271a
mov edx, 0x6544
cmp word [ebx + 0x1c], dx
je 0x42271a
lea eax, [ebp - 0x18]
push eax
push 0x40
push 0x40
push ebx
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x42270c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [0x499c08], ecx
test edi, edi
je 0x4226e8
mov eax, edi
call fcn.00421ec0
mov eax, dword [ebp - 8]
test eax, eax
je 0x4226f8
push eax
call fcn.0042ca67
add esp, 4
mov eax, dword [ebp - 4]
pop ebx
pop esi
mov dword [0x499c0c], 0x499c54
pop edi
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x1c], 0x6f746544
mov dword [ebx + 0x20], 0x21737275
mov eax, dword [ebp - 8]
mov edx, dword [0x499c14]
mov dword [eax + 0xc], esi
mov dword [eax + 4], 0
mov dword [eax + 8], 0x499c54
mov dword [eax + 0x10], edi
mov ecx, dword [ebp - 0x10]
pop ebx
mov dword [eax + 0x14], ecx
mov dword [eax], edx
mov dword [0x499c14], eax
xor eax, eax
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x422750
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x499c04], eax
je 0x42276b
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret
mov eax, dword [0x499c08]
test eax, eax
jne 0x42285e
cmp dword [0x499c54], eax
jne 0x422798
mov eax, 6
mov dword [0x499c08], eax
mov dword [0x499c0c], 0x499c54
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
push 0x18
call fcn.0042d5e8
mov edi, eax
add esp, 4
test edi, edi
jne 0x4227b3
lea esi, [eax + 8]
jmp 0x42283c
mov ebx, dword [0x499c54]
mov esi, 0x4215e0
call fcn.00421fa0
movzx ecx, byte [ebx + 0x17]
mov esi, dword [ebx + 0x18]
sub esi, ecx
test ecx, ecx
je 0x42282e
cmp ecx, 0x17
ja 0x42282e
cmp dword [ebx + 0x1c], eax
jne 0x42282e
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4227fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x42283c
mov edx, dword [0x499c14]
mov dword [edi + 0x10], ebx
mov dword [edi + 0xc], esi
mov dword [edi + 4], 1
mov dword [edi + 8], 0x499c54
mov ecx, dword [ebp - 4]
mov dword [edi + 0x14], ecx
mov dword [edi], edx
mov dword [0x499c14], edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x499c00], 0
mov esi, 9
jne 0x422842
mov dword [0x499c08], esi
test edi, edi
je 0x42284f
push edi
call fcn.0042ca67
add esp, 4
pop edi
mov eax, esi
pop esi
mov dword [0x499c0c], 0x499c54
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422b10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a6e5
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x496684]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x23c], 0
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
mov dword [ebp - 4], 1
push edx
mov word [ebp - 0x218], cx
call fcn.004316d0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x234]
call fcn.00405740
push 0
lea ecx, [ebp + 0xc]
push ecx
or eax, 0xffffffff
mov edi, esi
mov byte [ebp - 4], 2
call fcn.004032a0
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x422bbd
mov eax, esi
xor edi, edi
push edi
push 0x80
push 4
push edi
push edi
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x422bf3
mov edi, dword [ebp - 0x238]
mov eax, 0x48b2a8
mov esi, edi
call fcn.00405740
jmp 0x422ccc
xor eax, eax
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebx]
mov dword [ebp - 0x248], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x244], edx
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x250], 0x422a60
mov dword [ebp - 0x24c], edi
cmp eax, edi
je 0x422c8d
push str.MiniDumpWriteDump
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x422c7d
mov ecx, dword [ebx]
neg ecx
lea eax, [ebp - 0x250]
push eax
push 0
sbb ecx, ecx
lea edx, [ebp - 0x248]
and ecx, edx
push ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
jmp 0x422c9f
push 0
push str.Fail
push str.GetProcAddress_Fail
push 0
jmp 0x422c99
push edi
push str.Fail
push str.LoadLibrary_Fail
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x234]
push eax
mov edi, 1
call fcn.004026a0
mov edi, dword [ebp - 0x238]
lea ecx, [eax + 1]
push edi
lea edx, [ebp - 0x234]
call fcn.00401700
lea esi, [ebp - 0x234]
mov dword [ebp - 0x23c], 1
mov byte [ebp - 4], 1
call fcn.00403600
lea esi, [ebp + 0xc]
mov byte [ebp - 4], 0
call fcn.00403600
mov eax, edi
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.0042ca72
mov esp, ebp
pop ebp
ret 0x20