joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c050
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x208
push ebp
mov ebp, dword [esp + 0x210]
push esi
push edi
push 0
push 0
push 3
push 0
push 3
push connect
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x42c1a1
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x42c19a
cmp eax, 0x1000000
jae 0x42c19a
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0x40
push edx
push esi
call edi
test eax, eax
je 0x42c19a
cmp word [esp + 0x14], 0x5a4d
jne 0x42c19a
mov eax, dword [esp + 0x50]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [esp + 0x50]
jne 0x42c19a
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x124]
push 0xf8
push edx
push esi
call edi
test eax, eax
je 0x42c19a
cmp dword [esp + 0x11c], 0x4550
jne 0x42c19a
cmp word [esp + 0x122], 0
je 0x42c19a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x21c]
test eax, eax
jne 0x42c148
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x208
ret 8
mov esi, 0x444154
mov edx, dword [esi]
xor eax, eax
mov cl, byte [edx]
cmp cl, 0xff
je 0x42c166
mov byte [esp + eax + 0x54], cl
mov cl, byte [edx + eax + 1]
inc eax
cmp cl, 0xff
jne 0x42c158
mov byte [esp + eax + 0x54], 0
push eax
lea eax, [esp + 0x58]
push eax
push 0x46d92c
push ebp
call fcn.00414ae0
add esp, 0x10
test eax, eax
jne 0x42c137
add esi, 4
cmp esi, 0x44415c
jb 0x42c14d
pop edi
pop esi
pop ebp
add esp, 0x208
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x208
ret 8

Function at 0x42c1b0
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x140
push esi
mov esi, dword [esp + 0x148]
push edi
push 0x46d934
push esi
call dword [sym.imp.ntdll.dll_strstr]
add esp, 8
test eax, eax
je 0x42c298
push 0
push 0
push 3
push 0
push 3
push connect
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x42c298
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x42c291
cmp eax, 0x1000000
jae 0x42c291
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 8]
push 0
push ecx
lea edx, [esp + 0x18]
push 0x40
push edx
push esi
call edi
test eax, eax
je 0x42c291
cmp word [esp + 0x10], 0x5a4d
jne 0x42c291
mov eax, dword [esp + 0x4c]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [esp + 0x4c]
jne 0x42c291
lea ecx, [esp + 8]
push 0
push ecx
lea edx, [esp + 0x58]
push 0xf8
push edx
push esi
call edi
test eax, eax
je 0x42c291
cmp dword [esp + 0x50], 0x4550
jne 0x42c291
cmp word [esp + 0x56], 0
je 0x42c291
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x140
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x140
ret 4
Function at 0x42c2b0
Capabilities:
Get common file path
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444188
push 0x43e794
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
xor ecx, ecx
cmp dword [ebp + 0xc], eax
sete cl
push ecx
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00415170
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 0x2c], eax
cmp word [esi], 0x5a4d
jne 0x42c3d9
cmp dword [eax], 0x4550
jne 0x42c3d9
mov eax, dword [eax + 0x80]
push eax
push esi
call fcn.00415560
add esp, 8
mov ebx, eax
add ebx, esi
mov dword [ebp - 0x24], ebx
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x42c3d9
mov ecx, eax
push ecx
push esi
call fcn.00415560
add esp, 8
mov edi, eax
add edi, esi
mov dword [ebp - 0x30], edi
push 0x104
lea edx, [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edi
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 1
lea ecx, [ebp - 0x15c]
push ecx
push 0
push 0
lea edx, [ebp - 0x134]
push edx
call fcn.00414970
add esp, 0x14
test eax, eax
je 0x42c3c8
push 6
push 0x46d93c
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.ntdll.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x42c3c8
mov dword [ebp - 0x20], 1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42c3d9
mov dword [ebx + 0xc], 0
jmp 0x42c3d9
add ebx, 0x14
jmp 0x42c335
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42c3f0
push eax
call fcn.00415210
add esp, 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42c410
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [esp + 0x110]
test eax, eax
je 0x42c43d
lea ecx, [esp]
push 0x46d954
push ecx
jmp 0x42c447
lea edx, [esp]
push 0x46d944
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ecx, dword [esp + 0x10c]
push esi
cmp ecx, 0x7fffffff
ja 0x42c498
mov eax, dword [esp + 0x10c]
mov esi, ecx
test ecx, ecx
je 0x42c498
lea edx, [esp + 4]
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x42c490
mov byte [eax], cl
inc eax
dec esi
jne 0x42c470
dec eax
pop esi
mov byte [eax], 0
mov eax, 1
add esp, 0x104
ret 0xc
test esi, esi
jne 0x42c495
dec eax
mov byte [eax], 0
mov eax, 1
pop esi
add esp, 0x104
ret 0xc
Function at 0x42d150
Capabilities:
Create directory
Delete directory
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x440a8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push esi
push edi
lea ecx, [esp + 8]
call fcn.0040f810
mov esi, dword [esp + 0x224]
lea eax, [esp + 0xc]
push esi
push 0x46e844
push 0x104
push eax
mov dword [esp + 0x22c], 0
call fcn.00407080
add esp, 0x10
lea ecx, [esp + 0x110]
push esi
push 0x46e820
push 0x104
push ecx
call fcn.00407080
mov eax, dword [esp + 0x238]
add esp, 0x10
test eax, eax
je 0x42d20b
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push esi
call edi
lea edx, [esp + 0xc]
push 0
push edx
call edi
lea eax, [esp + 0x110]
push 0
push eax
call edi
push 0x1f01ff
push 0
push esi
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.0040fa30
push 1
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x42d26b
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push 0x80
push esi
call edi
push 0x1f01ff
push 0
push esi
lea ecx, [esp + 0x18]
call fcn.0040fa10
lea ecx, [esp + 0x10]
push 0x80
push ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea edx, [esp + 0x10]
push edx
call ebx
lea eax, [esp + 0x114]
push 0x80
push eax
call edi
lea ecx, [esp + 0x114]
push ecx
call ebx
push 0x80
push esi
call edi
push esi
call ebx
mov edi, eax
pop ebx
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0040f840
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 8
Function at 0x42d2a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10c
lea eax, [esp + 4]
push esi
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0x20]
push edx
xor esi, esi
push eax
push ecx
mov dword [esp + 0x20], esi
call fcn.004152c0
add esp, 0x14
mov dword [esp + 4], eax
test eax, eax
je 0x42d40b
mov edx, dword [esp + 0x20]
push ebx
push ebp
push edi
mov ecx, 0x46da88
cmp dword [ecx], edx
je 0x42d2fe
add ecx, 0x14
inc esi
cmp ecx, 0x46e758
jb 0x42d2e9
jmp 0x42d3e2
lea esi, [esi + esi*4]
xor ebx, ebx
shl esi, 2
xor ebp, ebp
mov edi, dword [esi + 0x46da90]
test edi, edi
jne 0x42d31c
mov edx, dword [esp + 0x14]
mov edi, dword [edx + eax - 4]
jmp 0x42d334
cmp edi, 0xffffffff
jne 0x42d334
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov ebx, dword [eax]
lea ebp, [eax + 8]
sub edi, ecx
test ebp, ebp
jne 0x42d364
mov edx, dword [esp + 0x1c]
mov ecx, edi
sub ecx, edx
push 4
add ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x42d360
mov eax, dword [esp + 0x1c]
mov edx, edi
sub edx, eax
mov eax, dword [esp + 0x10]
mov ebx, dword [edx + eax]
lea ebp, [edx + eax]
add ebp, 8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp ebx, ecx
jbe 0x42d36f
lea ebx, [ecx - 8]
test ebp, ebp
je 0x42d401
mov ecx, dword [esi + 0x46da98]
mov eax, dword [esi + 0x46da94]
push ebp
push ecx
mov ecx, dword [esi + 0x46da8c]
push eax
push ecx
push edi
push ebx
call fcn.0042d420
add esp, 0x18
test eax, eax
je 0x42d3de
mov edx, dword [esp + 0x124]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x42d3de
lea eax, [esp + 0x14]
push 0
push eax
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x10]
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10c
ret 8
mov dword [esp + 0x18], 2
jmp 0x42d3e2
mov eax, esi
pop esi
add esp, 0x10c
ret 8
Function at 0x42d520
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444240
push 0x43e794
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2c], edi
cmp word [edi], 0x5a4d
je 0x42d577
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x3c]
add eax, edi
mov dword [ebp - 0x28], eax
cmp dword [eax], 0x4550
jne 0x42d55b
mov cx, word [eax + 6]
cmp cx, si
je 0x42d55b
xor edx, edx
mov dx, word [eax + 0x14]
lea edx, [edx + eax + 0x18]
mov dword [ebp - 0x20], edx
and ecx, 0xffff
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*8 - 0x28]
mov dword [ebp - 0x24], ecx
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x10]
lea edx, [edx + ecx + 0x1000]
cmp edx, dword [ebp + 0xc]
jae 0x42d677
mov eax, dword [eax + 0x88]
mov dword [ebp - 0x30], eax
cmp eax, esi
je 0x42d677
push eax
push edi
call fcn.00415560
add esp, 8
mov esi, eax
add esi, edi
mov dword [ebp - 0x38], esi
lea ecx, [esi + 0x10]
mov dword [ebp - 0x3c], ecx
xor edx, edx
mov dx, word [esi + 0xe]
xor eax, eax
mov ax, word [esi + 0xc]
add edx, eax
mov dword [ebp - 0x34], edx
mov eax, edx
dec edx
mov dword [ebp - 0x34], edx
test eax, eax
je 0x42d677
cmp dword [ebp - 0x1c], 0x1e
jae 0x42d677
mov eax, dword [ecx]
test eax, 0x80000000
je 0x42d663
test dword [ecx + 4], 0x80000000
je 0x42d663
and eax, 0x7fffffff
add eax, esi
mov ebx, eax
mov dword [ebp - 0x40], ebx
xor edi, edi
mov dword [ebp - 0x44], edi
cmp edi, 0xa
jae 0x42d657
xor ecx, ecx
mov cx, word [ebx]
push ecx
mov edx, dword [edi*4 + 0x4441ec]
push edx
lea eax, [ebx + 2]
push eax
call dword [sym.imp.ntdll.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x42d66b
add dword [ebp - 0x1c], 0xa
cmp dword [ebp - 0x1c], 0x14
jae 0x42d677
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
add ecx, 8
mov dword [ebp - 0x3c], ecx
jmp 0x42d5fc
inc edi
jmp 0x42d62c
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0x14
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42d8e0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov dword [esp + 0x10], ecx
mov ax, word [esi]
test ax, ax
je 0x42da3a
mov ebp, dword [esp + 0x1c]
and eax, 0xffff
lea eax, [eax + eax*4]
mov ecx, dword [ebp + eax*8 - 4]
lea eax, [ebp + eax*8 - 0x28]
cmp ecx, 0xe00000e0
je 0x42d9c4
and ecx, 0xf0000000
cmp ecx, 0xe0000000
jne 0x42da3a
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x2c]
cmp edx, ecx
jb 0x42da3e
mov edi, dword [eax + 0x10]
add edi, ecx
cmp edx, edi
jae 0x42da3e
mov ecx, dword [eax + 0x14]
mov edi, dword [esp + 0x18]
push 0
push 0
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x18]
push 0
push edx
lea eax, [esp + 0x28]
push 4
push eax
push edi
call ebx
test eax, eax
je 0x42da3a
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x24]
push 4
push edx
push edi
call ebx
test eax, eax
je 0x42da3a
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jne 0x42da3a
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
dec word [esi]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push esi
push ebp
push edi
call fcn.0042d8e0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x18
mov eax, dword [eax + 0x14]
mov edi, dword [esp + 0x18]
push 0
add eax, 0xa1
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x28]
push 4
push edx
push edi
call ebx
test eax, eax
je 0x42da3a
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x24]
push 4
push ecx
push edi
call ebx
test eax, eax
je 0x42da3a
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jne 0x42da3a
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
dec word [esi]
push edx
push ecx
mov ecx, dword [esp + 0x18]
push eax
push esi
push ebp
push edi
call fcn.0042d8e0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x18
mov edx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
pop ecx
ret 0x18

Function at 0x42dd60
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov dword [esi], 0x444278
test eax, eax
je 0x42dd81
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
add esi, 8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret

Function at 0x42dfd0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push 0
push 0x80
push 2
push 0
push 2
add ecx, 8
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42dffa
xor eax, eax
pop esi
pop ecx
ret
lea eax, [esp + 4]
push 0
push eax
push 0xa600
push 0x46e890
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x42e022
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ecx
ret
Function at 0x42e030
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x104
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov esi, 0x478ee8
mov eax, dword [esi]
lea ecx, [esp + 8]
push eax
push 0x46be90
push 0x104
push ecx
call fcn.00407080
add esp, 0x10
lea edx, [esp + 8]
push edx
push connect
call edi
add esi, 4
cmp esi, 0x478f18
jb 0x42e043
pop edi
pop esi
add esp, 0x104
ret

Function at 0x431f20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [esp + 0x110]
push esi
mov esi, dword [sym.imp.MSVCRT.dll__mbsrchr]
push edi
push 0x5c
push ebx
call esi
mov edi, eax
add esp, 8
test edi, edi
je 0x431fdd
push 0x2e
push edi
call esi
mov esi, eax
add esp, 8
test esi, esi
je 0x431fdd
push 0x46d458
push esi
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x431fdd
mov eax, esi
sub eax, ebx
cmp eax, 0xa
jle 0x431fdd
cmp word [esi - 6], 0x3830
lea ecx, [esi - 6]
jne 0x431fdd
mov al, byte [ecx]
cmp al, 0x2e
je 0x431f97
cmp al, 0x30
jl 0x431fdd
cmp al, 0x39
jg 0x431fdd
mov al, byte [ecx + 1]
inc ecx
cmp al, 0x2e
jne 0x431f87
lea ecx, [esp + 0xc]
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
jne 0x431fdd
lea edx, [esp + 0x10]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
sub edi, ebx
lea eax, [esp + 0x10]
push edi
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x431fdd
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x108
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x108
ret 4

Function at 0x432bd0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
push esi
mov dword [esp + 0xc], edi
call fcn.00414f90
add esp, 4
test eax, eax
je 0x432c8d
lea eax, [esp + 8]
push 1
push eax
push esi
call fcn.00415170
add esp, 0xc
cmp eax, edi
je 0x432c8d
mov ecx, dword [eax + 0x3c]
push ebx
add ecx, eax
push ebp
je 0x432c61
cmp word [eax], 0x5a4d
jne 0x432c61
cmp dword [ecx], 0x4550
jne 0x432c61
mov dx, word [ecx + 6]
cmp dx, di
je 0x432c61
cmp dx, 6
jae 0x432c5c
xor esi, esi
mov si, word [ecx + 0x14]
lea ecx, [esi + ecx + 0x18]
cmp ecx, edi
je 0x432c61
xor esi, esi
and edx, 0xffff
jle 0x432c61
mov ebp, dword [ecx]
mov ebx, 0x47b8d0
cmp ebp, dword [ebx]
je 0x432c5c
add ecx, 0x28
je 0x432c61
inc esi
cmp esi, edx
jl 0x432c45
jmp 0x432c61
mov edi, 1
push eax
call fcn.00415210
add esp, 4
test edi, edi
pop ebp
pop ebx
je 0x432c8d
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041e770
mov ecx, eax
call fcn.0041eb60
test eax, eax
je 0x432c8d
pop edi
xor eax, eax
pop esi
pop ecx
ret 4
mov eax, edi
pop edi
pop esi
pop ecx
ret 4
Function at 0x433af0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
and ecx, 0xffff
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x433ba9
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x433ba9
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x433ba9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, ebp
mov esi, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x1c]
push 0
push 0
mov ecx, edx
push 2
push 0
and ecx, 3
push 0
push 0x40000000
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
pop edi
test esi, esi
je 0x433ba2
lea ecx, [esp + 0x10]
push 0
push ecx
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebp
mov eax, 1
pop ebx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x433bb0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x47c56c]
sub esp, 0x158
test eax, eax
push esi
jne 0x433bcd
mov eax, 1
pop esi
add esp, 0x158
ret
mov esi, dword [esp + 0x160]
xor eax, eax
mov dword [esp + 5], eax
mov byte [esp + 4], 0
mov dword [esp + 9], eax
mov dword [esp + 0xd], eax
mov word [esp + 0x11], ax
test esi, esi
mov byte [esp + 0x13], al
je 0x433d0a
lea ecx, [esp + 4]
push 1
push ecx
push esi
call fcn.004147f0
add esp, 0xc
test eax, eax
je 0x433cff
push esi
call fcn.00433d20
mov edx, eax
add esp, 4
cmp edx, 0xffffffff
je 0x433cea
push edi
mov ecx, 0x51
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x120], edx
mov edx, dword [esp + 8]
mov dword [esp + 0x124], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x12c], ecx
mov dword [esp + 0x130], edx
mov edx, esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x128], eax
mov edi, 0x104
lea eax, [esp + 0x1c]
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x433c8d
mov byte [eax], cl
inc eax
dec edi
jne 0x433c7e
jmp 0x433c91
test edi, edi
jne 0x433c92
dec eax
mov byte [eax], 0
call fcn.00433660
mov edx, dword [eax]
push 0
push 0
lea ecx, [esp + 0x20]
push 0x148
push ecx
push 0x80002014
mov ecx, eax
call dword [edx + 0x1c]
cmp eax, 0xffffffff
pop edi
jne 0x433cd2
push 0x47b97c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
pop esi
add esp, 0x158
ret
push 0x47b96c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
pop esi
add esp, 0x158
ret
push 0x47b954
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop esi
add esp, 0x158
ret
push 0x47b940
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop esi
add esp, 0x158
ret
Function at 0x433d20
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x433d49
or eax, eax
pop esi
ret
lea ecx, [esp + 8]
push edi
push ecx
push esi
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x433d70
Capabilities:
Get disk information

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x11], eax
mov ecx, 0x40
mov word [esp + 0x15], ax
lea edi, [esp + 0x1d]
mov byte [esp + 0x17], al
mov byte [esp + 0x1c], al
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x124]
mov ebp, dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
stosw word es:[edi], ax
mov word [esp + 0x10], 0x3a41
mov esi, 1
stosb byte es:[edi], al
mov ecx, dword [esp + 0x18]
test ecx, esi
je 0x433df9
lea edx, [esp + 0x1c]
push 0x104
lea eax, [esp + 0x14]
push edx
push eax
call ebp
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x20]
push ecx
push ebx
call dword [sym.imp.ntdll.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x433e16
mov cl, byte [esp + 0x10]
shl esi, 1
inc cl
test esi, esi
mov byte [esp + 0x10], cl
jne 0x433dbe
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x1c]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebx + 2]
mov esi, ecx
mov ecx, edx
mov eax, ecx
add esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
pop esi
pop ebp
mov byte [ecx + ebx], al
mov eax, 1
pop ebx
add esp, 0x110
ret