joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003c7ff
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1003c7fc
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1003c81a
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1003c878
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1003c85f
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1003c868
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1003c872
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1003c854
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1003c7de
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1003c8c5
dec eax
je 0x1003c8bc
sub eax, 3
je 0x1003c8b3
mov dword [ebp - 4], 0x40
jmp 0x1003c8e2
mov dword [ebp - 4], 4
jmp 0x1003c8c8
mov dword [ebp - 4], 0x20
jmp 0x1003c8c8
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x1003c914
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1003c894
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1003c125
mov fs, ecx
mov cl, 0x33
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x1003c920
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1003ce04
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xfffffc
je 0x1003cfe3
cmp dword [ebp + 0xc], 1
je 0x1003cfe3
cmp dword [ebp + 0xc], 8
jne 0x1003cfab
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
invalid
test dword [ebx - 7], edx
invalid
invalid
Function at 0x1003d881
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
mov eax, dword [ebp - 0x700]
cmp eax, dword [ebp - 0x38c]
jae 0x1003d8c7
mov eax, dword [ebp - 0x748]
add eax, dword [ebp - 0x700]
movsx eax, byte [eax]
movsx ecx, byte [ebp - 8]
xor eax, ecx
mov ecx, dword [ebp - 0x748]
add ecx, dword [ebp - 0x700]
mov byte [ecx], al
mov eax, dword [ebp - 0x748]
add eax, dword [ebp - 0x700]
movsx eax, byte [eax]
not eax
mov ecx, dword [ebp - 0x748]
add ecx, dword [ebp - 0x700]
mov byte [ecx], al
jmp 0x1003d868
and dword [ebp - 0x700], 0
jmp 0x1003d8dd
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
mov eax, dword [ebp - 0x700]
cmp eax, dword [ebp - 0x688]
jae 0x1003d92f
mov eax, dword [ebp - 0x6f8]
add eax, dword [ebp - 0x700]
movsx eax, byte [eax]
movsx ecx, byte [ebp - 8]
xor eax, ecx
mov ecx, dword [ebp - 0x6f8]
add ecx, dword [ebp - 0x700]
mov byte [ecx], al
mov eax, dword [ebp - 0x6f8]
add eax, dword [ebp - 0x700]
movsx eax, byte [eax]
not eax
mov ecx, dword [ebp - 0x6f8]
add ecx, dword [ebp - 0x700]
mov byte [ecx], al
jmp 0x1003d8d0
and byte [ebp - 0x714], 0
and byte [ebp - 0x713], 0
mov byte [ebp - 0x712], 0x71
and byte [ebp - 0x711], 0
mov byte [ebp - 0x710], 0xc8
mov byte [ebp - 0x70f], 0xe2
mov byte [ebp - 0x70e], 0xe1
mov byte [ebp - 0x70d], 0xe1
mov byte [ebp - 0x70c], 0xea
mov byte [ebp - 0x70b], 0xc8
mov byte [ebp - 0x70a], 0xe7
mov byte [ebp - 0x709], 0xf6
mov byte [ebp - 0x708], 0xbc
mov byte [ebp - 0x707], 0x8e
call fcn.1003c125
je 0x1003d969
hlt
mov esp, dword [esi - 0x80]
movsd dword es:[edi], dword [esi]
mov esp, 0xfffff8
and byte [ebp - 0x743], 0
mov byte [ebp - 0x742], 2
and byte [ebp - 0x741], 0
mov byte [ebp - 0x740], 0xb1
mov byte [ebp - 0x73f], 0x92
mov byte [ebp - 0x73e], 0x9c
mov byte [ebp - 0x73d], 0x99
mov byte [ebp - 0x73c], 0xb1
mov byte [ebp - 0x73b], 0x94
mov byte [ebp - 0x73a], 0x9f
mov byte [ebp - 0x739], 0x8f
mov byte [ebp - 0x738], 0x9c
mov byte [ebp - 0x737], 0x8f
mov byte [ebp - 0x736], 0x84
mov byte [ebp - 0x735], 0xbc
mov byte [ebp - 0x734], 0xfd
lea eax, [ebp - 0x744]
push eax
call fcn.1003c135
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1003c0ea
add esp, 0xc
mov dword [ebp - 0x704], eax
and byte [ebp - 0x6f4], 0
and byte [ebp - 0x6f3], 0
mov byte [ebp - 0x6f2], 0x43
and byte [ebp - 0x6f1], 0
mov byte [ebp - 0x6f0], 0xeb
mov byte [ebp - 0x6ef], 0xce
mov byte [ebp - 0x6ee], 0xd5
mov byte [ebp - 0x6ed], 0xc8
mov byte [ebp - 0x6ec], 0xd9
mov byte [ebp - 0x6eb], 0xfa
mov byte [ebp - 0x6ea], 0xd5
mov byte [ebp - 0x6e9], 0xd0
mov byte [ebp - 0x6e8], 0xd9
mov byte [ebp - 0x6e7], 0xbc
call fcn.1003c125
or ah, ah
inc esp
lea ax, [ebp - 0x6f4]
push eax
call fcn.1003c135
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1003c0ea
add esp, 0xc
mov dword [ebp - 0x730], eax
and dword [ebp - 0x6fc], 0
Function at 0x1005413e
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x10064c04]
push esi
xor esi, esi
test eax, eax
jne 0x1005415e
push esi
push esi
push 1
push esi
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov dword [0x10064c04], eax
test eax, eax
je 0x100541b0
push eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
lock inc dword [0x10064a94]
push 0x10064c0c
push esi
push 0x10064bf8
push 0x100543d0
push esi
push esi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [0x10064c08], eax
test eax, eax
je 0x1005419e
push 0xffffffffffffffff
push dword [0x10064c04]
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
push dword [0x10064c04]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov dword [0x10064c04], esi
pop esi
ret

Function at 0x1005fa2f
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x10065680]
push esi
push edi
test eax, eax
jne 0x1005fa48
call fcn.1005fb04
test eax, eax
je 0x1005fa94
mov eax, dword [0x10065680]
cmp eax, 1
jne 0x1005fa64
push 0xd
push 8
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
test eax, eax
je 0x1005fa94
jmp 0x1005fada
push eax
call dword [sym.imp.api_ms_win_core_interlocked_l1_1_0.dll_InterlockedPopEntrySList]
mov ecx, eax
test ecx, ecx
je 0x1005fa7d
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, ecx
jmp 0x1005fada
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1005fa98
xor eax, eax
jmp 0x1005fada
mov eax, dword [esi]
push dword [0x10065680]
call dword [sym.imp.api_ms_win_core_interlocked_l1_1_0.dll_InterlockedPopEntrySList]
mov edi, eax
test edi, edi
je 0x1005fabe
push 0x8000
push 0
push esi
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualFree]
mov eax, edi
jmp 0x1005fada
lea edi, [esi + 0xff0]
push esi
push dword [0x10065680]
call dword [sym.imp.api_ms_win_core_interlocked_l1_1_0.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1005fac4
mov eax, esi
pop edi
pop esi
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401ab2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0x405878
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x401af2
push 0x30
push 0
push 0x403090
push dword [0x40585c]
call sub.user32.dll_MessageBoxA
leave
ret
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
lea esi, [ebp - 0x208]
push 0
lea eax, [ebp - 8]
push eax
push 0x200
push esi
push dword [ebp - 4]
call sub.kernel32.dll_ReadFile
cmp dword [ebp - 8], 0
je 0x401b25
push dword [ebp - 8]
push esi
call fcn.0040156d
jmp 0x401afa
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402c2c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411020]
jne 0x402c36
repz ret
jmp fcn.0040361c

Function at 0x407b1c
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.00403794
and dword [ebp - 4], 0
cmp dword [0x412b68], 0
mov ebx, eax
jne 0x407bcd
push 0x40f0fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407c7e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40f0f0
push edi
call esi
test eax, eax
je 0x407c7e
push eax
call fcn.00403722
mov dword [esp], 0x40f0e0
push edi
mov dword [0x412b68], eax
call esi
push eax
call fcn.00403722
mov dword [esp], 0x40f0cc
push edi
mov dword [0x412b6c], eax
call esi
push eax
call fcn.00403722
mov dword [esp], 0x40f0b0
push edi
mov dword [0x412b70], eax
call esi
push eax
call fcn.00403722
pop ecx
mov dword [0x412b78], eax
test eax, eax
je 0x407bcd
push 0x40f098
push edi
call esi
push eax
call fcn.00403722
pop ecx
mov dword [0x412b74], eax
mov eax, dword [0x412b74]
cmp eax, ebx
je 0x407c25
cmp dword [0x412b78], ebx
je 0x407c25
push eax
call fcn.0040379d
push dword [0x412b78]
mov esi, eax
call fcn.0040379d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407c25
test edi, edi
je 0x407c25
call esi
test eax, eax
je 0x407c1c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407c1c
test byte [ebp - 0xc], 1
jne 0x407c25
or dword [ebp + 0x10], 0x200000
jmp 0x407c5e
mov eax, dword [0x412b6c]
cmp eax, ebx
je 0x407c5e
push eax
call fcn.0040379d
pop ecx
test eax, eax
je 0x407c5e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407c5e
mov eax, dword [0x412b70]
cmp eax, ebx
je 0x407c5e
push eax
call fcn.0040379d
pop ecx
test eax, eax
je 0x407c5e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x412b68]
call fcn.0040379d
pop ecx
test eax, eax
je 0x407c7e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407c80
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x8fa13c
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
jmp 0x8fa14a
lea esp, [esp + 0x18]
jmp 0x8fa2b8
pushfd
jmp 0x8fa074

Function at 0x8fa167
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x8fa189
mov eax, ebp
stc
jbe 0x8fa1d3
xchg dh, bh
jmp 0x8fa1d5
xchg dh, bh
jmp 0x8fa1ab

Function at 0x8fa17d
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea edx, [ecx + esi]
mov esi, dword [esp + 0x30]
call fcn.008fa167

Function at 0x9dda64
Capabilities:
Access peb ldr_data

Disassembly:
call fcn.009dd034
mov byte [esp + 2], dh
push word [esp]
lea esp, [esp + 2]
mov dword [esp + 0x60], edi
jmp 0x9ddae6
push eax
jmp 0x9dd02f
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
jmp 0x9dda99
lea esp, [esp + 0x60]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
jmp 0x9ddaaf
Function at 0x401020
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi]
test eax, eax
je 0x40103c
push eax
call fcn.004148f0
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
test edi, edi
jl 0x401051
lea eax, [edi + 2]
push eax
call fcn.00414fa9
add esp, 4
mov dword [esi], eax
mov dword [esi + 4], edi
cmp dword [esi + 4], 0
jle 0x40106d
mov ecx, dword [esp + 4]
mov edx, dword [esi]
push ecx
push 1
push edi
push edx
call fcn.004148a9
add esp, 0x10
ret 4
or eax, 0xffffffff
ret 4

Function at 0x401080
Capabilities:
Read file on windows

Disassembly:
push 0
push eax
push edi
call fcn.00414d74
mov eax, dword [esi]
add esp, 0xc
test eax, eax
je 0x4010a8
push eax
call fcn.004148f0
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
push 0xbe2
call fcn.00414fa9
push edi
push 1
push 0xbe0
push eax
mov dword [esi], eax
mov dword [esi + 4], 0xbe0
call fcn.004148a9
add esp, 0x14
ret
Function at 0x4027c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x48
mov eax, dword [0x438300]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x5c]
mov esi, ecx
test edi, edi
jl 0x4027ea
mov eax, dword [esi + 8]
push 0
push edi
push eax
call fcn.00414d74
add esp, 0xc
mov ecx, dword [esi + 8]
push ecx
push 1
lea edx, [esp + 0x14]
push 0x20
push edx
call fcn.004148a9
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
jne 0x4028b3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x402836
push eax
mov eax, dword [esp + 0x5c]
push eax
mov ecx, esi
call fcn.004027c0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0041358c
add esp, 0x48
ret 8
mov ebx, dword [esp + 0x58]
test ebx, ebx
jl 0x40284d
mov ecx, dword [esi + 8]
push 0
push ebx
push ecx
call fcn.00414d74
add esp, 0xc
mov edx, dword [esi + 8]
push edx
push 1
lea eax, [esp + 0x34]
push 0x20
push eax
call fcn.004148a9
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
jne 0x4028b3
mov dword [esp + 0x10], ebx
mov dword [esp + 0x34], edi
test edi, edi
jl 0x402886
mov ecx, dword [esi + 8]
push eax
push edi
push ecx
call fcn.00414d74
add esp, 0xc
mov edx, dword [esi + 8]
push edx
push 1
lea eax, [esp + 0x14]
push 0x20
push eax
call fcn.00414a5d
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
jne 0x4028b3
push 0x20
lea ecx, [esp + 0x30]
push ecx
mov eax, ebx
call fcn.00404140
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041358c
add esp, 0x48
ret 8

Function at 0x4028d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [0x438300]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x1c]
push esi
mov esi, ecx
test eax, eax
jne 0x402906
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0041358c
add esp, 0x10
ret 8
mov eax, dword [eax + 0x14]
push edi
xor edi, edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x402971
push 0
push eax
mov eax, dword [esi + 8]
push eax
call fcn.00414d74
mov ecx, dword [esi + 8]
push ecx
push 1
lea edx, [esp + 0x20]
push 0xa
push edx
call fcn.004148a9
push 4
lea eax, [esp + 0x2c]
push str.DAT
push eax
call fcn.00413905
add esp, 0x28
test eax, eax
jne 0x402987
mov ecx, dword [esi + 8]
movzx edx, word [esp + 0x14]
push ecx
push 1
push edx
lea eax, [ebx + edi]
push eax
call fcn.004148a9
movzx ecx, word [esp + 0x24]
mov eax, dword [esp + 0x20]
add esp, 0x10
add edi, ecx
test eax, eax
jne 0x402914
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0041358c
add esp, 0x10
ret 8
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 2
call fcn.0041358c
add esp, 0x10
ret 8
Function at 0x4029a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [0x438300]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
mov esi, edx
push 0
mov edi, ecx
call fcn.00405970
mov dword [esp + 0xc], edi
test edi, edi
je 0x402a18
mov edi, dword [esi + 4]
lea eax, [edi + 1]
push eax
call fcn.00405970
mov ecx, dword [esi]
mov edx, dword [esp + 0xc]
mov dword [ecx + edi*4], edx
mov eax, dword [esp + 0xc]
mov ecx, dword [ebx + 8]
push 0
push eax
push ecx
call fcn.00414d74
mov edx, dword [ebx + 8]
push edx
push 1
lea eax, [esp + 0x1c]
push 0xa
push eax
call fcn.004148a9
push 4
lea ecx, [esp + 0x28]
push str.DAT
push ecx
call fcn.00413905
add esp, 0x28
test eax, eax
jne 0x402a2b
cmp dword [esp + 0xc], eax
jne 0x4029c3
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0041358c
add esp, 0x10
ret
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor ecx, esp
mov eax, 2
call fcn.0041358c
add esp, 0x10
ret

Function at 0x402a60
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
push edi
mov edi, dword [esp + 0x10]
mov ebx, dword [edi + 0x18]
call edx
neg eax
sbb eax, eax
and eax, 4
add eax, 0x18
lea eax, [ebx + eax - 8]
push 0
push eax
mov eax, dword [esi + 8]
push eax
call fcn.00414d74
mov ecx, dword [esi + 8]
push ecx
push 1
push 4
add edi, 0xc
push edi
call fcn.00414a5d
add esp, 0x1c
dec eax
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
ret 4
Function at 0x402ab0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x20
mov eax, dword [0x438300]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
push ebp
mov bp, word [esp + 0x34]
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, ecx
cmp dword [edi + 0x10], 0
je 0x402b01
movsx ecx, bp
and ecx, 0x80000001
jns 0x402ae6
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x402b01
pop edi
pop esi
mov eax, 6
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0041358c
add esp, 0x20
ret 0x10
mov ecx, dword [esp + 0x38]
push ebx
movsx edx, bp
lea ebx, [edx + ecx]
push 1
push ebx
lea ecx, [esi + 0x14]
push eax
call fcn.004047a0
test eax, eax
jne 0x402c15
mov eax, dword [esi + 0x18]
mov word [esi + 8], bp
mov dword [esi + 4], ebx
mov ebx, dword [edi + 0x44]
test eax, eax
jl 0x402b40
mov edx, dword [edi + 8]
push 0
push eax
push edx
call fcn.00414d74
add esp, 0xc
mov eax, dword [edi + 8]
push eax
push 1
lea ecx, [esp + 0x18]
push ebx
push ecx
call fcn.004148a9
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
jne 0x402c15
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x402b72
mov edx, dword [esi + 0x14]
mov dword [esp + 0x1c], edx
jmp 0x402b79
mov eax, dword [esi + 0x14]
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x402b86
mov edx, dword [esi + 4]
mov dword [esp + 0x20], edx
jmp 0x402b8d
mov eax, dword [esi + 4]
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x402ba1
movsx eax, word [esi + 8]
cdq
sub eax, edx
sar eax, 1
mov word [esp + 0x28], ax
jmp 0x402baa
mov dx, word [esi + 8]
mov word [esp + 0x24], dx
mov eax, dword [esi + 0xc]
test ecx, ecx
je 0x402bc8
test eax, eax
je 0x402bbb
mov dword [esp + 0x24], eax
jmp 0x402be0
push 0
call fcn.00414f3d
mov dword [esp + 0x28], eax
jmp 0x402bdd
test eax, eax
je 0x402bd2
mov dword [esp + 0x20], eax
jmp 0x402be0
push 0
call fcn.00414f3d
mov dword [esp + 0x24], eax
add esp, 4
mov esi, dword [esi + 0x18]
mov ebx, dword [edi + 0x44]
test esi, esi
jl 0x402bf9
mov eax, dword [edi + 8]
push 0
push esi
push eax
call fcn.00414d74
add esp, 0xc
mov ecx, dword [edi + 8]
push ecx
push 1
lea edx, [esp + 0x18]
push ebx
push edx
call fcn.00414a5d
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
mov ecx, dword [esp + 0x2c]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0041358c
add esp, 0x20
ret 0x10
Function at 0x402db0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esi + 8]
mov dword [0x43ae08], esi
test eax, eax
je 0x402fa3
push 0
push 0
push eax
call fcn.00414d74
mov eax, dword [esi + 8]
push eax
push 1
lea ecx, [esp + 0x14]
push 4
push ecx
call fcn.004148a9
add esp, 0x1c
test eax, eax
je 0x402fa3
push edi
push 4
lea edx, [esp + 8]
push str.HDR
push edx
call fcn.00413905
add esp, 0xc
test eax, eax
jne 0x402e0c
lea edi, [esi + 0x14]
mov dword [edi], eax
jmp 0x402eb8
mov eax, dword [esi + 8]
push 2
push 0xfffffe00
push eax
call fcn.00414d74
mov ecx, dword [esi + 8]
push ecx
push 1
lea edx, [esp + 0x18]
push 4
push edx
call fcn.004148a9
add esp, 0x1c
test eax, eax
je 0x402fa2
push 4
lea eax, [esp + 8]
push str.TRL
push eax
call fcn.00413905
add esp, 0xc
test eax, eax
jne 0x402fa2
mov ecx, dword [esi + 8]
push ecx
push 1
lea edi, [esi + 0x14]
push 4
push edi
call fcn.004148a9
add esp, 0x10
test eax, eax
je 0x402fa2
mov edx, dword [edi]
mov eax, dword [esi + 8]
push 0
push edx
push eax
call fcn.00414d74
mov ecx, dword [esi + 8]
push ecx
push 1
lea edx, [esp + 0x18]
push 4
push edx
call fcn.004148a9
add esp, 0x1c
test eax, eax
je 0x402fa2
push 4
lea eax, [esp + 8]
push str.HDR
push eax
call fcn.00413905
add esp, 0xc
test eax, eax
jne 0x402fa2
mov ecx, dword [edi]
mov edx, dword [esi + 8]
push 0
add ecx, 4
push ecx
push edx
call fcn.00414d74
mov eax, dword [esi + 8]
push eax
push 1
lea ecx, [esp + 0x18]
push 4
push ecx
call fcn.004148a9
add esp, 0x1c
test eax, eax
je 0x402fa2
mov eax, dword [esp + 4]
cmp eax, 0x6f0050
jne 0x402efa
mov dword [esi + 0x10], 1
jmp 0x402f0c
cmp eax, 0x65776f50
jne 0x402fa2
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0x10]
mov edx, eax
neg edx
sbb edx, edx
and edx, 0x200
add edx, 0x400
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 0x200
add ecx, 0x200
mov dword [esi + 0x20], edx
xor edx, edx
test eax, eax
setne dl
mov dword [esi + 0x24], ecx
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 4], 1
mov dword [esi + 0x40], 0
lea edx, [edx*4 + 0x18]
mov dword [esi + 0x44], edx
inc ecx
mov dword [esi + 0x48], ecx
test eax, eax
je 0x402f71
mov dword [esi + 0x4c], 0xa
pop edi
pop ecx
ret
mov edx, dword [edi]
mov eax, dword [esi + 8]
push 0
add edx, 0x12
push edx
push eax
call fcn.00414d74
mov ecx, dword [esi + 8]
push ecx
push 1
lea edx, [esp + 0x18]
push 4
push edx
call fcn.004148a9
movsx eax, byte [esp + 0x21]
add esp, 0x1c
sub eax, 0x30
mov dword [esi + 0x4c], eax
pop edi
pop ecx
ret