joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42803e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4870d8]
jne 0x428048
repz ret
jmp fcn.0042c272

Function at 0x42bebf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4870d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00426904
and dword [ebp - 0x14], 0
cmp dword [0x48a684], 0
mov dword [ebp - 0x18], eax
jne 0x42bf72
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42c01a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4381c0
push ebx
call edi
test eax, eax
je 0x42c01a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x48a684], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x48a688], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x48a68c], eax
call edi
push eax
call esi
mov dword [0x48a694], eax
test eax, eax
je 0x42bf72
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x48a690], eax
mov eax, dword [0x48a690]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42bfcb
cmp dword [0x48a694], ecx
je 0x42bfcb
push eax
call esi
push dword [0x48a694]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42bfcb
test ebx, ebx
je 0x42bfcb
call edi
test eax, eax
je 0x42bfc2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42bfc2
test byte [ebp - 8], 1
jne 0x42bfcb
or dword [ebp + 0x10], 0x200000
jmp 0x42bffe
mov eax, dword [0x48a688]
cmp eax, dword [ebp - 0x18]
je 0x42bffe
push eax
call esi
test eax, eax
je 0x42bffe
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42bffe
mov eax, dword [0x48a68c]
cmp eax, dword [ebp - 0x18]
je 0x42bffe
push eax
call esi
test eax, eax
je 0x42bffe
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x48a684]
call esi
test eax, eax
je 0x42c01a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42c01c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042803e
leave
ret
Function at 0x401000
Capabilities:
Get disk information

Disassembly:
sub esp, 0xc
mov eax, dword [0x407030]
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp], eax
mov al, byte [edx]
mov dword [esp + 4], ecx
mov word [esp + 8], cx
lea ecx, [esp]
push ecx
mov byte [esp + 4], al
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
sete al
add esp, 0xc
ret
Function at 0x4013a0
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406130
push 0x401c4c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov byte [ebp - 0x20], 0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
or esi, 0xffffffff
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x401499
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
mov dword [ebp - 0x38], edi
test edi, edi
je 0x401499
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x30], eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x401499
mov edx, dword [ebp - 0x30]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x401499
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov edi, ebx
mov ecx, dword [ebp - 0x30]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x34], esi
cmp esi, 0xffffffff
je 0x401499
push 0
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x30]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
call fcn.004014bf
mov al, byte [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4014f0
Capabilities:
Delete file

Disassembly:
sub esp, 0x164
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00401ebc
mov esi, dword [esp + 0x180]
mov edi, dword [esp + 0x17c]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 4
push esi
call fcn.00401ec6
cdq
mov ecx, 0x3e8
idiv ecx
push edx
push edi
lea edx, [esp + 0x7c]
push str._swinupdate_d._s
push edx
call fcn.00401b00
add esp, 0x14
lea eax, [esp + 0x70]
push eax
call ebx
push 0
push 0
push 3
push 0
push 1
lea ecx, [esp + 0x84]
push 0x80000000
push ecx
call ebp
cmp eax, 0xffffffff
je 0x401573
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401523
mov ebx, dword [esp + 0x180]
mov esi, dword [esp + 0x184]
test ebx, ebx
je 0x4015ae
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x70]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.00405876
add esp, 4
mov ebp, dword [esp + 0x188]
test ebp, ebp
je 0x401605
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea edx, [esp + 0x70]
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
push ecx
push 0
push 0
push edx
call fcn.00401d75
mov edx, dword [esp + 0x1a0]
lea eax, [esp + 0x24]
lea ecx, [esp + 0x44]
push eax
push ecx
push 0x407094
push ebp
push edx
call fcn.00401d24
add esp, 0x28
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret

Function at 0x401610
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push 0
push 0
push 3
push 0
push 2
push 0x40000000
push eax
mov byte [esp + 0x22], 0x4c
mov byte [esp + 0x23], 0x5a
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401692
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x16]
push 2
push edx
push esi
call ebx
push 0
push 0
push 0
push esi
call edi
mov al, byte [esp + 0xe]
push 0
inc al
lea ecx, [esp + 0x12]
mov byte [esp + 0x12], al
lea eax, [esp + 0x18]
push eax
push 1
push ecx
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
pop ecx
ret
Function at 0x4016f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
xor eax, eax
push esi
mov dword [esp + 4], eax
push edi
mov dword [esp + 0xc], eax
mov ecx, 0x11
mov dword [esp + 0x10], eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
push eax
push 0x20
push eax
push eax
mov dword [esp + 0x30], eax
push eax
mov eax, dword [esp + 0x80]
mov esi, 1
push eax
push 0
mov dword [esp + 0x4c], 0x407950
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x6c], esi
mov word [esp + 0x70], si
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, esi
jne 0x401769
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
pop edi
pop esi
add esp, 0x54
ret

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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x104
test eax, eax
je 0x40179b
mov ecx, dword [esp + 0x10c]
lea edx, [esp]
push ecx
push eax
push 0x4070b0
push edx
call fcn.00401b00
add esp, 0x10
jmp 0x4017ae
mov eax, dword [esp + 0x10c]
lea ecx, [esp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4017c7
xor al, al
add esp, 0x104
ret
and eax, 0x10
cmp al, 0x10
jne 0x4017dc
mov al, byte [esp + 0x110]
add esp, 0x104
ret
mov cl, byte [esp + 0x110]
xor eax, eax
test cl, cl
sete al
add esp, 0x104
ret
Function at 0x401990
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0x34c
push ebp
push esi
push edi
xor dl, dl
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
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
stosb byte es:[edi], al
mov edi, dword [esp + 0x360]
lea eax, [esp + 0x114]
push edi
push eax
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x114]
push 0x4070e0
push ecx
call esi
mov edx, dword [esp + 0x35c]
lea eax, [esp + 0x114]
push edx
push eax
call esi
lea ecx, [esp + 0x218]
lea edx, [esp + 0x114]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x401af2
mov cl, byte [esp + 0x218]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test cl, 0x10
jne 0x401a74
lea eax, [esp + 0x14]
push edi
push eax
call ebp
lea ecx, [esp + 0x14]
push 0x4070e0
push ecx
call esi
lea edx, [esp + 0x248]
lea eax, [esp + 0x14]
push edx
push eax
call esi
lea ecx, [esp + 0x14]
push ecx
call ebx
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x21c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x401ada
test byte [esp + 0x21c], 0x10
jne 0x401ac3
lea eax, [esp + 0x14]
push edi
push eax
call ebp
lea ecx, [esp + 0x14]
push 0x4070e0
push ecx
call esi
lea edx, [esp + 0x248]
lea eax, [esp + 0x14]
push edx
push eax
call esi
lea ecx, [esp + 0x14]
push ecx
call ebx
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x21c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401a87
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x34c
ret
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x34c
ret
Function at 0x403761
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407298
cmp edx, dword [eax]
je 0x403783
add eax, 8
inc ecx
cmp eax, 0x407328
jl 0x403774
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407298]
jne 0x4038b1
mov eax, dword [0x40795c]
cmp eax, 1
je 0x40388b
test eax, eax
jne 0x4037b4
cmp dword [0x4070fc], 1
je 0x40388b
cmp edx, 0xfc
je 0x4038b1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4037eb
lea eax, [ebp - 0x1a4]
push 0x4064b0
push eax
call fcn.00404280
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402db0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40382e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402db0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4064ac
push edi
call fcn.00404110
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x406490
push eax
call fcn.00404280
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404290
lea eax, [ebp - 0xa0]
push 0x40648c
push eax
call fcn.00404290
push dword [esi + 0x40729c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404290
push 0x12010
lea eax, [ebp - 0xa0]
push 0x406464
push eax
call fcn.00404f6e
add esp, 0x2c
pop edi
jmp 0x4038b1
lea eax, [ebp + 8]
lea esi, [esi + 0x40729c]
push 0
push eax
push dword [esi]
call fcn.00402db0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x57a008], 0x8088405
inc edx
mov dword [ebx + 0x57a008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f05c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x55e54a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ab
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
jmp 0x41f0ca
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f13c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f125
test esi, esi
jbe 0x41f13c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f117
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f13c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0f4
jmp 0x41f13c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f13c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55e551
ret
Function at 0x420294
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x55f8af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0x57c54c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0x57c54c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0x57b378]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420481
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55f8b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x403370
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x180c
call fcn.0040c6e0
mov eax, dword [0x2b9eb7c]
mov ecx, dword [0x2b9eaf0]
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x40347b
mov edi, dword [sym.imp.KERNEL32.dll_SetHandleCount]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x2b9eb7c], 0x959
jne 0x403461
push 0
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 0
call ebx
push 0
push 0
call esi
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
push 0
push 0
lea ecx, [esp + 0x820]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push 0
lea edx, [esp + 0x101c]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
push 0x402ce8
push 0x402d14
call esi
push 0
push 0x402d4c
push 0x402d60
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [esp + 0x10]
push eax
call fcn.004031b0
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x4033b4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x180c
ret
Function at 0x4095b5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444b80]
jne 0x4095bf
repz ret
jmp fcn.0040bb45

Function at 0x409717
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406fbd
and dword [ebp - 4], 0
cmp dword [0x447d00], 0
mov ebx, eax
jne 0x4097c8
push 0x401b84
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409879
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b78
push edi
call esi
test eax, eax
je 0x409879
push eax
call fcn.00406f4b
mov dword [esp], 0x401b68
push edi
mov dword [0x447d00], eax
call esi
push eax
call fcn.00406f4b
mov dword [esp], 0x401b54
push edi
mov dword [0x447d04], eax
call esi
push eax
call fcn.00406f4b
mov dword [esp], 0x401b38
push edi
mov dword [0x447d08], eax
call esi
push eax
call fcn.00406f4b
pop ecx
mov dword [0x447d10], eax
test eax, eax
je 0x4097c8
push 0x401b20
push edi
call esi
push eax
call fcn.00406f4b
pop ecx
mov dword [0x447d0c], eax
mov eax, dword [0x447d0c]
cmp eax, ebx
je 0x409820
cmp dword [0x447d10], ebx
je 0x409820
push eax
call fcn.00406fc6
push dword [0x447d10]
mov esi, eax
call fcn.00406fc6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409820
test edi, edi
je 0x409820
call esi
test eax, eax
je 0x409817
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409817
test byte [ebp - 0xc], 1
jne 0x409820
or dword [ebp + 0x10], 0x200000
jmp 0x409859
mov eax, dword [0x447d04]
cmp eax, ebx
je 0x409859
push eax
call fcn.00406fc6
pop ecx
test eax, eax
je 0x409859
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409859
mov eax, dword [0x447d08]
cmp eax, ebx
je 0x409859
push eax
call fcn.00406fc6
pop ecx
test eax, eax
je 0x409859
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x447d00]
call fcn.00406fc6
pop ecx
test eax, eax
je 0x409879
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40987b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101a370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x101a38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x1043074
push ecx
mov edi, eax
call fcn.0102e198
mov esi, eax
add esp, 8
test esi, esi
jne 0x101a3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0102e02e
push esi
call fcn.0102dfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret