joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453b60
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x58d984]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
test edx, edx
je 0x453c2e
mov ecx, edx
mov dword [ebp - 0xc], 0
push esi
xor eax, eax
mov dword [ebp - 8], 7
push edi
mov word [ebp - 0x1c], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x453b96
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.00403190
cmp dword [ebp - 8], 8
lea esi, [ebp - 0x1c]
jb 0x453bbb
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edx, 0x811c9dc5
lea edi, [eax + eax]
test edi, edi
je 0x453be1
lea esp, [esp]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x453bd0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], edx
call fcn.00403110
lea eax, [ebp - 0x20]
mov ecx, 0x59a434
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0043c300
pop edi
pop esi
mov eax, dword [eax]
cmp eax, dword [0x59a434]
je 0x453c2e
lea eax, [ebp - 0x20]
mov ecx, 0x59a434
push eax
call fcn.00453ae0
cmp dword [eax + 0x14], 8
jb 0x453c33
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004eda39
mov esp, ebp
pop ebp
ret
mov eax, 0x544c1c
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004eda39
mov esp, ebp
pop ebp
ret
Function at 0x454d90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x58d984]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
test edx, edx
je 0x454e58
mov ecx, edx
mov dword [ebp - 0xc], 0
push esi
xor eax, eax
mov dword [ebp - 8], 7
push edi
mov word [ebp - 0x1c], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x454dc6
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.00403190
cmp dword [ebp - 8], 8
lea esi, [ebp - 0x1c]
jb 0x454deb
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edx, 0x811c9dc5
lea edi, [eax + eax]
test edi, edi
je 0x454e11
lea esp, [esp]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x454e00
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], edx
call fcn.00403110
lea eax, [ebp - 0x20]
mov ecx, 0x59a43c
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0043c300
pop edi
pop esi
mov eax, dword [eax]
cmp eax, dword [0x59a43c]
je 0x454e58
lea eax, [ebp - 0x20]
mov ecx, 0x59a43c
push eax
call fcn.00454c90
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004eda39
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004eda39
mov esp, ebp
pop ebp
ret
Function at 0x458ed0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d248
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x58d984]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x459091
push esi
call fcn.00488ec0
add esp, 4
test eax, eax
je 0x458f3a
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00489740
add esp, 0x14
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.00494640
add esp, 4
test eax, eax
je 0x458f71
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00494af0
add esp, 0x14
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push esi
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x458ff1
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x458fea
push dword [ebp - 0x1c]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x458fea
push 0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push dword [ebp - 0x1c]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x458fe3
lea eax, [ebp - 0x10]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
jmp 0x458fea
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x459091
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
test edi, edi
je 0x45902b
lea eax, [ebp + 0xc]
mov dword [edi], vtable.Gdiplus::Bitmap.0
push eax
push ebx
mov dword [ebp + 0xc], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [edi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
jmp 0x45902d
xor edi, edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push edi
mov dword [ebp - 0x18], 0
call fcn.00410140
mov eax, dword [ebp - 0x10]
push eax
mov dword [ebp - 4], 0
mov ecx, dword [eax]
call dword [ecx + 8]
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push esi
sub esp, 8
mov ecx, esp
push eax
call fcn.00456ff0
mov esi, dword [ebp + 8]
push esi
call fcn.00458c70
add esp, 0x14
lea ecx, [ebp - 0x1c]
call fcn.004077e0
mov eax, esi
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 eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
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 0x45a1a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x58d984]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x45a1d4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45a1d4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x45a2cc
push edi
mov edi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x45a1f3
cmp dx, 0x5c
jne 0x45a1f5
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x45a1e7
cmp edi, ebx
je 0x45a243
sub edi, ebx
lea eax, [ebp - 0x414]
and edi, 0xfffffffe
push edi
push ebx
push eax
call fcn.0050c8e0
add esp, 0xc
cmp edi, 0x208
jae 0x45a2dc
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.0045a1a0
add esp, 8
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x45a270
lea ecx, [ebp - 0x20c]
sub ecx, esi
jmp 0x45a260
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x45a260
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x45a272
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
jmp 0x45a290
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x45a290
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x45a2cc
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004eda39
mov esp, ebp
pop ebp
ret
call fcn.004edfb9
int3
Function at 0x45ac10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov dword [ebp - 8], ebx
cmp dword [ebx], 0
jne 0x45adbc
cmp dword [ebx + 4], 0xffffffff
jne 0x45adbc
push edi
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45ac47
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x45ac83
cmp eax, 0x2f
je 0x45ac83
add edi, 0xfffffffe
jmp 0x45ac70
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x45ac70
mov eax, dword [0x546974]
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
push esi
cmp edi, 1
jne 0x45acae
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x45acc9
pop esi
pop edi
mov eax, 0x2000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 2
je 0x45acc6
cmp edi, 3
je 0x45acc6
pop esi
pop edi
mov eax, 0x10000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
xor ebx, ebx
xor al, al
mov byte [ebp - 1], al
mov byte [ebp + 0x13], bl
cmp edi, 1
je 0x45ad0f
cmp edi, 2
jne 0x45ad2b
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x45ad09
pop esi
pop edi
mov eax, 0x200
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [ebp + 0x13], 1
jmp 0x45ad15
mov ebx, esi
mov byte [ebp + 0x13], 0
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 1], al
push 0x20
call fcn.004ed767
add esp, 4
mov esi, eax
cmp edi, 1
je 0x45ad66
cmp edi, 2
je 0x45ad66
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov word [esi], 0x100
mov byte [esi + 0x10], 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0xc], 0
jmp 0x45ad97
mov al, byte [ebp + 0x13]
mov byte [esi + 0x10], al
mov al, byte [ebp - 1]
mov byte [esi], 1
mov byte [esi + 1], al
mov dword [esi + 4], ebx
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
test al, al
je 0x45ad97
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
push esi
call fcn.0045dd50
mov ecx, dword [ebp - 8]
add esp, 4
mov dword [ecx], eax
neg eax
pop esi
sbb eax, eax
and eax, 0xfffffe00
pop edi
add eax, 0x200
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x1000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45b410
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x54e640]
xor eax, ecx
mov ecx, dword [edx + 8]
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x54e640]
mov dword [edx + 8], ecx
pop ebp
ret
Function at 0x45d910
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ebx
imul esi, dword [ebp + 0x10]
cmp byte [edi], 0
je 0x45d94e
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45d942
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
pop edi
pop esi
div ebx
pop ebx
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x45d95f
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.0050c8e0
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x45d980
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x45d98e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x45da4d
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x54e640]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x54e640]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x54e640]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x54e640]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x54e640]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x54e640]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x54e640]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x54e640]
sub edi, 1
jne 0x45d9a6
pop edi
test esi, esi
je 0x45da6b
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x54e640]
sub esi, 1
jne 0x45da51
not eax
pop esi
pop ebp
ret
Function at 0x476de0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
xor eax, eax
mov dword [ebp - 0x34], 0
push eax
push 0x58f758
push 0x590298
mov esi, ecx
mov word [ebp - 0x26], ax
push eax
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], esi
call fcn.0050e825
mov dword [ebp - 0x38], eax
add esp, 0x14
cmp dword [esi + 0x2ac], 8
lea eax, [esi + 0x298]
jb 0x476e25
mov eax, dword [eax]
mov ecx, dword [esi + 0x2b0]
mov dword [ebp - 0x14], eax
call fcn.0044b430
mov ecx, dword [ebp + 0x18]
fld dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov ax, word [ebp + 0x14]
mov word [ebp - 0x28], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
xor eax, eax
test ecx, ecx
fstp dword [ebp - 0x1c]
sete al
cmp eax, edx
jne 0x476e83
mov ecx, dword [esi + 0x2b0]
lea eax, [ebp - 8]
push eax
call fcn.0044b440
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], eax
jmp 0x476e89
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x3c]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x74]
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x47e7b0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x47e827
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x47e81e
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
lea ebx, [eax + eax]
lea eax, [ebx + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x47e81e
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], eax
jb 0x47e7fa
mov esi, dword [esi]
push ebx
push esi
push eax
call fcn.0050c8e0
mov eax, dword [ebp - 4]
add esp, 0xc
xor ecx, ecx
push edi
mov word [ebx + eax], cx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x480970
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x58d984]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0x14]
cmp eax, 0x14
ja 0x4809c0
je case.0x4809a8.3
add eax, 0xfffffffe
cmp eax, 0xd
ja case.0x4809a8.4
movzx eax, byte [eax + 0x480b20]
jmp dword [eax*4 + 0x480b14]
push dword [esi - 0x250]
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp case.0x4809a8.4
cmp eax, 0x216
ja 0x480a9d
je case.0x4809a8.3
sub eax, 0x18
je 0x480a76
sub eax, 0x6e
jne case.0x4809a8.4
mov edi, dword [sym.imp.USER32.dll_IsWindowVisible]
push ebx
call edi
test eax, eax
je case.0x4809a8.4
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0
push eax
push ebx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x24]
push eax
lea ecx, [esi - 0x25c]
call fcn.0044b530
push dword [esi - 0x250]
mov ecx, dword [eax]
sub dword [ebp - 0x14], ecx
mov ecx, dword [eax + 4]
sub dword [ebp - 0x10], ecx
mov ecx, dword [eax + 8]
add dword [ebp - 0xc], ecx
mov eax, dword [eax + 0xc]
add dword [ebp - 8], eax
call edi
mov edx, dword [ebp - 0x10]
neg eax
mov ecx, dword [ebp - 0x14]
sbb eax, eax
and eax, 0x40
add eax, 0x10
push eax
mov eax, dword [ebp - 8]
sub eax, edx
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
push ebx
push dword [esi - 0x250]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp case.0x4809a8.4
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x480a8d
push edi
push eax
push 0x8007
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp case.0x4809a8.4
push 0
push dword [esi - 0x250]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x4809a8.4
sub eax, 0x8006
je 0x480ac2
sub eax, 1
jne case.0x4809a8.4
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 4
push eax
push dword [esi - 0x250]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x4809a8.4
test edi, edi
je case.0x4809a8.4
cmp dword [ebp + 0x10], 0
lea ecx, [esi - 0x25c]
je 0x480aea
push edi
call fcn.0044dd00
mov ecx, dword [esi - 0x24c]
test ecx, ecx
je case.0x4809a8.4
push edi
call fcn.00479930
jmp case.0x4809a8.4
call fcn.0044b560
push eax
push 0x104
push edi
call fcn.00513a45
add esp, 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004eda39
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4815f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ea36
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x58d984]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 7
mov word [esi + 0x20], ax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], 7
mov dword [ebp - 4], eax
mov word [esi + 0x38], ax
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 1
call fcn.00481570
mov dword [esi + 0xe4], 0
xor eax, eax
mov dword [esi + 0xe8], 7
mov word [esi + 0xd4], ax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 8], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0xc8], eax
mov dword [esi + 0xcc], eax
mov eax, esi
mov dword [esi + 0xc], 0x4000
mov dword [esi + 0xd0], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x481700
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ea73
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x58d984]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 7
mov dword [ebp - 4], eax
mov word [esi + 0x18], ax
mov eax, dword [ebp + 8]
mov edx, eax
mov byte [ebp - 4], 1
lea ebx, [edx + 2]
jmp 0x481760
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x481760
sub edx, ebx
lea ecx, [esi + 0x18]
sar edx, 1
push edx
push eax
call fcn.00403190
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x34], eax
mov eax, esi
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x482b20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
push edi
push dword [ebx]
push 1
push dword [ebx + 8]
push dword [ebp + 8]
call fcn.00521ec7
mov esi, dword [ebx + 8]
mov ecx, eax
add esp, 0x10
cmp ecx, 1
sete al
mov byte [ebp - 1], al
mov eax, esi
cdq
idiv dword [ebx + 0x18]
mov dword [ebx + 0x1c], eax
cmp ecx, 1
jne 0x482c8e
add dword [ebx + 0x14], esi
cmp dword [ebx + 0x4c], 8
push 0xffffffffffffffff
push eax
push 0x18
lea eax, [ebx + 0x38]
push ecx
mov ecx, esp
jb 0x482b73
mov eax, dword [eax]
push ecx
mov dword [ecx], eax
lea edi, [ebx + 0x20]
mov eax, esp
push edi
mov dword [eax], str.read
call fcn.00486c40
mov eax, dword [ebx + 0x1c]
add esp, 0x18
mov edx, dword [ebx + 0x18]
xor ecx, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], edx
test eax, eax
je 0x482c53
mov edi, edx
jmp 0x482bb6
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0xc], eax
cmp edx, 1
jne 0x482bc5
xor edx, edx
cmp byte [esi], dl
jmp 0x482bca
xor edx, edx
cmp word [esi], dx
sete dl
mov eax, edi
test edx, edx
je 0x482bff
test ecx, ecx
je 0x482bf3
cmp esi, ecx
je 0x482bf3
imul edi, dword [ebp - 8]
mov eax, esi
sub eax, ecx
push eax
push ecx
sub ecx, edi
push ecx
call fcn.0050d660
mov eax, dword [ebx + 0x18]
add esp, 0xc
mov edx, dword [ebp - 8]
lea ecx, [eax + esi]
inc edx
mov dword [ebp - 8], edx
jmp 0x482c02
mov edx, dword [ebp - 8]
add esi, eax
mov edi, eax
cmp dword [ebp - 0xc], 0
jne 0x482bb0
test ecx, ecx
je 0x482c26
cmp esi, ecx
je 0x482c26
sub esi, ecx
imul eax, edx
push esi
push ecx
sub ecx, eax
push ecx
call fcn.0050d660
add esp, 0xc
mov esi, dword [ebp - 8]
lea edi, [ebx + 0x20]
test esi, esi
je 0x482c53
push 0xffffffffffffffff
push esi
push 1
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
push edi
mov dword [eax], str.nulls_removed
call fcn.00486c40
add esp, 0x18
sub dword [ebx + 0x1c], esi
cmp dword [ebx + 0x18], 1
jle 0x482c8e
test byte [ebx + 4], 0x80
je 0x482c8e
push dword [ebx + 0x1c]
push dword [ebp + 8]
call fcn.00487190
add esp, 8
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
push edi
mov dword [eax], str.endian_swap
call fcn.00486c40
add esp, 0x18
mov al, byte [ebp - 1]
test al, al
jne 0x482c9f
mov ecx, ebx
call fcn.00482380
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x482fc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
imul eax, edx
mov dword [esi + 8], eax
test ebx, ebx
jne 0x482fe0
mov ebx, ecx
xor edi, edi
test byte [esi + 4], 0x80
je 0x483056
test ecx, ecx
jne 0x48301b
mov eax, edx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004eda7d
mov ecx, dword [esi + 0x1c]
mov edi, eax
add ecx, ecx
push ecx
push ebx
push edi
call fcn.0050c8e0
mov edx, dword [esi + 0x1c]
add esp, 0x10
mov ecx, edi
mov ebx, edi
test edx, edx
je 0x483032
nop
movzx eax, word [ecx + edx*2 - 2]
dec edx
rol ax, 8
mov word [ecx + edx*2], ax
test edx, edx
jne 0x483020
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [eax], str.endian_swap
lea eax, [esi + 0x20]
push eax
call fcn.00486c40
add esp, 0x18
push dword [esi]
push 1
push dword [esi + 8]
push ebx
call fcn.00522a88
add esp, 0x10
cmp eax, 1
sete bl
test edi, edi
je 0x483079
push edi
call fcn.004eda86
add esp, 4
test bl, bl
je 0x4830b8
mov eax, dword [esi + 8]
add dword [esi + 0x14], eax
cmp dword [esi + 0x4c], 8
push 0xffffffffffffffff
push dword [esi + 0x1c]
push 0x18
push ecx
lea ecx, [esi + 0x38]
mov eax, esp
jb 0x483098
mov ecx, dword [ecx]
push ecx
mov dword [eax], ecx
mov ecx, esp
mov dword [ecx], str.write
lea ecx, [esi + 0x20]
push ecx
call fcn.00486c40
add esp, 0x18
mov al, bl
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov ecx, esi
call fcn.00482380
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 8