joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004b80
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push esi
mov esi, eax
cmp dword [esi + 0x144], 0
je 0x1004cb9
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
push 0x105
lea eax, [esi + 0x14c]
push eax
mov dword [ebp - 0xc], esi
call fcn.01009294
test eax, eax
je 0x1004cb9
lea eax, [ebp - 0x1c]
push eax
push 1
push 0x1003f66
push fcn.01003f80
push 0x1003f4c
push 0x1003f32
push 0x1004057
push 0x1003f1e
push 0x1003f0a
call fcn.0100a68f
add esp, 0x24
mov dword [ebp + 8], eax
test eax, eax
jne 0x1004bc5
mov eax, dword [ebp - 0x14]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
push 0x1001b10
push dword [0x101135c]
call fcn.0100a43e
add esp, 0x14
jmp 0x1004cb9
lea ecx, [ebp - 8]
call fcn.0100400e
push 0
push 0x80
push 3
push 1
push 0x80000000
add esi, 0x2c
push esi
lea ecx, [ebp - 8]
call fcn.01003d5e
test eax, eax
je 0x1004c92
push ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.0100a735
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1004c37
mov eax, dword [ebp - 0x14]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
push 0x1001ac0
push dword [0x101135c]
call fcn.0100a43e
add esp, 0x14
lea ecx, [ebp - 8]
call fcn.01003ec3
test ebx, ebx
pop ebx
je 0x1004c92
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1004261
push 0
push 0x1001a20
push esi
push dword [ebp + 8]
call fcn.0100b7eb
add esp, 0x1c
test eax, eax
jne 0x1004c92
mov eax, dword [ebp - 0x14]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
push 0x1001a78
push dword [0x101135c]
call fcn.0100a43e
add esp, 0x14
push dword [ebp + 8]
call fcn.0100b287
pop ecx
test eax, eax
jne 0x1004cb1
push 0x1001a50
push dword [0x101135c]
call fcn.0100a43e
pop ecx
pop ecx
lea ecx, [ebp - 8]
call fcn.01004020
xor eax, eax
inc eax
pop esi
leave
ret 4
Function at 0x1005385
Capabilities:
Check if file exists
Delete directory
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
and dword [ebp - 8], 0x100
push esi
push edi
je 0x100533b
push eax
push 0x7fffffff
push dword [ebp + 8]
mov ecx, edx
call fcn.01004879
test eax, eax
jl 0x100529e
test edx, edx
jne 0x1005356
and dword [ebp - 4], 0
mov esi, eax
test eax, eax
jl 0x1005333
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push ebx
sub edi, eax
xor esi, esi
lea ebx, [ecx + eax*2]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
cmp dword [ebp - 8], esi
je 0x10052d4
cmp dword [ebp + 0x10], esi
jne 0x10052d4
mov dword [ebp + 0x10], 0x1001a24
test dword [ebp + 0x1c], 0xffffe000
je 0x1005366
mov esi, 0x80070057
test dword [ebp + 0x1c], 0x1c00
je 0x1005314
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1005314
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
add eax, eax
push eax
lea ebx, [ebp - 0x10]
call fcn.010049f5
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
test esi, esi
jge 0x1005320
cmp esi, 0x8007007a
jne 0x1005332
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1005329
mov dword [eax], ebx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1005332
mov dword [eax], edi
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 0x18
xor eax, eax
test edx, edx
je 0x1005349
cmp edx, 0x7fffffff
jbe 0x100534e
mov eax, 0x80070057
test eax, eax
jl 0x100529e
mov eax, dword [ebp + 8]
lea edi, [ebp - 4]
call fcn.0100480c
jmp 0x10052a2
cmp edi, 1
ja 0x1005387
mov eax, dword [ebp + 0x10]
cmp word [eax], si
je 0x1005320
mov esi, ecx
neg esi
sbb esi, esi
and esi, 0x23
add esi, 0x80070057
jmp 0x10052e6
push 0x7ffffffe
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0x10]
mov edx, edi
mov ecx, ebx
mov dword [ebp - 0x10], esi
call fcn.010048fa
mov esi, eax
mov eax, dword [ebp - 0x10]
sub edi, eax
lea ebx, [ebx + eax*2]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
test esi, esi
jl 0x10052e6
mov eax, dword [ebp + 0x1c]
test eax, 0x200
je 0x1005320
cmp edi, 1
jbe 0x1005320
lea ecx, [edi + edi]
push ebx
call fcn.010049c7
jmp 0x1005320
Function at 0x1006440
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2d8
mov eax, dword [0x1011040]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x2c4], 0
and dword [ebp - 0x2c0], 0
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2d4], edi
test edi, edi
je 0x10064be
cmp byte [edi], 0
je 0x10064be
push ebx
push esi
lea eax, [ebp - 0x2c8]
push eax
lea eax, [ebp - 0x2d0]
push eax
lea ebx, [ebp - 0x2b8]
mov eax, ebx
mov esi, 0x2b4
push eax
mov dword [ebp - 0x2d0], esi
mov dword [ebp - 0x2b8], esi
call fcn.0100f9fc
cmp eax, 0x25b
jne 0x10063ec
push dword [ebp - 0x2d0]
call fcn.0100a4de
mov dword [ebp - 0x2c0], eax
test eax, eax
jne 0x10063d4
push 0x10022f4
push dword [0x101135c]
call fcn.0100a43e
pop ecx
pop ecx
jmp 0x10064a0
lea ecx, [ebp - 0x2c8]
push ecx
lea ecx, [ebp - 0x2d0]
push ecx
push eax
mov ebx, eax
mov dword [eax], esi
call fcn.0100f9fc
test eax, eax
jne 0x10064a0
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call esi
lea edi, [eax + 1]
push edi
mov dword [ebp - 0x2d8], eax
call fcn.0100a4de
and dword [ebp - 0x2cc], 0
cmp dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2bc], eax
jbe 0x1006495
add ebx, 8
push ebx
call esi
cmp dword [ebp - 0x2d8], eax
jae 0x100645f
cmp dword [ebp - 0x2bc], 0
je 0x100645f
push edi
push 0
push dword [ebp - 0x2bc]
call fcn.01009702
add esp, 0xc
push ebx
push edi
push dword [ebp - 0x2bc]
call fcn.01004e0f
push dword [ebp - 0x2bc]
jmp 0x1006460
push ebx
push dword [ebp - 0x2d4]
call fcn.0100a526
test eax, eax
je 0x100648b
inc dword [ebp - 0x2cc]
mov eax, dword [ebp - 0x2cc]
add ebx, 0x2b4
cmp eax, dword [ebp - 0x2c8]
jb 0x1006425
jmp 0x1006495
mov dword [ebp - 0x2c4], 1
push dword [ebp - 0x2bc]
call fcn.0100a4d2
cmp dword [ebp - 0x2c0], 0
pop esi
pop ebx
je 0x10064b6
push dword [ebp - 0x2c0]
call fcn.0100a4d2
mov eax, dword [ebp - 0x2c4]
jmp 0x10064c0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.010096ed
leave
ret 4
Function at 0x1008270
Capabilities:
Copy file
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x1011040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.01004a8c
mov esi, 0x1002e70
push esi
push dword [0x101135c]
call fcn.0100a43e
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
pop ecx
pop ecx
call edi
push eax
push 0x1002e44
push dword [0x101135c]
call fcn.0100a43e
push esi
push dword [0x101135c]
call fcn.0100a43e
add esp, 0x14
lea ecx, [ebp - 0x44]
mov dword [ebp - 0xa0], 1
call dword [sym.imp.cmutil.dll_public:_void___thiscall_CmLogFile::constructor_void_]
xor ebx, ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
call fcn.0100a5c8
push 0x98
lea eax, [ebp - 0x9c]
push ebx
push eax
call fcn.01009702
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x9c], eax
cmp eax, ebx
jne 0x10082fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x9c]
push 0x1002e0c
push dword [0x101135c]
call fcn.0100a43e
add esp, 0x10
lea ecx, [ebp - 0x9c]
call fcn.01006ff6
test eax, eax
je 0x100841e
push dword [ebp - 0x94]
push 0x1001a20
push reloc.KERNEL32.dll_DosDateTimeToFileTime
push reloc.KERNEL32.dll_SetFileAttributesA
call fcn.010084d1
mov dword [ebp - 0xa8], eax
cmp eax, ebx
je 0x100841e
push eax
push dword [ebp - 0x94]
call fcn.0100a562
mov dword [ebp - 0xa4], eax
cmp eax, ebx
je 0x100841e
push eax
lea ecx, [ebp - 0x9c]
call fcn.010077ec
test eax, eax
je 0x100841e
mov eax, dword [ebp - 0x90]
test al, 0x40
je 0x1008398
shr eax, 5
not eax
and eax, 1
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0xa4]
push dword [ebp - 0x94]
call fcn.01008d42
mov dword [ebp - 0xa0], eax
jmp 0x100841e
lea eax, [ebp - 0x9c]
call fcn.01004d77
test eax, eax
je 0x100841e
push reloc.KERNEL32.dll_ConvertDefaultLocale
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [ebp - 0x8c], eax
cmp eax, ebx
jne 0x10083d0
push 0x1001bd8
push dword [0x101135c]
call fcn.0100a43e
pop ecx
pop ecx
jmp 0x100841e
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
lea eax, [ebp - 0x9c]
push eax
push 0x1007d24
push ebx
push 0x65
push dword [ebp - 0x9c]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov dword [ebp - 0xa0], eax
cmp eax, 0xffffffff
jne 0x100841e
lea eax, [ebp - 0x9c]
push eax
push 0x65
push dword [ebp - 0x9c]
push 0x1002dc0
push dword [0x101135c]
call fcn.0100a43e
add esp, 0x14
push dword [ebp - 0xa8]
call fcn.0100a4d2
push dword [ebp - 0xa4]
call fcn.0100a4d2
lea eax, [ebp - 0x9c]
push eax
call fcn.01007aa1
lea ecx, [ebp - 0x44]
call dword [sym.imp.cmutil.dll_public:_long_int___thiscall_CmLogFile::DeInit_void_]
push esi
push dword [0x101135c]
call fcn.0100a43e
pop ecx
pop ecx
call edi
push eax
push 0x1002d90
push dword [0x101135c]
call fcn.0100a43e
push esi
push dword [0x101135c]
call fcn.0100a43e
add esp, 0x14
call fcn.01004aaa
lea ecx, [ebp - 0x44]
call dword [sym.imp.cmutil.dll_public:_void___thiscall_CmLogFile::destructor_void_]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xa0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010096ed
leave
ret 0x10
Function at 0x10085a2
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
xor eax, eax
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x28], ebx
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x40], ebx
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x18], ebx
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
call fcn.0100a57a
push 3
pop edi
test eax, eax
je 0x10085c6
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetDefaultProxyConfiguration]
test eax, eax
je 0x10085c6
cmp dword [ebp - 0x18], edi
jne 0x10085c6
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 4], eax
jmp 0x1008669
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
xor esi, esi
inc esi
test eax, eax
jne 0x10085ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
mov dword [ebp - 0xc], eax
cmp eax, 2
jne 0x1008603
mov dword [ebp - 0x28], esi
jmp 0x1008603
xor ecx, ecx
cmp dword [ebp - 0x20], ecx
je 0x1008603
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 8], edi
cmp eax, ecx
je 0x1008603
mov dword [ebp - 4], eax
cmp dword [ebp - 0x28], ecx
je 0x100860e
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], esi
mov eax, dword [ebp - 0x24]
cmp eax, ecx
je 0x1008624
cmp word [eax], cx
je 0x1008624
or dword [ebp - 0x40], 2
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x28], ecx
je 0x1008669
push ecx
push ecx
push ecx
push esi
push dword [ebp + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
test esi, esi
je 0x1008669
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 0xc]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x1008662
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
and dword [ebp - 0xc], 0
mov dword [ebp - 8], edi
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test ebx, ebx
je 0x1008675
push ebx
call fcn.0100a56e
jmp 0x1008677
xor eax, eax
cmp dword [ebp - 4], 0
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
je 0x100868c
push dword [ebp - 4]
call fcn.0100a56e
jmp 0x100868e
xor eax, eax
cmp dword [ebp - 0x20], 0
mov ecx, dword [ebp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
je 0x10086ac
push dword [ebp - 0x20]
call esi
xor edi, edi
cmp dword [ebp - 0x24], edi
je 0x10086b8
push dword [ebp - 0x24]
call esi
cmp dword [ebp - 0x1c], edi
je 0x10086c2
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x14], edi
je 0x10086cc
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x10], edi
je 0x10086d6
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x8ccba3
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x8cc92e
pop edx
or eax, ebx
mov ebx, eax
mov ebx, 0xede63d23
call fcn.008ccbdf
mov eax, 0x51adaf5b
xor dword [ecx], edx
mov ebx, ebx
add eax, 0x54aa3caa
inc ecx
and eax, eax
cmp ecx, esi
jne fcn.008ccba3
add ebx, 0x17bb8e51
ret
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
sub ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
pop edi
cmp edi, ebx
jne 0x40b525
sub eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
test eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
test eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
test eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x35a45066
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x42e1d0
mov ecx, 0x248a1fdd
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x40868b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x408693
mov dword [ecx*4 + 0x417960], eax
inc ecx
cmp ecx, 0x100
jb 0x40868e
mov edx, 0x800
jmp 0x4086e0
mov eax, dword [ecx*4 + 0x417560]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x417960]
inc ecx
mov dword [ecx*4 + 0x41795c], eax
cmp ecx, edx
jb 0x4086bf
mov dword [fcn.00417820], 0x412660
call fcn.0040d879
pop esi
test eax, eax
jne 0x408702
mov dword [fcn.00417820], 0x412580
ret
Function at 0x406470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5fc
mov eax, dword [0x42a6dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push str.http:__
push edi
mov dword [ebp - 0x5f8], edx
call fcn.00409a30
mov esi, eax
add esp, 8
test esi, esi
je 0x4064a7
add esi, 7
jmp 0x4064a9
mov esi, edi
push 0x427170
push esi
call fcn.00409a30
add esp, 8
test eax, eax
je 0x406578
push 0x427170
push esi
call fcn.00409a30
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x48]
push 0x40
push eax
call fcn.00409d57
push 0x427170
push esi
call fcn.00409a30
push eax
lea eax, [ebp - 0x1f0]
push 0x104
push eax
call fcn.00409569
add esp, 0x2c
lea eax, [ebp - 0x5f0]
push 0
push 1
push 0x400
push eax
lea edx, [ebp - 0x1f0]
lea ecx, [ebp - 0x48]
call fcn.00405dd0
add esp, 0x10
test al, al
je 0x406578
push ecx
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x5f0]
call fcn.00405d10
add esp, 8
test al, al
je 0x406578
lea eax, [ebp - 0xe8]
push eax
jmp 0x438110
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004082bf
mov esp, ebp
pop ebp
ret

Function at 0x406720
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x42a6dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x130]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 1
jne 0x4067fe
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [ebp - 0x130]
push eax
push edi
call ebx
cmp eax, 1
jne 0x4067fe
jmp 0x406790
mov eax, dword [ebp - 0x134]
lea ecx, [ebp - 0x10c]
lea esp, [esp]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4067c0
test dl, dl
je 0x4067bc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4067c0
add ecx, 2
add eax, 2
test dl, dl
jne 0x4067a0
xor eax, eax
jmp 0x4067c5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4067ef
push dword [ebp - 0x128]
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0xd
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea eax, [ebp - 0x130]
push eax
push edi
call ebx
cmp eax, 1
je 0x406790
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004082bf
mov esp, ebp
pop ebp
ret
Function at 0x10273ea
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x30]
push eax
push 1
xor esi, esi
push esi
push 0x1001e58
mov edi, 0x80000002
push edi
xor ebx, ebx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], 0x14
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102747a
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
push 0x1001e38
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102746d
cmp dword [ebp - 0x34], 1
jne 0x102746d
lea eax, [ebp - 0x2c]
push eax
push 0x1001e30
call dword [sym.imp.msvcrt.dll__wcsicmp]
mov ebx, eax
neg ebx
pop ecx
sbb ebx, ebx
pop ecx
inc ebx
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
jne 0x10274a3
cmp dword [ebp + 8], esi
je 0x10274a3
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push 3
push esi
push esi
push esi
push 0x1001db0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10274a3
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0102df7d
leave
ret 4

Function at 0x10274bb
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 3
push 0
xor esi, esi
push 0x1001ea8
inc esi
push 0x80000001
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102750d
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push 0x1001c10
push dword [ebp - 4]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret
Function at 0x1027515
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
push edi
lea eax, [ebp - 0x220]
push eax
push edi
push 3
push edi
push edi
push edi
push 0x1001f40
push 0x80000001
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1027566
xor eax, eax
jmp 0x102763d
push ebx
push esi
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x224]
push eax
push edi
mov esi, 0x1001f28
push esi
push dword [ebp - 0x220]
mov dword [ebp - 0x228], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp ebx, edi
jne 0x10275c5
cmp dword [ebp - 0x224], 1
jne 0x10275c5
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x10275b2
sub eax, edx
sar eax, 1
cmp eax, 0x14
jae 0x1027628
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x1027628
push 0x103
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x1027628
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x10275fc
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
push esi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ebx, edi
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0102df7d
leave
ret