joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57fe4b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0056f0c7
xor ebx, ebx
cmp dword [0x5f8628], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x57ff21
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x580001
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x580001
push eax
call fcn.0056f059
mov dword [esp], 0x5a92b8
push edi
mov dword [0x5f8628], eax
call esi
push eax
call fcn.0056f059
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5f862c], eax
call esi
push eax
call fcn.0056f059
mov dword [0x5f8630], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00570d18
test eax, eax
pop ecx
pop ecx
je 0x57feef
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00565e87
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x57ff21
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0056f059
cmp eax, ebx
pop ecx
mov dword [0x5f8638], eax
je 0x57ff21
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0056f059
pop ecx
mov dword [0x5f8634], eax
mov eax, dword [0x5f8634]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x57ffa6
cmp dword [0x5f8638], ecx
je 0x57ffa6
push eax
call fcn.0056f0d0
push dword [0x5f8638]
mov esi, eax
call fcn.0056f0d0
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x57ffa6
cmp edi, ebx
je 0x57ffa6
call esi
cmp eax, ebx
je 0x57ff73
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x57ff73
test byte [ebp - 0x18], 1
jne 0x57ffa6
lea eax, [ebp - 0x10]
push eax
call fcn.00570d4f
test eax, eax
pop ecx
je 0x57ff8e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00565e87
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x57ff9d
or dword [ebp + 0x10], 0x200000
jmp 0x57ffe1
or dword [ebp + 0x10], 0x40000
jmp 0x57ffe1
mov eax, dword [0x5f862c]
cmp eax, dword [ebp - 8]
je 0x57ffe1
push eax
call fcn.0056f0d0
cmp eax, ebx
pop ecx
je 0x57ffe1
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x57ffe1
mov eax, dword [0x5f8630]
cmp eax, dword [ebp - 8]
je 0x57ffe1
push eax
call fcn.0056f0d0
cmp eax, ebx
pop ecx
je 0x57ffe1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5f8628]
call fcn.0056f0d0
cmp eax, ebx
pop ecx
je 0x580001
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x580003
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d190
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4958e0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4b600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0048b7e0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0040d0c0
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.004012a0
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.004014d0
mov ecx, dword [ebp - 0x10]
call fcn.0040d440
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x4117a0
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4b600c]
xor eax, ebp
mov dword [ebp + 0x194], eax
push 0x208
push 0
lea eax, [ebp - 0x74]
push eax
call fcn.0043e930
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x74]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea edx, [ebp - 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0xffffffff
je 0x411866
mov eax, dword [ebp + 0x1a4]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
call fcn.00494230
mov dword [ebp - 0x80], 0
mov edx, dword [ebp + 0x1a4]
mov eax, dword [edx]
push eax
call fcn.0043ae11
add esp, 4
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp + 0x1a0]
mov edx, dword [ebp - 0x7c]
mov dword [ecx], edx
push 0
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp + 0x1a4]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0x1a0]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x194]
xor ecx, ebp
call fcn.0043ace1
add ebp, 0x198
mov esp, ebp
pop ebp
ret 8
Function at 0x42ba00
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496ce0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4b600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0043ae8e
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0043cd73
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x10], ecx
mov dword [edi + 0xc], eax
add esp, 8
mov ebx, dword [ebp + 8]
lea eax, [edi + 0x14]
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], esi
mov dword [ecx], 0
mov ecx, ebx
mov eax, dword [edi + 0x20]
not ecx
and ecx, 1
shl ecx, 2
mov edx, ecx
mov dword [eax], 0
or edx, 2
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, ebx
and al, 2
mov dword [edi], 0x4a98ac
mov eax, ebx
mov dword [edi + 0x38], 0
cmovne edx, ecx
mov ecx, edx
or ecx, 8
and al, 8
cmove ecx, edx
mov eax, ecx
or eax, 0x10
and bl, 4
cmove eax, ecx
lea ecx, [edi + 0x40]
mov dword [edi + 0x3c], eax
call fcn.00402690
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42cc70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496e70
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4b600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0043ae8e
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0043cd73
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44be4f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a1114
push 0x4a110c
push str.FlsAlloc
push 0x1e
call fcn.0044bcd9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44be83
push dword [ebp + 8]
mov ecx, esi
call dword [0x49b334]
call esi
jmp 0x44be89
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x44becd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a1124
push 0x4a111c
push str.FlsGetValue
push 0x20
call fcn.0044bcd9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44bf04
push dword [ebp + 8]
mov ecx, esi
call dword [0x49b334]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x44edb7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x44ee54
push ebx
push esi
call fcn.0044ed80
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0044b583
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x44ee01
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44ee53
push edi
push eax
call fcn.0044b98d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x44ee21
call fcn.0044b87a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44ee52
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044b583
add esp, 0x20
test eax, eax
jne 0x44ee40
push edi
call fcn.0044b87a
jmp 0x44ee48
push ebx
call fcn.0044b87a
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x452fc6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00452e37

Function at 0x4533c0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00459290
mov eax, dword [0x4b600c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0044d06a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x453402
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x45355e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004592c0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4b8fb8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004543b9
mov ecx, dword [esi*4 + 0x4b8fb8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x453557
cmp eax, dword [edi + ecx + 0x24]
jne 0x453557
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x453557
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004543b9
add esp, 0x14
test edx, edx
jl 0x453557
jg 0x4534cd
test eax, eax
jb 0x453557
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x453557
jl 0x4534e7
cmp dword [ebp - 0x1008], eax
ja 0x453557
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x453505
test ebx, ebx
je 0x45353e
cmp ecx, edi
jae 0x45353e
mov al, byte [ecx]
cmp al, 0xd
jne 0x45351f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x45352b
cmp byte [ecx + 1], 0xa
jne 0x45352b
inc ecx
jmp 0x45352b
movzx eax, al
movsx eax, byte [eax + 0x4b67f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x453505
cmp edx, ebx
jne 0x453505
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x45355c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043ace1
leave
ret
Function at 0x453855
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4b8fb8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x453895
cmp byte [ebx], 0xa
jne 0x453895
or byte [eax + edi + 0x28], 4
jmp 0x45389a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x453998
mov al, byte [edx]
cmp al, 0x1a
je 0x45397a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4538c9
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4538ee
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4538f8
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4538ab
jmp 0x453998
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x453975
cmp dword [ebp - 0xc], 0
je 0x453975
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4b8fb8]
test byte [eax + edi + 0x28], 0x48
je 0x45394f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x45393a
mov byte [esi], dl
jmp 0x45394b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4b8fb8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x453998
cmp byte [ebp - 1], 0xa
jne 0x45395e
cmp esi, ebx
jne 0x45395e
mov byte [esi], 0xa
jmp 0x453997
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004543d7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x453998
mov byte [esi], 0xd
jmp 0x453997
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4b8fb8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x453994
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x453998
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4539a1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4b8fb8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4539e4
cmp word [esi], dx
jne 0x4539e4
or byte [edi + eax + 0x28], 4
jmp 0x4539e9
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x453b3c
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x453b1c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x453a2b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x453a61
cmp eax, edx
jae 0x453a6d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x453a03
jmp 0x453b3c
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x453b18
cmp dword [ebp - 0x14], 0
je 0x453b18
mov eax, dword [ebx*4 + 0x4b8fb8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x453af0
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x453ab9
mov word [esi], cx
jmp 0x453aec
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4b8fb8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4b8fb8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4b8fb8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x453b3c
pop ebx
cmp word [ebp - 4], bx
jne 0x453b01
cmp esi, dword [ebp + 0xc]
jne 0x453b01
mov word [esi], bx
jmp 0x453b39
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004543d7
add esp, 0x10
cmp word [ebp - 4], bx
je 0x453b3c
push 0xd
jmp 0x453b35
mov ecx, dword [ebx*4 + 0x4b8fb8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x453b33
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x453b3c
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45a2c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movzx edx, word [eax + 0x14]
lea eax, [ecx + edx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x45a2f6
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
add edx, 0x28
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
movzx edx, word [ecx + 6]
cmp dword [ebp - 8], edx
jge 0x45a404
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
jne 0x45a319
jmp 0x45a2e4
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
and eax, 0x20000000
je 0x45a32f
mov dword [ebp - 0x10], 1
jmp 0x45a336
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
and eax, 0x40000000
je 0x45a352
mov dword [ebp - 0x14], 1
jmp 0x45a359
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
and eax, 0x80000000
je 0x45a375
mov dword [ebp - 0x18], 1
jmp 0x45a37c
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
and eax, 0x20
je 0x45a39b
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], 1
mov ecx, dword [ebp - 0x1c]
shl ecx, 4
mov edx, dword [ebp - 0x20]
lea eax, [ecx + edx*8 + 0x4b6ab8]
mov ecx, dword [ebp - 0x28]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x4000000
je 0x45a3ce
mov edx, dword [ebp - 0xc]
or edx, 0x200
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0xc]
mov dword [ebp - 0x2c], ecx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x45a3ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x45a406
jmp 0x45a2e4
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x45a410
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
movzx edx, word [eax + 0x14]
lea eax, [ecx + edx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x45a446
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
add edx, 0x28
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
movzx edx, word [ecx + 6]
cmp dword [ebp - 8], edx
jge 0x45a4be
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
call fcn.0045a500
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp - 4]
add edx, dword [eax + 0x10]
cmp dword [ebp + 0xc], edx
jb 0x45a486
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp - 0xc]
jbe 0x45a48d
mov eax, 0xc1
jmp 0x45a4c0
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0xc]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0043ea90
add esp, 0xc
jmp 0x45a434
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x45a520
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x45a538
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jae 0x45a58a
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x45a559
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jae 0x45a57b
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp - 8]
and ecx, 1
xor edx, edx
sub edx, ecx
and edx, 0xedb88320
xor eax, edx
mov dword [ebp - 8], eax
jmp 0x45a550
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax*4 + 0x4bb6e0], ecx
jmp 0x45a52f
mov dword [ebp - 4], 0x100
jmp 0x45a59c
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x800
jae 0x45a5d4
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x4bb2e0]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov eax, dword [ebp - 0x10]
shr eax, 8
xor eax, dword [edx*4 + 0x4bb6e0]
mov ecx, dword [ebp - 4]
mov dword [ecx*4 + 0x4bb6e0], eax
jmp 0x45a593
mov dword [0x4bb6cc], 0x45a650
mov dword [0x4bb6c8], 0x45a650
mov esp, ebp
pop ebp
ret
Function at 0x45b550
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 1
mov eax, dword [ebp + 8]
shr eax, 2
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
shr ecx, 1
add ecx, 3
mov edx, 4
imul eax, edx, 0
mov edx, dword [ebp - 8]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x45b5a6
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x18]
add edx, 4
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
jae 0x45b5be
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [edx + ecx*4], eax
jmp 0x45b594
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 - 4]
mov dword [ebp - 4], eax
imul ecx, dword [ebp + 8], 3
mov edx, dword [ebp - 8]
lea eax, [edx + ecx*4 + 0x70]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
jne 0x45b65d
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
movzx edx, byte [ecx + str.cw]
xor edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xff
movzx ecx, byte [eax + str.cw]
shl ecx, 8
or edx, ecx
mov eax, dword [ebp - 4]
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
shl ecx, 0x10
or edx, ecx
mov eax, dword [ebp - 4]
and eax, 0xff
movzx ecx, byte [eax + str.cw]
shl ecx, 0x18
or edx, ecx
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0xc]
shl edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
and eax, 0x100
je 0x45b655
mov dword [ebp - 0xc], 0x1b
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
jmp 0x45b6be
cmp dword [ebp - 0x10], 4
jne 0x45b6be
cmp dword [ebp + 8], 6
jbe 0x45b6be
mov edx, dword [ebp - 4]
and edx, 0xff
movzx eax, byte [edx + str.cw]
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
movzx edx, byte [ecx + str.cw]
shl edx, 8
or eax, edx
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
movzx edx, byte [ecx + str.cw]
shl edx, 0x10
or eax, edx
mov ecx, dword [ebp - 4]
shr ecx, 0x18
movzx edx, byte [ecx + str.cw]
shl edx, 0x18
or eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
sub eax, 1
mov dword [ebp - 0x10], eax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax + edx]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [eax + edx*4], ecx
mov edx, dword [ebp - 8]
add edx, 4
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x1c]
jne 0x45b5e0
mov esp, ebp
pop ebp
ret 4