joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490fa0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492010
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5976c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
sub edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x491165
push esi
pop eax
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x490fe3
sub eax, edx
sar eax, 1
je 0x491165
push esi
lea ecx, [ebp - 0x1c]
call fcn.0043fbd0
mov eax, dword [0x5985c0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5985c0
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], edi
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [0x5985c0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5985c0
mov byte [ebp - 4], 2
call edx
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x20]
push eax
push 0x401a58
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0047d320
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0047b4b0
mov edi, dword [ebp - 0x18]
cmp dword [edi - 0xc], 0
mov eax, dword [ebp - 0x24]
setne bl
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x491089
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x491102
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], 1
call fcn.0043b7c0
push 1
push 0x401a58
lea ecx, [ebp + 8]
call fcn.0043b7c0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
or eax, eax
jne 0x49103a
push 0x401a44
push 0x4016b0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x4910ea
push 0
push esi
call eax
or eax, eax
jne 0x49117a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x49117a
mov dword [ebp - 0x14], 0
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
or edx, edx
jg 0x491122
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x491142
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
or edx, edx
jg 0x491165
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
je 0x49103a
push 2
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
jmp 0x49103a
Function at 0x41e0e9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00416204
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x41e121
xor eax, eax
jmp 0x41e14d
cmp esi, dword [ebp - 4]
je 0x41e14a
cmp dword [ebp + 0xc], 0
je 0x41e14a
push dword [edi + 0x9c]
call fcn.0041dcf7
push dword [edi + 0x9c]
mov esi, eax
call fcn.00411074
pop ecx
pop ecx
cmp esi, eax
je 0x41e11d
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x408928
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x4085d8
add esi, esi
call fcn.0040894a
sub esi, 0xdcc74585
xor dword [ebx], edx
sub edi, 1
inc ebx
cmp ebx, ecx
jne fcn.00408928
sub esi, edi
ret
Function at 0x463550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464eeb
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x51481c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x230]
push ecx
push edx
push eax
mov byte [ebp - 4], 1
call fcn.00430e90
add esp, 0xc
cmp eax, edi
je 0x4636f8
mov eax, dword [ebp - 0x230]
cmp eax, dword [ebp - 0x22c]
je 0x4636f8
lea ecx, [ebp - 0x230]
push 0x4019d8
push ecx
call fcn.00431e20
add esp, 8
push 0x4019c8
push 0x4019b0
call dword [0x401188]
push eax
call dword [int.004011ac]
cmp eax, edi
je 0x4636f8
push esi
call eax
cmp eax, edi
je 0x46367d
push esi
call dword [0x401068]
test eax, eax
jne 0x46367d
push 0x206
lea eax, [ebp - 0x21a]
xor edx, edx
push edi
push eax
mov word [ebp - 0x21c], dx
call fcn.00454bd0
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push 0x104
call dword [0x401064]
test eax, eax
je 0x4636f8
lea edx, [ebp - 0x21c]
push edx
push edi
push edi
mov eax, edx
push eax
call dword [0x401060]
test eax, eax
je 0x4636f8
push 1
lea ecx, [ebp - 0x21c]
push ecx
push esi
call dword [0x40105c]
test eax, eax
je 0x4636f8
push 0x4019a8
lea edx, [ebp - 0x220]
push esi
push edx
mov dword [ebp - 0x220], edi
call fcn.004567f8
add esp, 0xc
test eax, eax
jne 0x4636f8
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x4636f8
mov ecx, dword [ebp - 0x22c]
push eax
mov eax, dword [ebp - 0x230]
sub ecx, eax
push ecx
push 1
push eax
call fcn.004566c0
mov edx, dword [ebp - 0x220]
push edx
call fcn.0045650d
mov eax, dword [ebp - 0x220]
mov esi, dword [ebp - 0x22c]
sub esi, dword [ebp - 0x230]
push eax
call fcn.0045631e
mov ecx, dword [ebp - 0x220]
xor ebx, ebx
cmp esi, eax
push ecx
sete bl
call fcn.00456116
add esp, 0x1c
mov eax, dword [ebp - 0x230]
cmp eax, edi
je 0x463723
push eax
call fcn.00454a31
add esp, 4
jmp 0x463723
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004546bb
mov esp, ebp
pop ebp
ret
Function at 0x4638b0
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464f68
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x51481c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x463a97
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4638f3
sub eax, edx
sar eax, 1
je 0x463a97
push edi
call dword [0x4011c4]
test eax, eax
je 0x463a97
push 0x409
push 0x65
push ebx
call dword [0x401194]
mov esi, eax
cmp esi, ebx
je 0x463a89
push esi
push ebx
call dword [0x4011a0]
mov edi, eax
cmp edi, ebx
je 0x463a97
push esi
push ebx
call dword [int.00401198]
cmp eax, ebx
je 0x463a97
push eax
call dword [fcn.0040119c]
cmp eax, ebx
je 0x463a97
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x2c]
push ecx
push edi
push eax
mov byte [ebp - 4], 1
call fcn.00430e90
add esp, 0xc
cmp eax, ebx
je 0x463a70
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x28]
je 0x463a70
mov edi, dword [ebp + 8]
push 0x4019a8
lea eax, [ebp - 0x18]
push edi
push eax
mov dword [ebp - 0x18], ebx
call fcn.004567f8
add esp, 0xc
test eax, eax
jne 0x463a70
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x463a70
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x28]
push ecx
sub esi, eax
push esi
push 1
push eax
call fcn.004566c0
mov edx, dword [ebp - 0x18]
xor ecx, ecx
cmp esi, eax
sete cl
push edx
mov esi, ecx
call fcn.00456116
add esp, 0x14
cmp esi, ebx
je 0x463a70
mov eax, dword [0x515720]
mov edx, dword [eax + 0xc]
mov ecx, 0x515720
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 0x6b
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004292d0
cmp eax, ebx
je 0x463a68
mov esi, dword [ebp - 0x1c]
cmp dword [esi - 0xc], ebx
je 0x463a68
push edi
lea ecx, [ebp + 8]
call fcn.00429b00
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.0044f480
push esi
lea ecx, [ebp + 8]
call fcn.0044eb40
cmp eax, ebx
je 0x463a60
mov eax, dword [ebp + 8]
push eax
push edi
call dword [0x40106c]
test eax, eax
je 0x463a60
mov ecx, dword [ebp + 8]
push 1
push ebx
push ebx
push ecx
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x14], 1
lea ecx, [ebp + 8]
call fcn.0044dc10
lea ecx, [ebp - 0x1c]
call fcn.004264f0
lea ecx, [ebp - 0x2c]
call fcn.0042e5e0
jmp 0x463a97
push edi
call dword [0x401068]
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
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 0x43b65e
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43b3c1
push 0x355b1aae
pop edx
push 0xab4ad095
pop ecx
sub edx, 1
call fcn.0043b699
sub ecx, 0xf1b7d228
xor dword [ebx], eax
sub edx, edx
sub edx, ecx
add edx, 0x6d4a3a5c
inc ebx
dec edx
and edx, ecx
cmp ebx, esi
jne fcn.0043b65e
or ecx, edx
ret
Function at 0x467470
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40e015
lea edi, [esi - 0xd015]
push edi
or ebp, 0xffffffff
jmp 0x467492
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x467499
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x467488
mov eax, 1
add ebx, ebx
jne 0x4674ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4674a0
jne 0x4674bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4674a0
xor ecx, ecx
sub eax, 3
jb 0x4674d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x467542
mov ebp, eax
add ebx, ebx
jne 0x4674db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4674e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x46750c
inc ecx
add ebx, ebx
jne 0x4674f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4674ed
jne 0x467509
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4674ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46752c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46751d
jmp 0x46748e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46752c
add edi, ecx
jmp 0x46748e
pop esi
mov edi, esi
mov ecx, 4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46754a
cmp byte [edi], 0
jne 0x46754a
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 al, bl
loop 0x46754f
mov ebp, dword [esi + 0x676d4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4675aa
sub esp, 0xffffff80
jmp 0x407c28

Function at 0x438ca1
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x438a14
sub edx, 1
call fcn.00438cd4
inc edx
push 0x2d41ac0e
pop edx
add edx, ebx
xor dword [edi], ecx
mov ebx, ebx
dec edx
and edx, edx
add edi, 1
and edx, ebx
cmp edi, esi
jne fcn.00438ca1
add ebx, edx
mov edx, edx
ret
Function at 0x401440
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
sub esp, 0x104
push ebp
xor ebp, ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call sub.MFC42.DLL_AfxWinInit
test eax, eax
jne 0x40148b
mov eax, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push str.Fatal_Error:_MFC_initialization_failed
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___class_std::basic_ostream_char__struct_std::char_traits_char_____char_const__]
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
add esp, 0xc
mov eax, 1
pop ebp
add esp, 0x104
ret
push esi
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push edi
push str.pqu_wns
push 0x4116a4
push 0x4124b8
call esi
mov edi, 0x4124b8
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4014dc
mov al, byte [edx + 0x4124b8]
mov edi, 0x4124b8
xor al, 3
or ecx, 0xffffffff
mov byte [edx + 0x4124b8], al
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x4014ba
push 0x4124b8
lea ecx, [esp + 0x10]
push str.__temp___s
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0xc]
push 0x104
push 0x4124b8
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
call fcn.004020f0
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x104
ret
Function at 0x4038b0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push esi
push 0xf0000000
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4038d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
add esp, 0xc
ret
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x403912
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 8]
push 0
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
add esp, 0xc
ret
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 4]
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x403954
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 4]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 8]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea ecx, [esp + 0x10]
push 0
push ecx
push esi
push 4
push edx
mov dword [esp + 0x24], 4
call edi
mov eax, dword [esi]
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x28]
add esp, 4
mov dword [ecx], eax
mov edx, dword [esi]
lea ecx, [esp + 0x10]
push 0
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0xc]
push ecx
push eax
push 2
push edx
call edi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 0xc]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
Function at 0x4048c0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
push eax
push 0
push 0
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
setge al
ret

Function at 0x4048e0
Capabilities:
Enumerate files on windows
Get common file path
Set current directory

Disassembly:
sub esp, 0x34c
lea eax, [esp + 0x248]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x148]
push 8
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14c]
push 0x104
push ecx
call fcn.004048c0
add esp, 0xc
test al, al
jne 0x40492d
pop edi
add esp, 0x34c
ret
lea edx, [esp + 0x148]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [esp + 0xc]
push eax
push str..lnk
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4049fe
mov ecx, dword [esp + 0x35c]
push ebx
mov ebx, dword [esp + 0x35c]
dec ecx
push esi
mov dword [esp + 0x10], ecx
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x40]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
dec ecx
add edx, ecx
cmp eax, edx
jb 0x4049f5
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
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, 0x41102c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40496c
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop ebx
lea ecx, [esp + 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop ebp
mov al, 1
pop edi
add esp, 0x34c
ret
Function at 0x404b60
Capabilities:
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov eax, 0x10020
call fcn.0040b660
mov ecx, dword [0x411ce0]
mov eax, dword [str.Accept:___r_n_r_n]
mov edx, dword [0x411ce4]
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
mov eax, dword [0x411ce8]
push esi
lea ecx, [esp + 0x24]
push 0x84000100
push ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x1003c]
push eax
mov eax, dword [esp + 0x10044]
lea edx, [esp + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
cmp edi, esi
jne 0x404bd9
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10020
ret
mov edx, dword [esp + 0x1003c]
push 0x411cd8
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
cmp eax, esi
mov dword [esp + 0x14], eax
jne 0x404c07
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x10020
ret
lea eax, [esp + 0x1c]
push esi
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0x20000005
push edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x404c32
mov dword [esp + 0x18], esi
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
call ebx
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x34]
push 0x4000
push eax
push edi
call ebp
test eax, eax
je 0x404c92
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404cb0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x30]
push ecx
push eax
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [esp + 0x20]
add esp, 0x10
add esi, eax
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
push 0x4000
push ecx
push edi
call ebp
test eax, eax
jne 0x404c56
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10020
ret
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.MSVCRT.dll_fflush]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10020
ret
Function at 0x404ce0
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
sub esp, 0x44
lea eax, [esp]
push esi
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test byte [esp + 4], 0x20
jne 0x404d74
call dword [sym.imp.WINMM.dll_timeGetTime]
push eax
lea ecx, [esp + 0xc]
push str.Agent_ld
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov al, byte [esp + 0x10]
add esp, 0xc
test al, 4
push 0
push 0
push 0
jne 0x404d29
lea edx, [esp + 0x14]
push 4
push edx
jmp 0x404d30
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
je 0x404d74
mov ecx, dword [esp + 0x4c]
push ebx
push edi
mov edi, dword [esp + 0x58]
push edi
push ecx
push esi
call fcn.00404b60
add esp, 0xc
mov ebx, eax
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, byte [esp + 0x5c]
test al, al
je 0x404d6b
push edi
call fcn.00404d80
add esp, 4
mov eax, ebx
pop edi
pop ebx
pop esi
add esp, 0x44
ret
mov eax, 4
pop esi
add esp, 0x44
ret

Function at 0x404d80
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
mov eax, dword [esp + 0x58]
push edi
push eax
call fcn.004039c0
mov edx, eax
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
add esp, 4
mov word [esp + 0x44], ax
lea ecx, [esp + 4]
lea eax, [esp + 0x14]
push ecx
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push edx
push 0
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
add esp, 0x54
ret
Function at 0x404de0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x4240
call fcn.0040b660
mov al, byte [0x416124]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x14c], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x14d]
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x40]
mov esi, dword [esp + 0x4254]
stosb byte es:[edi], al
push ecx
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x40]
push eax
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x44]
push edx
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x3c]
xor ebx, ebx
push ecx
push edx
lea eax, [esp + 0x48]
push ebx
lea ecx, [esp + 0x170]
push eax
push ecx
push esi
mov dword [esp + 0x58], 0x104
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], 0x3fff
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x404f28
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], edi
jbe 0x404f28
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebx
push ebx
push ebx
lea edx, [esp + 0x2c]
push ebx
lea eax, [esp + 0x260]
push edx
push eax
push edi
push esi
mov dword [esp + 0x40], 0x3fff
mov byte [esp + 0x270], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x404f17
lea ecx, [esp + 0x10]
lea edx, [esp + 0x48]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x25c]
push ebx
push ecx
push esi
call ebp
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x10]
lea eax, [esp + 0x48]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
lea edx, [esp + 0x25c]
push ebx
push edx
push esi
call ebp
mov eax, dword [esp + 0x4258]
lea ecx, [esp + 0x48]
push eax
push ecx
mov byte [esp + edi + 0x50], bl
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x404f35
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
mov dword [esp + 0x14], edi
jb 0x404e8f
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x4240
ret
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x4240
ret