joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428130
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x42813f
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x428227
push ebp
mov ebp, edi
shr ebp, 3
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x46fd88]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46fd88]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x46fd88]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46fd88]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46fd88]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46fd88]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46fd88]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46fd88]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x428150
pop ebp
test edi, edi
je 0x42824c
jmp 0x428230
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x46fd88]
add ecx, 1
sub edi, 1
jne 0x428230
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x428980
Capabilities:
Read file on windows

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

Function at 0x4289e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x428a13
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x428a0d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x428a3f
mov eax, dword [esi + 0x14]
push ebx
mov ebx, dword [esi + 0x18]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x428a25
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x10]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.00451660
add esp, 0xc
add ebx, edi
mov dword [esi + 0x18], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x428a56
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x428a50
cmp byte [esi + 8], 0
je 0x428a50
or eax, 0xffffffff
add esp, 8
ret
Function at 0x428b90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x428bd5
cmp byte [esi + 1], 0
je 0x428bdd
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x428bf1
cmp byte [esi + 1], 0
je 0x428be3
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x428bfa
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], ecx
jmp 0x428bae
xor eax, eax
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x428bfa
mov eax, dword [esi + 0x18]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
cmp ebp, edi
mov dword [esp + 0xc], edi
jae 0x428c0e
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.0044afe5
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x428c29
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
mov eax, 4
cmp edi, eax
mov dword [esp + 0x18], 0
jbe 0x428d3e
jmp 0x428c4c
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
cmp eax, edi
mov dword [esp + 0x14], edi
ja 0x428c5d
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
cmp ebp, 0x404
mov dword [esp + 0x20], eax
jbe 0x428c76
mov ebp, 0x404
cmp byte [esi], 0
je 0x428c9b
cmp byte [esi + 1], 0
je 0x428d3e
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x428c9e
mov dword [esi + 0x18], eax
cmp byte [esi], 0
mov edi, ebp
je 0x428cc6
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x428cc0
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x428cec
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x428cd7
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x10]
push edi
add ecx, eax
push ecx
push ebx
call fcn.00451660
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x428d3e
lea eax, [ebp - 3]
test eax, eax
jle 0x428d30
lea esp, [esp]
sub eax, 1
cmp byte [eax + ebx], 0x50
jne 0x428d1e
cmp byte [eax + ebx + 1], 0x4b
jne 0x428d1e
cmp byte [eax + ebx + 2], 5
jne 0x428d1e
cmp byte [eax + ebx + 3], 6
je 0x428d24
test eax, eax
jg 0x428d00
jmp 0x428d30
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
jne 0x428d3e
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x428c40
push ebx
call fcn.00449daa
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x429c00
Capabilities:
Get common file path

Disassembly:
cmp dword [esi], 0
jne 0x429c59
cmp dword [esi + 4], 0xffffffff
jne 0x429c59
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x429c21
mov ax, word [0x46d2e8]
mov word [edi], ax
mov eax, dword [esp + 8]
lea edi, [esp + 8]
call fcn.004288e0
test eax, eax
pop edi
jne 0x429c4d
mov eax, dword [esp + 4]
ret 4
call fcn.00428d60
mov dword [esi], eax
xor eax, eax
ret 4
mov eax, 0x1000000
ret 4

Function at 0x42a150
Capabilities:
Create directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x47f534]
xor eax, esp
mov dword [esp + 0x208], eax
mov ecx, dword [esp + 0x214]
test ecx, ecx
push ebx
mov ebx, dword [esp + 0x214]
je 0x42a231
mov al, byte [ecx]
test al, al
je 0x42a231
push esi
push edi
mov edi, ecx
mov edx, ecx
jmp 0x42a190
cmp al, 0x2f
je 0x42a198
cmp al, 0x5c
jne 0x42a19a
mov edi, edx
mov al, byte [edx + 1]
add edx, 1
test al, al
jne 0x42a190
cmp edi, ecx
mov eax, edi
je 0x42a1d0
mov esi, edi
sub esi, ecx
push esi
push ecx
lea eax, [esp + 0x14]
push eax
call fcn.0044bb5a
lea ecx, [esp + 0x18]
push ecx
push ebx
mov byte [esp + esi + 0x20], 0
call fcn.0042a150
add esp, 0x14
lea eax, [edi + 1]
lea esi, [esp + 0x110]
mov ecx, ebx
sub esi, ebx
jmp 0x42a1e0
mov dl, byte [ecx]
mov byte [esi + ecx], dl
add ecx, 1
test dl, dl
jne 0x42a1e0
mov edx, eax
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42a1f0
lea edi, [esp + 0x110]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x42a205
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea edx, [esp + 0x114]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
mov ecx, dword [esp + 0x20c]
pop ebx
xor ecx, esp
call fcn.00448f05
add esp, 0x20c
ret
Function at 0x42c862
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x47f534]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x42c8a2
push 0x466f00
push 4
push eax
call fcn.0044c9ae
push eax
call fcn.00406950
add esp, 0x10
jmp 0x42c8b4
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x42c922
push edi
call fcn.0044cae6
mov edi, dword [eax]
call fcn.0044cae6
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00449a65
add esp, 0x18
mov ebx, eax
call fcn.0044cae6
cmp dword [eax], 0
je 0x42c902
call fcn.0044cae6
push dword [eax]
call fcn.0042c7f0
pop ecx
jmp 0x42c909
call fcn.0044cae6
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x42c922
cmp ebx, esi
jae 0x42c922
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x42c924
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00448f05
leave
ret
Function at 0x43050b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x430551
call fcn.0042d940
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x430551
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x430594
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x43057d
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x43057d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x430591
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x434509
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x434542
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0042e4d3
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00404f70
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x436056
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x436099
call fcn.0042d940
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x436099
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4360b4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00435c0d
test ebx, ebx
mov esi, eax
je 0x4360b2
test edi, edi
je 0x4360b2
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x437852
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jne 0x437882
push dword [ebp + 8]
call edi
push eax
call fcn.004461b9
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x4378ad
test byte [ebp - 4], 1
je 0x4378ad
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4378ad
push dword [ebp + 8]
call edi
push eax
call fcn.004461b9
lea eax, [ebx + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x437967
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.004377b7
pop ecx
lea eax, [ebx + 0x10]
pop ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x4378e3
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.004377b7
pop ecx
lea eax, [ebp - 0x10]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebx]
or eax, dword [ebx + 4]
je 0x4378f9
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.004377b7
pop ecx
pop ecx
lea esi, [ebp - 0x18]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x437926
push dword [ebp + 8]
call edi
push eax
call fcn.004461b9
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x437952
call edi
push ebx
mov dword [ebp - 8], eax
call esi
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.004461b9
push ebx
call esi
test eax, eax
jne 0x437964
push dword [ebp + 8]
call edi
push eax
call fcn.004461b9
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x43798f
test byte [ebp - 4], 1
jne 0x43798f
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x43798f
push dword [ebp + 8]
call edi
push eax
call fcn.004461b9
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x448f05
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47f534]
jne 0x448f0f
repz ret
jmp fcn.0045155c
Function at 0x44d889
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 0x44d8c6
cmp dword [ebp + 0x14], edi
je 0x44d8c6
cmp ecx, edi
jne 0x44d8cd
call fcn.0044cae6
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00448ed1
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x44d8e1
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x44d902
cmp ebx, 0xffffffff
je 0x44d8f1
push ebx
push edi
push ecx
call fcn.0044c470
add esp, 0xc
cmp esi, edi
je 0x44d8ae
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x44d8ae
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x44d91e
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x44d925
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x44da16
test word [esi + 0xc], 0x10c
je 0x44d979
mov eax, dword [esi + 4]
test eax, eax
je 0x44d979
jl 0x44da77
cmp ebx, eax
mov edi, ebx
jb 0x44d94a
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x44da1e
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00448f14
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 0x44da0e
cmp ebx, dword [ebp - 0xc]
jb 0x44d9e6
cmp dword [ebp - 0xc], 0
je 0x44d9a3
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x44d998
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x44d99f
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x44d9ae
mov eax, SysReAllocString
cmp ebx, eax
ja 0x44d9ae
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x44da4a
push eax
push dword [ebp - 8]
push esi
call fcn.0044d4de
pop ecx
push eax
call fcn.004583d4
add esp, 0xc
test eax, eax
je 0x44da89
cmp eax, 0xffffffff
je 0x44da77
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x44da0e
push esi
call fcn.00457cf3
cmp eax, 0xffffffff
pop ecx
je 0x44da7b
cmp dword [ebp - 4], 0
je 0x44da4a
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 0x44d92d
mov eax, dword [ebp + 0x14]
jmp 0x44d8c8
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x44da35
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0044c470
add esp, 0xc
call fcn.0044cae6
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x44d8be
cmp dword [ebp + 0xc], 0xffffffff
je 0x44da60
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0044c470
add esp, 0xc
call fcn.0044cae6
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x44d8be
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x44d8c8
or dword [esi + 0xc], 0x10
jmp 0x44da7b
Function at 0x454534
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 + 0x47fef0]
je 0x45454f
inc edi
cmp edi, 0x17
jb 0x454540
cmp edi, 0x17
jae 0x4546cf
push ebp
push 3
call fcn.0045a8c7
cmp eax, 1
pop ecx
je 0x45469b
push 3
call fcn.0045a8c7
test eax, eax
pop ecx
jne 0x454583
cmp dword [0x47f530], 1
je 0x45469b
cmp ebx, 0xfc
je 0x4546ce
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x483620
push ebp
call fcn.0044c9ae
add esp, 0xc
test eax, eax
je 0x4545b9
push esi
push esi
push esi
push esi
push esi
call fcn.00448dd5
add esp, 0x14
push 0x104
mov esi, 0x483639
push esi
push 0
mov byte [0x48373d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4545fd
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0044c9ae
add esp, 0xc
test eax, eax
je 0x4545fd
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00448dd5
add esp, 0x14
push esi
call fcn.0044ca20
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x454642
push esi
call fcn.0044ca20
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x483934
push 0x46a62c
sub ecx, eax
push ecx
push eax
call fcn.0044cf46
add esp, 0x14
test eax, eax
je 0x454642
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00448dd5
add esp, 0x14
jmp 0x454644
xor esi, esi
push 0x46a628
push ebx
push ebp
call fcn.0044cbb1
add esp, 0xc
test eax, eax
je 0x454664
push esi
push esi
push esi
push esi
push esi
call fcn.00448dd5
add esp, 0x14
push dword [edi*8 + 0x47fef4]
push ebx
push ebp
call fcn.0044cbb1
add esp, 0xc
test eax, eax
je 0x454686
push esi
push esi
push esi
push esi
push esi
call fcn.00448dd5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0045a70a
add esp, 0xc
jmp 0x4546ce
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4546ce
cmp ebp, 0xffffffff
je 0x4546ce
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x47fef4]
push dword [esi]
call fcn.0044ca20
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 0x45a70a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00450eb2
xor ebx, ebx
cmp dword [0x483ac0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x45a7e0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x45a8c0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46b650
push edi
call esi
cmp eax, ebx
je 0x45a8c0
push eax
call fcn.00450e44
mov dword [esp], 0x46b640
push edi
mov dword [0x483ac0], eax
call esi
push eax
call fcn.00450e44
mov dword [esp], 0x46b62c
push edi
mov dword [0x483ac4], eax
call esi
push eax
call fcn.00450e44
mov dword [0x483ac8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0044c73b
test eax, eax
pop ecx
pop ecx
je 0x45a7ae
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00448dd5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x45a7e0
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00450e44
cmp eax, ebx
pop ecx
mov dword [0x483ad0], eax
je 0x45a7e0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00450e44
pop ecx
mov dword [0x483acc], eax
mov eax, dword [0x483acc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x45a865
cmp dword [0x483ad0], ecx
je 0x45a865
push eax
call fcn.00450ebb
push dword [0x483ad0]
mov esi, eax
call fcn.00450ebb
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x45a865
cmp edi, ebx
je 0x45a865
call esi
cmp eax, ebx
je 0x45a832
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45a832
test byte [ebp - 0x18], 1
jne 0x45a865
lea eax, [ebp - 0x10]
push eax
call fcn.0044c772
test eax, eax
pop ecx
je 0x45a84d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00448dd5
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x45a85c
or dword [ebp + 0x10], 0x200000
jmp 0x45a8a0
or dword [ebp + 0x10], 0x40000
jmp 0x45a8a0
mov eax, dword [0x483ac4]
cmp eax, dword [ebp - 8]
je 0x45a8a0
push eax
call fcn.00450ebb
cmp eax, ebx
pop ecx
je 0x45a8a0
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x45a8a0
mov eax, dword [0x483ac8]
cmp eax, dword [ebp - 8]
je 0x45a8a0
push eax
call fcn.00450ebb
cmp eax, ebx
pop ecx
je 0x45a8a0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x483ac0]
call fcn.00450ebb
cmp eax, ebx
pop ecx
je 0x45a8c0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45a8c2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45e593
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x47f534]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0045e528
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0044c470
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x45e5e2
cmp dword [ebp - 0x1c], 5
jb 0x45e5fa
jmp 0x45e5f6
cmp dword [ebp - 0x10], 1
jne 0x45e5fa
cmp dword [ebp - 0x1c], 4
ja 0x45e5f6
jne 0x45e5fa
cmp dword [ebp - 0x18], 0
jbe 0x45e5fa
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x46bf44
call fcn.0045e3fc
test eax, eax
jge 0x45e61b
mov byte [0x484b48], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00448f05
add ebp, 0x78
leave
ret