joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fc7b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
call fcn.00449020
add esp, 0xc
cmp dword [ebp + 8], 0
mov byte [ebp - 0x108], 0
je 0x40fcd7
mov eax, dword [ebp + 8]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fcaf
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40fcbf
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 8
call fcn.0043f248
mov ebx, eax
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop ecx
mov dword [ebp + 8], ebx
xor esi, esi
mov edi, 0x4711e0
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00441570
pop ecx
pop ecx
test eax, eax
je 0x40fd47
add edi, 0x108
inc esi
cmp edi, 0x471708
jl 0x40fcf1
xor eax, eax
push eax
push eax
push 3
push eax
xor ebx, ebx
inc ebx
push ebx
push SysReAllocStringLen
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40fd63
push dword [ebp + 8]
call fcn.0043f1f0
pop ecx
xor eax, eax
jmp 0x40fdeb
imul esi, esi, 0x108
lea eax, [esi + 0x4712e4]
mov ecx, dword [eax]
mov dword [ebx], ecx
mov eax, dword [eax]
inc dword [eax + 8]
mov eax, ebx
jmp 0x40fdeb
push 0xc
call fcn.0043f248
and dword [ebp - 4], 0
pop ecx
push 0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esi + 4], eax
call fcn.0043f248
pop ecx
push 0
lea ecx, [ebp - 4]
push ecx
push dword [esi + 4]
mov dword [esi], eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 8]
mov dword [edi], esi
mov dword [esi + 8], ebx
xor eax, eax
mov ecx, 0x4712e4
cmp dword [ecx], 0
je 0x40fdc3
add ecx, 0x108
inc eax
cmp ecx, 0x47180c
jl 0x40fdad
jmp 0x40fde9
imul eax, eax, 0x108
lea ecx, [ebp - 0x108]
lea ebx, [eax + 0x4711e0]
mov edx, ecx
sub ebx, edx
mov dl, byte [ecx]
mov byte [ebx + ecx], dl
inc ecx
test dl, dl
jne 0x40fdd9
mov dword [eax + 0x4712e4], esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x410612
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, eax
mov eax, dword [ecx]
push 3
push dword [esi + 0x264]
call dword [eax + 0x2c]
and dword [ebp - 4], 0
add esi, 0x2c
push esi
lea ebx, [ebp - 4]
call fcn.00411ecc
pop ecx
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 8]
mov ebx, dword [ebp - 4]
push ebx
push str.C75A7F71_797A_11d2_8255_00A02455A490
call fcn.0041a5a2
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x410696
push ebx
call fcn.0043fe48
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x410a90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
xor edi, edi
push edi
push edi
push edi
push edi
call ebx
push edi
push edi
push edi
push edi
mov dword [ebp - 4], eax
call ebx
push edi
push edi
push 1
push edi
mov dword [esi + 0x1c], eax
call ebx
mov ecx, dword [ebp - 4]
mov dword [esi + 0x20], eax
mov dword [esi + 0x25c], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x268], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x254], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x234], ecx
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x270], eax
mov al, byte [ebp + 0x24]
push edi
mov dword [esi + 0x258], ecx
mov dword [esi + 0x250], 0x40b3fb
mov byte [esi + 0x274], al
call fcn.0043f824
pop ecx
cmp dword [ebp + 0x10], edi
jne 0x410b10
xor eax, eax
jmp 0x410b19
push dword [ebp + 0x10]
call fcn.00401c7c
pop ecx
mov dword [esi + 0x238], eax
mov al, byte [ebp + 0x28]
mov byte [esi + 0x275], al
mov eax, dword [ebp + 0x2c]
mov dword [esi + 0x278], eax
mov eax, dword [ebp + 0x30]
mov dword [esi + 0x27c], eax
mov eax, dword [ebp + 0x34]
mov dword [esi + 0x280], eax
mov eax, dword [ebp + 0x38]
push edi
mov dword [esi + 0x284], eax
call fcn.0043f824
pop ecx
cmp dword [ebp + 0x3c], edi
jne 0x410b5c
xor eax, eax
jmp 0x410b65
push dword [ebp + 0x3c]
call fcn.00401c7c
pop ecx
mov dword [esi + 0x290], eax
mov eax, dword [ebp + 0x40]
mov dword [esi + 0x298], eax
mov eax, dword [ebp + 0x44]
mov ebx, 0x1000
push ebx
mov dword [esi + 0x29c], eax
call fcn.0043ed38
push ebx
push edi
push eax
mov dword [ebp + 0x24], eax
call fcn.00449020
mov eax, dword [ebp + 0x24]
add esp, 0x10
mov dword [esi + 0x294], eax
cmp dword [ebp + 0x14], edi
je 0x410bba
push edi
call fcn.0043f824
push dword [ebp + 0x14]
call fcn.00401c7c
pop ecx
pop ecx
mov dword [esi + 0x23c], eax
push dword [ebp + 0x18]
lea eax, [esi + 0x244]
push 0x457c74
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push edi
call fcn.0043f824
add esp, 0x10
cmp dword [ebp + 0x1c], edi
jne 0x410be1
xor eax, eax
jmp 0x410bea
push dword [ebp + 0x1c]
call fcn.00401c7c
pop ecx
mov dword [esi + 0x260], eax
lea eax, [esi + 8]
push eax
push edi
push esi
push 0x4117db
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [ebp - 4]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x1c]
pop edi
pop ebx
leave
ret 0x40
Function at 0x410c3c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push esi
mov esi, eax
mov eax, dword [esi + 0x14]
test eax, eax
jl 0x410d03
cmp eax, 0x22
jle 0x410c61
cmp eax, 0x27
jne 0x410d03
mov eax, dword [esi]
push edi
test eax, eax
je 0x410c96
mov edi, dword [eax + 8]
test edi, edi
jle 0x410ca5
push 0
push 0x64
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0044a200
mov ecx, eax
mov eax, edx
mov dword [ebp - 4], eax
mov eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
push eax
push ecx
call fcn.004463c0
jmp 0x410ca2
mov eax, esi
call fcn.00431e2a
call fcn.00454170
mov dword [ebp - 4], eax
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.00449020
mov eax, dword [esi + 0x1c]
add esp, 0xc
pop edi
test eax, eax
jne 0x410ccf
mov eax, 0x457bc7
mov esi, dword [esi + 0x14]
push eax
push dword [ebp - 4]
mov eax, esi
call fcn.0042ada9
push eax
push esi
lea eax, [ebp - 0x404]
push str.__i:_s____3i_____s_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x410d1a
push eax
push str.Unhandled_Muppet_status_code:__i_n
call fcn.004408b5
add eax, 0x40
push eax
call fcn.00440e02
add esp, 0xc
pop esi
leave
ret
Function at 0x4114a7
Capabilities:
Create directory
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
mov esi, str.systemcomponents2_
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, str.cache_
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x264]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
lea esi, [eax + 1]
xor ebx, ebx
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4114e2
sub eax, esi
mov esi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.0043f426
add esp, 0xc
test eax, eax
jne 0x411509
mov eax, dword [edi + 0x290]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41150f
sub eax, edi
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.0043f426
add esp, 0xc
test eax, eax
jne 0x41153b
lea eax, [ebp - 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x411530
sub eax, edx
add esi, eax
push 0x103
lea eax, [ebp - 0x12b]
push ebx
push eax
mov dword [ebp - 8], ebx
mov byte [ebp - 0x12c], bl
call fcn.00449020
push esi
push dword [ebp - 4]
lea eax, [ebp - 0x12c]
push 0x458450
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0x1c
push ebx
push 0x80
push 2
push ebx
push 1
mov edi, 0x40000000
push edi
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 0xc], ebx
call esi
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x4115fc
cmp byte [ebp - 0x12c], bl
je 0x4115ce
lea eax, [ebp - 0x12c]
mov dword [ebp + 0xc], eax
cmp byte [eax], 0x5c
jne 0x4115c6
mov byte [eax], bl
push ebx
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp + 0xc]
mov byte [eax], 0x5c
inc eax
mov dword [ebp + 0xc], eax
cmp byte [eax], bl
jne 0x4115ab
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test eax, eax
je 0x411620
push ebx
push 0x80
push 2
push ebx
push 1
push edi
lea eax, [ebp - 0x12c]
push eax
call esi
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x411620
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 1
mov ecx, dword [ebp + 8]
push ebx
push dword [ecx + 0x254]
lea eax, [ecx + 0x2b8]
inc dword [eax]
mov eax, dword [eax]
push 1
push dword [ecx + 0x2b4]
push eax
call dword [ecx + 0x250]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x41166f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push edi
push 0x104
call fcn.0043ed38
push dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp + 0xc]
mov ebx, eax
push str._s_s.info
push ebx
call edi
push ebx
call fcn.0040fa1e
add esp, 0x18
test eax, eax
je 0x411740
push ebx
push 0
push str.files
push 0x459614
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push dword [ebp + 8]
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
push str._s_s.cab
push ebx
call edi
xor edi, edi
add esp, 0x10
mov byte [ebp + 0xb], 1
cmp dword [esi + 0x2bc], edi
jbe 0x411715
lea eax, [esi + 0x2a8]
mov dword [ebp + 0xc], eax
cmp byte [ebp + 0xb], 0
je 0x411740
mov eax, dword [ebp + 0xc]
push ebx
push dword [eax]
call fcn.00441570
pop ecx
pop ecx
test eax, eax
jne 0x411702
mov byte [ebp + 0xb], al
add dword [ebp + 0xc], 4
inc edi
cmp edi, dword [esi + 0x2bc]
jb 0x4116e8
cmp byte [ebp + 0xb], 0
je 0x411740
mov edi, dword [ebp - 4]
test edi, edi
je 0x411740
push ebx
call fcn.0040fa1e
pop ecx
test eax, eax
je 0x411740
mov eax, dword [esi + 0x2bc]
mov dword [esi + eax*4 + 0x2a8], ebx
inc dword [esi + 0x2bc]
add dword [esi + 0x2b4], edi
cmp dword [ebp - 4], 0
pop edi
setne al
pop ebx
leave
ret 8

Function at 0x411d7b
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ebx, ebx
push ebx
push dword [esi + 0x20]
call edi
test eax, eax
jne 0x411e33
mov ecx, dword [esi + 0x2a4]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x18]
mov dword [ebp - 4], ebx
mov dword [ebp + 0xc], ebx
mov edi, dword [esi + 0x2a4]
lea ebx, [edi + 0xfc]
push dword [ebx]
call fcn.00437216
cmp dword [edi + 0x158], 0
push dword [ebx]
seta byte [ebp + 0xb]
call fcn.0043722a
cmp byte [ebp + 0xb], 1
pop ecx
pop ecx
jne 0x411df0
add dword [ebp - 4], 0x64
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0x64
jl 0x411dae
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00449020
push dword [ebp - 4]
lea eax, [ebp - 0x108]
push str.Slept_for__d_milliseconds_while_waiting_for_mupthread_to_shutdown_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
jmp 0x411e90
fld dword [ebp + 8]
call fcn.004541a6
cmp eax, dword [0x470d5c]
jbe 0x411e6b
push dword [esi + 0x294]
fld dword [ebp + 8]
fmul qword [0x45d190]
push dword [esi + 0x254]
push 1
push 0x3e8
call fcn.004541a6
push eax
call dword [esi + 0x250]
push 0xffffffffffffffff
push dword [0x470d64]
call edi
test eax, eax
jne 0x411e8e
mov eax, dword [ebp + 0xc]
push dword [0x470d64]
add dword [0x470d58], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, 1
pop edi
pop ebx
leave
ret 8
Function at 0x411e96
Capabilities:
Create directory
Get file attributes

Disassembly:
cmp byte [edi], 0
je 0x411ebe
push esi
mov esi, edi
mov al, byte [esi]
cmp al, 0x5c
je 0x411ea8
cmp al, 0x2f
jne 0x411eb7
push 0
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
inc esi
cmp byte [esi], 0
jne 0x411e9e
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x411ecc
Capabilities:
Read file on windows

Disassembly:
push edi
push 0x459b44
push dword [esp + 0xc]
call fcn.00440b2e
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x411eea
and dword [ebx], eax
or eax, 0xffffffff
pop edi
ret
push esi
push 2
push 0
push edi
call fcn.004411b3
push edi
call fcn.004410bb
push 0
push 0
push edi
mov esi, eax
call fcn.004411b3
lea eax, [esi + 1]
push eax
call fcn.0043f4d3
push edi
push esi
push 1
push eax
mov dword [ebx], eax
call fcn.00440de5
add esp, 0x30
cmp esi, eax
je 0x411f30
push dword [ebx]
call fcn.0043fe48
pop ecx
push 0xfffffffffffffffe
pop eax
jmp 0x411f39
push edi
call fcn.004412af
pop ecx
mov eax, esi
pop esi
pop edi
ret

Function at 0x4127d5
Capabilities:
Hash data using rshash

Disassembly:
push esi
mov esi, eax
mov edx, 0xf8c9
xor eax, eax
jmp 0x4127f0
imul eax, edx
imul edx, edx, 0x5c6b7
movsx ecx, cl
add eax, ecx
inc esi
mov cl, byte [esi]
test cl, cl
jne 0x4127e1
cmp dword [esp + 8], 0
pop esi
je 0x412806
xor edx, edx
div dword [esp + 4]
mov eax, edx
ret
Function at 0x418f9b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
xor esi, esi
push esi
mov ebx, eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push dword [ebp + 8]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41912c
push edi
push dword [ebp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call edi
test eax, eax
jne 0x41912b
push esi
call fcn.0043f8a3
mov dword [ebp - 0xc], eax
xor eax, eax
mov word [ebp - 0x214], ax
mov dword [esp], 0x206
lea eax, [ebp - 0x212]
push esi
push eax
mov dword [ebp - 8], edx
call fcn.00449020
xor eax, eax
push 0x206
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push esi
push eax
call fcn.00449020
lea eax, [ebx + 0xd8]
lea edx, [ebp - 0x214]
add esp, 0x18
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
cmp cx, si
jne 0x419044
lea eax, [ebx + 0x2e0]
lea edx, [ebp - 0x41c]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
cmp cx, si
jne 0x419060
push dword [ebx + 0x20]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [ebx + 0x20]
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebx + 0x4e8]
push eax
push dword [ebp + 8]
call fcn.0043fa98
pop ecx
pop ecx
test eax, eax
jne 0x419118
add ebx, 0x6f0
push ebx
push dword [ebp + 8]
call fcn.0043fa98
pop ecx
pop ecx
test eax, eax
jne 0x419118
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
call fcn.0043fa05
pop ecx
pop ecx
test eax, eax
je 0x4190e2
push dword [ebp + 8]
lea eax, [ebp - 0x41c]
push eax
call fcn.0043fa05
pop ecx
pop ecx
test eax, eax
jne 0x41912b
push 8
lea eax, [ebp - 0xc]
push eax
push 0xb
push esi
push str.CasinoTimeStamp
push dword [ebp - 4]
call edi
push str.PCMUID
push dword [ebp + 0xc]
call fcn.0043fa98
pop ecx
pop ecx
test eax, eax
je 0x41912b
push 8
lea eax, [ebp - 0xc]
push eax
push 0xb
push esi
push str.UGUIDTimeStamp
jmp 0x419126
push 8
lea eax, [ebp - 0xc]
push eax
push 0xb
push esi
push 0x45a2bc
push dword [ebp - 4]
call edi
pop edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
leave
ret 0x14
Function at 0x419195
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x41920d
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
push ebx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
mov eax, dword [edi]
inc eax
push eax
call fcn.0043ed38
pop ecx
push edi
push eax
push dword [ebp + 0x10]
mov dword [ebp + 8], eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
pop esi
je 0x419211
cmp dword [ebp + 8], ebx
je 0x41920d
push dword [ebp + 8]
call fcn.0043f1f0
pop ecx
xor eax, eax
jmp 0x419214
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x41921d
mov ecx, dword [edi]
mov byte [eax + ecx], bl
pop ebx
leave
ret 0xc

Function at 0x41942a
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
mov edi, ebx
call fcn.004193de
push 0x103
xor esi, esi
lea eax, [ebp - 0x103]
push esi
push eax
mov byte [ebp - 0x104], 0
call fcn.00449020
mov eax, dword [ebp + 8]
add esp, 0xc
dec eax
je 0x4194a8
dec eax
je 0x41948b
dec eax
je 0x41946e
push 2
pop eax
jmp 0x419557
push str.TUdTUE9LRVJWMkNSRUFURU1VVEVYUElHR1k
call fcn.00415494
pop ecx
lea edx, [ebp - 0x104]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x41947f
jmp 0x4194c3
push str.TUdTUE9LRVJWMkNSRUFURU1VVEVY
call fcn.00415494
pop ecx
lea edx, [ebp - 0x104]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x41949c
jmp 0x4194c3
push str.TUdTUE9LRVJWMkNSRUFURU1VVEVYU0I
call fcn.00415494
pop ecx
lea edx, [ebp - 0x104]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x4194b9
lea eax, [ebp - 0x104]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push esi
push eax
mov dword [ebx + 0xd0c], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4194e8
xor eax, eax
jmp 0x419557
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4194ef
mov esi, str._SEM
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x104]
push eax
push 1
movsb byte es:[edi], byte [esi]
push 1
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push edi
push eax
mov dword [ebx + 0xd10], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x419554
push dword [ebx + 0xd0c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebx + 0xd0c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebx + 0xd10]
mov dword [ebx + 0xd0c], edi
call esi
mov dword [ebx + 0xd10], edi
jmp 0x4194e4
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4
Function at 0x41955d
Capabilities:
Create http request
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push 1
push str.Mozilla_4.0__compatible__MSIE_5.5__Windows_NT_5.0_
mov dword [ebp - 8], 0x80004005
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x419676
push esi
push edi
push 8
pop ecx
mov esi, str.Accept:___r_n_r_n
lea edi, [ebp - 0x34]
lea eax, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x4195a0
push ebx
sub eax, edx
push 0x4000000
sar eax, 1
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x80]
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x419666
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x419654
push 0xff
lea eax, [ebp - 0x133]
push ebx
push eax
mov byte [ebp - 0x134], bl
call fcn.00449020
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
mov edi, 0x100
jmp 0x41963a
cmp dword [ebp + 8], ebx
je 0x419651
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x41961a
jmp 0x419654
mov dword [ebp - 8], ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 8], ebx
pop edi
pop esi
jge 0x41967f
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 8]
pop ebx
leave
ret 8

Function at 0x419687
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x208], ax
xor esi, esi
lea eax, [ebp - 0x206]
push esi
push eax
call fcn.00449020
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push esi
push esi
push 0x10
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x419711
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edi, [ebp - 0x208]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, si
jne 0x4196e0
mov esi, str..url
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x208]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
je 0x419711
shr eax, 4
not eax
and eax, 1
jmp 0x419713
xor eax, eax
pop esi
leave
ret 4