joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408298
Capabilities:
Set registry value

Disassembly:
mov eax, 0x43dad7
call fcn.0043c04c
sub esp, 0x94
push ebx
push esi
push edi
push 0xf
xor ebx, ebx
pop edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
mov byte [ebp - 4], 1
push 0x12
push str.SoftwareGGSQGNA_
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov byte [ebp - 0x9c], bl
call fcn.00401f77
push 2
lea ecx, [ebp - 0x9c]
pop edx
lea esi, [ebp - 0x18]
call fcn.0040750e
push ebx
push 1
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 2
call fcn.00401bdc
push 7
push str.InstKey
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
call fcn.00401f77
mov dword [ebp - 0x10], 0xae5
cmp byte [ebp - 0x14], bl
je 0x408356
cmp dword [ebp - 0x24], 0x10
mov eax, dword [ebp - 0x38]
jae 0x408343
lea eax, [ebp - 0x38]
push 4
lea ecx, [ebp - 0x10]
push ecx
push 4
push ebx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.00401bdc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00407cf9
test al, al
je 0x4083ce
cmp dword [ebp - 0x44], ebx
jbe 0x4083ba
push 3
push 0x442724
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
call fcn.00401f77
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x18]
call fcn.0040756c
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.00401bdc
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x54]
push eax
add ecx, 0xc
call fcn.00402295
cmp dword [ebp - 0x70], ebx
jbe 0x4083ce
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 8]
call fcn.00407e1a
mov dword [ebp - 0x1c], eax
sub esp, 0x10
mov dword [ebp - 0x10], esp
mov esi, esp
push ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x10], esp
call fcn.004047b9
mov eax, dword [ebp + 8]
add eax, 8
push 0xaba
push eax
mov dword [ebp + 8], eax
call fcn.00406127
push ecx
mov dword [ebp - 0x10], esp
lea esi, [ebp - 0x64]
mov dword [ebp - 0x10], esp
call fcn.004047b9
mov byte [ebp - 4], 3
push 6
push str.STATUS
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
call fcn.00401f77
push dword [ebp - 0x1c]
lea eax, [ebp - 0x38]
push eax
mov edi, esi
mov byte [ebp - 4], 4
call fcn.00402fce
push ebx
push 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.00401bdc
sub esp, 0x10
mov dword [ebp - 0x10], esp
push esp
mov ecx, esi
call fcn.0040854f
push 0xa85
push dword [ebp + 8]
call fcn.00406127
mov eax, esi
push eax
mov byte [ebp - 4], 2
call fcn.00402f9f
cmp byte [ebp - 0x14], bl
je 0x408477
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.00401bdc
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.00401bdc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x40a862
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [edi + 9], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi + 0xd], eax
call esi
push 1
mov dword [ebp - 8], eax
call esi
mov esi, dword [edi + 0xd]
mov ebx, dword [edi + 9]
mov dword [ebp - 4], eax
fild dword [ebp - 4]
push 0
push esi
push ebx
fmul qword [0x442f08]
call fcn.0043bfa0
mov ecx, eax
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov esi, eax
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
neg esi
sub esi, ecx
add esi, eax
mov eax, ebx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 8]
cdq
sub eax, edx
push esi
sar ecx, 1
sar eax, 1
sub eax, ecx
push eax
push 0
push dword [edi + 5]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea esi, [edi + 0x11]
mov eax, esi
call fcn.00408c34
push dword [ebp + 0xc]
mov ebx, dword [esi]
push dword [ebp + 8]
call fcn.00408bc8
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 6
push dword [edi + 5]
call esi
push 9
push dword [edi + 5]
call esi
push 0
push 0
push dword [edi + 5]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop esi
pop ebx
leave
ret 8

Function at 0x40afa2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
xor eax, eax
xor edi, edi
push str.http:__go.gamenet.ru_a_19_454_inst
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], edi
mov word [ebp - 0x1c], ax
call fcn.0040852a
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x40afd4
lea eax, [ebp - 0x1c]
push 5
push edi
push edi
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push edi
xor edi, edi
inc edi
push edi
lea ecx, [ebp - 0x1c]
call fcn.00401cc1
push dword [esi + 0xcb]
mov dword [esi + 0xcf], edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
leave
ret

Function at 0x40c440
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [ecx + 4]
xor ecx, ecx
cmp dword [eax + 0xa3], ecx
je 0x40c46b
add eax, 0x93
cmp dword [eax + 0x14], 8
jb 0x40c45a
mov eax, dword [eax]
push 1
push ecx
push ecx
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
Function at 0x40c686
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x43d115
call fcn.0043c04c
push ecx
push ecx
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor edi, edi
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x40c78c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x40c78c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
cmp eax, edi
je 0x40c78c
push dword [ebp - 0x14]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, edi
je 0x40c78c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, edi
je 0x40c78c
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push eax
call fcn.00424a70
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [ebx + 4], esi
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x10]
push eax
push edi
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x40c77b
mov eax, dword [ebp - 0x10]
push 0x10
mov dword [ebp + 8], eax
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
cmp esi, edi
je 0x40c75b
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp + 0xc], edi
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
jmp 0x40c75d
xor esi, esi
mov dword [ebx], esi
cmp esi, edi
je 0x40c77b
mov eax, dword [esi + 8]
mov dword [esi + 8], edi
cmp eax, edi
je 0x40c77b
mov ecx, dword [ebx]
cmp ecx, edi
je 0x40c779
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx], edi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x40c78c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 8
Function at 0x40c79c
Capabilities:
Create http request

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x1a0
push ebx
push esi
xor ebx, ebx
push str.GlobalThistle_580D1956_62F4_40D8_B3A0_E2C1B7334726
lea ecx, [ebp + 0x4c]
mov dword [ebp + 0x60], 0xf
mov dword [ebp + 0x5c], ebx
mov byte [ebp + 0x4c], bl
call fcn.00401bb9
or dword [ebp - 0x14], 0xffffffff
lea eax, [ebp + 0x4c]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], vtable.MutexLock.0
call fcn.00402834
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp + 0x4c]
call fcn.00401bdc
cmp dword [ebp + 4], 0x10
mov eax, dword [ebp - 0x10]
jae 0x40c7f5
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x40c810
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40c825
xor esi, esi
lea ecx, [ebp - 0x18]
call fcn.00402806
mov eax, esi
pop esi
pop ebx
add ebp, 0x68
leave
ret 0x10
push edi
push ebx
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0x48]
push eax
mov dword [ebp + 0x38], esi
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
call fcn.0040287a
mov eax, dword [ebp + 0x70]
lea esi, [ebp - 0x138]
call fcn.00409874
mov edi, esi
call fcn.00409a85
mov esi, dword [sym.imp.WININET.dll_InternetOpenA]
push ebx
push ebx
push ebx
push ebx
mov edi, str.Installer__compatible__MSIE_6.0b__Windows_NT_5.0__.NET_CLR_1.0.2914_
push edi
call esi
push ebx
push ebx
push ebx
push ebx
push edi
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x2c], 0xf
mov dword [ebp + 0x28], ebx
mov byte [ebp + 0x18], bl
call esi
mov dword [ebp + 0x34], eax
lea eax, [ebp - 0x138]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
mov dword [ebp + 0x54], eax
lea eax, [ebp + 0x50]
mov edi, eax
lea esi, [ebp - 0x65]
mov dword [ebp + 0x50], vtable.._AV___Impl_no_alloc0_U___Callable_obj_V_lambda1___A0x2476420c___0A__tr1_std__X_tr1_std__.0
mov dword [ebp + 0x60], eax
call fcn.0040b46a
mov esi, edi
call fcn.0040b450
lea eax, [ebp + 0xc]
mov dword [ebp + 0x54], eax
lea eax, [ebp + 0x50]
mov edi, eax
lea esi, [ebp - 0x4d]
mov dword [ebp + 0x50], vtable.._AV___Impl_no_alloc0_U___Callable_obj_V_lambda2___A0x2476420c___0A__tr1_std__X_tr1_std__.0
mov dword [ebp + 0x60], eax
call fcn.0040b46a
mov esi, edi
call fcn.0040b450
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x34]
push eax
call esi
pop edi
jmp 0x40c907
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x34]
push eax
call esi
test eax, eax
jg 0x40c8ea
mov esi, dword [ebp - 0x2c]
cmp dword [ebp + 0x34], ebx
je 0x40c91c
push dword [ebp + 0x34]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [ebp + 0x14]
call fcn.00406109
lea eax, [ebp - 0x138]
push eax
call fcn.0040994a
push dword [ebp + 0x48]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
jmp 0x40c812
Function at 0x40c995
Capabilities:
Create thread

Disassembly:
mov eax, dword [ecx + 4]
lea ecx, [eax + 4]
push ecx
xor ecx, ecx
push ecx
push eax
push 0x40759a
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret

Function at 0x40ca00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push 0x104
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
je 0x40ca9a
mov dword [ebp - 0x210], 0
jmp 0x40ca45
mov ecx, dword [ebp - 0x210]
add ecx, 1
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
cmp edx, dword [ebp - 0x20c]
jae 0x40ca9a
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x210]
mov dx, word [ebp + edx*2 - 0x208]
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 0x210]
movzx ecx, word [ebp + eax*2 - 0x208]
cmp ecx, 0x5c
jne 0x40ca98
xor edx, edx
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp + 8]
mov word [ecx + eax*2 + 2], dx
mov eax, 1
jmp 0x40ca9c
jmp 0x40ca36
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4032d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x403302
jl 0x4032f5
test ecx, ecx
jne 0x403302
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4033c2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.004048c0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40336e
jg 0x40332d
test esi, esi
je 0x40336e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x403345
mov eax, dword [esp + 0x10]
jl 0x40333f
cmp eax, esi
jae 0x403345
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0040c9b0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x40338f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x4033ab
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x403314
jl 0x4033ab
test ecx, ecx
jne 0x403314
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x403406
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x403406
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.0040c9b0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x403477
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40342c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x403462
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00411024
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x403477
cmp edi, eax
ja 0x403440
test edi, edi
je 0x403477
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00411024
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404b10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4238b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x431064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
push 8
mov dword [ebp - 0x14], edi
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040b5c3
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004065ea
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.00404e80
mov eax, dword [ebp - 0x10]
lea ebx, [edi + 4]
mov dword [edi + 0xc], ebx
lea esi, [edi + 8]
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
lea ecx, [eax + 0x18]
mov byte [edi + 0x48], 0
lea edx, [eax + 0x24]
mov byte [edi + 0x3d], 0
mov dword [edi + 0x10], esi
add edi, 0x14
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov dword [eax + 0x4c], 0
mov ecx, dword [0x432dd4]
mov edx, dword [0x432dd8]
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408aa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x408c2e
cmp dword [edi + 0x20], 0
je 0x408c2e
cmp dword [edi + 0x24], 0
je 0x408c2e
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x408c2e
cmp dword [esi], edi
jne 0x408c2e
mov eax, dword [esi + 4]
cmp eax, 0x2a
je 0x408b08
cmp eax, 0x39
je 0x408b08
cmp eax, 0x45
je 0x408b08
cmp eax, 0x49
je 0x408b08
cmp eax, 0x5b
je 0x408b08
cmp eax, 0x67
je 0x408b08
cmp eax, 0x71
je 0x408b08
cmp eax, 0x29a
jne 0x408c2e
mov dword [edi + 0x14], 0
mov dword [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x2c], 2
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], eax
test ecx, ecx
jns 0x408b3d
neg ecx
mov dword [esi + 0x18], ecx
push 0
push 0
push 0
cmp ecx, 2
jne 0x408b56
mov dword [esi + 4], 0x39
call fcn.0040b2c0
jmp 0x408b6d
test ecx, ecx
mov edx, 0x2a
mov eax, 0x71
cmovne eax, edx
mov dword [esi + 4], eax
call fcn.0040b030
add esp, 0xc
mov dword [edi + 0x30], eax
mov dword [esi + 0x28], 0
push esi
call fcn.00409b50
mov esi, dword [edi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.0040cf50
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x42517a]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x425178]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x42517c]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x42517e]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
pop ebp
ret
pop edi
mov eax, 0xfffffffe
pop esi
pop ebp
ret

Function at 0x40b030
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040b040

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40b2cc
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.0040b2e0

Function at 0x40c199
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40c1d8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40c1d8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40c1d8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40c1d8
cmp dword [ecx + 0x74], 0xe
jbe 0x40c1d8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x417a89
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429f58
push 0x429f50
push str.FlsAlloc
push 0x1f
call fcn.004178f4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417abd
push dword [ebp + 8]
mov ecx, esi
call dword [0x424134]
call esi
jmp 0x417ac3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x417b07
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429f68
push 0x429f60
push str.FlsGetValue
push 0x21
call fcn.004178f4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417b3e
push dword [ebp + 8]
mov ecx, esi
call dword [0x424134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x417b46
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429f70
push 0x429f68
push str.FlsSetValue
push 0x22
call fcn.004178f4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417b80
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x424134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4183ac
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040c300
mov eax, dword [0x431064]
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.004159b2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4183ee
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41854a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00423210
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 + 0x4329b8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004191ae
mov ecx, dword [esi*4 + 0x4329b8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x418543
cmp eax, dword [ecx + edi + 0x24]
jne 0x418543
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418543
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004191ae
add esp, 0x14
test edx, edx
jl 0x418543
jg 0x4184b9
test eax, eax
jb 0x418543
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418543
jl 0x4184d3
cmp dword [ebp - 0x1008], eax
ja 0x418543
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4184f1
test ebx, ebx
je 0x41852a
cmp ecx, edi
jae 0x41852a
mov al, byte [ecx]
cmp al, 0xd
jne 0x41850b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x418517
cmp byte [ecx + 1], 0xa
jne 0x418517
inc ecx
jmp 0x418517
movzx eax, al
movsx eax, byte [eax + 0x4312d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4184f1
cmp edx, ebx
jne 0x4184f1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x418548
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040b5b0
leave
ret