joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001d1c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0x1000
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0x41334754
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
jne 0x1001d285
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp eax, 1
jne 0x1001d285
lea eax, [ebp - 0x14]
push eax
push 0x1100
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp eax, 1
jne 0x1001d266
push 0
push 0
push 0
push esi
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1001d256
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001d266
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0
push 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0
push eax
push esi
xorps xmm0, xmm0
push edi
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10025f80
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1001d380
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
xor al, al
mov ebx, ecx
test edi, edi
je 0x1001d43e
push esi
push 0x5c
push ebx
call fcn.10026d39
mov esi, eax
xor eax, eax
sub esi, ebx
mov word [edi], ax
shr esi, 1
push esi
push str.CSIDL_APPDATA
push ebx
call fcn.100279f7
add esp, 0x14
test eax, eax
jne 0x1001d3c8
push eax
push 0x1a
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x1001d406
push esi
push str.TEMP
push ebx
call fcn.100279f7
add esp, 0xc
test eax, eax
jne 0x1001d406
push edi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001d3f0
sub ecx, edx
sar ecx, 1
xor eax, eax
mov word [edi + ecx*2 - 2], ax
cmp word [edi], 0
je 0x1001d43b
lea edx, [ebx + esi*2]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1001d411
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1001d421
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, 1
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x1001da90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x4a8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x4a4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
call fcn.1001d450
mov eax, dword [esi + 0x728]
cmp byte [eax + 0x20d], 1
jne 0x1001dc16
mov ax, word [0x100407e0]
movdqu xmm0, xmmword [str.A3DT.exe]
push 0x40
mov word [esp + 0x34], ax
lea eax, [esp + 0x58]
push 0
push eax
movdqu xmmword [esp + 0x2c], xmm0
call fcn.10029700
mov eax, dword [esi + 0x72c]
xorps xmm0, xmm0
add esp, 0xc
mov dword [esp + 0x50], 0x44
movdqu xmmword [esp + 0x10], xmm0
cmp byte [eax + 0x69], 1
jne 0x1001db3c
lea eax, [edi + 0x46a]
push eax
push dword [edi + 0x450]
lea eax, [esp + 0x28]
push eax
push esi
lea eax, [esp + 0xa8]
push str.__s_s___d___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
jmp 0x1001db8f
cmp byte [eax + 0x6a], 1
jne 0x1001db6d
lea eax, [edi + 0xa82]
push eax
push dword [edi + 0x450]
lea eax, [esp + 0x28]
push eax
push esi
lea eax, [esp + 0xa8]
push str.__s_s___d___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
jmp 0x1001db8f
push dword [edi + 0x450]
lea eax, [esp + 0x24]
push eax
push esi
lea eax, [esp + 0xa4]
push str.__s_s___d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x54]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0xb8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 1
jne 0x1001dbfa
mov eax, dword [esi + 0x72c]
cmp byte [eax + 0x68], 1
jne 0x1001dbd2
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x10]
call esi
pop edi
pop esi
mov ecx, dword [esp + 0x4a4]
xor ecx, esp
call fcn.10025f80
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov ecx, dword [esp + 0x4a4]
xor ecx, esp
call fcn.10025f80
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x4c]
push eax
push 0x18
lea eax, [esp + 0x28]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x100454b4]
test eax, eax
jne 0x1001dc40
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1001dc40
mov dword [eax + 0x10], edi
mov ecx, dword [esp + 0x4ac]
pop edi
pop esi
xor ecx, esp
call fcn.10025f80
mov esp, ebp
pop ebp
ret 4
Function at 0x1001dc60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x730], 0
je 0x1001ddb4
mov eax, dword [esi + 0x72c]
test eax, eax
je 0x1001dcba
cmp byte [eax + 0x65], 1
jne 0x1001dcba
mov dword [0x1004604c], 0
push 1
mov byte [esi + 0x730], 0
call fcn.100223f0
mov byte [esi + 0x730], 1
test ebx, ebx
jne 0x1001dcd9
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], edi
push eax
push 1
push ebx
push 0xc0000005
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [esi + 0x72c]
cmp byte [eax + 0x67], 1
jne 0x1001dced
push edi
mov ecx, esi
call fcn.1001da90
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.10029700
mov eax, dword [esi + 0x728]
add esp, 0xc
mov al, byte [eax + 0x20d]
cmp al, 1
jne 0x1001dd38
lea eax, [esi + 0x2cc]
push eax
lea eax, [ebp - 0x210]
push str._sAEFulldump.dmp
push eax
call fcn.10026e6b
add esp, 0xc
jmp 0x1001dd71
movzx eax, word [edi + 0x10]
push eax
movzx eax, word [edi + 0xe]
push eax
movzx eax, word [edi + 0xc]
push eax
movzx eax, word [edi + 0xa]
push eax
movzx eax, word [edi + 6]
push eax
movzx eax, word [edi + 4]
push eax
lea eax, [esi + 0x2cc]
push eax
lea eax, [ebp - 0x210]
push str._s_04d_02d_02d_02d_02d_02d.dmp
push eax
call fcn.10026e6b
add esp, 0x24
cmp word [ebp - 0x210], 0
je 0x1001dda6
mov eax, dword [esi + 0x728]
mov edx, 0x802
mov ecx, 0x135
cmp byte [eax + 0x20d], 1
cmove ecx, edx
mov edx, ebx
push ecx
lea ecx, [ebp - 0x210]
call fcn.10020df0
add esp, 4
push dword [edi + 0x450]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10025f80
mov esp, ebp
pop ebp
ret 8
Function at 0x100206a0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edi
lea ecx, [esi + 2]
lea ecx, [ecx]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100206c0
sub esi, ecx
mov ebx, 0
sar esi, 1
je 0x1002076e
lea eax, [ebp - 0x20a]
mov edx, 2
lea ecx, [ebp - 0x20c]
sub eax, edi
sub ecx, edi
mov dword [ebp - 0x218], eax
sub edx, edi
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], edx
movzx eax, word [edi]
mov word [ecx + edi], ax
cmp eax, 0x5c
je 0x10020714
cmp eax, 0x2f
jne 0x10020766
lea eax, [edx + edi]
cmp eax, 0x208
jae 0x10020794
mov eax, dword [ebp - 0x218]
xor ecx, ecx
mov word [eax + edi], cx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002075a
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1002075a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10020781
mov ecx, dword [ebp - 0x214]
mov edx, dword [ebp - 0x210]
inc ebx
add edi, 2
cmp ebx, esi
jb 0x10020703
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10025f80
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10025f80
mov esp, ebp
pop ebp
ret
call fcn.10027609
int3

Function at 0x100209c0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x424
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x430], 0
push 0
push eax
mov edi, edx
mov esi, ecx
call fcn.10029700
add esp, 0xc
xor ebx, ebx
push esi
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10020a1f
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10025f80
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x430]
mov dword [ebp - 0x430], 0x428
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x10020a7a
mov ebx, dword [sym.imp.KERNEL32.dll_Module32NextW]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10020a46
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x410]
push eax
push edi
call fcn.10027c7f
add esp, 0xc
test eax, eax
je 0x10020a94
lea eax, [ebp - 0x430]
push eax
push esi
call ebx
test eax, eax
jne 0x10020a41
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10025f80
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x41c]
jmp 0x10020a7a
Function at 0x10020b00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 2
mov dword [ebp - 0x238], edx
mov esi, ecx
mov byte [ebp - 0x231], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10020c23
push ebx
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x10020b7e
lea esp, [esp]
cmp esi, dword [ebp - 0x228]
je 0x10020b78
lea eax, [ebp - 0x230]
push eax
push edi
call ebx
test eax, eax
jne 0x10020b60
jmp 0x10020b7e
mov esi, dword [ebp - 0x218]
mov dword [ebp - 0x230], 0x22c
jmp 0x10020b90
lea eax, [ebp - 0x230]
mov byte [ebp - 0x232], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10020be8
lea esp, [esp]
cmp esi, dword [ebp - 0x228]
je 0x10020bc8
lea eax, [ebp - 0x230]
push eax
push edi
call ebx
test eax, eax
jne 0x10020bb0
jmp 0x10020be8
lea eax, [ebp - 0x20c]
mov byte [ebp - 0x232], 1
push eax
push dword [ebp - 0x238]
call fcn.10027b11
add esp, 8
test eax, eax
je 0x10020bf9
cmp byte [ebp - 0x232], 0
mov esi, dword [ebp - 0x218]
jne 0x10020b90
jmp 0x10020c00
mov byte [ebp - 0x231], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x231], 1
pop ebx
jne 0x10020c23
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10025f80
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.10025f80
mov esp, ebp
pop ebp
ret

Function at 0x10020c40
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push str.GlobalBFURLSM
push 0
push 6
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [esi], eax
test eax, eax
jne 0x10020c90
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10020c72
xor eax, eax
pop esi
pop ebp
ret
push str.GlobalBFURLSM
push 0x400
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi], eax
test eax, eax
je 0x10020c6d
push edi
push 0x400
push 0
push 0
push 6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x10020cb2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x10020cc0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.NtAllocateVirtualMemory
push 0x1003fe68
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.NtFreeVirtualMemory
push 0x1003fe68
mov dword [0x100454bc], eax
call edi
push eax
call esi
push str.NtQueryInformationProcess
push 0x1003fe68
mov dword [0x100454c8], eax
call edi
push eax
call esi
push str.NtQueryInformationThread
push 0x1003fe68
mov dword [0x100454b4], eax
call edi
push eax
call esi
push str.NtUnmapViewOfSection
push 0x1003fe68
mov dword [0x100454c0], eax
call edi
push eax
call esi
push str.IsWow64Process
push str.kernel32.dll
mov dword [0x100454c4], eax
call edi
push eax
call esi
push str.IsWow64Process2
push str.kernel32.dll
mov dword [0x100454cc], eax
call edi
push eax
call esi
pop edi
mov dword [0x100454b8], eax
pop esi
ret

Function at 0x10020df0
Capabilities:
Create process memory minidump

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
mov edi, edx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10020e84
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
xor ecx, ecx
mov dword [ebp - 0x10], eax
push 0
test edi, edi
mov dword [ebp - 0xc], edi
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 1
cmove eax, ecx
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
cmp eax, 1
jne 0x10020e84
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10025f80
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10025f80
mov esp, ebp
pop ebp
ret

Function at 0x10021410
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 1
add edi, 0xffff0000
lea ebx, [ebx]
push 0x40
push 0x3000
push 0x10000
push edi
call ebx
test eax, eax
jne 0x100214b2
inc esi
sub edi, 0x10000
cmp esi, 0x64
jbe 0x10021430
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x10021465
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x1002145c
mov eax, dword [eax + ecx + 0x50]
mov edx, eax
and edx, 0xffff
je 0x10021486
sub eax, edx
add eax, 0x10000
lea edi, [ecx + 0x10000]
mov esi, 1
add edi, eax
push 0x40
push 0x3000
push 0x10000
push edi
call ebx
test eax, eax
jne 0x100214b2
inc esi
add edi, 0x10000
cmp esi, 0x64
jbe 0x10021493
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10022250
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x70]
cmp byte [esi], 0xe9
je 0x10022284
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10025f80
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x100222b0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10025f80
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x78]
mov dword [esi], eax
mov al, byte [edi + 0x7c]
mov byte [esi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 5
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
neg eax
pop esi
call fcn.10025f80
mov esp, ebp
pop ebp
ret 4
Function at 0x10025290
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov eax, ecx
xor bh, bh
push esi
xor bl, bl
mov dword [esp + 0xc], eax
push edi
test eax, eax
je 0x10025385
test edx, edx
je 0x10025385
mov esi, dword [ebp + 8]
test esi, esi
je 0x10025385
cmp esi, 2
jb 0x10025339
mov ecx, 0x5a4d
cmp word [edx], cx
jne 0x10025339
mov ecx, dword [edx + 0x3c]
add ecx, edx
mov edi, ecx
sub edi, edx
lea eax, [edi + 4]
cmp eax, esi
ja 0x10025335
cmp dword [ecx], 0x4550
jne 0x10025335
lea eax, [edi + 0x88]
cmp eax, esi
ja 0x10025335
movzx eax, word [ecx + 4]
mov edx, 0x14c
cmp ax, dx
je 0x10025315
mov edx, 0x8664
cmp ax, dx
jne 0x10025335
cmp dword [ecx + 0x7c], 0
jne 0x10025333
cmp dword [ecx + 0x78], 0
jne 0x10025333
cmp dword [ecx + 0x84], 0
jne 0x10025333
cmp dword [ecx + 0x80], 0
je 0x10025335
mov bl, 1
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
cmp bl, 1
jne 0x10025371
push 1
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp eax, 1
jne 0x10025371
mov eax, dword [esp + 0x10]
or eax, dword [esp + 0x14]
jne 0x10025371
mov bh, bl
mov al, bh
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.10025f80
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10025f80
mov esp, ebp
pop ebp
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6a
nop
sub eax, 0x403d10
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x4066b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x406709
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406709
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4066fa
cmp esi, edx
jae 0x406709
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4066e8
cmp esi, edx
jae 0x406709
cmp word [esi], 0
je 0x406709
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40a250
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0c56
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x51d240]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x40a2fc
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x40a2fc
call fcn.00409440
mov edi, eax
jmp 0x40a41b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40a31f
call fcn.00409440
jmp 0x40a40e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x40a33d
call fcn.00409440
jmp 0x40a40e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x40a35e
mov edi, 0x8007000e
jmp 0x40a410
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x40a454
jb 0x40a37c
cmp eax, 0xffffffff
ja 0x40a454
cmp eax, 0x400
jbe 0x40a391
push eax
lea ecx, [ebp - 0x418]
call fcn.00409360
jmp 0x40a3b7
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x40a3b7
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x40a3ce
mov edi, 0x8007000e
jmp 0x40a410
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40a3ee
call fcn.00409440
jmp 0x40a40e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040a0b0
mov edi, eax
test esi, esi
je 0x40a41b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40a434
lea ecx, [ebp - 0x418]
call fcn.00409760
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045345a
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00404c90
int3