joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a80
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x140
push ebx
mov ebx, dword [esp + 0x148]
push ebx
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x401b7b
push ebp
push esi
push edi
mov edi, 0x415134
or ecx, 0xffffffff
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebx
call ebp
cmp eax, 0xffffffff
jne 0x401af1
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x401af8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, 0x415120
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebx
call ebp
cmp eax, 0xffffffff
jne 0x401b3a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x401b41
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, str._acfadata.arg
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
xor eax, eax
pop ebx
add esp, 0x140
ret

Function at 0x401c00
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
mov dword [esp + 4], 0
je 0x401c46
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401c46
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + 8]
cmp ecx, edx
jbe 0x401c46
mov edx, dword [eax + 0x5c]
add eax, 0xc
push edx
push eax
call fcn.00406870
add esp, 8
test eax, eax
je 0x401c41
mov dword [esp + 4], 1
call fcn.00401b90
lea eax, [esp + 0xc]
push 0
push eax
lea ecx, [esp + 0xc]
push 4
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ecx
ret

Function at 0x401c60
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
mov dword [esp + 4], 0
je 0x401ca2
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401ca2
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + 8]
cmp ecx, edx
jbe 0x401ca2
add eax, 0xc
push eax
call fcn.00406930
add esp, 4
test eax, eax
je 0x401c9d
mov dword [esp + 4], 1
call fcn.00401b90
lea edx, [esp + 0xc]
push 0
push edx
lea eax, [esp + 0xc]
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ecx
ret
Function at 0x401cc0
Capabilities:
Check if file exists
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x804
lea eax, [esp]
push 0
push eax
push 0
push 2
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401d89
push edi
mov ecx, 0x1ff
lea edi, [esp + 0xa]
mov word [esp + 8], ax
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
push 0x104
push ecx
push 0
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
pop edi
je 0x401d89
lea edx, [esp + 4]
push 0x5c
push edx
call fcn.0040752e
add esp, 8
test eax, eax
je 0x401d89
add eax, 2
push str.ACDaemon.exe
push eax
call fcn.00407509
add esp, 8
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401d7e
lea ecx, [esp + 4]
push ecx
call fcn.004074c2
mov ecx, dword [esp + 4]
add esp, 4
lea edx, [eax + eax + 2]
lea eax, [esp + 4]
push edx
push eax
push 1
push 0
push str.ArcSoft_Connection_Service
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x804
ret

Function at 0x401d90
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ecx
lea eax, [esp]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401dd4
mov ecx, dword [esp]
push str.ArcSoft_Connection_Service
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret
Function at 0x404fe0
Capabilities:
Delete file

Disassembly:
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
ret

Function at 0x404ff0
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
push str.CommonProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jbe 0x405042
add eax, 0x1c
cmp eax, edi
jae 0x405042
push esi
call fcn.004074c2
lea eax, [esi + eax*2]
add esp, 4
cmp eax, esi
jbe 0x40502c
cmp word [eax - 2], 0x5c
jne 0x40502c
add eax, 0xfffffffe
push 0x4154b8
push eax
call fcn.00407509
add esp, 8
mov eax, 1
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x4050b0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dl, 0xb6
test esi, esi
jbe 0x4050d2
mov ecx, dword [esp + 8]
push ebx
mov bl, byte [eax + ecx]
xor bl, dl
mov byte [eax + ecx], bl
inc eax
cmp eax, esi
mov dl, bl
jb 0x4050c2
pop ebx
pop esi
ret 8

Function at 0x4050e0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dl, 0xb6
test edi, edi
jbe 0x405106
push ebx
push esi
mov esi, dword [esp + 0x10]
mov cl, byte [eax + esi]
mov bl, cl
xor bl, dl
mov dl, cl
mov byte [eax + esi], bl
inc eax
cmp eax, edi
jb 0x4050f3
pop esi
pop ebx
pop edi
ret 8
Function at 0x4065b0
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x250
push esi
mov esi, dword [esp + 0x258]
push esi
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x406651
push ebx
push ebp
push edi
push str.ArcSoft
push esi
call fcn.004074df
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esp, 8
lea eax, [esp + 0x10]
push eax
push esi
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 0xffffffff
jne 0x40660b
push 0
push esi
call ebx
jmp 0x40660e
push eax
call ebp
push str.Connection_Service
push esi
call fcn.004074df
add esp, 8
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
cmp eax, 0xffffffff
jne 0x406630
push 0
push esi
call ebx
jmp 0x406633
push eax
call ebp
push 0x4155f4
push esi
call fcn.004074df
add esp, 8
mov eax, 1
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x250
ret
xor eax, eax
pop esi
add esp, 0x250
ret

Function at 0x406660
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x458
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x802b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40672e
lea ecx, [esp + 8]
push str.ArcSoft
push ecx
call fcn.004074df
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esp, 8
lea edx, [esp + 0x210]
lea eax, [esp + 8]
push edx
push eax
call esi
cmp eax, 0xffffffff
je 0x40672e
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
push eax
call edi
lea ecx, [esp + 8]
push str.Connection_Service
push ecx
call fcn.004074df
add esp, 8
lea edx, [esp + 0x210]
lea eax, [esp + 8]
push edx
push eax
call esi
cmp eax, 0xffffffff
je 0x40672e
push eax
call edi
lea ecx, [esp + 8]
push str.BinArcCon.dll
push ecx
call fcn.004074df
add esp, 8
lea edx, [esp + 0x210]
lea eax, [esp + 8]
push edx
push eax
call esi
cmp eax, 0xffffffff
je 0x40672e
push eax
call edi
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
add esp, 0x458
ret
Function at 0x406740
Capabilities:
Create directory
Get common file path
Set file attributes

Disassembly:
sub esp, 0x250
push esi
mov esi, dword [esp + 0x258]
push esi
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4067fc
push ebx
push ebp
push edi
push str.ArcSoft
push esi
call fcn.004074df
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esp, 8
lea eax, [esp + 0x10]
push eax
push esi
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 0xffffffff
jne 0x40679f
push 0
push esi
call ebx
jmp 0x4067a2
push eax
call ebp
push 0x415210
push esi
call fcn.004074df
mov ecx, dword [esp + 0x270]
push ecx
push esi
call fcn.004074df
add esp, 0x10
lea edx, [esp + 0x10]
push edx
push esi
call edi
cmp eax, 0xffffffff
jne 0x4067db
push 0
push esi
call ebx
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x4067de
push eax
call ebp
push str._acforall.dll
push esi
call fcn.004074df
add esp, 8
mov eax, 1
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x250
ret
xor eax, eax
pop esi
add esp, 0x250
ret
Function at 0x4069e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
je 0x406bb4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x406bb4
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
and edi, 0xff
and ebp, 0xff
mov dword [esp + 0x10], edi
add edi, ebp
cmp edi, 2
jl 0x406bb4
cmp edi, 0xff
jg 0x406bb4
push edi
call fcn.0040747f
mov esi, eax
add esp, 4
test esi, esi
je 0x406bb4
xor eax, eax
test edi, edi
jbe 0x406a4d
mov byte [eax + esi], al
inc eax
cmp eax, edi
jb 0x406a45
lea eax, [ebp - 1]
mov ecx, 0
cdq
and edx, 7
add eax, edx
mov edx, dword [esp + 0x28]
sar eax, 3
inc eax
je 0x406a6f
xor byte [ecx + ebx], dl
add ecx, 2
cmp ecx, eax
jb 0x406a65
mov al, byte [esp + 0x24]
mov edi, 0xd
test al, al
mov dword [esp + 0x28], 0x15
je 0x406ae7
mov eax, dword [esp + 0x10]
mov bl, byte [esp + 0x1c]
mov ebp, edx
mov dword [esp + 0x24], eax
and ebp, 0xffff
mov ecx, dword [esp + 0x1c]
lea eax, [edi + ebp]
and ecx, 0xff
xor edx, edx
div ecx
mov eax, edx
xor edx, edx
add eax, ebp
div ecx
mov eax, ecx
cmp eax, edx
jbe 0x406ac3
mov cl, byte [eax + esi - 1]
mov byte [eax + esi], cl
dec eax
cmp eax, edx
ja 0x406ab7
mov eax, dword [esp + 0x28]
mov byte [edx + esi], bl
add eax, edi
mov dword [esp + 0x28], eax
sub eax, edi
mov edi, eax
mov eax, dword [esp + 0x24]
inc bl
dec eax
mov byte [esp + 0x1c], bl
mov dword [esp + 0x24], eax
jne 0x406a98
jmp 0x406aeb
mov bl, byte [esp + 0x1c]
mov ecx, dword [esp + 0x10]
xor eax, eax
sub bl, cl
and ecx, 0xff
mov byte [esp + 0x1c], bl
mov edx, dword [esp + 0x1c]
and edx, 0xff
lea edi, [ecx + edx]
test edi, edi
mov dword [esp + 0x1c], edi
jbe 0x406b59
mov cl, byte [eax + esi]
cmp cl, bl
jb 0x406b24
mov ebp, dword [esp + 0x20]
sub cl, bl
mov byte [eax + esi], cl
jmp 0x406b28
mov ebp, dword [esp + 0x18]
xor ecx, ecx
mov cl, byte [eax + esi]
mov edi, ecx
mov edx, edi
and edx, 0x80000007
jns 0x406b3e
dec edx
or edx, 0xfffffff8
inc edx
mov cl, 7
shr edi, 3
sub cl, dl
mov dl, byte [edi + ebp]
shr dl, cl
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov byte [eax + esi - 1], dl
jb 0x406b12
mov edi, ecx
mov ebp, dword [esp + 0x18]
xor cl, cl
xor edx, edx
mov byte [esp + 0x1c], cl
test edi, edi
jbe 0x406b9b
mov bl, byte [edx + esi]
mov eax, edx
and eax, 7
mov ecx, 7
and bl, 1
sub ecx, eax
shl bl, cl
mov cl, byte [esp + 0x1c]
or cl, bl
cmp eax, 7
mov byte [esp + 0x1c], cl
jne 0x406b96
mov byte [ebp], cl
inc ebp
xor cl, cl
mov byte [esp + 0x1c], cl
inc edx
cmp edx, edi
jb 0x406b69
test dl, 7
je 0x406ba3
mov byte [ebp], cl
push esi
call fcn.004072d0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
Function at 0x402724
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040317c
test esi, esi
jne 0x40275a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040326c
jmp 0x402778
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004025d8
mov edi, eax
test esi, esi
je 0x402778
cmp dword [ebx], 0
je 0x402778
dec esi
jmp 0x402761
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40e014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4029b8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402998
xor eax, eax
push ebp
push 0x402991
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4029d4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402998
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40e014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40e014], ax
mov esp, ebp
pop ebp
ret

Function at 0x403000
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40f034], 0
je 0x403061
cmp word [0x40f208], 0xd7b2
jne 0x403029
cmp dword [0x40f210], 0
jbe 0x403029
mov eax, 0x40f204
call dword [0x40f220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40e05c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403088
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40e020], 0
jne 0x40307d
push 0
push 0x40e054
push 0x40e05c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403fc8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40402e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004033a4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402814
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404018
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404035
lea eax, [ebp - 0x10]
call fcn.0040317c
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004035bc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x404b7d
test al, 0x10
jne 0x404b81
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4050dc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebp
push 0x4051e1
push dword fs:[ebx]
mov dword fs:[ebx], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
xor ebx, ebx
mov dword [0x40f69c], ebx
xor ebx, ebx
mov dword [0x40f698], ebx
mov dword [0x40f688], eax
mov dword [0x40f68c], edx
cmp dword [0x40f688], 0
je 0x4051d3
mov eax, dword [0x40f688]
mov dword [ecx], eax
mov edi, dword [0x40f688]
mov ax, word [edi]
not ax
cmp ax, 0x5a4d
je 0x4051d3
mov esi, dword [edi + 0x3c]
add esi, edi
push 0xf8
push esi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4051d3
cmp dword [esi], 0x4550
jne 0x4051d3
mov eax, esi
call fcn.004050c4
test al, al
jne 0x4051d3
mov ebx, esi
add ebx, 0xf8
mov ax, word [esi + 6]
cmp ax, 0x64
jae 0x4051d3
movzx eax, ax
dec eax
test eax, eax
jl 0x4051d3
inc eax
mov esi, eax
mov edx, 0x4051f4
mov eax, ebx
mov ecx, 8
call fcn.00404618
test eax, eax
jne 0x4051cd
mov eax, dword [ebx + 0x14]
add eax, edi
mov dword [0x40f690], eax
mov eax, dword [0x40f690]
call fcn.004050c4
test al, al
jne 0x4051d3
mov eax, dword [0x40f690]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0xc]
mov dword [0x40f694], eax
mov eax, dword [ebp + 8]
mov edx, dword [0x40f694]
mov dword [eax], edx
jmp 0x4051d3
add ebx, 0x28
dec esi
jne 0x405183
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4051e8
ret
Function at 0x4055e4
Capabilities:
Clear file content
Get file size

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4055ec
push ecx
push ebx
push esi
push edi
xor edx, edx
push ebp
push 0x4057e8
push dword fs:[edx]
mov dword fs:[edx], esp
test al, al
je 0x405630
lea edx, [ebp - 0x14]
mov eax, 0x405800
call fcn.00404d24
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
call fcn.00405544
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0xc]
pop ecx
call fcn.00403408
jmp 0x405655
lea edx, [ebp - 0x1c]
mov eax, 0x405810
call fcn.00404d24
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
call fcn.00405594
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0xc]
pop ecx
call fcn.00403408
mov eax, dword [ebp - 0xc]
call fcn.00404afc
test al, al
je 0x4057cd
mov edx, 2
mov eax, dword [ebp - 0xc]
call fcn.00404b0c
mov esi, eax
cmp esi, 0xffffffff
je 0x4057cd
push 0
push esi
call sub.kernel32.dll_GetFileSize
mov ebx, eax
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004036ec
mov eax, dword [ebp - 8]
call fcn.004035bc
mov edx, eax
mov ecx, ebx
mov eax, esi
call fcn.00404638
xor ebx, ebx
jmp 0x40578d
mov edx, dword [ebp - 8]
mov eax, 0x40582c
call fcn.004036a4
mov edi, eax
test edi, edi
jne 0x4056cb
lea edx, [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00404900
jmp 0x40571d
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.0040361c
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 4]
call fcn.00404900
lea eax, [ebp - 0x28]
push eax
lea edx, [edi + 1]
mov ecx, 1
mov eax, dword [ebp - 8]
call fcn.0040361c
mov eax, dword [ebp - 0x28]
mov edx, 0x405838
call fcn.00403508
jne 0x40570e
inc edi
lea eax, [ebp - 8]
mov ecx, edi
mov edx, 1
call fcn.0040365c
cmp dword [ebp - 4], 0
je 0x405771
lea eax, [ebp - 0x2c]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040361c
mov eax, dword [ebp - 0x2c]
mov edx, 0x405844
call fcn.00403508
je 0x405771
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.0040468c
mov eax, dword [ebp - 0x30]
push eax
lea edx, [ebp - 0x34]
mov eax, 0x405850
call fcn.00404d24
mov eax, dword [ebp - 0x34]
pop edx
call fcn.004036a4
test eax, eax
je 0x40578b
push dword [ebp - 0x10]
push dword [ebp - 4]
push 0x405864
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040347c
jmp 0x40578d
mov bl, 1
cmp dword [ebp - 8], 0
jne 0x4056ab
test bl, bl
je 0x4057c7
xor ecx, ecx
xor edx, edx
mov eax, esi
call fcn.00404950
mov eax, dword [ebp - 0x10]
call fcn.004033bc
push eax
mov eax, dword [ebp - 0x10]
call fcn.004035bc
mov edx, eax
mov eax, esi
pop ecx
call fcn.00404980
push esi
call sub.kernel32.dll_SetEndOfFile
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4057ef
lea eax, [ebp - 0x34]
mov edx, 0xd
call fcn.004031a0
ret
Function at 0x406800
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff34
mov esi, eax
xor ebx, ebx
push 0
push esi
call fcn.00405cc4
mov dword [0x40f6dc], eax
cmp dword [0x40f6dc], 0
je 0x4068a1
cmp dword [0x40f6ec], 0
je 0x4068a1
cmp dword [0x40f6f0], 0
je 0x4068a1
mov eax, dword [0x40f6dc]
push eax
call sub.kernel32.dll_SuspendThread
mov dword [esp], 0x10007
push esp
mov eax, dword [0x40f6dc]
push eax
call sub.kernel32.dll_GetThreadContext
test eax, eax
je 0x406888
push esi
lea esi, [esp + 4]
mov edi, 0x40f6f4
mov ecx, 0x33
rep movsd dword es:[edi], dword [esi]
pop esi
mov eax, dword [0x40f6ec]
mov dword [esp + 0xb8], eax
mov dword [esp], 0x10007
push esp
mov eax, dword [0x40f6dc]
push eax
call sub.kernel32.dll_SetThreadContext
mov eax, dword [0x40f6dc]
push eax
call sub.kernel32.dll_ResumeThread
push 0
push 0
push 0
push esi
call sub.user32.dll_PostThreadMessageA
mov bl, 1
mov eax, ebx
add esp, 0xcc
pop edi
pop esi
pop ebx
ret

Function at 0x407070
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4071a4
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov esi, 0x407014
sub esi, 0x407004
push edi
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov dword [0x40f800], eax
cmp dword [0x40f800], 0
je 0x407189
push 0x40
push 0x1000
push esi
push 0
mov eax, dword [0x40f800]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov dword [0x40f804], eax
cmp dword [0x40f804], 0
je 0x407187
lea edx, [ebp - 0x10]
mov eax, 0x4071bc
call fcn.00404d24
mov eax, dword [ebp - 0x10]
call fcn.004035bc
push eax
call sub.kernel32.dll_GetModuleHandleA_1
mov ebx, eax
lea edx, [ebp - 0x14]
mov eax, 0x4071d4
call fcn.00404d24
mov eax, dword [ebp - 0x14]
call fcn.004035bc
push eax
push ebx
call sub.kernel32.dll_GetProcAddress
call fcn.00407018
mov dword [ebp - 0xc], eax
push esi
push 0
call sub.kernel32.dll_GlobalAlloc
mov ebx, eax
test ebx, ebx
je 0x407187
mov edx, ebx
mov eax, 0x407004
mov ecx, esi
call fcn.00402598
mov edx, esi
sub edx, 5
test edx, edx
jl 0x40716a
inc edx
mov dword [ebp - 4], 0
mov eax, ebx
add eax, dword [ebp - 4]
cmp dword [eax], 0x11111111
jne 0x407164
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
inc dword [ebp - 4]
dec edx
jne 0x407152
lea eax, [ebp - 8]
push eax
push esi
push ebx
mov eax, dword [0x40f804]
push eax
mov eax, dword [0x40f800]
push eax
call sub.kernel32.dll_WriteProcessMemory
push ebx
call sub.kernel32.dll_GlobalFree
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4071ab
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004031a0
ret