joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a318
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x47a3c5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x30], eax
xor eax, eax
mov dword [ebx + 4], eax
mov dl, 1
mov eax, dword [0x416748]
call fcn.00403158
mov esi, eax
mov dword [ebx + 0xc], esi
mov eax, dword [ebx + 8]
cdq
push edx
push eax
mov eax, esi
call fcn.0041ac4c
mov esi, dword [ebx + 0xc]
mov eax, esi
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, esi
call fcn.0041abe8
lea eax, [ebp - 4]
mov edx, 0x47a3dc
call fcn.00404034
mov eax, dword [ebp - 4]
call fcn.0040445c
mov edx, eax
mov ecx, 1
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
call dword [esi + 0x10]
xor eax, eax
mov dword [ebx + 0x10], eax
xor eax, eax
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [ebx + 0x18], eax
xor eax, eax
mov dword [ebx + 0x1c], eax
mov byte [ebx + 0x34], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a3cc
lea eax, [ebp - 4]
call fcn.00403f9c
ret

Function at 0x47a464
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov dword [ebp - 0x20], 0x20
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x24], eax
fild qword [ebp - 0x28]
fmul qword [ebp + 8]
call fcn.00402948
push eax
push 0
push 0x400
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
fild qword [ebp - 0x30]
fmul qword [ebp + 8]
call fcn.00402948
call fcn.00404dc0
pop edx
xchg edx, eax
sub eax, edx
cmp eax, 0x10000
jge 0x47a4c3
mov eax, 0x10000
mov esp, ebp
pop ebp
ret 8

Function at 0x47a4cc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00403f9c
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
push 0
call sub.kernel32.dll_GetTempPathA
mov ebx, eax
mov eax, ebx
call fcn.0040cddc
mov eax, ebx
call fcn.00407e28
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x47a59f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.kernel32.dll_GetTempPathA
call fcn.0040cddc
mov eax, pe_nt_image_headers32
call fcn.00407e28
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x47a582
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0x47a5cc
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetTempFileNameA
call fcn.0040cddc
mov eax, dword [ebp - 0xc]
call fcn.00408864
mov ecx, eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.0040408c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a589
mov eax, dword [ebp - 8]
call fcn.004026fc
ret
Function at 0x47af60
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47b16d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov esi, eax
mov eax, dword [ebx + 0x36c]
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x47b140
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x22c]
call fcn.0043c3b4
lea eax, [ebp - 0x154]
push eax
mov edx, dword [ebx + 0x388]
lea eax, [ebp - 0x158]
mov ecx, 0x47b184
call fcn.004042a8
mov eax, dword [ebp - 0x158]
call fcn.0040445c
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov esi, eax
test esi, esi
setne al
neg al
sbb eax, eax
jmp 0x47b11f
lea eax, [ebp - 4]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.0040420c
mov eax, dword [ebp - 4]
mov edx, 0x47b194
call fcn.004043a8
je 0x47b112
mov eax, dword [ebp - 4]
mov edx, 0x47b1a0
call fcn.004043a8
je 0x47b112
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x22c]
call fcn.0043c264
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x22c]
call fcn.0043c2c0
mov ebx, eax
mov edi, ebx
dec edi
mov edx, edi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x22c]
call fcn.0043c2f0
mov edx, dword [ebp - 4]
call fcn.0043bd04
mov eax, dword [ebp - 0x154]
and eax, 0x10
cmp eax, 0x10
jne 0x47b0ad
mov edx, edi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x22c]
call fcn.0043c2f0
mov eax, dword [eax + 8]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, edi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x22c]
call fcn.0043c2f0
mov eax, dword [eax + 8]
mov edx, 0x47b1ac
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x47b112
mov eax, dword [ebp - 0x138]
shl eax, 0x20
or eax, dword [ebp - 0x134]
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea eax, [ebp - 0x15c]
call fcn.004082e8
mov eax, dword [ebp - 0x15c]
push eax
mov edx, edi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x22c]
call fcn.0043c2f0
mov eax, dword [eax + 8]
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, edi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x22c]
call fcn.0043c2f0
mov eax, dword [eax + 8]
mov edx, 0x47b1c0
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x154]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x47aff4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b147
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x88]
ret
Function at 0x41382f
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0x416e98
push 0x4139c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x41b9e4], 0xffffffff
or dword [0x41b9e8], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4199c4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4199c0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41b9e0], eax
call fcn.004139bb
cmp dword [0x419780], ebx
jne 0x4138b2
push 0x4139b8
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.004139a6
push 0x419050
push 0x41904c
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4199bc]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [0x4199b8]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x419048
push section..data
call sub.MSVCRT.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x413945
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x413919
cmp al, 0x22
jne 0x41390b
cmp byte [esi], 0x22
jne 0x413922
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x41392c
cmp al, 0x20
jbe 0x41391e
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x413950
movzx eax, word [ebp - 0x2c]
jmp 0x413953
cmp byte [esi], 0x20
jbe 0x413922
inc esi
mov dword [ebp - 0x74], esi
jmp 0x413945
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x78], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4063fe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406422
xor eax, eax
test eax, eax
je 0x406434
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406434
xor ecx, ecx
jmp 0x406437
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x406523
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232c4], 0
push esi
jne 0x40655a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406534
mov dword [ecx*4 + 0x4232c0], eax
inc ecx
cmp ecx, 0x100
jl 0x40652f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40658b
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232c0]
xor eax, esi
inc ecx
dec edx
jne 0x40656d
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4072c0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x416b70]
jne 0x4072ca
repz ret
jmp fcn.0040839c

Function at 0x40959b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004067a1
and dword [ebp - 4], 0
cmp dword [0x417e8c], 0
mov ebx, eax
jne 0x40964c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4096fd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4096fd
push eax
call fcn.0040672f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x417e8c], eax
call esi
push eax
call fcn.0040672f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x417e90], eax
call esi
push eax
call fcn.0040672f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x417e94], eax
call esi
push eax
call fcn.0040672f
pop ecx
mov dword [0x417e9c], eax
test eax, eax
je 0x40964c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040672f
pop ecx
mov dword [0x417e98], eax
mov eax, dword [0x417e98]
cmp eax, ebx
je 0x4096a4
cmp dword [0x417e9c], ebx
je 0x4096a4
push eax
call fcn.004067aa
push dword [0x417e9c]
mov esi, eax
call fcn.004067aa
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4096a4
test edi, edi
je 0x4096a4
call esi
test eax, eax
je 0x40969b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40969b
test byte [ebp - 0xc], 1
jne 0x4096a4
or dword [ebp + 0x10], 0x200000
jmp 0x4096dd
mov eax, dword [0x417e90]
cmp eax, ebx
je 0x4096dd
push eax
call fcn.004067aa
pop ecx
test eax, eax
je 0x4096dd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4096dd
mov eax, dword [0x417e94]
cmp eax, ebx
je 0x4096dd
push eax
call fcn.004067aa
pop ecx
test eax, eax
je 0x4096dd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x417e8c]
call fcn.004067aa
pop ecx
test eax, eax
je 0x4096fd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4096ff
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ac03
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov dword [ebp - 8], 0
mov dword [0x4163b4], 0x24f2
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov edx, 0x13da
mov esi, dword [ebp - 8]
mov esi, dword [esi + 0x10]
mov esi, dword [esi + 0x3c]
mov dword [0x4163b4], 0x13da
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jmp 0x40ac6a
mov dword [0x4163b8], 0x47
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x40ace4
jmp 0x40ad46
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
cmp word [edx + ecx*2], 0
mov esi, ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], esi
je 0x40acaf
mov eax, dword [ebp - 0x24]
add eax, 1
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffe00
mov dword [0x4163b4], ecx
cmp eax, 0x104
mov edx, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x28], eax
jl 0x40ac6a
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
jne 0x40ad46
mov dword [0x4163b4], 0x5bf
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x40ac4c
jmp 0x40ad46
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x40ad46
mov dword [0x4163b4], 0xfffffa1e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x40ad46
mov dword [0x4163b8], 0x519
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x40ad46
mov eax, 1
mov dword [0x4163b4], 0x24bd
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x2c], eax
je 0x40ad55
xor eax, eax
mov dword [0x4163b4], 0x1321
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
add esp, 0x28
pop esi
pop ebp
ret
Function at 0x40b01a
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov edi, 0x11f9
mov dword [0x4163c0], 0
mov byte [0x4163c4], 0
mov dword [0x4163b4], 0x1887
mov dword [0x4163bc], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
jmp 0x40b14e
mov eax, dword [ebp - 0x24]
mov ecx, 0x100
mov dword [ebp - 0x28], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x4163c8], 0
mov edi, dword [0x4163b8]
mov ebx, edi
add ebx, 0x1f68
mov dword [0x4163b4], ebx
mov ebx, dword [0x4163c0]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x28]
movzx ecx, byte [esi + ecx]
add ecx, ebx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add ecx, edx
mov dword [0x4163c8], ecx
add edi, 0xfffffb7b
mov dword [0x4163b8], edi
mov eax, ecx
cdq
mov ecx, dword [ebp - 0x2c]
idiv ecx
mov dword [0x4163c0], edx
mov dword [0x4163b4], 0xb5f
mov edi, dword [ebp - 0x28]
mov cl, byte [esi + edi]
mov byte [0x4163c4], cl
mov dword [0x4163b8], 0x148d
mov cl, byte [esi + edx]
mov byte [esi + edi], cl
mov edx, dword [0x4163b4]
add edx, 0xfffffb13
mov dword [0x4163b8], edx
mov cl, byte [0x4163c4]
mov edx, dword [0x4163c0]
mov byte [esi + edx], cl
mov dword [0x4163b4], 0x106c
mov edx, dword [0x4163bc]
add edx, 1
mov dword [0x4163bc], edx
cmp edx, 0x100
mov dword [ebp - 0x24], edx
jl 0x40b06c
jmp 0x40b1ae
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x41f
mov ebx, ecx
mov dword [0x4163b8], eax
mov eax, dword [ebp - 0x18]
mov byte [eax + ecx], bl
mov dword [0x4163b4], 0xaad
mov ecx, dword [0x4163bc]
add ecx, 1
mov dword [0x4163bc], ecx
cmp ecx, 0x100
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
jl 0x40b14e
xor eax, eax
mov dword [0x4163b4], 0xfffff035
mov dword [0x4163bc], 0
mov dword [ebp - 0x24], eax
jmp 0x40b06c
mov dword [0x4163b4], 0x3b1
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40b416
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 1
lea esi, [ebp - 0x24]
mov dword [0x4163b4], 0x15fa
mov dword [0x4163b8], 0xfffffb3e
mov byte [ebp - 0x24], 0x56
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edx
jmp 0x40b46b
mov dword [0x4163b8], 0xb20
mov eax, dword [ebp - 0x38]
add eax, 0x2707
mov dword [ebp - 0x3c], eax
jmp 0x40b56b
mov eax, dword [ebp - 0x34]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x40d1ac]
mov dh, byte [eax + 0x40d17d]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x34], ecx
jne 0x40b46b
mov dword [0x4163b8], 0x10bc
mov dword [0x4163b4], 0x1c28
call fcn.0040b263
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call fcn.0040a5b6
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
je 0x40b56b
mov eax, dword [ebp - 0x40]
mov dword [0x4163b8], 0x6ae
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x4163b4], 0x1d1e
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x38], eax
call fcn.0040a798
xor eax, eax
mov ecx, dword [ebp - 0x38]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x48], ecx
mov dword [0x4163b8], 0x1af1
mov ecx, dword [ebp - 0x38]
mov dword [edx + 0x58], ecx
mov dword [0x4163b4], 0x1860
cmp ecx, 0
mov dword [ebp - 0x3c], eax
jne 0x40b451
mov eax, dword [ebp - 0x3c]
add esp, 0x4c
pop esi
pop ebp
ret
Function at 0x40b73a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [0x4163b8], 0x968
mov dword [ebp - 0x10], eax
call fcn.0040b9e0
xor ecx, ecx
mov edx, eax
mov dword [0x4163b8], 0x15f9
mov esi, dword [eax + 0x3c]
mov dword [0x4163b4], 0xfffff591
mov dword [0x4163b8], 0x58
mov esi, dword [eax + esi + 0x78]
mov dword [0x4163b8], 0xfffffbf7
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x4163b4], 0x38ca
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
jne 0x40b7f5
mov eax, dword [ebp - 0x24]
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x28]
add eax, 1
mov cl, byte [ebp - 0x29]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x2a]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x30], eax
jne 0x40b821
mov al, byte [ebp - 0x2a]
test al, 1
jne 0x40b878
jmp 0x40b84f
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
xor edx, edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov ecx, eax
mov edx, dword [ebp - 0x44]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x29], bh
mov byte [ebp - 0x2a], cl
je 0x40b7e8
jmp 0x40b7c0
xor eax, eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov edx, dword [ebp - 0x40]
add edx, 2
mov esi, dword [ebp - 0x18]
cmp ecx, esi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x38], ecx
jb 0x40b807
jmp 0x40b7b5
mov eax, dword [ebp - 0x40]
movzx ecx, word [eax]
mov dword [0x4163b4], 0x2457
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x4163b8], 0x163f
mov dword [ebp - 0x24], edi
jmp 0x40b7b5
Function at 0x40bb79
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0x93e
xor ebx, ebx
mov dword [0x4163bc], 0
mov dword [0x4163c0], 0
mov dword [0x4163cc], 0
mov dword [0x4163b4], 0x1b7a
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, ebx
mov dword [ebp - 0x14], eax
mov eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
jne 0x40bbf0
mov eax, dword [ebp - 0x28]
mov dword [0x4163b4], eax
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, 0x109d
mov edi, 0x100
mov dword [0x4163b4], 0xcd7
add edx, 1
mov ebx, ecx
add ebx, 1
mov dword [ebp - 0x30], eax
mov eax, edx
cdq
idiv edi
mov dword [0x4163bc], edx
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x24]
movzx ecx, byte [ecx + edx]
mov dword [ebp - 0x38], edx
mov edx, dword [ebp - 0x30]
add ecx, edx
mov eax, ecx
cdq
idiv edi
mov dword [0x4163c0], edx
mov dword [0x4163b4], 0x1a1e
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x38]
mov cl, byte [ecx + edi]
mov byte [0x4163c4], cl
mov dword [0x4163b8], 0xfffff974
mov ecx, dword [ebp - 0x24]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x24]
mov byte [edx + edi], cl
mov cl, byte [0x4163c4]
mov edx, dword [0x4163c0]
mov edi, dword [ebp - 0x24]
mov byte [edi + edx], cl
mov dword [0x4163b4], 0x6cf
mov edx, dword [0x4163bc]
movzx edx, byte [edi + edx]
mov ecx, dword [0x4163c0]
movzx ecx, byte [edi + ecx]
add ecx, edx
mov dword [0x4163b4], 0x257e
and ecx, 0xff
mov dword [0x4163cc], ecx
mov cl, byte [edi + ecx]
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x34]
xor cl, byte [edx + edi]
mov byte [0x4163d0], cl
mov dword [0x4163b8], 0x16d0
mov edx, dword [ebp - 0x20]
mov byte [edx + edi], cl
mov dword [0x4163b4], 0x22d9
mov ecx, dword [ebp - 0x10]
cmp ebx, ecx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x28], esi
je 0x40bbe0
mov eax, dword [0x4163c0]
mov ecx, dword [0x4163bc]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x2c], eax
jmp 0x40bbf0