joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b0b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x14], edi
mov ebx, ecx
je 0x41b0ee
call fcn.0044fb09
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41b0ee
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41b105
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push 1
test edi, edi
pop eax
je 0x41b105
push dword [esp + 0x18]
mov eax, dword [ebx]
mov ecx, ebx
push edi
push dword [esp + 0x18]
call dword [eax + 0x1c]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x42b035
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x468460
cmp edx, dword [eax]
je 0x42b057
add eax, 8
inc ecx
cmp eax, 0x4684f0
jl 0x42b048
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x468460]
jne 0x42b185
mov eax, dword [0x46b214]
cmp eax, 1
je 0x42b15f
test eax, eax
jne 0x42b088
cmp dword [0x467aa4], 1
je 0x42b15f
cmp edx, 0xfc
je 0x42b185
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42b0bf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0042b490
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00427aa0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x42b102
lea eax, [ebp - 0x1a4]
push eax
call fcn.00427aa0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x45d448
push edi
call fcn.004284c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0042b490
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0042b4a0
lea eax, [ebp - 0xa0]
push 0x45d428
push eax
call fcn.0042b4a0
push dword [esi + 0x468464]
lea eax, [ebp - 0xa0]
push eax
call fcn.0042b4a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042dde1
add esp, 0x2c
pop edi
jmp 0x42b185
lea eax, [ebp + 8]
lea esi, [esi + 0x468464]
push 0
push eax
push dword [esi]
call fcn.00427aa0
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]
pop esi
leave
ret
Function at 0x435060
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004240f0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x43512b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x43512b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4350de
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4350e9
or bh, 8
and edi, 0x8000000
je 0x435104
mov eax, dword [0x46ce5c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x43512b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x435500
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x43552b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x43554f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x43556a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x43847f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0044fb09
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4384b0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004384c3
pop edi
pop esi
pop ebx
ret 8
Function at 0x439a7c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x439ab4
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0043ce3c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0043ce14
jmp 0x439ac0
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x43b6bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x43b701
call fcn.0044fb09
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x43b701
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x43b6f8
xor eax, eax
jmp 0x43b709
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0043b70f
pop edi
pop esi
pop ebx
ret 4
Function at 0x45048f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.0044fb09
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4504cc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4504cc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4504d0
xor eax, eax
jmp 0x45054e
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.0043cf3c
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x450508
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x4504f2
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.0045063f
push ebx
mov edi, eax
call fcn.0043cf65
test edi, edi
pop ecx
je 0x45054a
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.00450408
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00450553
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x451160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x451210
mov ecx, 0x46b190
call fcn.00450d3b
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, eax
cmp word [esi + 8], 0
jne 0x4511ee
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x4511cc
mov ecx, dword [ebp + 0x10]
push 5
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4511cc
push ebx
push edi
push eax
call fcn.0043dae6
add esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax - 8]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 4], eax
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ax, word [ebx]
mov word [esi + 8], ax
push dword [esi + 4]
mov ecx, edi
call fcn.0043cb92
mov si, word [esi + 8]
xor eax, eax
mov word [ebx], si
cmp si, 0xffff
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 0xc
Function at 0x425c00
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, eax
cmp edi, 3
push 0x3f
mov esi, edx
pop ebx
jl 0x425c7a
push 3
pop ebx
xor edx, edx
div ebx
push 0x3f
pop ebx
mov dword [ebp - 4], eax
imul eax, eax, 0xfffffffd
add edi, eax
movzx eax, byte [esi + 2]
xor edx, edx
mov dh, byte [esi]
add esi, 3
mov dl, byte [esi - 2]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, ebx
mov al, byte [eax + 0x425b50]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, ebx
mov al, byte [eax + 0x425b50]
mov byte [ecx + 1], al
mov eax, edx
shr eax, 6
and eax, ebx
mov al, byte [eax + 0x425b50]
and edx, ebx
mov byte [ecx + 2], al
mov al, byte [edx + 0x425b50]
mov byte [ecx + 3], al
add ecx, 4
dec dword [ebp - 4]
jne 0x425c25
test edi, edi
jne 0x425c83
mov byte [ecx], 0
jmp 0x425cce
movzx eax, byte [esi]
shl eax, 0x10
dec edi
mov byte [ecx + 4], 0
mov byte [ecx + 3], 0x3d
je 0x425cad
xor edx, edx
mov dh, byte [esi + 1]
or eax, edx
mov edx, eax
shr edx, 6
and edx, ebx
mov dl, byte [edx + 0x425b50]
mov byte [ecx + 2], dl
jmp 0x425cb1
mov byte [ecx + 2], 0x3d
mov edx, eax
shr edx, 0xc
and edx, ebx
mov dl, byte [edx + 0x425b50]
shr eax, 0x12
and eax, ebx
mov byte [ecx + 1], dl
mov al, byte [eax + 0x425b50]
mov byte [ecx], al
pop edi
pop esi
mov al, 1
pop ebx
leave
ret

Function at 0x4260b5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
push 0x4260b0
lea ebx, [ebp - 0x404]
or esi, 0xffffffff
call fcn.00425d52
xor eax, eax
cmp edi, eax
je 0x4260fe
cmp dword [ebp + 8], eax
jbe 0x4260fe
movzx ecx, byte [eax + edi]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x43f2e0]
inc eax
cmp eax, dword [ebp + 8]
jb 0x4260de
mov eax, esi
jmp 0x426113
lea eax, [ebp - 0x404]
push 0x4260d8
push eax
call fcn.0042a1f1
pop ecx
pop ecx
xor eax, eax
pop esi
pop ebx
leave
ret 4
Function at 0x50e010
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x44c015
lea edi, [esi - 0x4b015]
add word [edi + 0x11c4a0], 5
push edi
or ebp, 0xffffffff
jmp 0x50e03a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50e041
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50e030
mov eax, 1
add ebx, ebx
jne 0x50e053
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50e048
jne 0x50e064
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50e048
xor ecx, ecx
sub eax, 3
jb 0x50e078
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50e0ea
mov ebp, eax
add ebx, ebx
jne 0x50e083
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50e090
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50e0b4
inc ecx
add ebx, ebx
jne 0x50e0a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50e095
jne 0x50e0b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50e095
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50e0d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50e0c5
jmp 0x50e036
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50e0d4
add edi, ecx
jmp 0x50e036
pop esi
mov edi, esi
mov ecx, 5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50e0f2
cmp byte [edi], 0
jne 0x50e0f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x50e0f7
lea edi, [esi + 0x10c000]
mov eax, dword [edi]
or eax, eax
je 0x50e166
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11cb40]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11cbac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50e124
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11cbb4]
or eax, eax
je 0x50e160
mov dword [ebx], eax
add ebx, 4
jmp 0x50e141
call dword [esi + 0x11cbb0]
mov ebp, dword [esi + 0x11cbb8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x10e1c1]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x50e1b2
sub esp, 0xffffff80
jmp 0x4153e0
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
or esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
push edx
pop edi
rep stosb byte es:[edi], al
pop edi
push edx
pop eax
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
push esi
pop eax
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
push esi
pop eax
sub eax, edi
push eax
pop esi
or eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret

Function at 0x40892b
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop esi
call fcn.00408946
push ebx
pop eax
xor dword [edx], esi
mov ebx, ebx
sub ebx, eax
inc edx
cmp edx, ecx
jne fcn.0040892b
or ebx, eax
ret
Function at 0x406230
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x80fd9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x40450c
call fcn.00406e91
push 4
mov dword [esp + 0x18], 0
call fcn.00407d36
mov edi, eax
add esp, 4
test edi, edi
je 0x4062a4
push ebx
call fcn.00406d69
mov dword [edi], eax
call fcn.00406b28
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406e52
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406298
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406e7a
pop ebx
jmp 0x4062a6
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4087a1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x813520]
jne 0x4087ab
repz ret
jmp fcn.0040cefc
Function at 0x411b42
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x813520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040aea1
and dword [ebp - 0x14], 0
cmp dword [0x818a94], 0
mov dword [ebp - 0x18], eax
jne 0x411bf5
push 0x403924
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je GetPrivateProfileIntW
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push CreateActCtxW
push ebx
call edi
test eax, eax
je GetPrivateProfileIntW
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403908
push ebx
mov dword [0x818a94], eax
call edi
push eax
call esi
push GlobalAlloc
push ebx
mov dword [0x818a98], eax
call edi
push eax
call esi
push 0x4038d8
push ebx
mov dword [0x818a9c], eax
call edi
push eax
call esi
mov dword [0x818aa4], eax
test eax, eax
je 0x411bf5
push 0x4038c0
push ebx
call edi
push eax
call esi
mov dword [0x818aa0], eax
mov eax, dword [0x818aa0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x411c4e
cmp dword [0x818aa4], ecx
je 0x411c4e
push eax
call esi
push dword [0x818aa4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x411c4e
test ebx, ebx
je 0x411c4e
call edi
test eax, eax
je 0x411c45
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411c45
test byte [ebp - 8], 1
jne 0x411c4e
or dword [ebp + 0x10], 0x200000
jmp 0x411c81
mov eax, dword [0x818a98]
cmp eax, dword [ebp - 0x18]
je 0x411c81
push eax
call esi
test eax, eax
je 0x411c81
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411c81
mov eax, dword [0x818a9c]
cmp eax, dword [ebp - 0x18]
je 0x411c81
push eax
call esi
test eax, eax
je 0x411c81
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x818a94]
call esi
test eax, eax
je EnumSystemLocalesA
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x411c9f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004087a1
leave
ret
Function at 0x80e8b0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0xc0c
cmp dword [0xb9d820], 0x37
jne 0x80e949
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push 0
lea eax, [esp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0x404164
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov ecx, dword [0xb9d824]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x81d884]
mov byte [ecx + esi], al
add esp, 0xc0c
ret