joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429530
Capabilities:
Create thread
Resume thread
Terminate thread

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x2cf4]
push edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x17b4]
test eax, eax
jne 0x4295a2
mov ecx, dword [esi + 0x17b0]
lea eax, [esi + 0x17b0]
test ecx, ecx
mov dword [esp + 0x14], eax
jne 0x4295a2
mov eax, dword [esi + 0x17b8]
test eax, eax
jne 0x4295a2
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x4751d8
push 0
push 1
push 0
call ebx
test eax, eax
mov dword [esi + 0x17b4], eax
jne 0x4295b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4751b0
call fcn.00446cb0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call edi
mov eax, dword [esi + 0x17b8]
test eax, eax
je 0x4295d6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x17b8], 0
push 0
push 0
push 1
push 0
call ebx
test eax, eax
mov dword [esi + 0x17b8], eax
jne 0x429612
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x475188
call fcn.00446cb0
mov eax, dword [esp + 0x14]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
push eax
call edi
lea ecx, [esp + 0x10]
mov edi, 1
push ecx
push 4
push esi
push 0x428e30
push 0
push 0
mov dword [esp + 0x28], 0
call fcn.0045233c
mov esi, eax
add esp, 0x18
test esi, esi
je 0x42968e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [esp + 0x14]
push 2
push 0
push 0
push edx
push eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x429680
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x475150
call fcn.00446cb0
add esp, 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor edi, edi
jmp 0x429687
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call esi
push 5
call esi
push 0
call esi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x42a7e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, dword [esi + 0x2c84]
test eax, eax
je 0x42a804
pop esi
mov eax, 1
pop ebx
add esp, 0x104
ret
lea eax, [esp + 8]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 7], 0x5c
je 0x42a83d
push 0x104
lea edx, [esp + 0xc]
push 0x4695f4
push edx
call fcn.0042f1f0
add esp, 0xc
push 0x104
lea eax, [esp + 0xc]
push 0x475230
push eax
call fcn.0042f1f0
add esp, 0xc
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x2c84], eax
je 0x42a8b1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x475218
push eax
call edi
mov edx, dword [esi + 0x2c84]
push 0x475200
push edx
mov dword [esi + 0x2c8c], eax
call edi
mov ecx, dword [esi + 0x2c8c]
mov dword [esi + 0x2c90], eax
test ecx, ecx
pop edi
je 0x42a8b1
test eax, eax
je 0x42a8b1
mov ebx, 1
mov eax, ebx
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x42aa90
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push edi
push 0x104
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea ecx, [esp + 0xc]
push 0x469570
push ecx
call fcn.0042f1f0
mov eax, dword [esp + 0x124]
mov esi, dword [esp + 0x120]
mov ecx, dword [esp + 0x11c]
add esp, 0xc
lea edx, [esp + 8]
push edx
push eax
push esi
push 0x47523c
push ecx
push 0x46954c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x42ab03
cmp byte [esi], 0x2a
je 0x42ab03
mov edi, 1
push 0x47523c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x42ab26
mov edx, dword [esp + 0x11c]
push 4
push edx
push esi
call fcn.0042f1a0
add esp, 0xc
mov eax, edi
pop edi
pop esi
add esp, 0x104
ret
Function at 0x42ae00
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push ebx
push esi
push edi
push 0
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [esp + 0x70]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov word [esp + 0x4c], ax
mov eax, dword [esp + 0x74]
test eax, eax
mov dword [esi], 0
mov dword [esp + 0x1c], 0x44
je 0x42ae46
mov word [esp + 0x4c], 5
lea eax, [esp + 0xc]
mov edx, dword [esp + 0x68]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x68]
push ecx
push 0
push 0
push 0x30
push 0
push 0
push 0
push edx
push eax
mov dword [esp + 0x70], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x42ae8e
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push 0x4752dc
call fcn.00446e00
add esp, 8
call edi
jmp 0x42aede
mov ecx, dword [esp + 0xc]
cmp ecx, 0xffffffff
je 0x42aed8
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x70], 0
test eax, eax
mov dword [esi], 0
je 0x42aee2
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x42aee2
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x70]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x42aee0
mov eax, dword [esp + 0x70]
mov dword [esi], eax
jmp 0x42aee2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor ebx, ebx
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42af00
cmp eax, 0xffffffff
je 0x42af00
push eax
call esi
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42af0b
push eax
call esi
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x54
ret
Function at 0x42af20
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x5c
push ebx
mov ebx, dword [esp + 0x74]
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x24]
xor edx, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x10], edx
cmp eax, edx
mov dword [esp + 0xc], edx
mov dword [ebx], edx
mov dword [esp + 0x24], 0x44
mov word [esp + 0x54], dx
je 0x42af62
mov word [esp + 0x54], 5
push ebp
mov ebp, dword [esp + 0x70]
mov dword [esp + 0x54], 1
mov dword [esp + 0x84], 0x30
cmp dword [ebp], edx
je 0x42afd3
push 0x473c24
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x42afd3
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x473c0c
push esi
call ebx
push 0x473bf4
push esi
mov edi, eax
call ebx
test edi, edi
mov dword [esp + 0x14], eax
je 0x42afcc
mov eax, dword [ebp]
push 0
lea ecx, [esp + 0x14]
push eax
push ecx
call edi
test eax, eax
je 0x42afcc
mov dword [esp + 0x84], 0x430
mov ebx, dword [esp + 0x80]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
lea eax, [esp + 0x28]
push edx
mov edx, dword [esp + 0x88]
push eax
mov eax, dword [esp + 0x80]
push 0
push ecx
mov ecx, dword [esp + 0x84]
push edx
mov edx, dword [ebp]
push 0
push 0
push 0
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
pop ebp
je 0x42b04e
mov ecx, dword [esp + 0x14]
cmp ecx, 0xffffffff
je 0x42b04e
mov eax, dword [esp + 0x78]
mov esi, 1
test eax, eax
mov dword [ebx], 0
je 0x42b058
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x42b058
mov eax, dword [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x42b058
jmp 0x42b056
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
xor esi, esi
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp eax, ebx
je 0x42b074
cmp eax, 0xffffffff
je 0x42b074
push eax
call edi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x42b083
push eax
call edi
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x42b096
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x42b096
push ecx
call eax
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x5c
ret
Function at 0x42b430
Capabilities:
Get common file path

Disassembly:
sub esp, 0x310
mov al, byte [0x481910]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x14], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov ebp, dword [esp + 0x324]
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebp
stosw word es:[edi], ax
mov dword [esp + 0x14], 0
stosb byte es:[edi], al
call ebx
mov esi, eax
test esi, esi
jne 0x42b54d
lea ecx, [esp + 0x14]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x14]
push edx
call edi
cmp byte [esp + eax + 0x13], 0x5c
je 0x42b4b0
push 0x104
lea eax, [esp + 0x18]
push 0x4695f4
push eax
call fcn.0042f1f0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x18]
push ebp
push ecx
call fcn.0042f1f0
add esp, 0xc
lea edx, [esp + 0x14]
push edx
call ebx
mov esi, eax
test esi, esi
jne 0x42b54d
mov ecx, dword [0x481a8c]
mov byte [esp + 0x14], al
lea eax, [esp + 0x14]
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x14]
push edx
call edi
mov cl, byte [esp + eax + 0x13]
lea eax, [esp + eax + 0x13]
cmp cl, 0x5c
je 0x42b508
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x5c
jne 0x42b4ff
mov byte [eax + 1], 0
lea eax, [esp + 0x14]
push eax
call edi
cmp byte [esp + eax + 0x13], 0x5c
je 0x42b531
push 0x104
lea ecx, [esp + 0x18]
push 0x4695f4
push ecx
call fcn.0042f1f0
add esp, 0xc
push 0x104
lea edx, [esp + 0x18]
push ebp
push edx
call fcn.0042f1f0
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call ebx
mov esi, eax
mov eax, dword [esp + 0x328]
test eax, eax
je 0x42b5c2
test esi, esi
jne 0x42b5c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov cl, byte [0x481910]
mov ebx, eax
mov byte [esp + 0x118], cl
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x119]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x14]
push ebx
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x120]
push 0x4753d4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x128]
push ebx
push ecx
call fcn.00446e00
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x310
ret
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x310
ret
Function at 0x42b690
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x208
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push 0x475428
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x42b6cb
push 0x475408
push esi
call ebx
test eax, eax
jne 0x42b6c7
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x42b6cb
push 0
call eax
mov dl, byte [0x481910]
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x475454
push 0x475438
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call ebx
test eax, eax
je 0x42b726
lea ecx, [esp + 0x114]
push 0x104
push ecx
call eax
mov eax, dword [0x481a8c]
lea edx, [esp + 0x10]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x10]
push ecx
call esi
mov cl, byte [esp + eax + 0xf]
lea eax, [esp + eax + 0xf]
cmp cl, 0x5c
je 0x42b75f
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x5c
jne 0x42b756
lea edx, [esp + 0x114]
mov byte [eax + 1], 0
push edx
call esi
mov cl, byte [esp + eax + 0x113]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp cl, 0x5c
je 0x42b78e
lea eax, [esp + 0x114]
push 0x4695f4
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
call esi
cmp byte [esp + eax + 0xf], 0x5c
je 0x42b7a8
lea edx, [esp + 0x10]
push 0x4695f4
push edx
call edi
lea eax, [esp + 0x10]
lea ecx, [esp + 0x114]
push eax
push ecx
call fcn.00452b10
add esp, 8
test eax, eax
pop edi
jne 0x42b7f4
lea edx, [esp + 0x110]
lea eax, [esp + 0xc]
push edx
push eax
call fcn.00452b10
add esp, 8
test eax, eax
jne 0x42b7f4
lea ecx, [esp + 0x110]
lea edx, [esp + 0xc]
push ecx
push edx
call fcn.0045a5d0
add esp, 8
test eax, eax
jne 0x42b823
push 0x475428
call ebp
mov esi, eax
test esi, esi
je 0x42b86f
push 0x475408
push esi
call ebx
test eax, eax
jne 0x42b86b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret
lea eax, [esp + 0xc]
lea ecx, [esp + 0x110]
push eax
push ecx
call fcn.0045a5d0
add esp, 8
test eax, eax
push 0x475428
jne 0x42b87e
call ebp
mov esi, eax
test esi, esi
je 0x42b86f
push 0x475408
push esi
call ebx
test eax, eax
jne 0x42b86b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret
push 1
call eax
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret
call ebp
mov esi, eax
test esi, esi
je 0x42b8a9
push 0x475408
push esi
call ebx
test eax, eax
jne 0x42b8a5
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret
push 1
call eax
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret
Function at 0x42beb0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
push 0x475428
call ebp
mov esi, eax
test esi, esi
je 0x42beea
push 0x475408
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x42bee6
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x42beea
push 0
call eax
mov dl, byte [0x481910]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], dl
mov byte [esp + 0x10], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esp + eax + 0x113]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp cl, 0x5c
je 0x42bf60
lea edx, [esp + 0x114]
push 0x4695f4
push edx
call ebx
mov eax, dword [esp + 0x21c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x42bf99
lea eax, [esp + 0x114]
lea ecx, [esp + 0x10]
push eax
push ecx
call esi
lea edx, [esp + 0x10]
push 0x4754d4
push edx
call ebx
lea eax, [esp + 0x10]
push eax
call edi
lea ecx, [esp + 0x114]
lea edx, [esp + 0x10]
push ecx
push edx
call esi
lea eax, [esp + 0x10]
push 0x46dda4
push eax
call ebx
lea ecx, [esp + 0x10]
push ecx
call edi
lea edx, [esp + 0x114]
lea eax, [esp + 0x10]
push edx
push eax
call esi
lea ecx, [esp + 0x10]
push 0x4754c8
push ecx
call ebx
lea edx, [esp + 0x10]
push edx
call edi
lea eax, [esp + 0x114]
lea ecx, [esp + 0x10]
push eax
push ecx
call esi
lea edx, [esp + 0x10]
push 0x4754bc
push edx
call ebx
lea eax, [esp + 0x10]
push eax
call edi
lea ecx, [esp + 0x114]
lea edx, [esp + 0x10]
push ecx
push edx
call esi
lea eax, [esp + 0x10]
push 0x4754ac
push eax
call ebx
lea ecx, [esp + 0x10]
push ecx
call edi
lea edx, [esp + 0x114]
lea eax, [esp + 0x10]
push edx
push eax
call esi
lea ecx, [esp + 0x10]
push 0x47549c
push ecx
call ebx
lea edx, [esp + 0x10]
push edx
call edi
lea eax, [esp + 0x114]
lea ecx, [esp + 0x10]
push eax
push ecx
call esi
lea edx, [esp + 0x10]
push 0x475480
push edx
call ebx
lea eax, [esp + 0x10]
push eax
call edi
lea ecx, [esp + 0x114]
lea edx, [esp + 0x10]
push ecx
push edx
call esi
lea eax, [esp + 0x10]
push 0x475490
push eax
call ebx
lea ecx, [esp + 0x10]
push ecx
call edi
lea edx, [esp + 0x114]
lea eax, [esp + 0x10]
push edx
push eax
call esi
lea ecx, [esp + 0x10]
push 0x474ed4
push ecx
call ebx
lea edx, [esp + 0x10]
push edx
call edi
push 0x475428
call ebp
mov esi, eax
test esi, esi
je 0x42c0e4
push 0x475408
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x42c0e0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
push 1
call eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x42c100
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x260
mov eax, dword [0x4754d4]
mov ecx, dword [0x4754d8]
mov dx, word [0x4754dc]
push esi
push edi
mov dword [esp + 0x164], eax
mov dword [esp + 0x168], ecx
mov ecx, 0x3e
xor eax, eax
lea edi, [esp + 0x16e]
mov word [esp + 0x16c], dx
mov edx, dword [esp + 0x26c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
xor esi, esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
push eax
push ecx
push esi
push esi
push 0x30
push esi
push esi
push esi
lea eax, [esp + 0x184]
push edx
push eax
mov dword [esp + 0x44], 0x44
mov word [esp + 0x74], 0xa
mov dword [esp + 0x70], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x42c1c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [esp + 0x60]
push esi
push 0x475510
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x6c]
push esi
push edx
call fcn.00446e00
add esp, 0x14
xor eax, eax
pop edi
pop esi
add esp, 0x260
ret
mov eax, dword [esp + 0xc]
test eax, eax
je 0x42c267
cmp eax, 0xffffffff
je 0x42c267
push 0xffffffffffffffff
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x42c245
mov dl, byte [0x481910]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x61]
mov byte [esp + 0x60], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 8]
lea ecx, [esp + 0x60]
push eax
push 0x4754e0
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x60]
push eax
push edx
call fcn.00446e00
add esp, 8
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x260
ret
mov eax, esi
pop edi
pop esi
add esp, 0x260
ret
Function at 0x42c280
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x248
mov al, byte [0x481910]
push ebp
push esi
push edi
mov byte [esp + 0x10], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
mov edx, dword [0x481a8c]
lea ecx, [esp + 0x10]
stosw word es:[edi], ax
push 0x104
push ecx
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esp + eax + 0xf]
lea eax, [esp + eax + 0xf]
cmp cl, 0x5c
je 0x42c2da
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x5c
jne 0x42c2d1
lea ecx, [esp + 0x10]
push 0x474ed4
push ecx
mov byte [eax + 1], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov al, byte [esp + 0x10]
test al, al
je 0x42c328
lea edx, [esp + 0x114]
lea eax, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
test eax, eax
je 0x42c328
cmp eax, 0xffffffff
je 0x42c328
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x248
ret
mov ecx, dword [0x481a8c]
push 0x475538
push 0x89
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x42c3b7
mov edx, dword [0x481a8c]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
mov eax, dword [0x481a8c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42c3b7
push 0
push 0
push 2
push 0
push 3
lea ecx, [esp + 0x24]
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x42c3b7
cmp esi, 0xffffffff
je 0x42c3b7
lea edx, [esp + 0xc]
push 0
push edx
push ebp
push edi
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42c3c3
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x248
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x248
ret
Function at 0x42c6d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x314
mov dl, byte [0x481910]
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x221]
mov byte [esp + 0x220], dl
mov byte [esp + 0x11c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11d]
mov byte [esp + 0x18], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
push 0x475444
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x475438
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
mov esi, eax
xor edi, edi
test esi, esi
mov dword [esp + 0x10], edi
je 0x42c78d
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x42c78d
push 0x475428
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x42c78d
push 0x475408
push esi
call ebp
test eax, eax
jne 0x42c789
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x42c78d
push 0
call eax
lea ecx, [esp + 0x18]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esp + eax + 0x17]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp cl, 0x5c
je 0x42c7c3
lea eax, [esp + 0x18]
push 0x4695f4
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x220]
push ecx
push edx
call ebx
test edi, edi
je 0x42c7e8
lea eax, [esp + 0x18]
push 0x46dd84
push eax
jmp 0x42c7f2
lea ecx, [esp + 0x18]
push 0x46dd64
push ecx
call esi
lea edx, [esp + 0x220]
push 0x4755e0
push edx
call esi
lea eax, [esp + 0x11c]
push 0x4755f0
push eax
call ebx
lea ecx, [esp + 0x18]
lea edx, [esp + 0x11c]
push ecx
push edx
call esi
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x124]
push 0
lea edx, [esp + 0x22c]
push ecx
push edx
mov dword [esp + 0x28], 0
call fcn.0042ae00
add esp, 0x14
mov ebx, eax
test edi, edi
je 0x42c87a
push 0x475428
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x42c87a
push 0x475408
push esi
call ebp
test eax, eax
jne 0x42c876
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x42c87a
push 1
call eax
test ebx, ebx
jne 0x42c890
mov eax, dword [esp + 0x14]
push eax
push 0x4755b0
call fcn.00446e00
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x314
ret