joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d5b4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42c050]
jne 0x41d5be
repz ret
jmp fcn.0041db4d
Function at 0x41fcf0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d8
push ebx
push esi
push edi
lea edi, [ebp - 0x4d8]
mov ecx, 0x136
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x42c050]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x414], eax
mov esi, esp
mov eax, dword [ebp - 0x414]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x400
lea edx, [ebp - 0x408]
push edx
call dword [sym.imp.MSVCR100.dll_vsprintf_s]
add esp, 0x10
cmp esi, esp
call fcn.0041dace
mov dword [ebp - 0x414], 0
mov esi, esp
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp esi, esp
call fcn.0041dace
push edx
mov ecx, ebp
push eax
lea edx, [0x41fd9c]
call fcn.0041daf1
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d5b4
add esp, 0x4d8
cmp ebp, esp
call fcn.0041dace
mov esp, ebp
pop ebp
ret
Function at 0x10011a47
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x10025272
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
push dword [ebp + 8]
call fcn.10024e89
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
xchg esi, eax
mov esi, 0xc6975d88
inc ebp
cwde
pop ss
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov eax, dword [0xa245c62e]
xor eax, 0x24a345c6
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.10024ed4
push eax
push esi
push dword [ebp + 8]
call fcn.10024e89
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a

Function at 0x1002528a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
push dword [ebp + 8]
call fcn.10024e89
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
xchg esi, eax
mov esi, 0xc6975d88
inc ebp
cwde
pop ss
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov eax, dword [0xa245c62e]
xor eax, 0x24a345c6
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.10024ed4
push eax
push esi
push dword [ebp + 8]
call fcn.10024e89
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
Function at 0x100252b5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
push dword [ebp + 8]
call fcn.10024e89
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
xchg esi, eax
mov esi, 0xc6975d88
inc ebp
cwde
pop ss
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov eax, dword [0xa245c62e]
xor eax, 0x24a345c6
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.10024ed4
push eax
push esi
push dword [ebp + 8]
call fcn.10024e89
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a

Function at 0x10025321
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x1c], 0x2b
call fcn.10024ed4
push eax
push esi
push dword [ebp + 8]
call fcn.10024e89
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.10024ec4
push ecx
add ah, byte [ecx]
ror dword [eax - 0x8363], 0xff
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
invalid
Function at 0x4011e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
push 0x40e040
call fcn.00406b84
add esp, 4
test eax, eax
jne 0x401252
push str.TEMP
call fcn.00406b84
add esp, 4
test eax, eax
jne 0x401252
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0
push 0
lea ecx, [esp + 8]
push 0
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.00406a3d
mov ecx, dword [esp + 0x120]
push 0
push 0
lea eax, [esp + 0x1c]
push 0x40e030
push eax
push ecx
call fcn.004069ac
add esp, 0x28
add esp, 0x108
ret
mov edx, dword [esp + 0x10c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0x108
ret

Function at 0x4013c0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x248
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push edi
mov edi, dword [esp + 0x258]
lea eax, [esp + 0x10]
push edi
push eax
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push str..
push ecx
call esi
lea edx, [esp + 0x114]
lea eax, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x4014e6
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x144]
push 0x40e088
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4014bf
lea edx, [esp + 0x144]
push 0x40e084
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4014bf
mov al, byte [esp + 0x118]
push edi
test al, 0x10
je 0x401486
lea eax, [esp + 0x18]
push eax
call ebp
lea ecx, [esp + 0x14]
push 0x40e080
push ecx
call esi
lea edx, [esp + 0x144]
lea eax, [esp + 0x14]
push edx
push eax
call esi
lea ecx, [esp + 0x14]
push ecx
call fcn.004013c0
add esp, 4
jmp 0x4014bf
lea edx, [esp + 0x18]
push edx
call ebp
lea eax, [esp + 0x14]
push 0x40e080
push eax
call esi
lea ecx, [esp + 0x144]
lea edx, [esp + 0x14]
push ecx
push edx
call esi
lea eax, [esp + 0x14]
push 0x80
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x118]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401417
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebp
add esp, 0x248
ret
Function at 0x401550
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x44c
lea eax, [esp]
push eax
call fcn.004011e0
add esp, 4
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax - 1], 0x5c
je 0x401585
lea edx, [esp]
push 0x40e080
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
lea eax, [esp + 4]
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea ecx, [esp + 0x354]
push str._svis
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x10c]
lea eax, [esp + 0x350]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401629
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [esp + 0x110], 0x10
je 0x401612
lea ecx, [esp + 0x13c]
lea edx, [esp + 0xc]
push ecx
push edx
lea eax, [esp + 0x258]
push str._s_s
push eax
call edi
lea ecx, [esp + 0x260]
push ecx
call fcn.00401500
add esp, 0x14
test eax, eax
je 0x401612
lea edx, [esp + 0x250]
push edx
call fcn.004013c0
add esp, 4
lea eax, [esp + 0x110]
push eax
push esi
call ebp
test eax, eax
jne 0x4015c8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
pop edi
pop esi
add esp, 0x44c
ret

Function at 0x401660
Capabilities:
Delete directory

Disassembly:
push 0x40eea4
call fcn.00401100
add esp, 4
test eax, eax
je 0x40167e
push 0x40eea4
call fcn.004013c0
add esp, 4
push 0x40efac
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x401698
push 0x40efac
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
ret
Function at 0x4016a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x270
mov eax, 1
push 0
mov dword [esp + 8], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x3c], 2
push eax
call fcn.00401ee0
add esp, 8
test ax, ax
je 0x4016d8
xor eax, eax
add esp, 0x270
ret
push ebx
push ebp
push esi
mov esi, dword [esp + 0x280]
push edi
mov edi, dword [sym.imp.KERNEL32.dll__lread]
lea ecx, [esp + 0x12]
push 2
push ecx
push esi
call edi
cmp word [esp + 0x12], 0
mov dword [esp + 0x1c], 0
jle 0x401898
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x18]
push 1
push edx
push esi
call edi
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x180]
and eax, 0xff
push eax
push ecx
push esi
call edi
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
and edx, 0xff
push 2
push eax
push esi
mov byte [esp + edx + 0x18c], 0
call edi
lea ecx, [esp + 0x28]
push 2
push ecx
push esi
call edi
lea edx, [esp + 0x70]
push 4
push edx
push esi
call edi
lea eax, [esp + 0x6c]
push 4
push eax
push esi
call edi
lea ecx, [esp + 0x7c]
push 0x40eea4
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x7c]
push 0x40e080
push edx
call ebx
lea eax, [esp + 0x180]
lea ecx, [esp + 0x7c]
push eax
push ecx
call ebx
lea edx, [esp + 0x24]
push 4
push edx
push esi
call edi
lea eax, [esp + 0x7c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x401890
mov ecx, dword [esp + 0x24]
xor eax, eax
lea edx, [esp + 0x2c]
push eax
push edx
mov dword [esp + 0x34], 3
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov word [esp + 0x48], si
mov word [esp + 0x4a], bp
mov dword [esp + 0x4c], 9
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0x10000
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
call fcn.00401ee0
add esp, 8
test ax, ax
jne 0x40187f
push ebp
call dword [sym.imp.KERNEL32.dll__lclose]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x64]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea eax, [esp + 0x74]
lea ecx, [esp + 0x64]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push 0
lea edx, [esp + 0x78]
push 0
push edx
push 0
lea eax, [esp + 0x8c]
push 0
push eax
call fcn.00401000
mov ebp, dword [esp + 0x34]
add esp, 0x18
test ebp, ebp
jne 0x40186b
lea ecx, [esp + 0x7c]
push ecx
push 0x40f0b0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
movsx edx, word [esp + 0x12]
inc ebp
cmp ebp, edx
mov dword [esp + 0x1c], ebp
jl 0x40170d
jmp 0x401898
push ebp
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll__lclose]
jmp 0x401898
mov dword [esp + 0x14], 0
lea eax, [esp + 0x2c]
push 0
push eax
mov dword [esp + 0x34], 4
call fcn.00401ee0
add esp, 8
test ax, ax
pop edi
pop esi
pop ebp
pop ebx
je 0x4018c0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
add esp, 0x270
ret
Function at 0x4019a0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
push esi
xor esi, esi
call fcn.00401960
test eax, eax
je 0x401a0a
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401a19
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x401a19
mov eax, dword [esp + 4]
push esi
push esi
lea edx, [esp + 0x10]
push esi
push edx
push esi
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401a19
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
add esp, 0x14
ret
mov eax, esi
pop esi
add esp, 0x14
ret

Function at 0x401da0
Capabilities:
Parse pe header

Disassembly:
sub esp, 0xfc
push 0x40000
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [esp], eax
jne 0x401dc7
mov eax, 1
add esp, 0xfc
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll__lread]
push ebp
mov ebp, dword [esp + 0x108]
push esi
push edi
lea eax, [esp + 0x14]
push 0x40
push eax
push ebp
call ebx
cmp eax, 0x40
je 0x401df1
mov esi, 3
jmp 0x401ebb
mov edx, dword [esp + 0x50]
xor ecx, ecx
cmp word [esp + 0x14], 0x5a4d
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
push 0
setne cl
dec ecx
and ecx, edx
mov esi, ecx
push esi
push ebp
call edi
lea edx, [esp + 0x14]
push 0xf8
push edx
push ebp
call ebx
cmp eax, 0xf8
je 0x401e30
mov esi, 3
jmp 0x401ebb
cmp dword [esp + 0x14], 0x4550
je 0x401e41
mov esi, 5
jmp 0x401ebb
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x1a]
and eax, 0xffff
push 0
and ebx, 0xffff
lea ecx, [eax + esi + 0x18]
push ecx
push ebp
call edi
mov edx, ebx
dec ebx
test edx, edx
je 0x401ea6
lea eax, [esp + 0x14]
push 0x28
push eax
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
cmp eax, 0x28
jne 0x401de7
mov ecx, 2
mov edi, str._mvdata
lea esi, [esp + 0x14]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x401e9e
mov eax, ebx
dec ebx
test eax, eax
jne 0x401e65
mov esi, 6
jmp 0x401ebb
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x401ead
mov esi, 6
jmp 0x401ebb
mov ecx, dword [esp + 0x114]
add eax, 8
xor esi, esi
mov dword [ecx], eax
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xfc
ret

Function at 0x402ac0
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor eax, eax
mov dword [0x40f53c], eax
mov dword [0x40f4a8], eax
mov word [0x40f4b4], ax
mov ebx, dword [0x40f5c0]
mov edx, 0xfffffffe
mov esi, esi
movzx eax, word [0x40f4b4]
movzx ecx, byte [edx + ebx + 2]
shl eax, 5
xor eax, ecx
and eax, 0x7fff
inc edx
mov word [0x40f4b4], ax
jne 0x402ae0
call fcn.00405110
pop ebx
ret
Function at 0x4030f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp], ebx
call fcn.00402490
test eax, eax
jne 0x403192
mov eax, dword [0x40f570]
test eax, eax
je 0x40318b
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4031b6
mov eax, dword [0x40f5cc]
add esp, 0xfffffff0
movsx eax, word [eax + 0x16]
mov edx, dword [0x40f5c4]
mov dword [esp + 4], edx
mov edx, dword [0x40f570]
mov dword [esp + 8], edx
mov word [esp], ax
call fcn.00403000
add esp, 0x10
test ebx, ebx
je 0x40315a
mov dword [0x40f570], 0
jmp 0x40318b
mov eax, dword [0x40f570]
mov edx, dword [0x40f5c4]
add esp, 0xfffffff0
add eax, edx
mov dword [esp + 8], 0x8000
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00402520
add esp, 0x10
mov dword [0x40f570], 0x8000
mov ebx, dword [esp]
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffff5
add esp, 0xfffffff8
mov word [0x40f620], ax
mov dword [esp + 4], 0
mov dword [esp], 0x40f5e0
call fcn.004076b8
jmp fcn.004031d0
add eax, 0xffff8000
mov dword [0x40f570], eax
jmp 0x40311e
Function at 0x4031d0
Capabilities:
Enumerate pe sections

Disassembly:
push edi
push esi
push ebp
push ebx
movzx edi, word [esp + 0x14]
sub esp, 0x20
movzx eax, word [0x40f4b0]
mov ebp, dword [0x40f5c0]
mov edx, dword [0x40f4a8]
movsx esi, word [0x40f55c]
mov dword [esp + 0x18], eax
lea ecx, [ebp + edx]
cmp edx, 0x7efa
jle 0x4033ab
lea ebx, [edx - 0x7efa]
mov dword [esp + 0x10], ebx
movsx ebx, word [0x40f550]
lea edx, [edx + ebp + 0x102]
mov dword [esp + 4], edx
lea edx, [eax - 1]
mov dword [esp + 8], edx
cmp eax, ebx
mov bh, byte [ecx + eax - 1]
mov al, byte [ecx + eax]
jl 0x40323b
sar esi, 2
mov bl, al
mov dword [esp + 0x14], ebp
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x14]
mov ebp, edi
mov eax, dword [esp + 0x18]
add edx, ebp
cmp bl, byte [edx + eax]
jne 0x403381
mov eax, dword [esp + 8]
cmp bh, byte [edx + eax]
jne 0x403381
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov cl, byte [ebp + eax]
cmp cl, byte [edx]
lea edx, [eax + ebp + 3]
jne 0x403381
mov ecx, dword [esp + 0xc]
mov al, byte [ebp + eax + 1]
cmp al, byte [ecx + 1]
jne 0x403381
mov eax, dword [esp + 0x14]
mov al, byte [ebp + eax + 2]
cmp al, byte [ecx + 2]
jne 0x403381
mov eax, ecx
lea ecx, [edx + 1]
mov edx, eax
add edx, 4
mov al, byte [eax + 3]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x14]
cmp al, byte [ebp + edi + 3]
mov edi, dword [esp + 0x1c]
jne 0x40332c
lea esi, [esi]
lea edi, [edi]
mov al, byte [edx]
inc edx
mov ah, byte [ecx]
inc ecx
cmp al, ah
jne 0x40332c
mov eax, edx
inc edx
mov al, byte [eax]
cmp al, byte [ecx]
jne 0x40332c
mov eax, edx
inc edx
mov al, byte [eax]
cmp al, byte [ecx + 1]
jne 0x40332c
mov eax, edx
inc edx
mov al, byte [eax]
cmp al, byte [ecx + 2]
jne 0x40332c
mov eax, edx
inc edx
mov al, byte [eax]
cmp al, byte [ecx + 3]
jne 0x40332c
mov eax, edx
inc edx
mov al, byte [eax]
cmp al, byte [ecx + 4]
jne 0x40332c
mov eax, edx
inc edx
mov al, byte [eax]
cmp al, byte [ecx + 5]
jne 0x40332c
mov eax, dword [esp + 4]
cmp edx, eax
ja 0x40332c
mov eax, edx
inc edx
mov al, byte [eax]
mov ah, byte [ecx + 6]
add ecx, 7
cmp al, ah
je 0x4032d0
mov eax, dword [esp + 4]
dec edx
mov ecx, 0xfffffefe
add ecx, eax
sub eax, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
mov ecx, edx
mov edx, eax
neg edx
mov eax, ecx
mov ecx, edx
add ecx, 0x102
cmp ecx, eax
jle 0x403381
movsx eax, word [0x40f558]
mov dword [esp + 0x18], ecx
mov word [0x40f4ac], di
cmp ecx, eax
jge 0x40339f
lea eax, [edx + 0x101]
mov ecx, dword [esp + 4]
mov dword [esp + 8], eax
mov bh, byte [ecx + edx - 1]
mov bl, byte [ecx + edx]
mov eax, dword [0x40f578]
and ebp, 0x7fff
mov edx, dword [esp + 0x10]
movzx edi, word [eax + ebp*2]
cmp edx, edi
jae 0x40339f
dec esi
jne 0x403245
mov eax, dword [esp + 0x18]
add esp, 0x20
pop ebx
pop ebp
pop esi
pop edi
ret
xor ebx, ebx
mov dword [esp + 0x10], ebx
jmp 0x403214
Function at 0x404b80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x14
movsx eax, word [0x40f4a0]
mov ecx, eax
and ecx, 0xf
mov edi, dword [0x40f570]
mov edx, dword [0x40f49c]
sub eax, ecx
movsx ebx, ax
shr edx, cl
mov ebp, edx
mov eax, ebx
movsx eax, ax
cmp eax, 0x10
jge 0x404bd3
call fcn.004037e0
movsx ebx, bx
movzx eax, ax
mov ecx, ebx
add ebx, 0x10
shl eax, cl
movsx ebx, bx
or ebp, eax
mov eax, ebx
movsx eax, ax
cmp eax, 0x10
jl 0x404bb2
add eax, 0xfffffff0
mov edx, ebp
movzx edx, dx
movsx ebx, ax
mov eax, 1
and eax, edx
mov esi, ebp
shr esi, 0x10
mov dword [esp + 0x10], edx
mov edx, ebx
movsx edx, dx
mov dword [esp + 0xc], eax
cmp edx, 0x10
jge 0x404c25
mov ebp, esi
mov esi, esi
call fcn.004037e0
movsx ebx, bx
movzx eax, ax
mov ecx, ebx
add ebx, 0x10
shl eax, cl
movsx ebx, bx
or ebp, eax
mov eax, ebx
movsx eax, ax
cmp eax, 0x10
jl 0x404c00
mov edx, eax
mov esi, ebp
mov eax, dword [esp + 0x10]
mov ecx, esi
xor ecx, 0xffffffff
movzx ecx, cx
cmp eax, ecx
jne 0x404d2a
add edx, 0xfffffff0
shr esi, 0x10
movsx ebx, dx
mov dword [esp + 8], esi
test eax, eax
je 0x404cbd
mov ebp, eax
mov esi, edi
mov edi, ebp
mov eax, ebx
movsx eax, ax
cmp eax, 8
jge 0x404d60
call fcn.004037e0
movsx ebx, bx
movzx eax, ax
mov ecx, ebx
add ebx, 0x10
mov edx, dword [esp + 8]
shl eax, cl
movsx ebx, bx
or edx, eax
mov eax, ebx
movsx eax, ax
mov dword [esp + 8], edx
cmp eax, 8
jl 0x404c62
mov edx, eax
mov eax, dword [0x40f5c4]
mov ecx, dword [esp + 8]
mov byte [eax + esi], cl
mov eax, dword [0x40f574]
inc esi
cmp esi, eax
je 0x404d3e
add edx, 0xfffffff8
mov eax, dword [esp + 8]
movsx ebx, dx
shr eax, 8
dec edi
mov dword [esp + 8], eax
jne 0x404c54
mov edi, esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x404d0a
mov eax, ebx
movsx eax, ax
cmp eax, 8
jge 0x404d37
nop
call fcn.004037e0
movsx ebx, bx
movzx eax, ax
mov ecx, ebx
add ebx, 0x10
mov edx, dword [esp + 8]
shl eax, cl
movsx ebx, bx
or edx, eax
mov eax, ebx
movsx eax, ax
mov dword [esp + 8], edx
cmp eax, 8
jl 0x404cd0
add eax, 0xfffffff8
mov edx, dword [esp + 8]
movsx ebx, ax
shr edx, 8
mov dword [esp + 8], edx
mov eax, dword [esp + 8]
mov dword [0x40f570], edi
mov word [0x40f4a0], bx
add esp, 0x14
mov dword [0x40f49c], eax
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
add esp, 0x14
mov eax, 0xfffffff6
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, ebx
movsx eax, ax
jmp 0x404cf9
mov dword [0x40f570], esi
mov dword [esp], 1
mov dword [esp + 0x10], edx
call fcn.004030f0
mov edx, dword [esp + 0x10]
xor esi, esi
jmp 0x404ca7
mov edx, ebx
movsx edx, dx
jmp 0x404c8d
Function at 0x409281
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40e7c8
cmp edx, dword [eax]
je 0x4092a3
add eax, 8
inc ecx
cmp eax, 0x40e858
jl 0x409294
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40e7c8]
jne 0x4093d1
mov eax, dword [0x40f1f8]
cmp eax, 1
je 0x4093ab
test eax, eax
jne 0x4092d4
cmp dword [0x40e494], 1
je 0x4093ab
cmp edx, 0xfc
je 0x4093d1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40930b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040ad10
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407c50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40934e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407c50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d4b4
push edi
call fcn.00409880
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040ad10
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040ad20
lea eax, [ebp - 0xa0]
push 0x40d494
push eax
call fcn.0040ad20
push dword [esi + 0x40e7cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040ad20
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040bec4
add esp, 0x2c
pop edi
jmp 0x4093d1
lea eax, [ebp + 8]
lea esi, [esi + 0x40e7cc]
push 0
push eax
push dword [esi]
call fcn.00407c50
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