joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c8e0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x47ebe4]
cmp dword [eax + 0x30], 0
je 0x45c98a
cmp dword [ebx + 0x94], 0
jne 0x45c984
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45c870
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45c984
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45c94a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45c984
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00418474
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45c959
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45d4e8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45d51d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404794
jmp 0x45d52a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004046f8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45e6cc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45e70d
mov eax, esi
call fcn.00444c30
test al, al
je 0x45e70d
mov eax, dword [ebx + 0x84]
call fcn.0044492c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45e70d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044492c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4611f8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x461369
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x461344
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.0040488c
lea eax, [ebp - 0x118]
mov edx, 0x461380
call fcn.0040496c
mov eax, dword [ebp - 0x118]
call fcn.00404b64
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4612b6
lea eax, [ebp - 0x111]
call fcn.004097d0
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00404794
jmp 0x4612bd
mov eax, esi
call fcn.004046a4
cmp bl, 0x61
jae 0x4612de
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040d760
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.004046f8
jmp 0x4612f8
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040d6d4
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.004046f8
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x46138c
call fcn.00409ef0
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.004046f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46134b
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4666f8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b54
xor eax, eax
push ebp
push 0x466756
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.004667d4
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x46673e
lea eax, [ebp - 4]
call fcn.004667d4
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x466740
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46675d
lea eax, [ebp - 4]
call fcn.004046a4
ret

Function at 0x466764
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b54
xor eax, eax
push ebp
push 0x4667c8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xe
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 4]
call fcn.004667d4
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.004099d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4667cf
lea eax, [ebp - 4]
call fcn.004046a4
ret
Function at 0x466dc8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404b54
xor eax, eax
push ebp
push 0x466ec1
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [esi + 4]
mov word [ebx + 4], ax
mov ax, word [esi + 6]
mov word [ebx + 6], ax
mov ax, word [esi + 8]
mov word [ebx + 8], ax
mov ax, word [esi + 0xa]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xc]
call fcn.00466494
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
mov ax, word [esi + 0x20]
mov word [ebx + 0x22], ax
mov ax, word [esi + 0x22]
mov word [ebx + 0x24], ax
mov ax, word [esi + 0x24]
mov word [ebx + 0x26], ax
mov eax, dword [esi + 0x26]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2a]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040960c
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004677b4
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004094f0
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00467828
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466ec8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004046c8
ret
Function at 0x466ed0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404b54
xor eax, eax
push ebp
push 0x466fd9
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
mov ax, word [esi + 4]
mov word [ebx + 6], ax
mov ax, word [esi + 6]
mov word [ebx + 8], ax
mov ax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.00466494
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x12]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x20], ax
mov word [ebx + 0x22], 0
mov word [ebx + 0x24], 0
mov word [ebx + 0x26], 0
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
cmp dword [ebp - 4], 0
je 0x466f9f
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040960c
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004677b4
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004094f0
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00467828
jmp 0x466fb1
xor edx, edx
mov eax, ebx
call fcn.004677b4
xor edx, edx
mov eax, ebx
call fcn.00467828
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466fe0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004046c8
ret
Function at 0x46da38
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x170]
mov edx, ebx
mov eax, edi
call fcn.0046dc6c
mov esi, eax
mov dword [edi + 0x170], esi
and esi, 0xff
add dword [edi + 0x174], esi
imul esi, dword [edi + 0x174], 0x8088405
inc esi
mov dword [edi + 0x174], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x178]
mov eax, edi
call fcn.0046dc6c
mov dword [edi + 0x178], eax
pop edi
pop esi
pop ebx
ret

Function at 0x46daac
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x46dad1
inc esi
mov eax, edi
call fcn.0046da90
xor byte [ebx], al
mov dl, byte [ebx]
mov eax, edi
call fcn.0046da38
inc ebx
dec esi
jne 0x46dabb
pop edi
pop esi
pop ebx
ret

Function at 0x46db60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404b54
xor eax, eax
push ebp
push 0x46dbd5
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.0046dad8
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.0046da90
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.0046da38
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x46dba0
mov bl, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46dbdc
lea eax, [ebp - 4]
call fcn.004046a4
ret
Function at 0x46e798
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46e97c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x46e938
mov eax, dword [ebp - 4]
call fcn.004700f4
cmp ebx, eax
jge 0x46e938
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
mov edx, ebx
call fcn.00464d6c
mov edx, dword [0x466868]
call fcn.00403a50
mov esi, eax
mov eax, esi
call fcn.00467748
test al, al
je 0x46e92e
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x46e922
xor eax, eax
push ebp
push 0x46e91b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0046ed50
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
call fcn.0041a0b4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [esi + 0x34]
push dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx eax, word [ebp - 0x2a]
movzx edx, word [ebp - 0x28]
add eax, edx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.00404cf0
mov eax, dword [ebp - 8]
call fcn.00404bbc
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
mov al, byte [eax + 0x28]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0046eb14
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
mov dl, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e966
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x46e91a
mov eax, dword [ebp - 4]
call fcn.0046edd4
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.004099d8
jmp 0x46e966
mov eax, dword [ebp - 8]
call fcn.004046a4
jmp 0x46e966
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push eax
push 0
lea edx, [ebp - 0x54]
mov eax, 0xb3
call fcn.00408f04
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x415e88]
call fcn.0040c8f0
call fcn.00404034
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e983
lea eax, [ebp - 0x54]
call fcn.004046a4
ret
Function at 0x474e18
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x108], edx
mov edi, eax
xor eax, eax
push ebp
push 0x474fee
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
cmp dword [edi + 0x38], 0
jne 0x474fd5
mov eax, dword [edi + 0x30]
call fcn.00404964
test eax, eax
jne 0x474e6e
mov eax, dword [edi + 0x34]
call fcn.00404964
test eax, eax
jne 0x474e6e
mov eax, edi
call fcn.0047508c
jmp 0x474fd5
cmp dword [edi + 0xa0], 0
jne 0x474ea5
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0x30]
call fcn.00409868
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x47ec80]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xa0], eax
cmp dword [edi + 0xa4], 0
jne 0x474edc
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0x34]
call fcn.00409868
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x47ec80]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xa4], eax
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
mov eax, edi
call fcn.004750cc
mov ebx, eax
test bl, bl
jne 0x474f8a
mov eax, dword [edi + 0x30]
call fcn.00404964
test eax, eax
jne 0x474f14
mov eax, dword [edi + 0xc0]
call fcn.00404964
test eax, eax
je 0x474f8a
mov eax, dword [edi + 0xc0]
call fcn.00404964
test eax, eax
je 0x474f36
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0xc0]
call fcn.00409868
jmp 0x474f62
push dword [edi + 0x30]
push 0x475008
push dword [edi + 0x34]
lea eax, [ebp - 0x108]
mov edx, 3
call fcn.00404a24
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 0x101]
call fcn.00409868
push 7
lea eax, [ebp - 0x101]
push eax
call sub.kernel32.dll_WinExec
cmp eax, 0x20
jb 0x474f8a
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
mov eax, edi
call fcn.004750cc
mov ebx, eax
test bl, bl
jne 0x474f97
mov eax, edi
call fcn.0047508c
jmp 0x474fd5
mov eax, dword [edi + 0x58]
test eax, eax
je 0x474fa6
mov dword [edi + 0xa8], eax
jmp 0x474fb0
mov dword [edi + 0xa8], 1
mov eax, edi
call fcn.00475144
test al, al
je 0x474fd5
mov eax, edi
mov si, 0xffee
call fcn.00403a9c
xor ecx, ecx
xor edx, edx
mov eax, edi
call fcn.004751f0
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474ff5
lea eax, [ebp - 0x108]
call fcn.004046a4
ret
Function at 0x4775b0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b54
xor eax, eax
push ebp
push 0x4776a7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00404b64
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x477691
lea eax, [ebp - 0x18]
push eax
push ebx
call sub.kernel32.dll_GetFileSize
mov edi, eax
push 0
push edi
mov eax, dword [ebp - 0x18]
push eax
push 2
push 0
push ebx
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x477691
push 0
push 0
push 0
push 4
push esi
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x477691
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.IMAGEHLP.DLL_CheckSumMappedFile
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x477668
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0xc], 0
je 0x477677
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_UnmapViewOfFile
test esi, esi
je 0x477681
push esi
call sub.kernel32.dll_CloseHandle
test ebx, ebx
je 0x47768b
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4776ae
lea eax, [ebp - 4]
call fcn.004046a4
ret
Function at 0x4776b8
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b54
xor eax, eax
push ebp
push 0x477816
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.004775b0
mov esi, eax
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.00404b64
push eax
call sub.kernel32.dll_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
je 0x477800
push 0
push 0
push 0
push edi
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 8]
push eax
push 0x40
lea eax, [ebp - 0x48]
push eax
push edi
call sub.kernel32.dll_ReadFile
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x47773f
cmp dword [ebp - 8], 0x40
je 0x47774a
push edi
call sub.kernel32.dll_CloseHandle
jmp 0x477800
cmp word [ebp - 0x48], 0x5a4d
jne 0x47776c
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
push edi
call sub.kernel32.dll_SetFilePointer
xor edx, edx
cmp edx, 0xffffffff
jne 0x477777
cmp eax, 0xffffffff
jne 0x477777
push edi
call sub.kernel32.dll_CloseHandle
jmp 0x477800
push 0
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x140]
push eax
push edi
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x47779c
cmp dword [ebp - 8], 0xf8
je 0x4777a4
push edi
call sub.kernel32.dll_CloseHandle
jmp 0x477800
cmp esi, dword [ebp - 0xe8]
jne 0x4777b4
push edi
call sub.kernel32.dll_CloseHandle
jmp 0x477800
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
push edi
call sub.kernel32.dll_SetFilePointer
xor edx, edx
cmp edx, 0xffffffff
jne 0x4777d6
cmp eax, 0xffffffff
jne 0x4777d6
push edi
call sub.kernel32.dll_CloseHandle
jmp 0x477800
mov dword [ebp - 0xe8], esi
push 0
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x140]
push eax
push edi
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb ebx, ebx
inc ebx
push edi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47781d
lea eax, [ebp - 4]
call fcn.004046a4
ret
Function at 0x4778d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b54
mov eax, dword [ebp - 8]
call fcn.00404b54
mov eax, dword [ebp - 0xc]
call fcn.00404b54
xor eax, eax
push ebp
push 0x477a69
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0xc]
call fcn.00404b64
push eax
mov eax, dword [ebp - 8]
call fcn.00404b64
push eax
mov eax, dword [0x47e668]
push eax
call sub.kernel32.dll_FindResourceA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x477a4e
xor eax, eax
push ebp
push 0x477a47
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [0x47e668]
push eax
call sub.kernel32.dll_SizeofResource
mov ebx, eax
test ebx, ebx
jne 0x477961
call fcn.004040e0
jmp 0x477a4e
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [0x47e668]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x477983
call fcn.004040e0
jmp 0x477a4e
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x477a30
xor eax, eax
push ebp
push 0x477a29
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4167bc]
call fcn.00403864
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x477a0c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 4]
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0x10]
push 0
push 0
mov eax, dword [ebp - 0x20]
call fcn.0041a0d4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
call fcn.0041a7b0
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477a13
mov eax, dword [ebp - 0x20]
call fcn.00403894
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477a4e
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FreeResource
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477a70
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004046c8
ret
Function at 0x477dcc
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x477e6b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1e]
xor ecx, ecx
mov edx, 0x1e
call fcn.00403288
xor eax, eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], edi
lea eax, [ebp - 0x24]
mov ecx, 0x477e84
mov edx, ebx
call fcn.004049b0
mov eax, dword [ebp - 0x24]
call fcn.00404b64
mov dword [ebp - 0x16], eax
lea eax, [ebp - 0x28]
mov ecx, 0x477e84
mov edx, esi
call fcn.004049b0
mov eax, dword [ebp - 0x28]
call fcn.00404b64
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], 0x618
lea eax, [ebp - 0x1e]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477e72
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004046c8
ret
Function at 0x433770
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x433799
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4337a8
mov eax, 1
ret 4

Function at 0x433db6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ce40
push 0x433db0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x446748], 0xffffffff
or dword [0x44674c], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x444730]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x44472c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x446744], eax
call fcn.00433ef9
cmp dword [0x444420], 0
jne 0x433e39
push 0x433ef6
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00433ee4
push 0x444034
push 0x444030
call sub.MSVCRT.dll__initterm
mov eax, dword [0x444728]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x444724]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x44402c
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.004312ef
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret