joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a690
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x46a6c3
push esi
call fcn.0046d790
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x46a6bc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x46a749
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x46a732
mov eax, dword [esi + 8]
test eax, eax
je 0x46a6e7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x46a72e
cmp eax, 2
je 0x46a732
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46a6da
cmp eax, 3
je 0x46a70d
cmp eax, 1
jne 0x46a6da
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x46a6da
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x46a6da
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0046a770
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x46a758
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0046a770
add esp, 4
pop esi
ret

Function at 0x4773d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x477436
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x477436
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x477417
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4777c0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4777f8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x478420
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x478469
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4788e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a44d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00478490
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00478510
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00478510
lea ecx, [esi + 0xc]
call fcn.00493657
lea ecx, [esi + 0x10]
call fcn.00493657
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00479aa0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00479aa0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00479aa0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004936cc
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004936cc
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x495ae6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x495b1e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00493b73
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00493b4b
jmp 0x495b2a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4971d9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49721b
call fcn.0049d1c6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49721b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x497212
xor eax, eax
jmp 0x497223
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00497229
pop edi
pop esi
pop ebx
ret 4

Function at 0x49d6f6
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 0x49d724
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49d742
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049d65c
jmp 0x49d742
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49d742
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049d65c
test edi, edi
mov eax, edi
jne 0x49d72c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403530
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40356e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x403566
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x403570
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x403556
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x403640
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x403671
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x403671
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x403671
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x49ea96
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x1505
jmp 0x49eaaa
imul eax, eax, 0x21
xor eax, edx
inc ecx
inc ecx
movzx edx, word [ecx]
test edx, edx
jne 0x49eaa3
pop ebp
ret 4

Function at 0x4a3e7b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov esi, ecx
cmp dword [esi + 4], 0x40
jae 0x4a3e8f
xor eax, eax
jmp 0x4a3f09
mov eax, dword [esi]
push ebx
push 1
push 0x40
push eax
call fcn.0044d97e
cmp word [eax], 0x5a4d
mov dword [ebp - 4], eax
jne 0x4a3f06
mov ebx, dword [eax + 0x3c]
test ebx, ebx
je 0x4a3f06
mov byte [ebp - 0x10], 0
push dword [ebp - 0x10]
mov edi, 0xf8
mov eax, edi
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
mov byte [ebp - 8], 0
call fcn.004a3e49
cmp byte [ebp - 0x10], 0
jne 0x4a3f06
mov eax, dword [esi + 4]
cmp eax, dword [ebp - 0x14]
jb 0x4a3f06
mov eax, dword [esi]
push 1
add eax, ebx
push edi
push eax
call fcn.0044d97e
mov edi, eax
cmp dword [edi], 0x4550
jne 0x4a3f06
movzx eax, word [edi + 0x18]
cmp ax, 0x10b
jne 0x4a3f0d
cmp word [edi + 0x14], 0xe0
je 0x4a3f4f
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret
cmp ax, 0x20b
jne 0x4a3f06
cmp word [edi + 0x14], 0xf0
jne 0x4a3f06
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x3c]
mov byte [ebp - 8], 0
push dword [ebp - 8]
mov eax, pe_nt_image_headers32
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x10], 0
call fcn.004a3e49
cmp byte [ebp - 8], 0
jne 0x4a3f06
mov eax, dword [esi + 4]
cmp eax, dword [ebp - 0xc]
jb 0x4a3f06
push 1
push edi
call fcn.0044e481
mov dword [esi + 0xc], eax
xor eax, eax
inc eax
jmp 0x4a3f08
Function at 0x4a6564
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x6bdbe080]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x27
push esi
push edi
lea esi, [ebp + 8]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x18]
jae 0x4a6590
xor eax, eax
jmp 0x4a6637
push 4
lea eax, [esi + 2]
push eax
push dword [ebp - 0x14]
mov word [esi], 0x7b
call fcn.004a652f
test eax, eax
jl 0x4a6589
push 2
lea eax, [esi + 0x14]
push eax
movzx eax, word [ebp - 0x10]
push eax
mov word [esi + 0x12], 0x2d
call fcn.004a652f
test eax, eax
jl 0x4a6589
push 2
lea eax, [esi + 0x1e]
push eax
movzx eax, word [ebp - 0xe]
push eax
mov word [esi + 0x1c], 0x2d
call fcn.004a652f
test eax, eax
jl 0x4a6589
push ebx
mov word [esi + 0x26], 0x2d
xor edi, edi
lea ebx, [esi + 0x28]
movzx eax, byte [ebp + edi - 0xc]
push 1
push ebx
push eax
call fcn.004a652f
test eax, eax
jl 0x4a6647
inc edi
add ebx, 4
cmp edi, 2
jl 0x4a65e7
mov word [esi + 0x30], 0x2d
xor ebx, ebx
lea edi, [esi + 0x32]
movzx eax, byte [ebp + ebx - 0xa]
push 1
push edi
push eax
call fcn.004a652f
test eax, eax
jl 0x4a6647
inc ebx
add edi, 4
cmp ebx, 6
jl 0x4a660d
and word [esi + 0x4c], 0
push 0x27
mov word [esi + 0x4a], 0x7d
pop eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044f2bb
leave
ret 0x18
xor eax, eax
jmp 0x4a6636

Function at 0x4a81b7
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, 0x1505
jmp 0x4a81d7
push eax
call fcn.004abed2
imul edi, edi, 0x21
movzx eax, ax
xor edi, eax
inc esi
pop ecx
inc esi
movzx eax, word [esi]
test ax, ax
jne 0x4a81c6
mov eax, edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x4a81e7
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, 0x1505
jmp 0x4a8211
mov ecx, dword [ebp + 0xc]
dec dword [ebp + 0xc]
test ecx, ecx
je 0x4a8219
push eax
call fcn.004abed2
imul edi, edi, 0x21
movzx eax, ax
xor edi, eax
inc esi
pop ecx
inc esi
movzx eax, word [esi]
test ax, ax
jne 0x4a81f6
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x4b6c6f
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x1505
jmp 0x4b6c82
imul eax, eax, 0x21
xor eax, edx
inc ecx
movsx edx, byte [ecx]
test edx, edx
jne 0x4b6c7c
pop ebp
ret 4

Function at 0x4c52b7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
movzx esi, byte [ebp + 8]
xor esi, 0x596d7e
imul esi, esi, 0x21
xor esi, eax
cmp ecx, 1
jae 0x4c52f1
push ebx
inc ecx
push edi
mov dword [ebp + 8], ecx
mov edi, edx
lea ebx, [eax + 1]
push dword [edi]
push dword [ebp + 8]
call fcn.004c566f
imul esi, esi, 0x21
xor esi, eax
add edi, 4
dec ebx
jne 0x4c52da
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x4c574f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor esi, 0x2b5a5
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x4c579e
imul esi, esi, 0x21
mov eax, dword [ebp + 8]
xor esi, ebx
cmp eax, 2
jae 0x4c579e
push edi
xor edi, edi
test ebx, ebx
jbe 0x4c579d
inc eax
mov dword [ebp + 0xc], eax
push edi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp + 0x10]
call fcn.004b4acc
push dword [eax]
push dword [ebp + 0xc]
call fcn.004c566f
imul esi, esi, 0x21
xor esi, eax
inc edi
cmp edi, ebx
jb 0x4c577c
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x4c71c9
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x1505
jmp 0x4c71dc
imul eax, eax, 0x21
inc ecx
xor eax, edx
movsx edx, byte [ecx]
test edx, edx
jne 0x4c71d6
mov ecx, dword [ebp + 0xc]
jmp 0x4c71ee
imul eax, eax, 0x21
inc ecx
xor eax, edx
movsx edx, byte [ecx]
test edx, edx
jne 0x4c71e8
pop ebp
ret 8

Function at 0x4d7396
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add edx, ecx
cmp ecx, edx
mov eax, 0x1505
jae 0x4d73b9
push esi
movzx esi, byte [ecx]
imul eax, eax, 0x21
xor eax, esi
inc ecx
cmp ecx, edx
jb 0x4d73ab
pop esi
pop ebp
ret 8
Function at 0x407f00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c858
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x5c9440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0045d8b6
mov edi, eax
add esp, 4
test edi, edi
je 0x407fa3
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00433b3c
add esp, 4
mov dword [edi + 4], eax
jmp 0x407fa5
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.00403980
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx edi, ax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x408005
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x408005
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov word [esi + 0x40], di
jne 0x408029
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x40804b
cmp byte [ebp + 0xc], 0
je 0x408038
push esi
call fcn.004340c3
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x408057
mov esi, str.ios_base::badbit_set
jmp 0x408067
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.00409ae0
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.004045e0
push 0x5b824c
lea eax, [ebp - 0x30]
push eax
call fcn.00548879
int3
Function at 0x40aa10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57caf2
mov eax, dword fs:[0]
push eax
sub esp, 0x62c
mov eax, dword [0x5c9440]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x638], esi
mov dword [ebp - 0x634], 0
mov dword [ebp - 0x630], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [ebp - 0x62c], esi
mov word [esi], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x628]
push eax
mov dword [ebp - 0x634], 1
call fcn.005497a0
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.005497a0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005497a0
add esp, 0x24
lea eax, [ebp - 0x628]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x40abb0
xor ebx, ebx
lea edi, [ebp - 0x628]
nop dword [eax]
xor eax, eax
mov word [edi + 4], ax
lea eax, [ebp - 0x420]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40ab48
lea esi, [ebp - 0x420]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40ab06
sub esi, ecx
mov ecx, dword [ebp - 0x630]
sar esi, 1
mov eax, ecx
cmp dword [ecx + 0x14], 8
jb 0x40ab25
mov eax, dword [ecx]
push esi
lea ecx, [ebp - 0x420]
push ecx
push eax
call fcn.00556254
add esp, 0xc
test eax, eax
je 0x40ab50
add ebx, 4
add edi, 8
cmp ebx, 0x104
jb 0x40aae0
mov eax, dword [ebp - 0x62c]
jmp 0x40abb2
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x630]
cmp dword [eax + 0x14], 8
jb 0x40ab6c
mov eax, dword [eax]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ab86
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x62c]
push eax
call fcn.00407040
mov eax, dword [ebp - 0x62c]
jmp 0x40abb2
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045db8e
mov esp, ebp
pop ebp
ret
Function at 0x40bbe0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov edx, ecx
mov ebx, dword [ebp + 8]
movzx eax, byte [edi + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 9]
xor ecx, eax
movzx eax, byte [edi + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [edx + 0x18]
and ecx, eax
lea esi, [ecx*8]
mov ecx, dword [edx + 0xc]
add ecx, esi
mov eax, dword [ecx]
cmp dword [ecx + 4], edi
jne 0x40bc56
cmp eax, edi
jne 0x40bc4e
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 4]
mov dword [esi + ecx + 4], eax
jmp 0x40bc5e
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x40bc5e
cmp eax, edi
jne 0x40bc5e
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 0x10]
dec dword [edx + 8]
call fcn.0040bf50
push 0x50
push edi
call fcn.0045d8e6
add esp, 8
mov dword [ebx], esi
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40ea30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d220
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5c9440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0045d8b6
mov edi, eax
add esp, 4
test edi, edi
je 0x40eae2
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00433b3c
mov dword [edi + 4], eax
add esp, 4
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40ecb0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov ebx, dword [ebp + 8]
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0x18]
xor ecx, eax
movzx eax, byte [edi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
and edx, eax
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 4]
mov ecx, dword [eax + edx*8]
add edx, edx
mov edi, dword [eax + edx*4]
lea edx, [eax + edx*4]
mov dword [ebp + 8], edi
mov edi, dword [ebp + 0xc]
nop dword [eax]
cmp dword [ebp + 8], esi
jne 0x40ed19
mov eax, esi
jmp 0x40ed1e
mov eax, dword [edx + 4]
mov eax, dword [eax]
cmp ecx, eax
je 0x40ed38
mov eax, dword [ecx + 8]
cmp eax, dword [edi]
je 0x40ed2d
mov ecx, dword [ecx]
jmp 0x40ed10
pop edi
pop esi
mov dword [ebx], ecx
mov eax, ebx
pop ebx
pop ebp
ret 8
pop edi
mov dword [ebx], esi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40f490
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.0045ddb0
mov eax, dword [0x5c9440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0xc]
push 0x4000
push 0
push eax
call fcn.005497a0
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x40f586
test edi, edi
je 0x40f586
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40f586
cmp eax, 0x3fff
ja 0x40f586
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40f586
lea eax, [ebp - 0x400c]
push eax
lea eax, [ebp - 0x4010]
push eax
push 0x58ad94
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40f586
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.005497a0
mov ecx, dword [ebp - 0x4010]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
lea eax, [esi - 1]
push eax
push edi
call fcn.00410210
add esp, 0x28
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045db8e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0045db8e
mov esp, ebp
pop ebp
ret
Function at 0x4102a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5c9440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x410327
test ebx, ebx
je 0x410327
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x410327
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x410327
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x410321
push esi
push ebx
push edi
call fcn.00548ca0
add esp, 0xc
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x410321
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045db8e
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045db8e
mov esp, ebp
pop ebp
ret

Function at 0x410340
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x410399
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x410399
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x41038a
cmp esi, edx
jae 0x410399
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x410378
cmp esi, edx
jae 0x410399
cmp word [esi], 0
je 0x410399
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret