joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41341c
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jbe 0x413445
push ebx
push edi
movzx edi, byte [edx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4bd910]
inc edx
dec esi
jne 0x41342d
pop edi
pop ebx
mov dword [ecx], eax
pop esi
ret 8

Function at 0x4134f0
Capabilities:
Check for time delay via gettickcount
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x40], 0
je 0x41355f
push ebx
push edi
push dword [esi + 0x94]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
jmp 0x413521
cmp dword [esi + 0x40], 0
je 0x41355d
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
sub eax, ebx
cmp eax, dword [esp + 0x10]
jb 0x413513
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x413552
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x40], 0
push edi
mov byte [esi + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
pop esi
ret 4

Function at 0x413670
Capabilities:
Clear file content

Disassembly:
push esi
push edi
push 0x14
mov esi, edx
push 0
push esi
mov edi, ecx
call fcn.00450560
and dword [esi + 4], 0
add esp, 0xc
mov dword [esi], 1
mov dword [esi + 8], 0x14
call fcn.00450625
mov edx, esi
mov ecx, edi
mov dword [esi + 0xc], eax
call fcn.004135a4
test al, al
je 0x4136b2
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov al, 1
pop edi
pop esi
ret

Function at 0x4136b5
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0x10
push esi
push edi
jb 0x4136c5
mov eax, dword [ebx + 0x24]
jmp 0x4136c8
lea eax, [ebx + 0x24]
push 0
mov edi, 0x80
push edi
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41371d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x413718
cmp dword [ebx + 0x38], 0x10
jb 0x4136ff
mov ecx, dword [ebx + 0x24]
jmp 0x413702
lea ecx, [ebx + 0x24]
push edi
push 2
push 3
mov edx, 0xc0000000
call fcn.00417c9c
mov esi, eax
cmp esi, 0xffffffff
jne 0x41371d
or eax, 0xffffffff
jmp 0x413739
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.00413563
test al, al
jne 0x413737
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.00413670
mov eax, esi
pop edi
pop esi
pop ebx
ret 4
Function at 0x41373f
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
push 0xffffffffffffffff
push dword [edi]
mov dword [ebp - 8], edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.004136b5
mov esi, eax
cmp esi, 0xffffffff
je 0x413833
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
sub dword [ebp - 0x18], eax
cmp edi, 0x100000
jbe 0x41381a
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
jbe 0x41380e
sub eax, edi
mov edi, eax
push edi
call fcn.00469565
cmp eax, ebx
pop ecx
mov dword [ebp + 0xc], eax
je 0x4137f4
push ebx
push ebx
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4137f4
cmp dword [ebp - 4], edi
jne 0x4137f4
lea edx, [ebp - 0x1c]
mov ecx, esi
mov dword [ebp - 0x14], 0x14
call fcn.004135a4
push ebx
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x4137fe
lea edx, [ebp - 0x1c]
mov ecx, esi
call fcn.00413670
cmp dword [ebp + 0xc], ebx
je 0x413827
push dword [ebp + 0xc]
call fcn.00469560
pop ecx
jmp 0x413827
lea edx, [ebp - 0x1c]
mov ecx, esi
call fcn.00413670
jmp 0x413827
lea edx, [ebp - 0x1c]
mov ecx, esi
mov dword [ebp - 0x14], edi
call fcn.004135a4
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 8
Function at 0x41464a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x14]
push 0
mov dword [ebp - 4], ecx
add ebx, 0x15
push ebx
mov ecx, esi
call fcn.004143cf
mov esi, dword [esi + 4]
push 0x14
push 0
push esi
call fcn.00450560
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
push 0x14
pop edx
mov dword [esi + 4], edx
mov dword [esi], ebx
mov al, byte [eax + 0x60]
mov byte [esi + 0x10], al
cmp dword [edi + 0x18], 0x10
mov ecx, dword [edi + 0x14]
lea eax, [edi + 4]
mov dword [ebp + 8], eax
jb 0x4146a2
mov eax, dword [eax]
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 4]
add eax, edx
inc ecx
push ecx
push dword [ebp + 0xc]
push eax
call fcn.00450190
add esp, 0xc
xor ecx, ecx
mov eax, dword [ebx + 4]
mov dl, byte [esi + 0x10]
lea eax, [ecx + eax + 0x14]
xor byte [eax], dl
inc ecx
cmp ecx, dword [edi + 0x14]
jbe 0x4146bd
cmp dword [edi + 0x18], 0x10
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp + 8]
jb 0x4146dd
mov ecx, dword [ecx]
lea edx, [eax + 1]
call fcn.0041344b
pop edi
mov dword [esi + 8], eax
pop esi
pop ebx
leave
ret 0xc

Function at 0x414975
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov esi, ecx
call ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00413d4c
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.004010c0
and dword [ebp - 4], 0
call fcn.00417a26
test al, al
je 0x4149c4
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.004146ef
test al, al
je 0x414a18
cmp dword [ebp - 4], 0
jne 0x4149cd
cmp byte [esi + 0x85], 0
jne 0x414a18
lea edi, [esi + 0x90]
cmp dword [edi], 0xffffffff
je 0x4149e1
call ebx
sub eax, dword [ebp - 8]
cmp eax, dword [edi]
jae 0x414a18
cmp byte [esi + 0x84], 0
je 0x414a18
cmp dword [ebp - 4], 0
je 0x4149f8
mov eax, dword [esi + 0x88]
jmp 0x4149fe
mov eax, dword [esi + 0x8c]
push eax
push dword [esi + 0x94]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x414a18
cmp byte [esi + 0x84], 0
jne 0x4149a2
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x414a34
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x40], 0
push edi
mov byte [esi + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x4176c4
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov esi, ecx
xor ebx, ebx
push edi
push str.SENSAPI.DLL
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 8], ebx
call ebp
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi], eax
je 0x4176fe
push str.IsNetworkAlive
push eax
call edi
mov dword [esi + 8], eax
push str.WININET.DLL
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
call ebp
cmp eax, ebx
mov dword [esi + 4], eax
je 0x41774a
push str.InternetGetConnectedStateExA
push eax
call edi
push 0x4995cc
push dword [esi + 4]
mov dword [esi + 0xc], eax
call edi
push 0x4995b8
push dword [esi + 4]
mov dword [esi + 0x10], eax
call edi
push str.InternetGetConnectedStateA
push dword [esi + 4]
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x417751
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareWildTangent
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41777f
push 2
pop eax
leave
ret
push ebx
mov ebx, dword [ebp - 4]
push esi
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.ConnectionStatusOverride
push ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 8], esi
jne 0x4177b8
test eax, eax
jne 0x4177b8
mov esi, dword [ebp - 0x10]
cmp esi, 3
jb 0x4177bb
push 2
pop esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4178cd
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
push ebx
lea eax, [ebp - 0x290]
push eax
push 0x101
xor bl, bl
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x4178f2
xor al, al
jmp 0x417959
push 0x100
lea eax, [ebp - 0x100]
push eax
call sub.WS2_32.dll_gethostname
test eax, eax
jne 0x417952
push esi
lea eax, [ebp - 0x100]
push eax
call sub.WS2_32.dll_gethostbyname
mov esi, eax
test esi, esi
je 0x417951
cmp word [esi + 0xa], 4
jne 0x417951
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x417951
push edi
xor edi, edi
push dword [eax]
call sub.WS2_32.dll_ntohl
test eax, eax
je 0x41793f
cmp eax, 0x7f000001
jne 0x41794e
mov eax, dword [esi + 0xc]
add edi, 4
mov eax, dword [edi + eax]
test eax, eax
jne 0x41792d
jmp 0x417950
mov bl, 1
pop edi
pop esi
call sub.WS2_32.dll_WSACleanup
mov al, bl
pop ebx
leave
ret
Function at 0x417a86
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, edx
mov edi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x417ae4
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
push str.ProgramFilesDir
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x417ae4
cmp esi, ebx
je 0x417add
mov byte [edi + esi - 1], bl
mov dword [ebp - 8], 1
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x417af5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

Function at 0x417d02
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, 0x479639
call fcn.00450648
sub esp, 0x124
push esi
push edi
xor esi, esi
mov edi, ecx
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x10], 0xf
call fcn.004010a0
push 1
push 0x26
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x417d6e
mov edx, 0x104
lea ecx, [ebp - 0x130]
call fcn.00417a86
test eax, eax
lea eax, [ebp - 0x130]
jne 0x417d74
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x417d77
lea eax, [ebp - 0x130]
push eax
jmp 0x417d7c
push 0x499730
lea ecx, [ebp - 0x28]
call fcn.00402200
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.00402150
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.004010c0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x417f16
Capabilities:
Create directory

Disassembly:
mov eax, 0x479639
call fcn.00450648
sub esp, 0x1c
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x417f36
call fcn.00417eb3
test al, al
je 0x417f3a
mov al, 1
jmp 0x417f8c
push ebx
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.00401af0
mov eax, dword [ebp - 0x14]
and dword [ebp - 4], 0
cmp eax, dword [esi + 0x14]
jne 0x417f5c
cmp dword [esi + 0x18], 0x10
jb 0x417f6c
mov esi, dword [esi + 4]
jmp 0x417f6f
lea ecx, [ebp - 0x28]
call fcn.00417f16
test al, al
jne 0x417f51
xor bl, bl
jmp 0x417f7d
add esi, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne bl
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004010c0
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x41a0bd
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x3b0]
mov edi, 0xac
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x3a0]
test eax, eax
jne 0x419e5b
mov eax, dword [esi + 0x3b0]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x419e87
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x3b0]
and dword [esi + 0x3a0], 0
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi + 0x3b0]
mov ecx, esi
call fcn.00419a9d
pop edi
pop esi
ret
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x3b0]
mov edi, 0xac
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x3b0]
add eax, edi
cmp dword [esi + 0x3a0], 0
push eax
jne 0x41a0f7
mov byte [esi + 0x390], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
ret
mov dword [esi + 0x3a8], 4
mov dword [esi + 0x3ac], 2
mov byte [esi + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x7d0
mov ecx, esi
call fcn.004184cb
lea eax, [esi + 0x390]
cmp byte [eax], 0
jne 0x41a0f4
pop edi
mov ecx, esi
mov byte [eax], 1
pop esi
jmp 0x419e28
Function at 0x4224ab
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x18], 0x10
jb 0x4224b6
mov ecx, dword [ecx + 4]
jmp 0x4224b9
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4224cc
test al, 0x10
je 0x4224cc
mov al, 1
ret
xor al, al
ret
Function at 0x427c60
Capabilities:
Parse pe header

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push 0xffffffffffffffff
mov esi, ecx
push 0
push ebx
lea ecx, [esi + 0x18]
call fcn.004014e0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edi, [esi + 8]
push edi
push ebx
call fcn.00427a90
add esp, 0x10
test al, al
mov byte [esi + 4], al
je 0x427cd2
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x427c9f
xor eax, eax
jmp 0x427ca4
mov eax, dword [edi + 8]
sub eax, ecx
cmp eax, 0x40
mov ecx, dword [esi + 0xc]
jb 0x427cd2
cmp word [ecx], 0x5a4d
jne 0x427cd2
mov edx, dword [ecx + 0x3c]
lea edi, [edx + 0xf8]
cmp eax, edi
jb 0x427cd2
cmp dword [edx + ecx], 0x4550
jne 0x427cd2
push ecx
lea ecx, [esi + 0x34]
call fcn.004279b0
mov al, byte [esi + 4]
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x427ce0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x47aea6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [esi], 0x49ade4
mov dword [esp + 4], esi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov dword [esp + 0x10], eax
mov byte [esi + 0x1c], al
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0x20]
push eax
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x1c], 1
call fcn.00427c60
mov ecx, dword [esp + 8]
mov byte [esi + 4], al
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x42a070
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x47b960
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
mov eax, dword [0x4bc364]
push ebx
push esi
mov dword [esp + 0x78], eax
lea eax, [esp + 0x24]
push edi
push eax
call fcn.00429f40
push 0x497b4c
push eax
lea ecx, [esp + 0x18]
xor ebx, ebx
push ecx
mov dword [esp + 0x98], ebx
call fcn.004022e0
mov edx, dword [esp + 0xa0]
push edx
push eax
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0xa4], 1
call fcn.00402960
add esp, 0x1c
mov eax, dword [esp + 0x24]
mov edi, 0x10
cmp eax, edi
jb 0x42a0ef
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00469560
add esp, 4
cmp dword [esp + 0x40], edi
mov esi, 0xf
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
mov byte [esp + 0x88], 3
jb 0x42a11b
mov edx, dword [esp + 0x2c]
push edx
call fcn.00469560
add esp, 4
cmp dword [esp + 0x78], edi
mov eax, dword [esp + 0x64]
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
jae 0x42a135
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42a1b9
lea edx, [esp + 0x60]
lea ecx, [esp + 0x44]
call fcn.00401af0
mov ecx, eax
mov byte [esp + 0x88], 5
call fcn.00417f16
cmp dword [esp + 0x5c], edi
mov byte [esp + 0x88], 3
jb 0x42a178
mov eax, dword [esp + 0x48]
push eax
call fcn.00469560
add esp, 4
cmp dword [esp + 0x78], edi
mov ecx, dword [esp + 0x64]
jae 0x42a186
lea ecx, [esp + 0x64]
push 0x20
push 1
push 3
mov edx, 0xc0000000
call fcn.00417c9c
cmp eax, 0xffffffff
jne 0x42a1b2
cmp dword [esp + 0x78], edi
jb 0x42a1ae
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00469560
add esp, 4
xor al, al
jmp 0x42a229
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x78], edi
mov esi, dword [esp + 0x64]
jae 0x42a1c7
lea esi, [esp + 0x64]
mov eax, dword [esp + 0x9c]
cmp dword [eax + 0x18], edi
jb 0x42a1d8
mov edx, dword [eax + 4]
jmp 0x42a1db
lea edx, [eax + 4]
mov eax, dword [esp + 0x98]
cmp dword [eax + 0x18], edi
jb 0x42a1ec
mov ecx, dword [eax + 4]
jmp 0x42a1ef
lea ecx, [eax + 4]
mov eax, dword [esp + 0x94]
cmp dword [eax + 0x18], edi
jb 0x42a200
mov eax, dword [eax + 4]
jmp 0x42a203
add eax, 4
push esi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
mov eax, dword [esp + 0x78]
setne bl
cmp eax, edi
jb 0x42a227
mov edx, dword [esp + 0x64]
push edx
call fcn.00469560
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x80]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x74]
pop ebx
call fcn.0044ead4
add esp, 0x80
ret
Function at 0x42a550
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47b9b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [0x4bc364]
push edi
push 0
push 0x497890
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], eax
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call fcn.004015d0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x54]
push ecx
push edx
push eax
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x5c], 0
call fcn.0042a250
mov eax, dword [esp + 0x30]
mov edi, 0x10
add esp, 0x14
cmp eax, edi
jb 0x42a5da
mov edx, dword [esp + 8]
push edx
call fcn.00469560
add esp, 4
mov eax, dword [esp + 0x34]
test eax, eax
mov eax, dword [esp + 0x38]
jne 0x42a5fd
cmp eax, edi
jb 0x42a5f7
mov eax, dword [esp + 0x24]
push eax
call fcn.00469560
add esp, 4
mov eax, dword [esp + 0x5c]
jmp 0x42a62d
cmp eax, edi
mov eax, dword [esp + 0x24]
jae 0x42a609
lea eax, [esp + 0x24]
push esi
push eax
call fcn.0044eebb
mov esi, eax
mov eax, dword [esp + 0x40]
add esp, 4
cmp eax, edi
jb 0x42a62a
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00469560
add esp, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x3c]
pop edi
call fcn.0044ead4
add esp, 0x48
ret

Function at 0x42b4a0
Capabilities:
Resume thread

Disassembly:
mov dl, byte [ecx + 0x9d9]
xor al, al
test dl, dl
je 0x42b4be
mov dl, byte [ecx + 0x900]
test dl, dl
jne 0x42b4be
push 5
call fcn.00430d80
ret
mov ecx, dword [ecx + 0xa1c]
test ecx, ecx
je 0x42b4d5
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne al
ret

Function at 0x42bb60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov al, byte [ecx + 0x900]
push edi
xor edi, edi
test al, al
jne 0x42bb9b
call fcn.0042f170
cmp dword [eax + 0x18], 0x10
jb 0x42bb7e
mov eax, dword [eax + 4]
jmp 0x42bb81
add eax, 4
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
test edi, edi
setne al
test al, al
je 0x42bc1f
push ebx
push esi
push 0x1af
push 0xf618
push edi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x42bc10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42bc10
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test ebp, ebp
mov dword [esp + 0x10], eax
je 0x42bc0f
lea ebx, [eax + 1]
push ebx
call fcn.00469565
push ebx
mov esi, eax
push ebp
push esi
call fcn.00451160
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
add esp, 0x10
push esi
mov byte [esi + eax], 0
call fcn.00402200
push esi
call fcn.00469560
add esp, 4
mov bl, 1
pop ebp
test edi, edi
je 0x42bc1b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov al, bl
pop ebx
pop edi
pop ecx
ret 4
Function at 0x42cfc0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x47bc60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov eax, dword [0x4bc364]
push ebx
push esi
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x70], eax
push edi
mov byte [esp + 0xf], bl
mov dword [esp + 0x18], esi
push 0x4a
push str.SoftwareMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options_
lea ecx, [esp + 0x44]
mov dword [esp + 0x88], ebx
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.004015d0
push ebx
lea eax, [esp + 0x5c]
push ebx
push eax
mov byte [esp + 0x8c], 1
call fcn.0042cec0
add esp, 0xc
push 1
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x64]
mov byte [esp + 0x8c], 2
mov byte [esp + 0x1c], 0x5c
call fcn.0041ceae
cmp eax, 0xffffffff
mov edi, 0x10
je 0x42d103
mov edx, dword [esp + 0x6c]
inc eax
sub edx, eax
push edx
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x64]
call fcn.00401700
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x8c], 3
call fcn.00401f50
cmp dword [esp + 0x38], edi
jb 0x42d09a
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00469560
add esp, 4
cmp dword [esp + 0x54], edi
mov eax, dword [esp + 0x40]
jae 0x42d0a8
lea eax, [esp + 0x40]
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x42d103
mov esi, dword [esp + 0x14]
mov eax, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push str.BreakOnDllLoad
push esi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [esp + 0x14], ebx
je 0x42d103
mov byte [esp + 0xf], 1
cmp dword [esp + 0x70], edi
jb 0x42d116
mov eax, dword [esp + 0x5c]
push eax
call fcn.00469560
add esp, 4
cmp dword [esp + 0x54], edi
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
jb 0x42d139
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00469560
add esp, 4
cmp esi, ebx
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
je 0x42d154
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x78]
mov al, byte [esp + 0xf]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x6c]
pop ebx
call fcn.0044ead4
add esp, 0x78
ret