joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43254c
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x248], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4326fd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x144]
mov ecx, 0x432714
mov edx, edi
call fcn.00403318
mov eax, dword [ebp - 0x144]
call fcn.00403490
push eax
call sub.kernel32.dll_FindFirstFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x4326d9
lea eax, [ebp - 0x140]
mov dword [ebx + 0x10], eax
lea eax, [ebp - 0x244]
lea edx, [ebp - 0x114]
call fcn.00402714
lea eax, [ebp - 0x244]
mov edx, 0x432718
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.00402684
je 0x4326b8
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x114]
call fcn.00403278
mov eax, dword [ebp - 0x144]
mov edx, 0x432724
call fcn.004033dc
je 0x4326b8
test byte [ebp - 0x140], 0x10
je 0x43268d
cmp byte [ebx + 0x1f], 0
jbe 0x43263d
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.004032b4
mov ecx, dword [ebp - 0x144]
mov edx, edi
mov eax, ebx
call fcn.00432444
cmp byte [ebx + 0x1c], 0
jne 0x4326b8
push edi
lea eax, [ebp - 0x248]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.004032b4
push dword [ebp - 0x248]
push 0x432730
lea eax, [ebp - 0x144]
mov edx, 3
call fcn.0040338c
mov edx, dword [ebp - 0x144]
mov eax, ebx
call fcn.0043254c
lea eax, [ebp - 0x140]
mov dword [ebx + 0x10], eax
jmp 0x4326b8
cmp byte [ebx + 0x1f], 1
je 0x4326b8
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.004032b4
mov ecx, dword [ebp - 0x144]
mov edx, edi
mov eax, ebx
call fcn.00432444
cmp byte [ebx + 8], 0
jne 0x4326d3
lea eax, [ebp - 0x140]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4325b6
push esi
call sub.kernel32.dll_FindClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x432704
lea eax, [ebp - 0x248]
call fcn.00403154
lea eax, [ebp - 0x144]
call fcn.00403154
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x409420
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x40942f
pop dword [ebp - 0x10]
mov eax, 0x40942f
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x28931783
add dword [ebp - 0x20], 0x25bf2dc8
mov dword [ebp - 0x1c], 0x5c78fb4b
add dword [ebp - 0x1c], 0xd5ba50fa
mov dword [ebp - 0x18], 0x5dfd10d2
add dword [ebp - 0x18], 0xee4f335c
mov dword [ebp - 0x14], 0x542316f1
add dword [ebp - 0x14], 0xabdce90f
lea eax, [ebp - 0x20]
push eax
mov eax, 0x6c10a877
sub eax, 0x6bcfd823
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xca2149de
add dword [ebp - 0x20], 0xaa511f78
mov dword [ebp - 0x1c], 0x3bf02591
sub dword [ebp - 0x1c], 0xfa83c41c
mov dword [ebp - 0x18], 0xb2523509
add dword [ebp - 0x18], 0xb11d3763
mov dword [ebp - 0x14], 0x48f09e49
sub dword [ebp - 0x14], 0x48f09e49
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x9c995c8a
sub eax, 0x9c588c3e
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3b57e
push 0
call eax
mov ecx, 0xfe9cb515
sub ecx, 0xfe9c65dd
xor esi, esi
add esi, eax
mov edi, 0x529e6604
sub edi, 0x525cb604
add edi, dword [ebp - 0x10]
mov ebx, 0x6ebfba08
sub ebx, 0x3b1e3322
sub dword [ebp - 0xc], 0x40ae27c5
mov edx, dword [edi]
add dword [ebp - 4], edi
xor edx, ebx
sub dword [ebp - 4], eax
mov dword [esi], edx
xor dword [ebp - 4], 0xcfcef85c
add esi, 0x6b0df556
add esi, 0x94f20aae
add edi, 0x24a0746a
sub edi, 0x24a07466
loop 0x40954e
add eax, 0xd252a78
add eax, 0xf2dc053b
mov ebx, eax
add eax, 0x242c5e28
add eax, 0xdbd3a1dd
mov ecx, 0xe9bb7e7e
add ecx, 0x16848182
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x10001920
Capabilities:
Hash data with md5

Disassembly:
mov edx, ecx
push esi
push edi
xor eax, eax
lea esi, [edx + 0x5c]
mov edi, esi
mov dword [edx + 0x18], eax
mov dword [edx + 0x14], eax
mov ecx, 0x10
mov dword [edx], 0x1000c19c
mov dword [edx + 4], 0x67452301
mov dword [edx + 8], 0xefcdab89
mov dword [edx + 0xc], 0x98badcfe
mov dword [edx + 0x10], 0x10325476
rep stosd dword es:[edi], eax
pop edi
mov byte [esi], 0x80
mov eax, edx
pop esi
ret

Function at 0x10001a40
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0xc
mov eax, dword [0x1000f040]
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x10], eax
push edi
xor ecx, ecx
lea eax, [esi + 0x16]
mov dl, byte [eax - 2]
mov byte [esp + ecx + 0xc], dl
mov dl, byte [eax - 1]
mov byte [esp + ecx + 0xd], dl
mov dl, byte [eax]
mov byte [esp + ecx + 0xe], dl
mov dl, byte [eax + 1]
mov byte [esp + ecx + 0xf], dl
add ecx, 4
add eax, 4
cmp ecx, 8
jb 0x10001a56
mov ecx, dword [esi + 0x14]
shr ecx, 3
and ecx, 0x3f
cmp ecx, 0x38
mov eax, 0x38
jb 0x10001a94
mov eax, 0x78
sub eax, ecx
push eax
lea ebp, [esi + 0x5c]
push ebp
mov ecx, esi
call fcn.10001970
push 8
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.10001970
mov ecx, dword [esp + 0x1c]
inc ecx
lea eax, [esi + 6]
mov edi, 4
lea ecx, [ecx]
mov dl, byte [eax - 2]
mov byte [ecx - 1], dl
mov dl, byte [eax - 1]
mov byte [ecx], dl
mov dl, byte [eax]
mov byte [ecx + 1], dl
mov dl, byte [eax + 1]
mov byte [ecx + 2], dl
add eax, 4
add ecx, 4
dec edi
jne 0x10001ac0
xor eax, eax
mov edi, esi
mov ecx, 0x27
rep stosd dword es:[edi], eax
mov edi, ebp
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], eax
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov byte [ebp], 0x80
pop ebp
call fcn.100024bf
add esp, 0xc
ret 4
Function at 0x10002190
Capabilities:
Delete file
Move file
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x1000f040]
push ebx
push esi
push edi
mov dword [esp + 0x220], eax
call fcn.1000a940
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, 0x43
mov esi, edi
push edi
call fcn.10002390
add esp, 4
test eax, eax
je 0x100021e7
push str.diskpt0.sys
push esi
lea eax, [esp + 0x1c]
push str._c:_s
push eax
call fcn.1000253d
add esp, 0x10
push 4
push 0
lea ecx, [esp + 0x1c]
push ecx
call ebx
inc edi
inc esi
cmp di, 0x5a
jbe 0x100021b7
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push str.Path
push str.SOFTWAREShadow_Defender
push 0x80000002
mov dword [esp + 0x24], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x10002245
push 0x104
lea edx, [esp + 0x18]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x14]
push 0x5c
push eax
call fcn.1000250d
add esp, 8
mov word [eax], 0
lea ecx, [esp + 0x14]
push str._shellext.dll
push ecx
call fcn.100024e3
add esp, 8
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10002281
push str.DllUnregisterServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000227a
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebx
call fcn.100024bf
add esp, 0x218
ret

Function at 0x100022a0
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
sub esp, 0x40c
mov eax, dword [0x1000f040]
mov ecx, dword [0x1000c5bc]
mov dx, word [esp + 0x410]
mov dword [esp + 0x408], eax
mov eax, dword [0x1000c5b8]
mov dword [esp], eax
push 0x100
lea eax, [esp + 0x20c]
mov dword [esp + 8], ecx
push eax
lea ecx, [esp + 8]
push ecx
mov word [esp + 0xc], dx
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x10002300
mov ecx, dword [esp + 0x408]
call fcn.100024bf
add esp, 0x40c
ret
push esi
push edi
push 0x100
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10002351
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
nop
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x214]
push ecx
call fcn.10002abe
add esp, 8
test eax, eax
je 0x10002368
push 0x100
lea edx, [esp + 0x14]
push edx
push esi
call edi
test eax, eax
jne 0x10002320
push esi
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x408]
call fcn.100024bf
add esp, 0x40c
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov ecx, dword [esp + 0x410]
pop edi
mov eax, 1
pop esi
call fcn.100024bf
add esp, 0x40c
ret
Function at 0x10002390
Capabilities:
Get disk information

Disassembly:
sub esp, 0x2c
mov eax, dword [0x1000f040]
mov ecx, dword [0x1000c5d0]
mov dword [esp + 0x28], eax
mov eax, dword [0x1000c5cc]
push esi
mov esi, dword [esp + 0x34]
mov dword [esp + 4], eax
push 0
mov dword [esp + 0xc], ecx
mov word [esp + 8], si
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x100023d6
cmp eax, 2
jne 0x100023e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100023f0
xor eax, eax
pop esi
mov ecx, dword [esp + 0x28]
call fcn.100024bf
add esp, 0x2c
ret
push 0x10
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x100023e0
lea edx, [esp + 0xc]
push 0x1000c5a0
push edx
call fcn.10002abe
add esp, 8
test eax, eax
je 0x1000246c
lea eax, [esp + 0xc]
push str.FAT32
push eax
call fcn.10002abe
add esp, 8
test eax, eax
je 0x1000246c
lea ecx, [esp + 0xc]
push 0x1000c5c0
push ecx
call fcn.10002abe
add esp, 8
test eax, eax
je 0x1000246c
lea edx, [esp + 0xc]
push str.NTFS
push edx
call fcn.10002abe
add esp, 8
test eax, eax
jne 0x100023e0
push esi
call fcn.100022a0
mov ecx, dword [esp + 0x30]
add esp, 4
neg eax
sbb eax, eax
neg eax
pop esi
call fcn.100024bf
add esp, 0x2c
ret
Function at 0x10002c18
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x10002d08
mov eax, 0x94
call fcn.10002990
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10002d7d
mov ecx, dword [esi + 0x10]
mov dword [0x1000fc1c], ecx
mov eax, dword [esi + 4]
mov dword [0x1000fc28], eax
mov edx, dword [esi + 8]
mov dword [0x1000fc2c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1000fc20], esi
je 0x10002c83
or esi, 0x8000
mov dword [0x1000fc20], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1000fc24], eax
call fcn.100057c3
test eax, eax
pop ecx
je 0x10002d7d
call fcn.100046bf
test eax, eax
jne 0x10002cb0
call fcn.10005814
jmp 0x10002d7d
call fcn.10005721
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10011454], eax
call fcn.100055ff
mov dword [0x1000fbe4], eax
call fcn.100050e0
test eax, eax
jl 0x10002d01
call fcn.1000555d
test eax, eax
jl 0x10002cfc
call fcn.1000532a
test eax, eax
jl 0x10002cfc
push 0
call fcn.10004ed8
test eax, eax
pop ecx
jne 0x10002cfc
inc dword [0x1000fbe0]
jmp 0x10002d8e
call fcn.100052de
call fcn.100044a8
jmp 0x10002ca6
test eax, eax
jne 0x10002d38
cmp dword [0x1000fbe0], eax
jle 0x10002d7d
dec dword [0x1000fbe0]
cmp dword [0x1000fc58], eax
jne 0x10002d27
call fcn.10005016
call fcn.100052de
call fcn.100044a8
call fcn.10005814
jmp 0x10002d8e
cmp eax, 2
jne 0x10002d81
push 0x8c
push 1
call fcn.10005025
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10002d7d
push esi
push dword [0x1000f068]
call dword [0x1000fc00]
test eax, eax
push esi
je 0x10002d77
call fcn.100044c5
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10002d8e
call fcn.10002eb0
pop ecx
xor eax, eax
jmp 0x10002d91
cmp eax, 3
jne 0x10002d8e
push 0
call fcn.10004690
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x10004b42
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.10002990
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10004bdd
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x1000fc1c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x10004bdd
cmp eax, 1
je 0x10004bfe
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10004bdd
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x10004baa
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x10004bd9
xor eax, eax
inc eax
jmp 0x10004c1d
cmp edi, eax
jae 0x10004be1
xor eax, eax
jmp 0x10004c1d
cmp eax, esi
jae 0x10004be8
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1000fc1c]
jmp 0x10004c01
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10004f42
Capabilities:
Terminate process

Disassembly:
push 8
push 0x1000cab8
call fcn.100030d0
push 8
call fcn.10005d15
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x1000fc5c], esi
jne 0x10004f76
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x1000fc58], esi
mov al, byte [ebp + 0x10]
mov byte [0x1000fc54], al
cmp dword [ebp + 0xc], edi
jne 0x10004fc0
cmp dword [0x10011448], edi
je 0x10004fb0
mov eax, dword [0x10011444]
sub eax, 4
mov dword [0x10011444], eax
cmp eax, dword [0x10011448]
jb 0x10004fb0
mov eax, dword [eax]
cmp eax, edi
je 0x10004f91
call eax
jmp 0x10004f91
push 0x1000f030
mov eax, 0x1000f028
call fcn.10004ec0
pop ecx
push 0x1000f03c
mov eax, 0x1000f034
call fcn.10004ec0
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x10004ff1
cmp dword [ebp + 0x10], edi
jne 0x10004fff
mov dword [0x1000fc5c], esi
push dword [ebp + 8]
call fcn.10004e7e
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x10004ffe
push 8
call fcn.10005c60
pop ecx
ret
call fcn.1000310b
ret
Function at 0x10005a12
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1000f040]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1000f2b8]
je 0x10005a47
inc eax
cmp eax, 0x13
jb 0x10005a38
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1000f2b8]
jne 0x10005b6d
mov eax, dword [0x1000fbec]
cmp eax, 1
je 0x10005b45
cmp eax, edx
jne 0x10005a77
cmp dword [0x1000fbf0], 1
je 0x10005b45
cmp ecx, 0xfc
je 0x10005b6d
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10005aad
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.10006970
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.10006ba0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10005ae1
mov eax, edi
push eax
call fcn.10006ba0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x1000c654
push edi
call fcn.10006a70
add esp, 0x10
push edi
call fcn.10006ba0
push dword [esi + 0x1000f2bc]
mov ebx, eax
call fcn.10006ba0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10002990
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10006970
push edi
push ebx
call fcn.10006980
push 0x1000c650
push ebx
call fcn.10006980
push dword [esi + 0x1000f2bc]
push ebx
call fcn.10006980
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10006869
add esp, 0x2c
jmp 0x10005b6d
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x1000f2bc]
push dword [esi]
call fcn.10006ba0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.100024bf
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x10006869
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1000fec0], ebx
push esi
push edi
jne 0x100068e9
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10006924
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x1000fec0], eax
je 0x10006924
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x1000fec4], eax
call esi
cmp dword [0x1000fc1c], 2
mov dword [0x1000fec8], eax
jne 0x100068e9
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1000fed0], eax
je 0x100068e9
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x1000fecc], eax
mov eax, dword [0x1000fecc]
test eax, eax
je 0x1000692e
call eax
test eax, eax
je 0x10006915
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1000fed0]
test eax, eax
je 0x10006915
test byte [ebp - 8], 1
jne 0x1000692e
cmp dword [0x1000fc28], 4
jb 0x10006928
or byte [ebp + 0x12], 0x20
jmp 0x1000694d
xor eax, eax
jmp 0x1000695d
or byte [ebp + 0x12], 4
jmp 0x1000694d
mov eax, dword [0x1000fec4]
test eax, eax
je 0x1000694d
call eax
mov ebx, eax
test ebx, ebx
je 0x1000694d
mov eax, dword [0x1000fec8]
test eax, eax
je 0x1000694d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1000fec0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006f73
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x1000f040]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x10006fa4
xor eax, eax
jmp 0x1000712d
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x10011340]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x10006fe0
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.10008f7b
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x100070bb
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x100070f9
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x10007044
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x10007035
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x10007015
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10007084
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x1000708d
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x10007006
jmp 0x1000708f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x10007128
cmp dword [ebp - 0x6c], edi
je 0x100070f9
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x100070ee
call fcn.10008d74
mov dword [eax], 9
call fcn.10008d7d
mov dword [eax], esi
jmp 0x10007123
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100070e3
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x1000708f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x1000708f
push dword [ebp - 0x6c]
call fcn.10008d86
pop ecx
jmp 0x10007123
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x10007111
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x10007111
xor eax, eax
jmp 0x1000712b
call fcn.10008d74
mov dword [eax], 0x1c
call fcn.10008d7d
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x1000712b
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.100024bf
add ebp, 0x3a0
leave
ret
Function at 0x1000a950
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 4]
sub esp, 0x214
push ebx
push esi
mov esi, dword [esp + 0x22c]
push 0
push 0
push 3
push 0
push 1
mov dword [eax], 0
push 0x80000000
mov dword [ecx], 0
push edx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000a9a7
pop esi
xor eax, eax
pop ebx
add esp, 0x214
ret 0x10
push ebp
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0x10]
push edx
push 0x200
lea eax, [esp + 0x2c]
push eax
push ebx
mov dword [esi], ecx
call ebp
test eax, eax
jne 0x1000a9fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x214
ret 0x10
cmp word [esp + 0x20], 0x5a4d
je 0x1000aa22
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x214
ret 0x10
mov eax, dword [esp + 0x5c]
push edi
push 0
cdq
push 0
mov edi, edx
push edi
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x200
lea edx, [esp + 0x30]
push edx
push ebx
call ebp
test eax, eax
je 0x1000ab11
cmp dword [esp + 0x24], 0x4550
jne 0x1000aa69
test byte [esp + 0x80], 2
jne 0x1000aa77
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x57
jmp 0x1000ab21
mov eax, dword [esp + 0x2a]
mov dword [esp + 0x20], eax
movzx eax, word [esp + 0x38]
add eax, 0x18
cdq
push 0
add esi, eax
push 0
adc edi, edx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x200
lea edx, [esp + 0x30]
push edx
push ebx
call ebp
test eax, eax
je 0x1000ab11
movzx eax, word [esp + 0x20]
test eax, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], eax
jbe 0x1000ab63
lea ebx, [ebx]
lea eax, [esp + 0x24]
push str..text
push eax
call fcn.10009b9e
add esp, 8
test eax, eax
je 0x1000ab36
push 0
add esi, 0x28
push 0
adc edi, 0
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x200
lea edx, [esp + 0x30]
push edx
push ebx
call ebp
test eax, eax
jne 0x1000ab4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x214
ret 0x10
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
xor edi, edi
xor ecx, ecx
add eax, esi
adc ecx, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x1000aad0
jmp fcn.10024504