joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aa87d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5ea2f0
cmp edx, dword [eax]
je 0x4aa89f
add eax, 8
inc ecx
cmp eax, 0x5ea380
jl 0x4aa890
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5ea2f0]
jne 0x4aa9cd
mov eax, dword [0x74f188]
cmp eax, 1
je 0x4aa9a7
test eax, eax
jne 0x4aa8d0
cmp dword [0x5e7c7c], 1
je 0x4aa9a7
cmp edx, 0xfc
je 0x4aa9cd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4aa907
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004ab350
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004a6e50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4aa94a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004a6e50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c39e4
push edi
call fcn.004a2bb0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004ab350
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004ab360
lea eax, [ebp - 0xa0]
push 0x4c39c4
push eax
call fcn.004ab360
push dword [esi + 0x5ea2f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004ab360
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004af2f6
add esp, 0x2c
pop edi
jmp 0x4aa9cd
lea eax, [ebp + 8]
lea esi, [esi + 0x5ea2f4]
push 0
push eax
push dword [esi]
call fcn.004a6e50
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 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x40152b
Capabilities:
Reference http user-agent string

Disassembly:
push 8
push 0x50
mov eax, 0x40542d
call fcn.004052c5
mov esi, ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_111.0.0.0_Safari_537.36
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x2c], esi
call fcn.00403097
xor edi, edi
lea ecx, [ebp - 0x48]
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__rv:61.0__Gecko_20100101_Firefox_61.0
mov dword [ebp - 4], edi
call fcn.00403097
mov dword [ebp - 4], 1
mov ecx, esi
push 2
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call fcn.00403e65
mov dword [ebp - 0x30], esi
mov esi, dword [esi]
lea edi, [ebp - 0x20]
xor eax, eax
lea ecx, [ebp - 0x60]
stosd dword es:[edi], eax
mov dword [ebp - 0x24], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 3
push ecx
mov ecx, esi
call fcn.004030d6
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x30]
add ecx, 0x18
add esi, 0x18
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], ecx
cmp ecx, eax
jne 0x40159e
mov dword [edi + 4], esi
push 0x403092
push 2
push 0x18
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 5
push eax
call fcn.004043a5
lea ecx, [edi + 0xc]
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 0xf
push eax
mov byte [ecx], al
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
call fcn.004052a3
ret
Function at 0x401c00
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push 0x94
mov eax, 0x40553c
call fcn.00405237
mov ecx, dword [ebp + 8]
lea edi, [ebp - 0x78]
mov esi, dword [ebp + 0xc]
xor eax, eax
stosd dword es:[edi], eax
xor edx, edx
mov dword [ebp - 0x98], ecx
mov ebx, edx
mov dword [ebp - 0xa0], esi
mov byte [ebp - 0x91], dl
stosd dword es:[edi], eax
mov dword [ebp - 0x60], 0x40
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], dl
push edx
lea eax, [ebp - 0x60]
mov dword [ebp - 4], edx
push eax
lea eax, [ebp - 0x54]
push eax
push 5
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x401c9b
push 0xa
lea eax, [ebp - 0x54]
mov byte [ebp - 0x91], 1
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
mov ebx, eax
add esp, 0xc
cmp dword [ebp - 0x64], ebx
jae 0x401c9b
mov esi, dword [ebp - 0x68]
mov ecx, ebx
push dword [ebp - 0x5c]
sub ecx, esi
push ecx
lea ecx, [ebp - 0x78]
call fcn.004039a9
mov dword [ebp - 0x68], esi
mov esi, dword [ebp - 0xa0]
xor edi, edi
mov dword [ebp - 0x9c], edi
jmp 0x401d1f
cmp dword [ebp - 0x58], 0
jbe 0x401d58
xor eax, eax
lea edi, [ebp - 0x84]
stosd dword es:[edi], eax
push ecx
push dword [ebp - 0x58]
lea ecx, [ebp - 0x84]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00402f3b
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x58]
push dword [ebp - 0x84]
push dword [ebp - 0x98]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, eax
test edi, edi
je 0x401d3f
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x401d3f
mov edi, dword [ebp - 0x9c]
push ecx
push dword [ebp - 0x84]
add edi, ecx
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x9c], edi
call fcn.0040315f
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0
call fcn.00402f1c
push 0
push 0
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x98]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x401ca5
xor bl, bl
jmp 0x401db1
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0
call fcn.00402f1c
test edi, edi
je 0x401d3b
mov edi, dword [ebp - 0x9c]
cmp byte [ebp - 0x91], 0
je 0x401d65
cmp edi, ebx
jne 0x401d3b
test esi, esi
je 0x401dae
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00401f94
mov ebx, eax
cmp esi, ebx
je 0x401da3
mov ecx, esi
call fcn.004032ef
mov edi, dword [ebp - 0xa0]
mov esi, ebx
push 6
pop ecx
rep movsd dword es:[edi], dword [esi]
and dword [ebx + 0x10], 0
xor eax, eax
mov dword [ebx + 0x14], 7
mov word [ebx], ax
lea ecx, [ebp - 0x90]
call fcn.004032ef
xor ebx, ebx
inc ebx
mov edx, dword [ebp - 0x64]
cmp edx, 0x10
jb 0x401dc2
mov ecx, dword [ebp - 0x78]
inc edx
call fcn.00403d6b
mov al, bl
call fcn.004051f5
ret 8
Function at 0x401dcc
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push 0x84
mov eax, 0x40557e
call fcn.00405237
mov ecx, dword [ebp + 8]
lea edi, [ebp - 0x74]
mov ebx, dword [ebp + 0xc]
xor eax, eax
stosd dword es:[edi], eax
xor edx, edx
mov dword [ebp - 0x90], ecx
mov esi, edx
mov byte [ebp - 0x85], dl
mov dword [ebp - 0x78], 0x40
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], dl
push edx
lea eax, [ebp - 0x78]
mov dword [ebp - 4], edx
push eax
lea eax, [ebp - 0x54]
push eax
push 5
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x401e67
push 0xa
lea eax, [ebp - 0x54]
mov byte [ebp - 0x85], 1
push esi
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x8c], esi
cmp dword [ebp - 0x60], esi
jae 0x401e67
mov esi, dword [ebp - 0x64]
mov ecx, eax
push dword [ebp - 0x5c]
sub ecx, esi
push ecx
lea ecx, [ebp - 0x74]
call fcn.004039a9
mov dword [ebp - 0x64], esi
mov esi, dword [ebp - 0x8c]
xor edi, edi
mov dword [ebp - 0x8c], edi
jmp 0x401eeb
cmp dword [ebp - 0x58], 0
jbe 0x401f24
xor eax, eax
lea edi, [ebp - 0x84]
stosd dword es:[edi], eax
push ecx
push dword [ebp - 0x58]
lea ecx, [ebp - 0x84]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00402f3b
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x58]
push dword [ebp - 0x84]
push dword [ebp - 0x90]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, eax
test edi, edi
je 0x401f0b
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x401f0b
mov edi, dword [ebp - 0x8c]
push ecx
push dword [ebp - 0x84]
add edi, ecx
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x8c], edi
call fcn.0040315f
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0
call fcn.00402f1c
push 0
push 0
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x90]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x401e71
xor bl, bl
jmp 0x401f6b
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0
call fcn.00402f1c
test edi, edi
je 0x401f07
mov edi, dword [ebp - 0x8c]
cmp byte [ebp - 0x85], 0
je 0x401f31
cmp edi, esi
jne 0x401f07
test ebx, ebx
je 0x401f68
lea eax, [ebp - 0x74]
cmp ebx, eax
je 0x401f68
cmp dword [ebp - 0x60], 0x10
mov esi, dword [ebp - 0x64]
cmovae eax, dword [ebp - 0x74]
cmp esi, dword [ebx + 0x14]
ja 0x401f86
cmp dword [ebx + 0x14], 0x10
mov edi, ebx
jb 0x401f56
mov edi, dword [ebx]
push esi
push eax
push edi
mov dword [ebx + 0x10], esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + edi], 0
xor ebx, ebx
inc ebx
mov edx, dword [ebp - 0x60]
cmp edx, 0x10
jb 0x401f7c
mov ecx, dword [ebp - 0x74]
inc edx
call fcn.00403d6b
mov al, bl
call fcn.004051f5
ret 8
push eax
push dword [ebp - 0x5c]
mov ecx, ebx
push esi
call fcn.00403cb1
jmp 0x401f68
Function at 0x402005
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x409008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [0x409688]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
cmp edi, eax
je 0x402041
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x402038
mov eax, dword [eax]
push ecx
push eax
mov ecx, edi
call fcn.0040331a
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x408], 0x400
jb 0x402053
mov esi, dword [esi]
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x404]
push eax
push 0
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x402081
lea eax, [ebp - 0x404]
mov ecx, edi
push eax
call fcn.0040306b
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404367
leave
ret

Function at 0x402092
Capabilities:
Get graphical window text
Terminate process

Disassembly:
push 0x34
mov eax, 0x4055c5
call fcn.00405237
and dword [ebp - 4], 0
push 0
call dword [sym.imp.USER32.dll_GetTopWindow]
jmp 0x4021a9
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4021a0
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, eax
test ebx, ebx
je 0x4021a0
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
push ebx
push ecx
lea ecx, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
call fcn.004038b0
mov byte [ebp - 4], 1
lea eax, [ebx + 1]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push eax
cmovae ecx, dword [ebp - 0x28]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x4065a8
lea ecx, [ebp - 0x40]
call fcn.00403097
mov byte [ebp - 4], 2
lea edi, [ebp + 8]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
sbb al, al
cmp dword [ebp + 0x1c], 8
cmovae edi, dword [ebp + 8]
add al, 1
mov eax, dword [ebp + 0x18]
cmovne ecx, dword [ebp + 8]
lea ebx, [ecx + eax*2]
jmp 0x402188
movzx eax, word [edi]
cmp eax, 0x7c
jne 0x40217c
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov edx, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push eax
push ecx
call fcn.0040377e
add esp, 0xc
push 0
cmp eax, 0xffffffff
jne 0x4021c1
push 0x4065a8
lea ecx, [ebp - 0x40]
call fcn.0040331a
jmp 0x402185
push eax
lea ecx, [ebp - 0x40]
call fcn.0040302a
add edi, 2
cmp edi, ebx
jne 0x402138
lea ecx, [ebp - 0x40]
call fcn.004032ef
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.004032ef
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x4020af
lea ecx, [ebp + 8]
call fcn.004032ef
call fcn.004051f5
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x404241
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0040421d
pop esi
leave
ret 8

Function at 0x404e9c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404edb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404edb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404edb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404edb
cmp dword [ecx + 0x74], 0xe
jbe 0x404edb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4013c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4533db
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x474850]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x28], 7
mov dword [esi + 0x24], 0
mov word [esi + 0x14], ax
push ecx
push dword [ebp + 0x14]
mov dword [ebp - 4], eax
push ecx
push dword [ebp + 0xc]
mov dword [esi + 0x2c], eax
push dword [ebp + 8]
mov byte [esi + 0x30], al
call fcn.004014e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x401990
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4535b0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x474850]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x30], 0
je 0x401b07
cmp dword [esi + 0x10], 0
je 0x401b07
lea ecx, [ebp - 0x5c]
call fcn.00401100
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x4019e7
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x44]
call fcn.00402b00
mov byte [ebp - 4], 2
cmp dword [ebp - 0x48], 8
jb 0x401a05
push dword [ebp - 0x5c]
call fcn.00436f9f
add esp, 4
push 9
xor eax, eax
push 0x460374
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
call fcn.00401bc0
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x401a34
lea eax, [ebp - 0x44]
push eax
call dword [0x459230]
test eax, eax
je 0x401af6
push 8
push eax
call dword [0x459238]
mov edi, eax
test edi, edi
je 0x401af6
push ecx
lea ecx, [ebp - 0x68]
call section..text
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x401a71
mov eax, dword [ecx]
mov dword [ebp - 0x64], eax
jmp 0x401a78
mov dword [ebp - 0x64], 0
lea eax, [ebp - 0x5d]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x6c], 0
mov byte [ebp - 0x5d], 0
call edi
test eax, eax
js 0x401aee
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 4
push dword [ebp - 0x64]
lea ecx, [ebp - 0x2c]
call fcn.00401b70
push dword [ebp - 0x64]
call dword [0x4592cc]
mov ecx, dword [ebp - 0x6c]
call fcn.00401940
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x2c]
jae 0x401ad8
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x5d]
push ecx
push eax
lea eax, [ebp - 0x70]
push eax
mov eax, dword [esi + 0x10]
call eax
lea ecx, [ebp - 0x2c]
call fcn.00402c30
lea ecx, [ebp - 0x68]
call fcn.004010a0
cmp dword [ebp - 0x30], 8
jb 0x401b07
push dword [ebp - 0x44]
call fcn.00436f9f
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00436fa4
mov esp, ebp
pop ebp
ret 4
Function at 0x403a70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
push ebx
push esi
push edi
jmp 0x403a80
mov edx, eax
and edx, 1
dec edx
not edx
and edx, 0xedb88320
mov ecx, eax
shr ecx, 1
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr edx, 1
xor ecx, edx
mov edx, ecx
and edx, 1
dec edx
shr ecx, 1
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr edx, 1
xor ecx, edx
mov edx, ecx
and edx, 1
dec edx
shr ecx, 1
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr edx, 1
xor ecx, edx
mov edx, ecx
and edx, 1
dec edx
shr ecx, 1
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr edx, 1
xor ecx, edx
mov dword [eax*4 + 0x4786a0], ecx
inc eax
cmp eax, 0x100
jb 0x403a80
cmp eax, 0x800
jae 0x403b53
lea esp, [esp]
mov edx, dword [eax*4 + 0x4782a0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x4786a0]
inc eax
mov dword [eax*4 + 0x47869c], edx
cmp eax, 0x800
jb 0x403b30
lea ecx, [ebp - 0x20]
mov dword [0x4775a4], 0x403c10
call fcn.00407890
test eax, eax
je 0x403c08
mov edi, dword [ebp - 0x10]
mov esi, edi
shr esi, 8
shr edi, 4
and esi, 0xff00f
and edi, 0xf00f
xor ecx, ecx
mov eax, 0x475760
xor edx, edx
lea ecx, [ecx]
mov ebx, dword [ebp - 0x1c]
cmp dword [eax - 8], ebx
jne 0x403ba7
mov ebx, dword [ebp - 0x18]
cmp dword [eax - 4], ebx
mov ebx, dword [ebp - 0x14]
jne 0x403ba7
cmp dword [eax], ebx
je 0x403bb6
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x403b90
or ecx, 0xffffffff
sub ecx, 0
je 0x403bef
dec ecx
je 0x403bde
dec ecx
jne 0x403c08
cmp esi, 6
jb 0x403c08
jne 0x403bfe
cmp edi, 0xf
jb 0x403c08
mov dword [0x4775a4], 0x403cb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 5
jb 0x403c08
jne 0x403bfe
cmp edi, 6
jb 0x403c08
cmp edi, 0xa
jmp 0x403bfc
cmp esi, 6
jb 0x403c08
jne 0x403bfe
cmp edi, 0x100c
je 0x403c08
mov dword [0x4775a4], 0x403cb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4076f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push ebx
mov eax, dword [eax]
push esi
mov esi, ecx
xor ebx, ebx
and eax, 7
mov dword [ebp - 4], esi
cmp edx, 5
jae 0x407714
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 8], 5
push edi
add edx, 0xfffffffc
or edi, 0xffffffff
add edx, esi
mov dword [ebp - 8], edx
add esi, ebx
mov dword [ebp - 0xc], esi
cmp esi, edx
jae 0x407742
lea ecx, [ecx]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x40773f
inc esi
cmp esi, edx
jb 0x407730
mov dword [ebp - 0xc], esi
mov ebx, esi
sub ebx, dword [ebp - 4]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x407867
cmp ecx, 3
jbe 0x40775c
xor eax, eax
jmp 0x40779a
dec ecx
shl eax, cl
and eax, 7
je 0x40779a
movzx ecx, byte [eax + 0x4604b0]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x4604a8], 0
mov cl, byte [edx + 4]
je 0x407784
test cl, cl
je 0x407784
cmp cl, 0xff
jne 0x407797
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 4]
and eax, 3
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x407724
mov edx, dword [ebp - 8]
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x18], edi
test cl, cl
je 0x4077bc
cmp cl, 0xff
je 0x4077bc
mov esi, dword [ebp - 4]
and eax, 3
add eax, eax
or eax, 1
inc ebx
jmp 0x407724
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 8]
shl edi, 8
or edi, ecx
lea ecx, [ecx]
cmp dword [ebp + 0x10], 0
je 0x4077ed
lea edx, [edi + ebx]
add edx, esi
jmp 0x4077f3
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x407831
movzx edi, byte [eax + 0x4604b0]
shl edi, 3
mov ecx, 0x18
sub ecx, edi
mov dword [ebp - 0x14], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 0x10], edi
test cl, cl
je 0x40781d
cmp cl, 0xff
jne 0x407831
mov ecx, 0x20
sub ecx, dword [ebp - 0x14]
mov edi, 1
shl edi, cl
dec edi
xor edi, edx
jmp 0x4077e0
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
mov ecx, edx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
shr ecx, 8
mov byte [esi + 1], dl
mov edx, dword [ebp - 8]
mov byte [esi + 2], cl
mov esi, dword [ebp - 4]
add ebx, 5
jmp 0x407724
pop edi
cmp ecx, 3
jbe 0x40787c
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx], eax
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0xc]
pop esi
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b030
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
test eax, eax
jne 0x40b044
xor al, al
pop edi
pop ebp
ret 4
mov ecx, 0x5a4d
push esi
cmp word [eax], cx
jne 0x40b0a7
mov ecx, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
jne 0x40b0a7
mov ecx, dword [ecx + eax + 0x98]
test ecx, ecx
je 0x40b0a7
lea esi, [ecx + eax]
test esi, esi
je 0x40b0a7
lea eax, [esi + 8]
test eax, eax
je 0x40b0a7
cmp byte [eax], 0x30
lea edx, [eax + 1]
jne 0x40b0a7
mov al, byte [edx]
cmp al, 0x82
jne 0x40b0a7
movzx ecx, byte [edx + 1]
movzx eax, byte [edx + 2]
shl ecx, 8
add eax, 0x13
add eax, ecx
and eax, 0xffffff8
je 0x40b0a7
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], eax
pop esi
mov al, 1
pop edi
pop ebp
ret 4
pop esi
xor al, al
pop edi
pop ebp
ret 4