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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [str.XHzw_]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x81264c]
xor esi, esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], esi
call fcn.00401053
mov eax, dword [0x812650]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [0x812654]
add ebx, 0x23f
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, dword [ebp - 0xc]
shl eax, 4
cmp dword [0x1e0320c], 0xc
mov dword [ebp - 4], eax
jne 0x4010df
push esi
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x1e0320c]
cmp eax, 0xfa9
jne 0x4010fb
mov dword [0x1e03208], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40110f
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [0x1e0315c], esi
mov eax, dword [ebp - 0xc]
add eax, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [0x1e03204], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 8], eax
sub edi, dword [ebp - 8]
cmp dword [0x1e0320c], 0xc
mov dword [ebp - 4], eax
jne 0x401170
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea eax, [ebp - 0x38]
push eax
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
lea eax, [ebx + edi]
mov dword [ebp - 0x18], eax
mov eax, edi
shr eax, cl
add eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
add ebx, 0x61c88647
dec dword [ebp - 0x20]
jne 0x4010ae
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
leave
ret 4
Function at 0x4051bb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x8112a8]
jne 0x4051c5
repz ret
jmp fcn.0040b4c7

Function at 0x40bf3a
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.00407c9c
and dword [ebp - 4], 0
cmp dword [0x81ba04], 0
mov ebx, eax
jne 0x40bfeb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c09c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40c09c
push eax
call fcn.00407c2a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x81ba04], eax
call esi
push eax
call fcn.00407c2a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x81ba08], eax
call esi
push eax
call fcn.00407c2a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x81ba0c], eax
call esi
push eax
call fcn.00407c2a
pop ecx
mov dword [0x81ba14], eax
test eax, eax
je 0x40bfeb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407c2a
pop ecx
mov dword [0x81ba10], eax
mov eax, dword [0x81ba10]
cmp eax, ebx
je 0x40c043
cmp dword [0x81ba14], ebx
je 0x40c043
push eax
call fcn.00407ca5
push dword [0x81ba14]
mov esi, eax
call fcn.00407ca5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c043
test edi, edi
je 0x40c043
call esi
test eax, eax
je 0x40c03a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c03a
test byte [ebp - 0xc], 1
jne 0x40c043
or dword [ebp + 0x10], 0x200000
jmp 0x40c07c
mov eax, dword [0x81ba08]
cmp eax, ebx
je 0x40c07c
push eax
call fcn.00407ca5
pop ecx
test eax, eax
je 0x40c07c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c07c
mov eax, dword [0x81ba0c]
cmp eax, ebx
je 0x40c07c
push eax
call fcn.00407ca5
pop ecx
test eax, eax
je 0x40c07c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x81ba04]
call fcn.00407ca5
pop ecx
test eax, eax
je 0x40c09c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c09e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x422430
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [0x4b78cc]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov esi, dword [esp + 0x2c]
push esi
mov dword [esp + 0x10], ecx
call fcn.00422360
test eax, eax
mov dword [esp + 8], eax
jl 0x42256b
push 0
push 0x8000080
push 3
push 0
push 1
push DirectSoundCreate
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
mov dword [esp + 4], eax
je 0x42256b
cmp eax, 0xffffffff
je 0x42256b
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x10
lea edx, [esp + 0x2c]
push edx
push eax
call ebp
cmp byte [esp + 0x2b], 0x32
mov eax, dword [esp + 0x2c]
mov edi, eax
jne 0x4224f9
lea esi, [eax + eax*4]
add esi, esi
add esi, esi
add esi, esi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [esp + 0x10]
push 0
mov ebx, eax
lea eax, [esp + 0x20]
push eax
push esi
push ebx
push ecx
call ebp
test edi, edi
jbe 0x422537
mov esi, ebx
jmp 0x4224e0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push esi
push edx
call fcn.00421a40
add esi, 0x20
sub edi, 1
jne 0x4224e0
jmp 0x422537
shl eax, 5
mov esi, eax
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [esp + 0x10]
push 0
mov ebx, eax
lea eax, [esp + 0x20]
push eax
push esi
push ebx
push ecx
call ebp
test edi, edi
jbe 0x422537
mov esi, ebx
nop
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push esi
push edx
call fcn.00421a40
add esi, 0x10
sub edi, 1
jne 0x422520
test ebx, ebx
je 0x422549
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
pop ebx
mov al, 1
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0047dd32
add esp, 0x24
ret 4
mov ecx, dword [esp + 0x24]
pop esi
xor ecx, esp
xor al, al
call fcn.0047dd32
add esp, 0x24
ret 4
Function at 0x42a6e0
Capabilities:
Enumerate pe sections

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi]
movzx ecx, ax
cmp ecx, 0x5045
je 0x42a6f9
or eax, 0xffffffff
pop edi
ret 8
mov edx, eax
and edx, 0xff0000
cmp edx, 0x10000
je 0x42a712
mov eax, 0xfffffffe
pop edi
ret 8
and eax, 0xff000000
cmp eax, 0x1000000
push esi
je 0x42a750
cmp eax, 0x2000000
jne case.0x42a76c.3
mov esi, dword [esp + 0x10]
mov dword [esi], 2
mov eax, dword [edi + 0x10]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x14]
lea edx, [edi + 0x18]
push edx
lea eax, [esi + 0x18]
push eax
mov dword [esi + 0x3c], ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x42a75a
mov esi, dword [esp + 0x10]
mov dword [esi], 0
mov eax, dword [edi + 4]
and eax, 0xff
cmp eax, 4
ja case.0x42a76c.3
mov ecx, 8
jmp dword [eax*4 + 0x42a7e4]
mov dword [esi + 0xc], 0x18
jmp 0x42a78b
mov dword [esi + 0xc], 0x20
jmp 0x42a78b
or dword [esi], 1
mov dword [esi + 0xc], ecx
cmp dword [esi + 0xc], ecx
mov edx, dword [edi + 8]
mov dword [esi + 4], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 8], eax
jne 0x42a7c2
movzx eax, byte [edi + 5]
test eax, eax
mov dword [esi + 0x10], eax
mov ecx, 0x100
jne 0x42a7af
mov dword [esi + 0x10], ecx
movzx eax, byte [edi + 6]
test eax, eax
mov dword [esi + 0x14], eax
jne 0x42a7d0
mov dword [esi + 0x14], ecx
pop esi
pop edi
ret 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
pop esi
xor eax, eax
pop edi
ret 8
pop esi
mov eax, 0xfffffffd
pop edi
ret 8
Function at 0x42ed10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495c80
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x4b78cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor ebx, ebx
test esi, esi
mov byte [ebp - 0x11], 1
mov dword [ebp - 0x18], ebx
jne 0x42ed5f
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
push esi
call edi
add eax, 0xa
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
push 0x4980b8
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [ebp + 0xc]
add esp, 0xc
test esi, esi
je 0x42edad
push esi
call edi
add eax, 0xa
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push esi
push ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x44
lea eax, [ebp - 0x70]
push 0
push eax
mov dword [ebp - 4], 0
call fcn.0047e210
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x70]
push edx
push eax
push eax
push 0x20
push eax
push eax
push eax
push ebx
push eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x70], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x42ee14
mov dword [ebp - 0x1c], eax
push 0x4aea58
lea eax, [ebp - 0x1c]
push eax
call fcn.0047e734
mov byte [ebp - 0x11], 0
mov eax, 0x42ee0f
ret
cmp byte [ebp + 0x10], 0
je 0x42ee26
mov ecx, dword [ebp - 0x2c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x2c]
push eax
call esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x42ee4d
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
je 0x42ee5f
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4319d0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x4319d9
ret
mov ecx, dword [eax + 0xc]
push 0
lea edx, [eax + 0x14]
push edx
mov edx, dword [eax + 4]
push ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x431ac0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push edi
push 0
push 0x8000080
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
je 0x431b4b
cmp edi, 0xffffffff
je 0x431b4b
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
push 0
lea ecx, [esp + 0xc]
push ecx
push esi
push edx
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x431b1c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
pop ecx
ret
cmp dword [esp + 8], esi
jae 0x431b3b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
push 0xa
call ebx
cmp dword [esp + 0xc], esi
jb 0x431b30
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 1
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret

Function at 0x431b50
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push edi
mov edi, dword [esp + 0x14]
push 0
push 0x8000080
push 3
push 0
push 2
push 0x40000000
push edi
call ebx
mov esi, eax
test esi, esi
je 0x431b8d
cmp esi, 0xffffffff
je 0x431b8d
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x431bad
push 0
push 0x8000080
push 2
push 0
push 2
push 0x40000000
push edi
call ebx
mov esi, eax
test esi, esi
je 0x431bd8
cmp esi, 0xffffffff
je 0x431bd8
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x10]
push eax
push edi
push ecx
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x431bdf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
cmp dword [esp + 0xc], edi
jae 0x431bfa
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x431bf0
push 0xa
call ebx
cmp dword [esp + 0xc], edi
jb 0x431bf0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x431c10
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push 0
push 0x8000080
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x431c9e
cmp esi, 0xffffffff
je 0x431c9e
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0xc]
push ecx
push edx
push eax
push esi
mov dword [esp + 0x1c], 0
call edi
test eax, eax
jne 0x431c6e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0xc]
push ecx
push edx
push eax
push esi
mov dword [esp + 0x1c], 0
call edi
test eax, eax
push esi
je 0x431c62
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret

Function at 0x431d40
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
sub esp, 0x110
mov eax, dword [0x4b78cc]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x118]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push edi
mov edi, dword [esp + 0x124]
push 0
push 0x8000080
push 2
push 0
push 2
push 0x40000000
push edi
mov dword [esp + 0x2c], eax
xor bl, bl
call ebp
mov esi, eax
test esi, esi
je 0x431d92
cmp esi, 0xffffffff
jne 0x431e05
push 0
push 0x8000080
push 3
push 0
push 1
push DirectSoundCreate
push edi
call ebp
test eax, eax
je 0x431e6b
cmp eax, 0xffffffff
je 0x431e6b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea ecx, [esp + 0x1c]
push str._s.BAK
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x431de5
mov bl, 1
push 0
push 0x8000080
push 2
push 0
push 2
push 0x40000000
push edi
call ebp
mov esi, eax
test esi, esi
je 0x431e5b
cmp esi, 0xffffffff
je 0x431e5b
mov ecx, dword [esp + 0x12c]
mov edx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x18]
push eax
push ecx
push edx
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x431e3f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x431e6b
push edi
lea eax, [esp + 0x1c]
push eax
jmp 0x431e65
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x431e54
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
jmp 0x431e6d
test bl, bl
je 0x431e6b
push edi
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
xor eax, eax
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047dd32
add esp, 0x110
ret
Function at 0x431e90
Capabilities:
Get file size

Disassembly:
push esi
push 0x18
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x431ea3
pop esi
ret
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x8000080
push 3
push 0
push 1
push DirectSoundCreate
push ebx
mov dword [esi], 0
call edi
test eax, eax
mov dword [esi + 4], eax
je 0x431efd
cmp eax, 0xffffffff
je 0x431efd
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0xc], eax
mov dword [esi + 8], 0
pop edi
pop ebx
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov eax, esi
pop esi
ret
mov eax, dword [esp + 0x14]
push 0
push 0x8000080
push 3
push 0
push 1
push DirectSoundCreate
push eax
call edi
test eax, eax
mov dword [esi + 4], eax
je 0x431f43
cmp eax, 0xffffffff
je 0x431f43
push ebx
push esi
mov dword [esi], 1
call fcn.004317d0
add esp, 8
test eax, eax
mov dword [esi + 0xc], eax
jne 0x431ee9
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop ebx
xor eax, eax
pop esi
ret
Function at 0x4354f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [0x4ba928], 0
je 0x435519
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x435519
mov eax, dword [0x4b9918]
and eax, 0x7fffffff
sub eax, 1
jne 0x435519
mov dword [esp + 4], ecx
jmp fcn.00444230
ret
Function at 0x453e00
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x453fa6
mov eax, dword [esp + 0x14]
test eax, eax
je 0x453fa6
mov edx, dword [eax + 0x914]
mov ecx, dword [esi + 0xc]
push ebp
push edi
mov edi, dword [eax + 0xc]
sub ecx, edx
cmp ecx, edi
mov dword [esp + 0xc], edx
jge 0x453e3c
mov ebp, ecx
mov dword [esp + 0x18], ebp
jmp 0x453e42
mov ebp, edi
mov dword [esp + 0x18], edi
mov ecx, dword [esi + 0x10]
mov edx, dword [eax + 0x10]
push ebx
mov ebx, dword [eax + 0x918]
sub ecx, ebx
cmp ecx, edx
mov dword [esp + 0x14], ecx
jl 0x453e5d
mov dword [esp + 0x14], edx
cmp dword [eax + 0x14], 0
je 0x453e77
mov ecx, dword [eax + 0x14]
mov ecx, dword [ecx + 0x120]
mov edx, dword [eax + 0x18]
mov edi, ecx
lea ecx, [edx + ecx*4 + 4]
jmp 0x453e7a
mov ecx, dword [eax + 0x18]
sub edi, ebp
cmp dword [esi + 0x14], 0
je 0x453ea2
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x120]
add ebx, 1
imul ebx, eax
mov edx, eax
mov eax, dword [esi + 0x18]
sub edx, ebp
add ebx, dword [esp + 0x10]
lea eax, [eax + ebx*4 + 4]
jmp 0x453eb6
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 0x18]
mov edx, eax
imul eax, ebx
sub edx, ebp
add eax, dword [esp + 0x10]
lea eax, [esi + eax*4]
test ebp, ebp
je 0x453fa3
mov esi, dword [esp + 0x14]
test esi, esi
je 0x453fa3
mov ebx, dword [esp + 0x24]
sub ebx, 0
je 0x453f72
sub ebx, 1
je 0x453f30
sub ebx, 1
jne 0x453fa3
test esi, esi
jle 0x453fa3
add edi, edi
add edi, edi
lea ebx, [edx*4]
test ebp, ebp
jle 0x453f1f
mov edx, ebp
mov edi, edi
mov ebp, dword [ecx]
xor ebp, dword [eax]
add ecx, 4
and ebp, 0xffffff
xor ebp, dword [ecx - 4]
add eax, 4
sub edx, 1
mov dword [eax - 4], ebp
jne 0x453f00
mov ebp, dword [esp + 0x1c]
add ecx, edi
add eax, ebx
sub esi, 1
jne 0x453ef8
pop ebx
pop edi
pop ebp
pop esi
add esp, 8
ret
test esi, esi
jle 0x453fa3
add edi, edi
add edi, edi
lea ebx, [edx*4]
nop
test ebp, ebp
jle 0x453f61
mov edx, ebp
mov ebp, dword [ecx]
xor ebp, dword [eax]
add ecx, 4
and ebp, 0xffffff
xor dword [eax], ebp
add eax, 4
sub edx, 1
jne 0x453f46
mov ebp, dword [esp + 0x1c]
add ecx, edi
add eax, ebx
sub esi, 1
jne 0x453f40
pop ebx
pop edi
pop ebp
pop esi
add esp, 8
ret
test esi, esi
jle 0x453fa3
add edi, edi
add edi, edi
lea ebx, [edx*4]
test ebp, ebp
jle 0x453f9a
mov edx, ebp
mov ebp, dword [ecx]
mov dword [eax], ebp
add eax, 4
add ecx, 4
sub edx, 1
jne 0x453f87
mov ebp, dword [esp + 0x1c]
add ecx, edi
add eax, ebx
sub esi, 1
jne 0x453f81
pop ebx
pop edi
pop ebp
pop esi
add esp, 8
ret
Function at 0x454b70
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x14
test eax, eax
jne 0x454b81
xor al, al
add esp, 0x14
ret
mov edx, dword [eax + 0x918]
mov ecx, dword [eax + 0x914]
push ebp
mov ebp, dword [eax + 0xc]
mov dword [esp + 0xc], edx
mov edx, dword [eax + 0x924]
imul edx, ebp
add edx, dword [eax + 0x920]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
push edi
mov dword [esp + 8], ecx
push 0x104
lea ecx, [eax + edx*4]
push 0x40
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x454bd5
pop edi
xor al, al
pop ebp
add esp, 0x14
ret
mov edx, dword [esp + 0x24]
push ebx
push esi
push edi
push edx
call fcn.00468bd0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 8
push 0
push 0x8000080
push 3
push 0
push 2
push 0x40000000
push edi
call ebx
mov esi, eax
test esi, esi
je 0x454c0f
cmp esi, 0xffffffff
jne 0x454c96
push 0
push 0x8000080
push 2
push 0
push 2
push 0x40000000
push edi
call ebx
mov esi, eax
test esi, esi
je 0x454d33
cmp esi, 0xffffffff
je 0x454d33
mov eax, dword [0x6ca5c4]
imul eax, dword [0x6ca5c0]
lea eax, [eax*4 + 0x10]
push eax
push 0x40
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x454c96
mov dword [ebx], 0x4d554854
mov eax, dword [0x6ca5c0]
push 0
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [0x6ca5c4]
lea edx, [esp + 0x24]
push edx
push eax
push ebx
push esi
mov dword [ebx + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [0x6ca5c0]
imul ecx, dword [esp + 0x18]
add ecx, dword [esp + 0x1c]
push 0
push 0
lea edx, [ecx*4 + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [0x6ca5c0]
sub edi, ebp
add edi, edi
xor ebx, ebx
add edi, edi
cmp dword [esp + 0x10], ebx
jle 0x454d11
add ebp, ebp
add ebp, ebp
mov edi, edi
mov ecx, dword [esp + 0x28]
push 0
lea eax, [esp + 0x24]
push eax
push ebp
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x454d22
add dword [esp + 0x28], ebp
push 1
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add ebx, 1
cmp ebx, dword [esp + 0x10]
jl 0x454ce0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
pop edi
mov al, 1
pop ebp
add esp, 0x14
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
pop edi
xor al, al
pop ebp
add esp, 0x14
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebx
pop edi
xor al, al
pop ebp
add esp, 0x14
ret
Function at 0x459300
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jbe 0x45931d
mov cl, byte [esp + 0xc]
mov eax, dword [esp + 4]
xor byte [eax], cl
add eax, 1
add cl, 0x5c
sub edx, 1
jne 0x459310
ret