joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407010
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 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
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 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4019f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov dword [0x4040c0], eax
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x4019ff
push esp
mov dword [ebp - 0x24], 0x40171b
mov eax, dword [0x4040c0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], str.solienty
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040c0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.absent
push str.solienty
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040c8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401a9e
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401a7f
pop ebp
ret 0x10
Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4

Function at 0x43b64a
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x43b3c1
pop edi
mov edx, 0x41d5412f
call fcn.0043b683
push edx
pop edx
add esi, esi
add edx, esi
xor dword [ecx], edi
and edx, esi
mov esi, 0xd265a516
inc ecx
and esi, edx
sub edx, 0x6214a07d
cmp ecx, ebx
jne fcn.0043b64a
add esi, esi
mov edx, esi
or edx, edx
ret

Function at 0x43cf60
Capabilities:
Encode data using xor

Disassembly:
push 0x43ccda
pop edx
call fcn.0043cf80
xor dword [esi], edx
dec edi
inc esi
and edi, edi
push 0xf2722dbc
pop ecx
cmp esi, ebx
jne fcn.0043cf60
and ecx, edi
ret
Function at 0x408840
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10010
call fcn.00411ee0
mov eax, dword [0x418040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea eax, [ebp - 0x10010]
push esi
mov esi, dword [ebp + 8]
push edi
push 1
push eax
xor edi, edi
push edi
push edi
push esi
call ebx
test eax, eax
je 0x4088d6
cmp dword [ebp + 0xc], edi
je 0x408889
push edi
push edi
push edi
push dword [ebp + 0xc]
push esi
call ebx
test eax, eax
je 0x4088d6
cmp dword [ebp + 0x10], edi
jbe 0x4088c3
mov ecx, 0x10000
push 0
lea eax, [ebp - 0x10008]
push eax
push ecx
lea eax, [ebp - 0x10004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4088c3
mov ecx, 0x10000
cmp dword [ebp - 0x10008], ecx
jne 0x4088c3
add edi, ecx
cmp edi, dword [ebp + 0x10]
jb 0x408893
push 0
push 0
push dword [ebp - 0x1000c]
push dword [ebp - 0x10010]
push esi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411ece
mov esp, ebp
pop ebp
ret

Function at 0x40adc4
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x418080]
test eax, eax
je 0x40addb
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40ae35
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll__vscprintf]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40ae34
inc edi
lea eax, [ebp - 4]
push edi
push eax
call fcn.00402e96
mov esi, dword [ebp - 4]
pop ecx
pop ecx
test esi, esi
je 0x40ae34
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.MSVCR120.dll__vsnprintf]
add esp, 0x10
mov byte [esi + edi - 1], 0
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.mozglue.dll_free]
pop ecx
pop edi
push 0x4155a4
push 2
call dword [sym.imp.MSVCR120.dll__dup]
pop ecx
push eax
call dword [sym.imp.MSVCR120.dll__fdopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40ae69
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.MSVCR120.dll_vfprintf]
push esi
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 0x10
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401750
Capabilities:
Terminate process

Disassembly:
push ebp
mov edx, dword [ebx - 0x75]
ja 0x40175e
push ebx
mov esi, dword [edi + 8]
xchg byte [0x68407a9e], cl
and al, 0x83
rol dword [eax + 0x68], 0x74
rol byte [eax + 0x18], cl
push ecx
call dword [0xefa0c180]
mov eax, dword [0xf60201]
add esp, 0xc
test eax, eax
je 0x401787
push eax
push 0x95d254
invalid
push 1
call dword [sym.imp.MSVCRT.dll_exit]
nop
push ebp
mov ebp, esp
sub esp, 0xf90000b8
mov eax, dword [0x4102fa]
test eax, eax
mov eax, dword [0x41404c]
je 0x4017d0
push 0x5e3c7b
push eax
call int.00405850
mov si, word [eax]
stosd dword es:[edi], eax
jle 0x401752
jmp 0x4017cf
mov dword [0x411808], eax
sub eax, 0x410288
or byte [eax], bl
inc ecx
add byte [0x410288], ch
push ebx
mov ah, 0x8b
sbb ah, byte [ecx + eax*8 + 0x40]
add cl, al
mov dword [0x410bb4], ecx
test eax, eax
push edi
invalid
Function at 0x405059
Capabilities:
Encode data using xor

Disassembly:
call fcn.00404f62
mov ecx, 0x1df
call 0x405059
rcr dword [esi + 0x30], 0x4c
push cs
pop es
xor byte [esi + ecx + 7], cl
loop 0x40505c
mov eax, 0x50402cf
out dx, al
clc
div esi
cmc
retf 0x3d52
Function at 0x401450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147e
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x401499
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014ed
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ed
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f1
xor eax, eax
jmp 0x401503
cmp dword [ebp - 4], edi
je 0x401500
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x4027e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40401d], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.Marmimo
push str.Mimoclass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402828
xor eax, eax
jmp 0x402843
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4016d0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x406548], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x4016ee
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x406544], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x406540], bl
jne 0x401748
cmp dword [0x40816c], 0
je 0x401736
mov edi, dword [0x408168]
sub edi, 4
cmp dword [0x40816c], edi
ja 0x401736
mov eax, dword [edi]
test eax, eax
je 0x40172b
call eax
sub edi, 4
cmp dword [0x40816c], edi
jbe 0x401723
push 0x40601c
push 0x406014
call fcn.00401780
add esp, 8
push 0x406024
push 0x406020
call fcn.00401780
add esp, 8
test ebx, ebx
jne 0x40176f
mov dword [0x406548], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret

Function at 0x4017a0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x4032f0
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x40650c], eax
xor eax, eax
mov al, byte [0x40650d]
mov dword [0x406518], eax
mov eax, dword [0x40650c]
shr dword [0x40650c], 0x10
and eax, 0xff
mov dword [0x406514], eax
shl eax, 8
add eax, dword [0x406518]
mov dword [0x406510], eax
call fcn.004032d0
mov dword [ebp - 4], 0
call fcn.004030f0
call fcn.004030e0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x408164], eax
call fcn.00402c80
mov dword [0x40654c], eax
test eax, eax
je 0x401839
cmp dword [0x408164], 0
jne 0x401843
push 0xffffffffffffffff
call fcn.00401690
add esp, 4
call fcn.00402a00
call fcn.00402920
call fcn.00401660
mov esi, dword [0x408164]
mov al, byte [esi]
cmp al, 0x22
je 0x40186a
cmp al, 0x20
jbe 0x401897
inc esi
cmp byte [esi], 0x20
ja 0x401862
jmp 0x401897
inc esi
cmp byte [esi], 0x22
je 0x401896
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x401891
xor eax, eax
mov al, bl
push eax
call fcn.004028c0
add esp, 4
test eax, eax
je 0x40188b
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x401873
cmp byte [esi], 0x22
jne 0x401897
inc esi
cmp byte [esi], 0
je 0x4018a7
cmp byte [esi], 0x20
ja 0x4018a7
inc esi
cmp byte [esi], 0
jne 0x40189c
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x4018cb
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00401690
jmp 0x40190c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402c80
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x406820], 0
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push ebp
jne 0x402ccc
call esi
mov edi, eax
test edi, edi
je 0x402caa
mov dword [0x406820], 1
jmp 0x402cd0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x402cc2
mov dword [0x406820], 2
jmp 0x402cd4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
cmp dword [0x406820], 1
jne 0x402d83
test edi, edi
jne 0x402cf7
call esi
mov edi, eax
test edi, edi
jne 0x402cf7
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x402d11
add esi, 2
cmp word [esi], 0
jne 0x402cff
add esi, 2
cmp word [esi], 0
jne 0x402cff
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x402d72
push ebp
call fcn.00403d40
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x402d72
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x402d61
push ebx
call fcn.00403d20
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x406820], 2
jne 0x402e07
test ebx, ebx
jne 0x402da6
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x402da6
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x402dbb
inc ebp
cmp byte [ebp], 0
jne 0x402dad
inc ebp
cmp byte [ebp], 0
jne 0x402dad
sub ebp, ebx
inc ebp
push ebp
call fcn.00403d40
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x402de0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x403410
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x406a50
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x403437
add eax, 8
inc ecx
cmp eax, 0x406ad8
jb 0x403428
cmp dword [ecx*8 + 0x406a50], edx
lea ebx, [ecx*8]
jne 0x4035f2
cmp dword [0x406558], 1
je 0x4035b7
cmp dword [0x406558], 0
jne 0x40346e
cmp dword [0x40655c], 1
je 0x4035b7
cmp edx, 0xfc
je 0x4035f2
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x4034ab
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4034ef
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x405330
push ebp
call fcn.00403e60
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x405310
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x406a54]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00403dc0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x408060]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x4035ce
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x406a54]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x403600
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp edx, dword [0x408160]
push ebx
push esi
push edi
push ebp
jae 0x403807
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x408060
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x403807
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x403669
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x40367a
push 2
push 0
push edx
call fcn.00403830
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x403716
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x40374f
lea edi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x4036dd
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x4036cb
mov byte [edi], 0xd
inc esi
inc edi
mov byte [edi], al
inc edi
mov eax, edi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x4036b2
lea eax, [esp + 0x24]
push 0
sub edi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push edi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403745
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp edi, eax
jle 0x40369d
jmp 0x40374f
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403745
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x40374f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x4037f6
cmp dword [esp + 0x10], 0
je 0x4037a8
cmp dword [esp + 0x10], 5
jne 0x40378b
mov dword [0x406500], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x406504], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.00403f60
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x4037d2
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x4037d2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x406500], 0x1c
mov dword [0x406504], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x406500], 9
mov dword [0x406504], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x409cd0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67c90e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x94
mov eax, dword [0x729140]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x60]
push 7
movups xmmword [ebp - 0x60], xmm0
movq qword [ebp - 0x50], xmm0
call fcn.0050fde0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push str.https:__
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00405b20
push 0xf
push str.db_safe.2345.cc
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00406160
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push 1
push eax
call dword [sym.imp.WININET.dll_InternetCheckConnectionW]
test eax, eax
setne byte [ebp - 0x79]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00405ac0
mov cl, byte [ebp - 0x79]
sub esp, 0x18
mov eax, esp
mov byte [ebp - 4], 0
mov dword [ebp - 0x80], esp
mov byte [eax + 8], 5
and dword [eax + 8], 0xfffffeff
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov byte [eax], cl
push 0x6cc19e
push str.result
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 6
call fcn.00511640
mov ecx, eax
mov byte [ebp - 4], 0
call fcn.005103b0
xorps xmm0, xmm0
lea ecx, [ebp - 0xa0]
push 7
movups xmmword [ebp - 0xa0], xmm0
movq qword [ebp - 0x90], xmm0
call fcn.0050fde0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x44]
push 0xe
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push str.CheckNetStatus
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.00405b20
mov byte [ebp - 4], 8
mov dword [ebp - 0x80], 0
sub esp, 0x18
lea eax, [ebp - 0x60]
mov ecx, esp
mov dword [ebp - 0x84], esp
push eax
call fcn.00510130
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0040c3b0
mov byte [ebp - 4], 0xa
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x409eeb
mov eax, dword [ecx]
lea edx, [ebp - 0x78]
push edx
lea edx, [ebp - 0x44]
push edx
call dword [eax + 8]
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xb
call fcn.00405ac0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xf
call fcn.00405ac0
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0
call fcn.005102d0
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
call fcn.005102d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00634bf3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00631b21
int3