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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x5025d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x103
xor esi, esi
lea eax, [ebp - 0x10f]
push esi
push eax
mov byte [ebp - 0x110], 0
call fcn.004a8c80
add esp, 0xc
push 0x13c
lea eax, [ebp - 0x24c]
push esi
push eax
mov dword [ebp - 0x250], esi
call fcn.004a8c80
xor eax, eax
mov word [ebp - 0x278], si
lea edi, [ebp - 0x276]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x268], si
xor eax, eax
lea edi, [ebp - 0x266]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosw word es:[edi], ax
call fcn.0049a965
sub eax, dword [0x615b1c]
cmp eax, 0x493e0
jae 0x49b704
xor eax, eax
jmp 0x49b839
call fcn.0049a965
mov dword [0x615b1c], eax
call fcn.0049ad7e
test eax, eax
je 0x49b6fd
push 0x6152e0
mov ecx, 0x104
lea eax, [ebp - 0x110]
call fcn.00477a48
pop ecx
call fcn.00477d88
push str.PAULATempTimeDetectionFile
push 0x4df4e0
push eax
call fcn.00478f56
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x258], eax
je 0x49b6fd
mov ebx, dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp + 8]
push eax
call ebx
mov dword [ebp - 0x254], esi
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x24c]
jg 0x49b7a8
lea eax, [ebp - 0x23c]
push eax
call ebx
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x268]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [ebp - 0x278]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0049a0b2
add esp, 0x20
cmp eax, 0xdbba0
jle 0x49b80c
lea eax, [ebp - 0x110]
call fcn.00477d88
lea eax, [ebp - 0x224]
push eax
mov eax, 0x104
lea esi, [ebp - 0x110]
call fcn.00477b18
pop ecx
mov eax, esi
call fcn.004199a1
test eax, eax
je 0x49b80c
inc dword [ebp - 0x254]
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x49b77d
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x254]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8565
leave
ret
Function at 0x49c1d5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
and word [esp + 4], 0
mov edx, dword [ebp + 8]
push ebx
mov ebx, eax
push esi
push edi
xor eax, eax
lea edi, [esp + 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00477a16
test eax, eax
je 0x49c204
xor eax, eax
jmp 0x49c262
test ebx, ebx
mov esi, str..Time.c
jne 0x49c228
push 0xb90
lea eax, [esp + 0x14]
push esi
push eax
call fcn.0049b356
add esp, 0xc
test eax, eax
je 0x49c200
lea ebx, [esp + 0x10]
mov ecx, dword [ebp + 8]
push 0xb98
push esi
mov edx, 0x4c7368
call fcn.0041bb64
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x49c200
push edi
push 1
push 0x10
push ebx
call fcn.004a7ca6
add esp, 0x10
mov esi, eax
dec esi
neg esi
sbb esi, esi
mov ecx, edi
inc esi
call fcn.0041bf91
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49c269
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
mov word [esp + 0x10], bx
lea edi, [esp + 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x49c29a
push 0x10
push ebx
push edi
call fcn.004a8c80
add esp, 0xc
mov edx, dword [ebp + 0xc]
call fcn.00477a16
test eax, eax
je 0x49c2aa
xor eax, eax
jmp 0x49c305
mov ecx, dword [ebp + 0xc]
push 0xbb8
push str..Time.c
mov edx, 0x4c722c
call fcn.0041bb64
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x49c2a6
push 0x10
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.004a8c80
push esi
push 1
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.004a8fc5
add esp, 0x1c
mov ebx, eax
dec ebx
neg ebx
sbb ebx, ebx
mov ecx, esi
inc ebx
call fcn.0041bf91
test edi, edi
je 0x49c303
lea esi, [esp + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49c69b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
cmp eax, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [0x615b9c], eax
je 0x49c6d5
call fcn.0049a965
mov dword [0x615ba0], eax
jmp 0x49c6eb
call fcn.0049a965
sub eax, dword [0x615ba0]
cmp eax, 0xde
jb 0x49c7b7
cmp dword [0x615b9c], ebx
jne 0x49c7b7
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x49c79f
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
cmp dword [ebp - 8], ebx
jne 0x49c72a
call fcn.0040af64
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x49c7a2
cmp dword [ebp - 4], ebx
jne 0x49c7a2
lea eax, [ebp - 0x20]
push eax
call fcn.0040af64
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 6
call esi
push 4
mov edi, eax
call esi
add eax, dword [ebp - 0x1c]
push 0xfffffffffffffffd
lea ecx, [eax + edi + 3]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
pop edi
cdq
idiv edi
mov dword [ebp - 0x1c], ecx
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
jle 0x49c796
cmp eax, dword [ebp - 0x18]
jge 0x49c796
cmp dword [ebp - 0xc], ecx
jle 0x49c796
push 0xf
call esi
add eax, dword [ebp - 0x1c]
cmp dword [ebp - 0xc], eax
jge 0x49c796
mov dword [0x615b80], 1
call fcn.0049a965
mov dword [0x615b84], eax
jmp 0x49c7a2
mov dword [ebp - 4], 1
jmp 0x49c7a2
mov dword [ebp - 4], ebx
push 0x16
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x615b9c], ebx
je 0x49c6fe
pop esi
pop edi
xor eax, eax
pop ebx
leave
ret 4
Function at 0x4a1ef7
Capabilities:
Terminate process

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
xor ebx, ebx
cmp ebp, ebx
push esi
push edi
je 0x4a20aa
mov edi, dword [esp + 0x24]
call fcn.00419e19
test eax, eax
je 0x4a20aa
push 1
push ebp
call dword [sym.imp.GDI32.dll_SetMapMode]
push 1
push 0x42c
mov dword [esp + 0x20], eax
xor esi, esi
call fcn.004a7b08
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x4a2054
push 0x2010
push ebx
push ebx
push ebx
push dword [esp + 0x34]
push ebx
call dword [sym.imp.USER32.dll_LoadImageA]
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x4a204d
push ebx
push edi
push ebx
push ebx
push ebx
push eax
push ebp
mov dword [edi], 0x28
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x4a2043
push 0x10
push 1
call fcn.004a7b08
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4a2043
mov eax, dword [edi + 0x14]
mov dword [esp + 0x20], eax
mov ax, word [edi + 4]
mov word [esi + 0xc], ax
mov ax, word [edi + 8]
push ebp
mov word [esi + 0xe], ax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, ebx
mov dword [esi], eax
je 0x4a1fe7
movsx eax, word [esi + 0xe]
push eax
movsx eax, word [esi + 0xc]
push eax
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x4a1fdb
push dword [esi]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [esi], ebx
jmp 0x4a1fe7
push eax
push dword [esi]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 8], eax
cmp dword [esi + 4], ebx
je 0x4a2043
mov eax, dword [esp + 0x20]
add eax, 0x64
push eax
call fcn.004a9237
cmp eax, ebx
pop ecx
mov dword [esp + 0x20], eax
je 0x4a2043
push ebx
push edi
push eax
push dword [edi + 8]
push ebx
push dword [esp + 0x28]
push ebp
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x4a2039
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push 0xcc0020
push ebx
push edi
push dword [esp + 0x2c]
push eax
push ecx
push ebx
push ebx
push eax
push ecx
push ebx
push ebx
push dword [esi]
call dword [sym.imp.GDI32.dll_StretchDIBits]
push dword [esp + 0x20]
call fcn.004a795c
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call fcn.004a795c
pop ecx
push dword [esp + 0x18]
push ebp
call dword [sym.imp.GDI32.dll_SetMapMode]
cmp esi, ebx
je 0x4a20aa
cmp dword [esi + 4], ebx
je 0x4a206c
cmp dword [esi], ebx
jne 0x4a2075
push esi
call fcn.004a795c
pop ecx
xor esi, esi
cmp esi, ebx
je 0x4a20aa
mov eax, dword [0x615d58]
cmp eax, ebx
jne 0x4a208c
call fcn.0046a3c9
mov dword [0x615d58], eax
push dword [esi]
mov ebx, eax
call fcn.0046a47b
mov ebx, dword [esi]
pop ecx
push esi
push dword [0x615d58]
call fcn.0046a7c4
mov eax, dword [esi]
pop ecx
pop ecx
jmp 0x4a20ac
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4a3774
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x5025d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x103
mov dword [ebp - 0x118], eax
xor esi, esi
lea eax, [ebp - 0x113]
push esi
push eax
mov ebx, ecx
mov byte [ebp - 0x114], 0
call fcn.004a8c80
xor eax, eax
lea edi, [ebp - 0x124]
mov dword [ebp - 0x128], esi
stosd dword es:[edi], eax
lea edi, [ebp - 0x134]
mov dword [ebp - 0x138], esi
stosd dword es:[edi], eax
lea edi, [ebp - 0x12c]
add esp, 0xc
mov dword [ebp - 0x130], esi
mov edx, ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x120], esi
call fcn.00477a16
test eax, eax
jne 0x4a390f
mov edx, dword [ebp - 0x118]
call fcn.00477a16
test eax, eax
jne 0x4a390f
push esi
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x128]
push eax
push ebx
call fcn.0041a50d
add esp, 0x14
test eax, eax
jne 0x4a3846
mov edi, ebx
call fcn.00419e19
test eax, eax
je 0x4a390f
cmp dword [0x50954c], esi
je 0x4a3850
mov dword [0x50954c], esi
jmp 0x4a3850
mov dword [ebp - 0x120], 1
push 0x4c722c
push ebx
call fcn.004a3609
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 0x11c], eax
je 0x4a390f
push dword [ebp - 0x118]
mov edi, 0x104
mov ecx, edi
lea eax, [ebp - 0x114]
call fcn.00477a48
pop ecx
mov esi, eax
call fcn.004784d6
mov edx, esi
call fcn.00477a16
test eax, eax
jne 0x4a38c1
mov eax, esi
push eax
call fcn.004a7f30
pop ecx
mov ecx, esi
dec ecx
cmp byte [eax + ecx], 0x5c
jne 0x4a38c1
push ebx
mov ecx, edi
mov eax, esi
call fcn.00477a48
pop ecx
push dword [ebp - 0x118]
call fcn.00478128
pop ecx
jmp 0x4a38d4
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.004a8a6f
test eax, eax
pop ecx
pop ecx
jne 0x4a38df
lea esi, [ebp - 0x114]
call fcn.00478226
push 0x169
push str..zLib.c
mov edx, 0x4c7368
lea ecx, [ebp - 0x114]
call fcn.0041bb64
mov edi, eax
xor ebx, ebx
cmp edi, ebx
pop ecx
pop ecx
jne 0x4a3920
push dword [ebp - 0x11c]
call fcn.004a36a8
pop ecx
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8565
leave
ret
push 0x100002
call fcn.004a9237
mov esi, eax
test esi, esi
pop ecx
mov dword [ebp - 0x118], ebx
je 0x4a3979
push 0x100000
push esi
push dword [ebp - 0x11c]
call fcn.004a362e
add esp, 0xc
test eax, eax
jle 0x4a3970
push edi
push 1
push eax
push esi
add ebx, eax
call fcn.004a7ca6
add esp, 0x10
test eax, eax
jg 0x4a3937
inc dword [0x615d8c]
inc dword [ebp - 0x118]
jmp 0x4a3937
push esi
call fcn.004a795c
pop ecx
jmp 0x4a3983
mov dword [ebp - 0x118], 1
mov ecx, edi
call fcn.0041bf91
push dword [ebp - 0x11c]
call fcn.004a36a8
cmp dword [ebp - 0x120], 0
pop ecx
je 0x4a39c0
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x138]
lea ecx, [ebp - 0x130]
call fcn.0041a614
pop ecx
pop ecx
test ebx, ebx
je 0x4a390f
cmp dword [ebp - 0x118], 0
jne 0x4a390f
xor eax, eax
inc eax
jmp 0x4a3911
Function at 0x4a39dd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5025d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x103
push esi
xor ebx, ebx
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], 0
call fcn.004a8c80
add esp, 0xc
push esi
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call fcn.004a8c80
add esp, 0xc
cmp dword [0x615d90], ebx
jne 0x4a3c25
mov esi, str.zLib.dll
push esi
push 0x4c747c
mov edi, 0x104
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.00478fcf
add esp, 0x10
push esi
push ebx
push ebx
call fcn.0045bc06
pop ecx
pop ecx
push eax
mov ebx, 0x4c8500
push ebx
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.00478fcf
lea eax, [ebp - 0x110]
add esp, 0x14
push eax
mov edx, eax
lea ecx, [ebp - 0x218]
call fcn.00419c54
pop ecx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x21c], eax
jne 0x4a3b51
push esi
push eax
push eax
call fcn.0045ba18
pop ecx
pop ecx
push eax
push ebx
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.00478fcf
add esp, 0x14
push esi
push 0
push 0
call fcn.0045bc06
pop ecx
pop ecx
push eax
push ebx
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.00478fcf
lea eax, [ebp - 0x110]
add esp, 0x14
push eax
mov edx, eax
lea ecx, [ebp - 0x218]
call fcn.00419c54
pop ecx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x21c], eax
jne 0x4a3b51
push esi
push eax
push eax
call fcn.0045ba18
pop ecx
pop ecx
push eax
push ebx
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.00478fcf
add esp, 0x14
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x21c], eax
jne 0x4a3b51
lea edi, [ebp - 0x110]
call fcn.00419e19
xor eax, eax
jmp 0x4a3c28
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.gzopen
push dword [ebp - 0x21c]
call esi
mov ebx, dword [ebp - 0x21c]
push str.gzread
push ebx
mov dword [0x615d74], eax
call esi
push str.gzwrite
push ebx
mov dword [0x615d78], eax
call esi
push str.gzclose
push ebx
mov dword [0x615d7c], eax
call esi
push str.gzseek
push ebx
mov dword [0x615d80], eax
call esi
push str.gzputs
push ebx
mov dword [0x615d84], eax
call esi
push str.gzgets
push ebx
mov dword [0x51431c], eax
call esi
push str.gzputc
push ebx
mov dword [0x514324], eax
call esi
push str.gzgetc
push ebx
mov dword [0x513a9c], eax
call esi
push str.compress2
push ebx
mov dword [0x514320], eax
call esi
push str.compressBound
push ebx
mov dword [0x514328], eax
call esi
push str.uncompress
push ebx
mov dword [0x514054], eax
call esi
push str.gzprintf
push ebx
mov dword [0x514318], eax
call esi
mov dword [0x615d88], eax
lea eax, [ebp - 0x110]
push eax
mov ecx, edi
mov eax, 0x615d98
mov dword [0x615d90], ebx
call fcn.00477a48
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8565
leave
ret
Function at 0x4a8565
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5025d0]
jne 0x4a856f
repz ret
jmp fcn.004afd5a
Function at 0x4a8d29
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4a8d66
cmp dword [ebp + 0x14], edi
je 0x4a8d66
cmp ecx, edi
jne 0x4a8d6d
call fcn.004ade3b
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004aef08
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4a8d81
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4a8da2
cmp ebx, 0xffffffff
je 0x4a8d91
push ebx
push edi
push ecx
call fcn.004a8c80
add esp, 0xc
cmp esi, edi
je 0x4a8d4e
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4a8d4e
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4a8dbe
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4a8dc5
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4a8eb6
test word [esi + 0xc], 0x10c
je 0x4a8e19
mov eax, dword [esi + 4]
test eax, eax
je 0x4a8e19
jl 0x4a8f17
cmp ebx, eax
mov edi, ebx
jb 0x4a8dea
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4a8ebe
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004b2272
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4a8eae
cmp ebx, dword [ebp - 0xc]
jb 0x4a8e86
cmp dword [ebp - 0xc], 0
je 0x4a8e43
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x4a8e38
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4a8e3f
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4a8e4e
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x4a8e4e
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4a8eea
push eax
push dword [ebp - 8]
push esi
call fcn.004af78a
pop ecx
push eax
call fcn.004b2175
add esp, 0xc
test eax, eax
je 0x4a8f29
cmp eax, 0xffffffff
je 0x4a8f17
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4a8eae
push esi
call fcn.004afc3a
cmp eax, 0xffffffff
pop ecx
je 0x4a8f1b
cmp dword [ebp - 4], 0
je 0x4a8eea
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4a8dcd
mov eax, dword [ebp + 0x14]
jmp 0x4a8d68
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a8ed5
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004a8c80
add esp, 0xc
call fcn.004ade3b
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4a8d5e
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a8f00
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004a8c80
add esp, 0xc
call fcn.004ade3b
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4a8d5e
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4a8d68
or dword [esi + 0xc], 0x10
jmp 0x4a8f1b
Function at 0x4b23b2
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x502d00]
je 0x4b23cd
inc edi
cmp edi, 0x17
jb 0x4b23be
cmp edi, 0x17
jae 0x4b254d
push ebp
push 3
call fcn.004b9dbd
cmp eax, 1
pop ecx
je 0x4b2519
push 3
call fcn.004b9dbd
test eax, eax
pop ecx
jne 0x4b2401
cmp dword [0x5022f0], 1
je 0x4b2519
cmp ebx, 0xfc
je 0x4b254c
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x511540
push ebp
call fcn.004b99c9
add esp, 0xc
test eax, eax
je 0x4b2437
push esi
push esi
push esi
push esi
push esi
call fcn.004aee0c
add esp, 0x14
push 0x104
mov esi, 0x511559
push esi
push 0
mov byte [0x51165d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b247b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004b99c9
add esp, 0xc
test eax, eax
je 0x4b247b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004aee0c
add esp, 0x14
push esi
call fcn.004a7f30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4b24c0
push esi
call fcn.004a7f30
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x511854
push 0x4de61c
sub ecx, eax
push ecx
push eax
call fcn.004b9916
add esp, 0x14
test eax, eax
je 0x4b24c0
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004aee0c
add esp, 0x14
jmp 0x4b24c2
xor esi, esi
push 0x4d05c4
push ebx
push ebp
call fcn.004b9859
add esp, 0xc
test eax, eax
je 0x4b24e2
push esi
push esi
push esi
push esi
push esi
call fcn.004aee0c
add esp, 0x14
push dword [edi*8 + 0x502d04]
push ebx
push ebp
call fcn.004b9859
add esp, 0xc
test eax, eax
je 0x4b2504
push esi
push esi
push esi
push esi
push esi
call fcn.004aee0c
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004b9c00
add esp, 0xc
jmp 0x4b254c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4b254c
cmp ebp, 0xffffffff
je 0x4b254c
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x502d04]
push dword [esi]
call fcn.004a7f30
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4b2b39
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4b2b66
call fcn.004ade4e
mov dword [eax], esi
call fcn.004ade3b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004aef08
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4b2b42
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4b2b95
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004ade61
pop ecx
call fcn.004ade3b
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4b2bbc
test al, 1
je 0x4b2bbc
test byte [esp + 0xc], 2
je 0x4b2bbc
call fcn.004ade4e
mov dword [eax], 5
call fcn.004ade3b
mov dword [eax], 0xd
jmp 0x4b2b8c
xor eax, eax
pop esi
ret
Function at 0x4b9c00
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004b0a79
xor ebx, ebx
cmp dword [0x5119ac], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4b9cd6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4b9db6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4c7054
push edi
call esi
cmp eax, ebx
je 0x4b9db6
push eax
call fcn.004b0a0b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5119ac], eax
call esi
push eax
call fcn.004b0a0b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5119b0], eax
call esi
push eax
call fcn.004b0a0b
mov dword [0x5119b4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004ab474
test eax, eax
pop ecx
pop ecx
je 0x4b9ca4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004aee0c
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4b9cd6
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004b0a0b
cmp eax, ebx
pop ecx
mov dword [0x5119bc], eax
je 0x4b9cd6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004b0a0b
pop ecx
mov dword [0x5119b8], eax
mov eax, dword [0x5119b8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4b9d5b
cmp dword [0x5119bc], ecx
je 0x4b9d5b
push eax
call fcn.004b0a82
push dword [0x5119bc]
mov esi, eax
call fcn.004b0a82
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4b9d5b
cmp edi, ebx
je 0x4b9d5b
call esi
cmp eax, ebx
je 0x4b9d28
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4b9d28
test byte [ebp - 0x18], 1
jne 0x4b9d5b
lea eax, [ebp - 0x10]
push eax
call fcn.004ab4e7
test eax, eax
pop ecx
je 0x4b9d43
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004aee0c
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4b9d52
or dword [ebp + 0x10], 0x200000
jmp 0x4b9d96
or dword [ebp + 0x10], 0x40000
jmp 0x4b9d96
mov eax, dword [0x5119b0]
cmp eax, dword [ebp - 8]
je 0x4b9d96
push eax
call fcn.004b0a82
cmp eax, ebx
pop ecx
je 0x4b9d96
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4b9d96
mov eax, dword [0x5119b4]
cmp eax, dword [ebp - 8]
je 0x4b9d96
push eax
call fcn.004b0a82
cmp eax, ebx
pop ecx
je 0x4b9d96
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5119ac]
call fcn.004b0a82
cmp eax, ebx
pop ecx
je 0x4b9db6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4b9db8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret