joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412c4c
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 0x412c75
push ebx
push edi
movzx edi, byte [edx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4bc8f0]
inc edx
dec esi
jne 0x412c5d
pop edi
pop ebx
mov dword [ecx], eax
pop esi
ret 8

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

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x40], 0
je 0x412d8f
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 0x412d51
cmp dword [esi + 0x40], 0
je 0x412d8d
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
sub eax, ebx
cmp eax, dword [esp + 0x10]
jb 0x412d43
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x412d82
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 0x412ea0
Capabilities:
Clear file content

Disassembly:
push esi
push edi
push 0x14
mov esi, edx
push 0
push esi
mov edi, ecx
call fcn.0044f8a0
and dword [esi + 4], 0
add esp, 0xc
mov dword [esi], 1
mov dword [esi + 8], 0x14
call fcn.0044f965
mov edx, esi
mov ecx, edi
mov dword [esi + 0xc], eax
call fcn.00412dd4
test al, al
je 0x412ee2
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov al, 1
pop edi
pop esi
ret

Function at 0x412ee5
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0x10
push esi
push edi
jb 0x412ef5
mov eax, dword [ebx + 0x24]
jmp 0x412ef8
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 0x412f4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x412f48
cmp dword [ebx + 0x38], 0x10
jb 0x412f2f
mov ecx, dword [ebx + 0x24]
jmp 0x412f32
lea ecx, [ebx + 0x24]
push edi
push 2
push 3
mov edx, 0xc0000000
call fcn.004174aa
mov esi, eax
cmp esi, 0xffffffff
jne 0x412f4d
or eax, 0xffffffff
jmp 0x412f69
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.00412d93
test al, al
jne 0x412f67
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.00412ea0
mov eax, esi
pop edi
pop esi
pop ebx
ret 4
Function at 0x412f6f
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.00412ee5
mov esi, eax
cmp esi, 0xffffffff
je 0x413063
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
sub dword [ebp - 0x18], eax
cmp edi, 0x100000
jbe 0x41304a
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
jbe 0x41303e
sub eax, edi
mov edi, eax
push edi
call fcn.004687fd
cmp eax, ebx
pop ecx
mov dword [ebp + 0xc], eax
je 0x413024
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 0x413024
cmp dword [ebp - 4], edi
jne 0x413024
lea edx, [ebp - 0x1c]
mov ecx, esi
mov dword [ebp - 0x14], 0x14
call fcn.00412dd4
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 0x41302e
lea edx, [ebp - 0x1c]
mov ecx, esi
call fcn.00412ea0
cmp dword [ebp + 0xc], ebx
je 0x413057
push dword [ebp + 0xc]
call fcn.004687f8
pop ecx
jmp 0x413057
lea edx, [ebp - 0x1c]
mov ecx, esi
call fcn.00412ea0
jmp 0x413057
lea edx, [ebp - 0x1c]
mov ecx, esi
mov dword [ebp - 0x14], edi
call fcn.00412dd4
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 0x413e5b
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.00413be0
mov esi, dword [esi + 4]
push 0x14
push 0
push esi
call fcn.0044f8a0
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 0x413eb3
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.0044f4d0
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 0x413ece
cmp dword [edi + 0x18], 0x10
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp + 8]
jb 0x413eee
mov ecx, dword [ecx]
lea edx, [eax + 1]
call fcn.00412c7b
pop edi
mov dword [esi + 8], eax
pop esi
pop ebx
leave
ret 0xc

Function at 0x414186
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.0041355d
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.004010e0
and dword [ebp - 4], 0
call fcn.00417234
test al, al
je 0x4141d5
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.00413f00
test al, al
je 0x414229
cmp dword [ebp - 4], 0
jne 0x4141de
cmp byte [esi + 0x85], 0
jne 0x414229
lea edi, [esi + 0x90]
cmp dword [edi], 0xffffffff
je 0x4141f2
call ebx
sub eax, dword [ebp - 8]
cmp eax, dword [edi]
jae 0x414229
cmp byte [esi + 0x84], 0
je 0x414229
cmp dword [ebp - 4], 0
je 0x414209
mov eax, dword [esi + 0x88]
jmp 0x41420f
mov eax, dword [esi + 0x8c]
push eax
push dword [esi + 0x94]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x414229
cmp byte [esi + 0x84], 0
jne 0x4141b3
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x414245
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 0x416ed2
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 0x416f0c
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 0x416f58
push str.InternetGetConnectedStateExA
push eax
call edi
push 0x4985bc
push dword [esi + 4]
mov dword [esi + 0xc], eax
call edi
push 0x4985a8
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 0x416f5f
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 0x416f8d
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 0x416fc6
test eax, eax
jne 0x416fc6
mov esi, dword [ebp - 0x10]
cmp esi, 3
jb 0x416fc9
push 2
pop esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4170db
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 0x417100
xor al, al
jmp 0x417167
push 0x100
lea eax, [ebp - 0x100]
push eax
call sub.WS2_32.dll_gethostname
test eax, eax
jne 0x417160
push esi
lea eax, [ebp - 0x100]
push eax
call sub.WS2_32.dll_gethostbyname
mov esi, eax
test esi, esi
je 0x41715f
cmp word [esi + 0xa], 4
jne 0x41715f
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x41715f
push edi
xor edi, edi
push dword [eax]
call sub.WS2_32.dll_ntohl
test eax, eax
je 0x41714d
cmp eax, 0x7f000001
jne 0x41715c
mov eax, dword [esi + 0xc]
add edi, 4
mov eax, dword [edi + eax]
test eax, eax
jne 0x41713b
jmp 0x41715e
mov bl, 1
pop edi
pop esi
call sub.WS2_32.dll_WSACleanup
mov al, bl
pop ebx
leave
ret
Function at 0x417294
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 0x4172f2
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 0x4172f2
cmp esi, ebx
je 0x4172eb
mov byte [edi + esi - 1], bl
mov dword [ebp - 8], 1
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x417303
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

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

Disassembly:
mov eax, 0x478869
call fcn.0044f988
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.004010c0
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 0x41757c
mov edx, 0x104
lea ecx, [ebp - 0x130]
call fcn.00417294
test eax, eax
lea eax, [ebp - 0x130]
jne 0x417582
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x417585
lea eax, [ebp - 0x130]
push eax
jmp 0x41758a
push 0x498720
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.004010e0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x417724
Capabilities:
Create directory

Disassembly:
mov eax, 0x478869
call fcn.0044f988
sub esp, 0x1c
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x417744
call fcn.004176c1
test al, al
je 0x417748
mov al, 1
jmp 0x41779a
push ebx
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.00401b10
mov eax, dword [ebp - 0x14]
and dword [ebp - 4], 0
cmp eax, dword [esi + 0x14]
jne 0x41776a
cmp dword [esi + 0x18], 0x10
jb 0x41777a
mov esi, dword [esi + 4]
jmp 0x41777d
lea ecx, [ebp - 0x28]
call fcn.00417724
test al, al
jne 0x41775f
xor bl, bl
jmp 0x41778b
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.004010e0
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4198d7
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 0x419675
mov eax, dword [esi + 0x3b0]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4196a1
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.004192b7
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 0x419911
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.00417cd9
lea eax, [esi + 0x390]
cmp byte [eax], 0
jne 0x41990e
pop edi
mov ecx, esi
mov byte [eax], 1
pop esi
jmp 0x419642
Function at 0x421cb1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x18], 0x10
jb 0x421cbc
mov ecx, dword [ecx + 4]
jmp 0x421cbf
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x421cd2
test al, 0x10
je 0x421cd2
mov al, 1
ret
xor al, al
ret
Function at 0x427420
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.00401500
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edi, [esi + 8]
push edi
push ebx
call fcn.00427250
add esp, 0x10
test al, al
mov byte [esi + 4], al
je 0x427492
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x42745f
xor eax, eax
jmp 0x427464
mov eax, dword [edi + 8]
sub eax, ecx
cmp eax, 0x40
mov ecx, dword [esi + 0xc]
jb 0x427492
cmp word [ecx], 0x5a4d
jne 0x427492
mov edx, dword [ecx + 0x3c]
lea edi, [edx + 0xf8]
cmp eax, edi
jb 0x427492
cmp dword [edx + ecx], 0x4550
jne 0x427492
push ecx
lea ecx, [esi + 0x34]
call fcn.00427170
mov al, byte [esi + 4]
pop edi
pop esi
pop ebx
ret 0xc

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

Disassembly:
push 0xffffffffffffffff
push 0x47a0d6
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], 0x499dc8
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.00427420
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 0x429810
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x47ab90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
mov eax, dword [0x4bb344]
push ebx
push esi
mov dword [esp + 0x78], eax
lea eax, [esp + 0x24]
push edi
push eax
call fcn.004296e0
push 0x496b2c
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.00402940
add esp, 0x1c
mov eax, dword [esp + 0x24]
mov edi, 0x10
cmp eax, edi
jb 0x42988f
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004687f8
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 0x4298bb
mov edx, dword [esp + 0x2c]
push edx
call fcn.004687f8
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 0x4298d5
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x429959
lea edx, [esp + 0x60]
lea ecx, [esp + 0x44]
call fcn.00401b10
mov ecx, eax
mov byte [esp + 0x88], 5
call fcn.00417724
cmp dword [esp + 0x5c], edi
mov byte [esp + 0x88], 3
jb 0x429918
mov eax, dword [esp + 0x48]
push eax
call fcn.004687f8
add esp, 4
cmp dword [esp + 0x78], edi
mov ecx, dword [esp + 0x64]
jae 0x429926
lea ecx, [esp + 0x64]
push 0x20
push 1
push 3
mov edx, 0xc0000000
call fcn.004174aa
cmp eax, 0xffffffff
jne 0x429952
cmp dword [esp + 0x78], edi
jb 0x42994e
mov ecx, dword [esp + 0x64]
push ecx
call fcn.004687f8
add esp, 4
xor al, al
jmp 0x4299c9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x78], edi
mov esi, dword [esp + 0x64]
jae 0x429967
lea esi, [esp + 0x64]
mov eax, dword [esp + 0x9c]
cmp dword [eax + 0x18], edi
jb 0x429978
mov edx, dword [eax + 4]
jmp 0x42997b
lea edx, [eax + 4]
mov eax, dword [esp + 0x98]
cmp dword [eax + 0x18], edi
jb 0x42998c
mov ecx, dword [eax + 4]
jmp 0x42998f
lea ecx, [eax + 4]
mov eax, dword [esp + 0x94]
cmp dword [eax + 0x18], edi
jb 0x4299a0
mov eax, dword [eax + 4]
jmp 0x4299a3
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 0x4299c7
mov edx, dword [esp + 0x64]
push edx
call fcn.004687f8
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.0044de14
add esp, 0x80
ret
Function at 0x429cf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47abe8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [0x4bb344]
push edi
push 0
push 0x496870
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.004015f0
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.004299f0
mov eax, dword [esp + 0x30]
mov edi, 0x10
add esp, 0x14
cmp eax, edi
jb 0x429d7a
mov edx, dword [esp + 8]
push edx
call fcn.004687f8
add esp, 4
mov eax, dword [esp + 0x34]
test eax, eax
mov eax, dword [esp + 0x38]
jne 0x429d9d
cmp eax, edi
jb 0x429d97
mov eax, dword [esp + 0x24]
push eax
call fcn.004687f8
add esp, 4
mov eax, dword [esp + 0x5c]
jmp 0x429dcd
cmp eax, edi
mov eax, dword [esp + 0x24]
jae 0x429da9
lea eax, [esp + 0x24]
push esi
push eax
call fcn.0044e1fb
mov esi, eax
mov eax, dword [esp + 0x40]
add esp, 4
cmp eax, edi
jb 0x429dca
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004687f8
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.0044de14
add esp, 0x48
ret

Function at 0x42ae20
Capabilities:
Resume thread

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

Function at 0x42b830
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov al, byte [ecx + 0x900]
push edi
xor edi, edi
test al, al
jne 0x42b86b
call fcn.0042ef00
cmp dword [eax + 0x18], 0x10
jb 0x42b84e
mov eax, dword [eax + 4]
jmp 0x42b851
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 0x42b8ef
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 0x42b8e0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42b8e0
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 0x42b8df
lea ebx, [eax + 1]
push ebx
call fcn.004687fd
push ebx
mov esi, eax
push ebp
push esi
call fcn.004504a0
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.004687f8
add esp, 4
mov bl, 1
pop ebp
test edi, edi
je 0x42b8eb
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov al, bl
pop ebx
pop edi
pop ecx
ret 4
Function at 0x42cc80
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x47af10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov eax, dword [0x4bb344]
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.004015f0
push ebx
lea eax, [esp + 0x5c]
push ebx
push eax
mov byte [esp + 0x8c], 1
call fcn.0042cb80
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.0041c6c5
cmp eax, 0xffffffff
mov edi, 0x10
je 0x42cdc3
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.00401720
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x8c], 3
call fcn.00401f50
cmp dword [esp + 0x38], edi
jb 0x42cd5a
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004687f8
add esp, 4
cmp dword [esp + 0x54], edi
mov eax, dword [esp + 0x40]
jae 0x42cd68
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 0x42cdc3
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 0x42cdc3
mov byte [esp + 0xf], 1
cmp dword [esp + 0x70], edi
jb 0x42cdd6
mov eax, dword [esp + 0x5c]
push eax
call fcn.004687f8
add esp, 4
cmp dword [esp + 0x54], edi
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
jb 0x42cdf9
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004687f8
add esp, 4
cmp esi, ebx
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
je 0x42ce14
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.0044de14
add esp, 0x78
ret