joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bbf0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
cmp esi, 0x5d
jae 0x41be2c
push ebx
push edi
push 0x773
push eax
mov byte [ebp - 0x1c], al
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov dword [ebp - 7], eax
mov word [ebp - 3], ax
mov byte [ebp - 1], al
lea eax, [ebp - 0x793]
mov cl, 0xe7
push eax
mov dword [ebp - 0x20], 0x6c6c642e
mov dword [ebp - 0x820], 0xbee14005
mov dword [ebp - 0x81c], 0xc8066c2a
mov dword [ebp - 0x818], 0xccdfc1a9
mov dword [ebp - 0x814], 0xe245063a
mov dword [ebp - 0x810], 0x3ad226d0
mov dword [ebp - 0x80c], 0x8450707
mov dword [ebp - 0x808], 0xe0c8cb23
mov dword [ebp - 0x804], 0x4337a708
mov dword [ebp - 0x800], 0x57e44962
mov dword [ebp - 0x7fc], 0xa6aa08e7
mov dword [ebp - 0x7f8], 0x6525dcb0
mov dword [ebp - 0x7f4], 0x7b08e760
mov dword [ebp - 0x7f0], 0x1eb386be
mov dword [ebp - 0x7ec], 0x8e7a01f
mov dword [ebp - 0x7e8], 0xefa2d823
mov dword [ebp - 0x7e4], 0xe7a01f26
mov dword [ebp - 0x7e0], 0xa8fc2209
mov dword [ebp - 0x7dc], 0x4f1cc7ee
mov dword [ebp - 0x7d8], 0xef094116
mov dword [ebp - 0x7d4], 0x8ca89392
mov dword [ebp - 0x7d0], 0x4157a323
mov dword [ebp - 0x7cc], 0x9f8f1d09
mov dword [ebp - 0x7c8], 0xa3269dc3
mov dword [ebp - 0x7c4], 0x74094157
mov dword [ebp - 0x7c0], 0x507d60c3
mov dword [ebp - 0x7bc], 0x41107c91
mov dword [ebp - 0x7b8], 0x6357590b
mov dword [ebp - 0x7b4], 0x1deab58a
mov dword [ebp - 0x7b0], 0xf708ac79
mov dword [ebp - 0x7ac], 0x73ade308
mov dword [ebp - 0x7a8], 0xa1651ec6
mov dword [ebp - 0x7a4], 0xca3d06e7
mov dword [ebp - 0x7a0], 0x3ad226c4
mov dword [ebp - 0x79c], 0xb2fc3308
mov dword [ebp - 0x798], 0x615506cf
mov byte [ebp - 0x794], cl
call fcn.0041b050
add esp, 0xc
lea eax, [ebp - 0x820]
test esi, esi
je 0x41bdbc
dec esi
movzx ecx, byte [eax]
lea eax, [eax + ecx + 1]
jne 0x41bdb2
lea esi, [eax + 1]
movzx eax, byte [eax]
lea edx, [ebp - 0x20]
push edx
push eax
push esi
call fcn.0040acf0
xor eax, eax
add esp, 0xc
cmp byte [esi], al
je 0x41bddd
inc eax
cmp byte [esi + eax], 0
jne 0x41bdd6
mov ebx, dword [ebp + 8]
inc eax
push eax
push esi
push ebx
call fcn.0041afd0
add esp, 0xc
xor edi, edi
cmp byte [ebx], 0
je 0x41bdfa
inc edi
cmp byte [edi + ebx], 0
jne 0x41bdf3
xor esi, esi
cmp byte [ebp - 0x20], 0
je 0x41be0a
inc esi
cmp byte [ebp + esi - 0x20], 0
jne 0x41be02
test esi, esi
je 0x41be1f
push esi
lea ecx, [ebp - 0x20]
lea eax, [edi + ebx]
push ecx
push eax
call fcn.0041b020
add esp, 0xc
add esi, edi
pop edi
mov byte [esi + ebx], 0
mov eax, 1
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x420826
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x440480]
jne 0x420830
repz ret
jmp fcn.004253b1

Function at 0x432a11
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x440480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00426493
and dword [ebp - 0x14], 0
cmp dword [0x44395c], 0
mov dword [ebp - 0x18], eax
jne 0x432ac4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x432b6c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x432b6c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44395c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x443960], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x443964], eax
call edi
push eax
call esi
mov dword [0x44396c], eax
test eax, eax
je 0x432ac4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x443968], eax
mov eax, dword [0x443968]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x432b1d
cmp dword [0x44396c], ecx
je 0x432b1d
push eax
call esi
push dword [0x44396c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x432b1d
test ebx, ebx
je 0x432b1d
call edi
test eax, eax
je 0x432b14
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x432b14
test byte [ebp - 8], 1
jne 0x432b1d
or dword [ebp + 0x10], 0x200000
jmp 0x432b50
mov eax, dword [0x443960]
cmp eax, dword [ebp - 0x18]
je 0x432b50
push eax
call esi
test eax, eax
je 0x432b50
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x432b50
mov eax, dword [0x443964]
cmp eax, dword [ebp - 0x18]
je 0x432b50
push eax
call esi
test eax, eax
je 0x432b50
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44395c]
call esi
test eax, eax
je 0x432b6c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x432b6e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420826
leave
ret

Function at 0x414de4
Capabilities:
Encode data using xor

Disassembly:
xor dword [edi], eax
add esi, 0x4b9b957e
add edi, 4
dec ecx
add ebx, ecx
cmp edi, edx
jne fcn.00414de4
mov ebx, 0xbd7d4c3e
ret
Function at 0x818058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8181a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x81807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x81806a
add dl, dl
jne 0x818089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8180dc
xor eax, eax
add dl, dl
jne 0x818096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x81817d
add dl, dl
jne 0x8180a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8180d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x818075
mov eax, 1
add dl, dl
jne 0x8180ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8180e1
sub eax, ebx
mov ebx, 1
jne 0x818128
mov ecx, 1
add dl, dl
jne 0x81810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x818119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x818105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x818075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x81813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x81814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x818136
cmp eax, 0x7d00
jae 0x81816d
cmp eax, 0x500
jb 0x818168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x818075
cmp eax, 0x7f
ja 0x818170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x818075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x81819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x818075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x40ffe7
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 0x410015
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x410033
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040ff4d
jmp 0x410033
mov eax, dword [esi + 0x14]
test eax, eax
je 0x410033
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0040ff4d
test edi, edi
mov eax, edi
jne 0x41001d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401a58
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401a97
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401a97
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401a97
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401a97
cmp dword [ecx + 0x74], 0xe
jbe 0x401a97
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x3002c0da
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 8]
mov ebx, eax
push ebx
push edi
call fcn.3001b809
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x3002c0f0
sub eax, ecx
sar eax, 1
cmp eax, 3
jle 0x3002c109
lea esi, [edi + eax*2 - 8]
jmp 0x3002c118
mov ecx, 0x103
sub ecx, eax
cmp ecx, 3
jl 0x3002c14e
lea esi, [edi + eax*2]
and dword [ebp + 8], 0
mov eax, esi
sub eax, edi
sar eax, 1
sub ebx, eax
push dword [ebp + 8]
push 0x30002fcc
push ebx
push esi
call fcn.3002c01f
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x3002c156
inc dword [ebp + 8]
cmp dword [ebp + 8], 0x3e7
jl 0x3002c124
xor al, al
pop esi
pop ebx
pop ebp
ret 4
mov al, 1
jmp 0x3002c150

Function at 0x3002c15a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x30008648]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [ebp + 0x10]
xor esi, esi
push dword [ebp + 0xc]
inc esi
xor edi, edi
push ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], edi
call fcn.3001b809
mov eax, ebx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x3002c18c
sub eax, ecx
sar eax, 1
cmp eax, 3
jle 0x3002c1a5
lea eax, [ebx + eax*2 - 8]
jmp 0x3002c1b4
mov ecx, 0x103
sub ecx, eax
cmp ecx, 3
jl 0x3002c1b9
lea eax, [ebx + eax*2]
mov dword [ebp - 0x20], eax
jmp 0x3002c1c0
mov dword [ebp - 0x18], 0x80040212
cmp dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
jne 0x3002c272
cmp dword [ebp - 0x1c], 0x3e7
jge 0x3002c272
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
sub eax, ebx
sar eax, 1
push 0x30002fcc
sub ecx, eax
push ecx
push dword [ebp - 0x20]
call fcn.3002c01f
add esp, 0x10
push edi
push edi
push 0x8000000
push 3
push edi
push 1
push SysReAllocStringLen
push ebx
call dword [sym.imp.MSO.dll_Ordinal_403]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x24], esi
je 0x3002c272
push edi
push edi
push dword [0x300b5f94]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x28]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x3002c265
cmp dword [ebp - 0x28], 0x10
jne 0x3002c265
push 4
pop ecx
mov edi, 0x30005bd8
lea esi, [ebp - 0x14]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x3002c263
push dword [ebp - 0x24]
and dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 1
je 0x3002c1cc
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30085c36
leave
ret 0xc
Function at 0x3002ec39
Capabilities:
Enumerate pe sections
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push 2
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
call esi
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
jne 0x3002ec8c
call edi
test eax, eax
je 0x3002ec8c
call edi
push eax
call fcn.300440d4
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x3002ec8c
mov dword [ebp - 4], 0x80030019
cmp dword [ebp - 0x14], ebx
je 0x3002ec98
mov dword [ebp - 4], 0x8002000a
cmp dword [ebp - 4], ebx
jl 0x3002edd6
mov eax, dword [0x300b5f94]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.MSO.dll_Ordinal_815]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x3002ecbe
mov dword [ebp - 4], 0x8007000e
cmp dword [ebp - 4], ebx
jl 0x3002edd6
push ebx
push ebx
push ebx
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
jne 0x3002ecdf
call edi
push eax
call fcn.300440d4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
jl 0x3002edd6
mov esi, dword [ebp - 0xc]
push ebx
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x3002ed06
cmp dword [ebp - 0x10], esi
je 0x3002ed11
call edi
push eax
call fcn.300440d4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
jl 0x3002edd6
mov eax, dword [ebp - 8]
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x3002ed8c
cmp word [esi + 0x18], 0x10b
jne 0x3002ed8c
movzx ecx, word [esi + 6]
movzx eax, word [esi + 0x14]
imul ecx, ecx, 0x28
lea eax, [eax + esi + 0x18]
lea edi, [ecx + eax - 0x28]
jmp 0x3002ed53
test byte [eax + 0x24], 0x40
je 0x3002ed50
add ebx, dword [eax + 0x10]
add eax, 0x28
cmp eax, edi
jne 0x3002ed47
mov ecx, dword [ebp - 0x18]
sub ecx, dword [edi + 0x14]
or dword [edi + 0x24], 0x40
mov dword [edi + 0x10], ecx
push dword [esi + 0x38]
add ebx, ecx
call fcn.3002e850
mov dword [edi + 8], eax
mov ecx, dword [esi + 0x54]
push dword [esi + 0x38]
add ecx, ebx
mov dword [esi + 0x20], ebx
call fcn.3002e850
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x50], eax
xor ebx, ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x3002eda8
call edi
push eax
call fcn.300440d4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
jl 0x3002edd6
mov esi, dword [ebp - 0xc]
push ebx
lea eax, [ebp + 8]
push eax
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x3002edcb
cmp dword [ebp + 8], esi
je 0x3002edd6
call edi
push eax
call fcn.300440d4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x8002000a
jne 0x3002ede6
mov dword [ebp - 4], 1
cmp dword [ebp - 8], ebx
pop edi
pop esi
pop ebx
je 0x3002edf7
push dword [ebp - 8]
call fcn.3001b55f
pop ecx
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x3004fd08
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1058
call fcn.30086893
mov eax, dword [0x30008648]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push 0x1046
lea eax, [ebp - 0x104a]
push edi
push eax
mov dword [ebp - 0x1050], edi
xor ebx, ebx
mov word [ebp - 0x104c], di
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp esi, edi
mov dword [ebp - 0x1058], 0x824
jne 0x3004fd68
mov dword [ebp - 0x1050], 0x80004003
jmp 0x3004fdfe
push edi
push edi
push edi
push edi
push 0x30004adc
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, edi
mov dword [ebp - 0x1054], eax
je 0x3004fdd7
push dword [esi]
push eax
call fcn.3004fc58
mov ebx, eax
cmp ebx, edi
je 0x3004fdd7
push edi
lea eax, [ebp - 0x1058]
push eax
lea eax, [ebp - 0x104c]
push eax
push 0x21
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x3004fde1
mov eax, dword [esi]
cmp eax, edi
je 0x3004fdb8
push eax
call dword [sym.imp.MSO.dll_Ordinal_3057]
lea eax, [ebp - 0x104c]
push eax
call dword [sym.imp.MSO.dll_Ordinal_3054]
cmp eax, edi
mov dword [esi], eax
jne 0x3004fde1
mov dword [ebp - 0x1050], 0x8007000e
jmp 0x3004fde1
mov dword [ebp - 0x1050], 0x80004005
cmp ebx, edi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x3004fdee
push ebx
call esi
cmp dword [ebp - 0x1054], edi
je 0x3004fdfe
push dword [ebp - 0x1054]
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1050]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30085c36
leave
ret 4

Function at 0x30050a79
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0x1c]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edi
jne 0x30050aa0
cmp ebx, edi
jne 0x30050aa2
mov edi, 0x80004003
jmp 0x30050b4c
mov dword [eax], edi
push edi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x30050abb
mov edi, 0x80040e96
jmp 0x30050b4c
push esi
push 0x30
call dword [sym.imp.MSO.dll_Ordinal_815]
cmp eax, edi
je 0x30050ad4
push edi
mov ecx, eax
call fcn.30050765
mov esi, eax
jmp 0x30050ad6
xor esi, esi
cmp esi, edi
jne 0x30050ae1
mov edi, 0x8007000e
jmp 0x30050b4b
mov eax, dword [esi]
push esi
call dword [eax + 4]
cmp ebx, edi
mov eax, dword [ebp - 4]
mov dword [esi + 8], eax
je 0x30050afa
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov dword [esi + 0xc], ebx
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
mov edi, dword [sym.imp.MSO.dll_Ordinal_3054]
mov dword [esi + 0x14], ebx
call edi
push dword [ebp + 0x10]
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
push dword [ebx]
call edi
push 0x30005018
mov dword [esi + 0x20], eax
call edi
push dword [ebp + 0x18]
mov dword [esi + 0x24], eax
call edi
push dword [ebp + 0x14]
mov dword [esi + 0x28], eax
call edi
push dword [ebp + 0x20]
mov ecx, dword [ebp - 4]
push esi
mov dword [esi + 0x2c], eax
call fcn.3004fefc
mov edi, eax
mov eax, dword [esi]
push esi
call dword [eax + 8]
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret 0x1c
Function at 0x3005c743
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x30008648]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push eax
push eax
push dword [0x300b5f94]
mov ebx, ecx
push edi
mov dword [ebp - 0x250], eax
call esi
cmp eax, 0xffffffff
jne 0x3005c796
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.300440d4
test eax, eax
mov dword [ebp - 0x250], eax
jl 0x3005c8e3
push 0
push 0
push dword [0x300b5f94]
push edi
call esi
push 0
lea eax, [ebp - 0x254]
push eax
mov esi, 0x248
push esi
lea eax, [ebp - 0x24c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x3005c7cc
cmp dword [ebp - 0x254], esi
je 0x3005c7de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.300440d4
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
jl 0x3005c8e3
mov eax, dword [0x300b5f94]
add eax, 0x248
xor ecx, ecx
test eax, eax
setge cl
push 4
mov edi, 0x30005bd8
lea esi, [ebp - 0x24c]
dec ecx
mov dword [ebx + 0x1494], ecx
mov eax, dword [0x300b5f94]
add eax, 0x248
mov dword [ebx + 0x1490], eax
pop ecx
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x3005c833
mov dword [ebx + 0x2158], 1
jmp 0x3005c866
push 4
pop ecx
mov edi, 0x30005be8
lea esi, [ebp - 0x24c]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x3005c85c
cmp dword [ebx + 0x2158], 2
je 0x3005c866
mov dword [ebp - 0x250], 0x80040231
jmp 0x3005c866
mov dword [ebp - 0x250], 0x80040210
cmp dword [ebp - 0x250], 0
jl 0x3005c8e3
mov eax, dword [ebp - 0x23c]
mov dword [ebx + 0x1f20], eax
mov eax, dword [ebp - 0x238]
mov dword [ebx + 0x1f24], eax
mov eax, dword [ebp - 0x234]
mov dword [ebx + 0x1f28], eax
mov eax, dword [ebp - 0x230]
mov dword [ebx + 0x1f2c], eax
mov eax, dword [ebp - 0x22c]
mov dword [ebx + 0x1f44], eax
lea eax, [ebp - 0x228]
push eax
push 0x104
lea eax, [ebx + 0x1f50]
push eax
call fcn.3001b809
mov eax, dword [ebp - 0xc]
push 5
mov dword [ebx + 0x1f48], eax
mov eax, dword [ebp - 8]
lea edi, [ebx + 0x1f30]
pop ecx
lea esi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x1f4c], eax
cmp dword [ebp - 0x250], 0x800300fd
pop edi
pop esi
pop ebx
jne 0x3005c8fc
mov dword [ebp - 0x250], 0x80040210
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x250]
xor ecx, ebp
call fcn.30085c36
leave
ret 4
Function at 0x3005cc2a
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x30008648]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x1484], ebx
jne 0x3005cc4e
inc ebx
jmp 0x3005ccbe
lea eax, [esi + 0x1e]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.3001b809
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.MSVCR80.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
jne 0x3005cc7f
mov ebx, 0x800700a1
jmp 0x3005ccb3
and word [eax + 2], bx
push 0
lea eax, [ebp - 0x214]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x3005ccbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.300440d4
mov ebx, eax
test ebx, ebx
jge 0x3005ccbe
and dword [esi + 0x14], 0
mov dword [esi + 0x10], 0xa00000
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.30085c36
leave
ret
Function at 0x300759a2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
mov edi, ecx
push edi
push 0x300758ad
push esi
push esi
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
cmp eax, esi
jne 0x300759ea
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x300759d8
call esi
mov esi, eax
jmp 0x300759f0
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x300759f0
mov dword [edi + 0x80], eax
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x3007adeb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
mov dword [edi + 0x34], eax
jne 0x3007ae0a
xor al, al
jmp 0x3007ae23
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x3007adbb
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
leave
ret