joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e60
Capabilities:
Access peb ldr_data
Get number of processors
Read .ini file
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4182d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov eax, dword [0x41e2d0]
mov dword [esp + 0x24], 0
mov dword [esp + 8], eax
mov eax, dword [esi + 0xc0]
mov ebx, 1
push eax
push 0x64
push 0x64
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], bl
call fcn.00411ae8
push eax
push 0x41e138
push str.ExeName
push str.GENERAL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.00411ac0
mov ecx, dword [esp + 8]
mov eax, dword [ecx - 8]
test eax, eax
je 0x402056
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esi + 0x70]
push 0
cmp byte [eax], 0
je 0x401fa5
push eax
push 0
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.004114de
push ecx
lea edx, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x3c], 2
call fcn.004114de
lea eax, [esp + 0x24]
mov ecx, esi
push eax
mov byte [esp + 0x3c], bl
call fcn.00402540
mov ecx, eax
mov byte [esp + 0x30], 3
call fcn.00411a71
push eax
push 0
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.004114de
push ecx
lea eax, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0x40], 4
call fcn.004114de
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 3
push ecx
mov ecx, esi
call fcn.00402540
mov ecx, eax
mov byte [esp + 0x34], 5
call fcn.00411a71
push eax
push ebx
call fcn.0040f912
add esp, 0x14
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 3
call fcn.00411769
mov byte [esp + 0x24], bl
lea ecx, [esp + 0x10]
jmp 0x402051
push 0
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.004114de
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov byte [esp + 0x38], 6
call fcn.004114de
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
push ecx
mov ecx, esi
call fcn.00402540
mov ecx, eax
mov byte [esp + 0x2c], 7
call fcn.00411a71
push eax
push 0
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.004114de
push ecx
lea eax, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x3c], 8
call fcn.004114de
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 7
push ecx
mov ecx, esi
call fcn.00402540
mov ecx, eax
mov byte [esp + 0x30], 9
call fcn.00411a71
push eax
push ebx
call fcn.0040f912
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 7
call fcn.00411769
mov byte [esp + 0x24], bl
lea ecx, [esp + 0xc]
call fcn.00411769
lea ecx, [esp + 8]
mov byte [esp + 0x24], 0
call fcn.00411769
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.00411769
mov ecx, dword [esp + 0x1c]
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 4
Function at 0x402090
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x418300
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x48], 0
call fcn.004027f1
lea eax, [esp + 0x50]
push 0x41e14c
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x54], 1
call fcn.00411971
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x50], 2
call fcn.004028b4
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x48], 1
call fcn.00411769
test esi, esi
je 0x4021f6
mov ebp, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x24]
call fcn.00402ad4
lea edx, [esp + 0x14]
lea ecx, [esp + 0x24]
push edx
mov esi, eax
call fcn.00402ccc
mov eax, dword [eax]
push 0x41e148
push eax
mov byte [esp + 0x50], 3
call fcn.004038c9
add esp, 8
test eax, eax
je 0x40216f
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
call fcn.00402ccc
mov eax, dword [eax]
push 0x41e144
push eax
call fcn.004038c9
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00411769
test bl, bl
je 0x40216f
mov bl, 1
jmp 0x402171
xor bl, bl
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 1
call fcn.00411769
test bl, bl
je 0x4021e5
mov edx, dword [esp + 0x24]
push 0x10
lea ecx, [esp + 0x28]
call dword [edx + 0x38]
test eax, eax
je 0x4021c5
push ecx
lea ecx, [esp + 0x28]
mov eax, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00402ba3
mov ecx, edi
call fcn.00402090
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x28]
call fcn.00402ba3
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x18]
jmp 0x4021e0
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x24]
push edx
call fcn.00402ba3
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x1c]
call fcn.00411769
test esi, esi
jne 0x402109
lea ecx, [esp + 0x24]
call fcn.0040286a
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 0
call fcn.0040282e
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], 0xffffffff
call fcn.00411769
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x3c
ret 4
Function at 0x406c3d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41eda0
cmp edx, dword [eax]
je 0x406c5f
add eax, 8
inc ecx
cmp eax, 0x41ee30
jl 0x406c50
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41eda0]
jne 0x406d8d
mov eax, dword [0x421798]
cmp eax, 1
je 0x406d67
test eax, eax
jne 0x406c90
cmp dword [0x41e68c], 1
je 0x406d67
cmp edx, 0xfc
je 0x406d8d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406cc7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00406d90
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004047a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x406d0a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004047a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41a804
push edi
call fcn.00409850
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00406d90
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00406da0
lea eax, [ebp - 0xa0]
push 0x41a7e4
push eax
call fcn.00406da0
push dword [esi + 0x41eda4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00406da0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004097b9
add esp, 0x2c
pop edi
jmp 0x406d8d
lea eax, [ebp + 8]
lea esi, [esi + 0x41eda4]
push 0
push eax
push dword [esi]
call fcn.004047a0
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 0x40f270
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.00404a40
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40f33b
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 0x40f33b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40f2ee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40f2f9
or bh, 8
and edi, 0x8000000
je 0x40f314
mov eax, dword [0x422f3c]
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 0x40f33b
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 0x40f710
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 0x40f73b
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 0x40f75f
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 0x40f77a
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 0x40fac4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40fae4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004055a1
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40fb07
test byte [esp + 8], 2
je 0x40fb07
call fcn.00405614
mov dword [eax], 0xd
call fcn.0040561d
mov dword [eax], 5
jmp 0x40fae0
xor eax, eax
ret
Function at 0x411eda
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x411f0a
push edi
call ebx
push eax
call fcn.00415264
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x411f34
test byte [ebp - 4], 1
je 0x411f34
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x411f34
push edi
call ebx
push eax
call fcn.00415264
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x411fda
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.00411e27
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x411f66
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00411e27
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x411f7c
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.00411e27
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x411fa6
push 0
call ebx
push eax
call fcn.00415264
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x411fc4
push eax
call ebx
push eax
call fcn.00415264
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x411fd8
push eax
call ebx
push eax
call fcn.00415264
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x412001
test byte [ebp - 4], 1
jne 0x412001
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x412001
push edi
call ebx
push eax
call fcn.00415264
pop edi
pop ebx
leave
ret 8

Function at 0x416fb6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x416fe4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x417002
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00416f1c
jmp 0x417002
mov eax, dword [esi + 0x14]
test eax, eax
je 0x417002
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00416f1c
test edi, edi
mov eax, edi
jne 0x416fec
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402400
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, 0xc
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
push 0x208
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.0040d2e0
add esp, 0xc
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
je 0x4024e6
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
lea edi, [ebp - 0x224]
xor al, al
mov ecx, 0x208
rep stosb byte es:[edi], al
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x2c]
shr ecx, 1
add ecx, 1
cmp ecx, 0x103
jbe 0x40247e
mov dword [ebp - 0x10], 0x103
jmp 0x40248d
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x2c]
shr eax, 1
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x30]
push eax
lea ecx, [ebp - 0x224]
push ecx
call dword [0x40e050]
lea edx, [ebp - 0x224]
push edx
call dword [0x40e058]
mov ecx, eax
call fcn.00402e20
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x1c], 0x25756c6b
jne 0x4024d9
cmp dword [ebp - 0x18], 0xf4ea
jne 0x4024d9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
jmp 0x4024e8
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
jmp 0x402440
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4024f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x402517
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x402517
xor eax, eax
jmp 0x402647
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp dword [edx], 0x4550
je 0x402535
xor eax, eax
jmp 0x402647
mov eax, dword [ebp - 0x18]
add eax, 0x18
mov dword [ebp - 0x20], eax
mov ecx, 8
imul edx, ecx, 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx + 0x60]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], 0
mov dword [ebp - 8], 0
jmp 0x40259d
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
add ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
add edx, 2
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0x18]
jae 0x4025de
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add eax, dword [edx]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
call fcn.00402f20
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp + 0xc]
jne 0x4025dc
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp + 0x10]
jne 0x4025dc
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax]
mov dword [ebp - 0x1c], ecx
jmp 0x4025de
jmp 0x402582
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 0x18]
jne 0x4025ed
xor eax, eax
jmp 0x402647
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
add edx, dword [ecx + eax + 0x64]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004023d0
add esp, 0xc
movzx ecx, al
test ecx, ecx
je 0x402644
cmp dword [ebp + 0x14], 0
je 0x402644
mov edx, dword [ebp + 0x14]
mov byte [edx], 1
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret
Function at 0x402e20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, ecx
test edi, edi
jne 0x402e41
or eax, 0xffffffff
or edx, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [edi]
xor dl, dl
movzx esi, word [edi]
mov cl, 0x57
mov byte [esp + 0x17], al
mov al, 0xbf
mov byte [esp + 0x24], 0xb3
mov bl, 0x55
test si, si
je 0x402ee5
mov ecx, 0x55bfb357
mov dword [esp + 0x1c], 0xa14a8ad
mov eax, esi
mov ebp, ecx
mov edx, 0xa14a8ad
mov dword [esp + 0x18], eax
nop word [eax + eax]
xor esi, esi
movzx eax, ax
and ecx, 0x1ffffff
lea edi, [edi + 2]
shld esi, ecx, 7
shrd ebp, edx, 0x19
shl ecx, 7
shr edx, 0x19
or ecx, ebp
or esi, edx
cdq
xor ecx, eax
xor edx, esi
mov ebx, ecx
mov eax, edx
shrd ebx, eax, 0x18
mov eax, edx
mov esi, ecx
shrd esi, eax, 0x10
mov eax, edx
mov ebp, ecx
mov dword [esp + 0x28], esi
mov esi, ecx
shrd esi, eax, 8
mov eax, dword [esp + 0x18]
mov byte [esp + 0x16], al
movzx eax, word [edi]
mov dword [esp + 0x24], esi
mov esi, eax
mov dword [esp + 0x18], esi
test ax, ax
jne 0x402e80
mov eax, dword [esp + 0x28]
mov dl, byte [esp + 0x16]
mov dh, byte [esp + 0x17]
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov byte [esp + 0x2a], cl
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x28], dh
mov byte [esp + 0x29], dl
mov byte [esp + 0x2c], al
mov byte [esp + 0x2b], cl
mov eax, dword [esp + 0x28]
mov byte [esp + 0x2d], bl
mov edx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402f20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
jne 0x402f3f
or eax, 0xffffffff
or edx, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, byte [edi]
xor bh, bh
mov byte [esp + 0xf], bl
mov cl, 0x57
mov byte [esp + 0x10], 0xb3
mov al, 0x55
mov byte [esp + 0x14], 0xbf
test bl, bl
je 0x402fcb
mov ecx, 0x55bfb357
mov dword [esp + 0x24], 0xa14a8ad
mov eax, ecx
mov edx, 0xa14a8ad
nop dword [eax]
xor esi, esi
lea edi, [edi + 1]
shrd eax, edx, 0x19
and ecx, 0x1ffffff
mov bh, bl
shld esi, ecx, 7
shr edx, 0x19
or esi, edx
shl ecx, 7
or ecx, eax
movsx eax, bl
mov bl, byte [edi]
cdq
xor ecx, eax
xor edx, esi
mov eax, edx
mov esi, ecx
shrd esi, eax, 0x18
mov eax, edx
mov dword [esp + 0x18], esi
mov esi, ecx
shrd esi, eax, 0x10
mov eax, edx
mov dword [esp + 0x14], esi
mov esi, ecx
shrd esi, eax, 8
mov eax, ecx
mov dword [esp + 0x10], esi
test bl, bl
jne 0x402f70
mov bl, byte [esp + 0xf]
mov eax, dword [esp + 0x18]
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov byte [esp + 0x1a], cl
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x1b], cl
mov ecx, dword [esp + 0x14]
pop edi
mov byte [esp + 0x14], bl
mov byte [esp + 0x15], bh
mov byte [esp + 0x19], al
mov eax, dword [esp + 0x14]
mov byte [esp + 0x18], cl
mov edx, dword [esp + 0x18]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405480
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x1c
mov eax, dword fs:[0x18]
mov edx, 0x77
push ebx
mov dword [esp + 8], 0
push ebp
mov eax, dword [eax + 0x30]
push esi
push edi
mov dword [esp + 0x18], ecx
lea ecx, [edx - 0x70]
mov eax, dword [eax + 0x10]
push 0x8fe
push 0xe575743
mov esi, dword [eax + 0x44]
call fcn.00402800
add esp, 8
lea ecx, [esp + 0x14]
push ecx
push esi
call eax
mov ecx, dword [esp + 0x14]
mov ebp, eax
cmp ecx, 3
jl 0x405595
xor edi, edi
test ecx, ecx
jle 0x405595
lea ebx, [edi + 0x7f]
mov byte [esp + 0x1f], 0x67
mov byte [esp + 0x20], 0x24
mov byte [esp + 0x21], 0x38
mov byte [esp + 0x22], 0x24
mov byte [esp + 0x23], 0x4c
mov byte [esp + 0x24], 0x24
mov byte [esp + 0x25], 0x5d
mov byte [esp + 0x26], 0x24
mov byte [esp + 0x27], 0x6d
mov byte [esp + 0x28], 0x24
mov byte [esp + 0x29], 0x24
mov byte [esp + 0x2a], 0x24
mov al, byte [esp + 0x1f]
mov byte [esp + 0x2b], 0
cmp byte [esp + 0x2b], 0
jne 0x405554
xor ecx, ecx
nop
mov al, byte [esp + ecx + 0x1f]
movzx edx, al
sub edx, 0x24
mov eax, edx
shl eax, 5
sub eax, edx
cdq
idiv ebx
lea eax, [edx + 0x7f]
cdq
idiv ebx
mov byte [esp + ecx + 0x1f], dl
inc ecx
cmp ecx, 0xc
jb 0x405530
lea ebx, [edi*4]
mov edx, 0x25
add ebx, ebp
push 0xfa84
push 0x3abe576c
lea ecx, [edx - 0x24]
mov esi, dword [ebx]
call fcn.00402800
add esp, 8
lea ecx, [esp + 0x1f]
push ecx
push esi
call eax
test eax, eax
je 0x40559f
inc edi
mov ebx, 0x7f
cmp edi, dword [esp + 0x14]
jl 0x4054e0
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ebp, dword [esp + 0x18]
mov byte [ebp + 0x30], 1
push dword [ebx + 4]
call dword [0x40e008]
xor ecx, ecx
mov edx, 2
lea esi, [eax + 5]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040b0e0
add esp, 4
mov dword [ebp + 0x2c], eax
test eax, eax
je 0x405595
mov edi, eax
lea ecx, [esi + esi]
mov edx, 0x50
xor al, al
rep stosb byte es:[edi], al
mov esi, dword [ebx + 4]
lea ecx, [edx - 0x4f]
mov edi, dword [ebp + 0x2c]
push 0xd3f2
push 0x4ccb576c
call fcn.00402800
add esp, 8
push esi
push edi
call eax
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1c
ret
Function at 0x40aad0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x455ee0]
push ebp
mov ebp, ecx
test eax, eax
jne 0x40ab3e
push edi
push 0x427
call fcn.0040b0e0
mov edi, eax
add esp, 4
mov dword [0x455ee0], edi
test edi, edi
jne 0x40aafb
pop edi
pop ebp
pop ecx
ret
push ebx
push esi
mov ebx, 0x40e0e0
mov dword [esp + 0x10], 0x21
xor esi, esi
sub ebx, edi
nop
mov eax, esi
lea ecx, [edi + esi]
xor edx, edx
inc esi
div dword [esp + 0x10]
mov al, byte [edx + 0x40e0b0]
xor al, byte [ebx + ecx]
mov byte [ecx], al
cmp esi, 0x427
jb 0x40ab10
pop esi
pop ebx
mov eax, edi
mov dword [ebp + 0xc4], 0x427
pop edi
pop ebp
pop ecx
ret