joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b873
Capabilities:
Enumerate internet cache

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1f4c
call fcn.0040d87c
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov edi, 0x2ff93ecc
mov eax, edi
mul edi
mov dword [ebp - 0x1f48], eax
mov edi, eax
xor edi, 0x6f23
mov dword [ebp - 0x1f44], 0x1f40
lea eax, [ebp - 0x1f44]
push eax
lea eax, [ebp - 0x1f40]
push eax
push 0x42f9d0
call sub.WININET.DLL_FindFirstUrlCacheEntryA
mov esi, eax
or eax, eax
je 0x40b964
add edi, 0x6779
push ebx
push dword [ebp - 0x1f3c]
call sub.CRTDLL.DLL__stricmp
add esp, 8
or eax, eax
jne 0x40b8fb
push dword [ebp - 0x1f38]
push dword [ebp + 0xc]
call fcn.0040d89c
mov eax, edi
add eax, edi
mov edi, eax
xor eax, eax
inc eax
jmp 0x40b964
mov dword [ebp - 0x1f44], 0x1f40
mov eax, edi
xor eax, edi
mov edi, eax
lea eax, [ebp - 0x1f44]
push eax
lea eax, [ebp - 0x1f40]
push eax
push esi
call sub.WININET.DLL_FindNextUrlCacheEntryA
or eax, eax
je 0x40b95a
push ebx
push dword [ebp - 0x1f3c]
call sub.CRTDLL.DLL__stricmp
add esp, 8
or eax, eax
jne 0x40b958
push dword [ebp - 0x1f38]
push dword [ebp + 0xc]
call fcn.0040d89c
mov eax, 0x46f6
mul edi
mov dword [ebp - 0x1f4c], eax
mov edi, eax
xor eax, eax
inc eax
jmp 0x40b964
jmp 0x40b8fb
xor eax, eax
jmp 0x40b964
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c204
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov edi, 0x35fe3707
mov eax, 0xd90
mul edi
mov dword [ebp - 8], eax
mov edi, eax
add eax, edi
mov edi, eax
push ebx
call sub.KERNEL32.DLL_lstrlenA
mov dword [ebp - 0xc], eax
push dword [ebp + 0xc]
call sub.KERNEL32.DLL_lstrlenA
mov edx, dword [ebp - 0xc]
lea edx, [edx + eax + 0x10]
push edx
push 0x40
call sub.KERNEL32.DLL_LocalAlloc
mov esi, eax
push ebx
push esi
call fcn.0040d89c
push ebx
call sub.KERNEL32.DLL_lstrlenA
push dword [ebp + 0xc]
lea edx, [esi + eax + 1]
push edx
call fcn.0040d89c
add edi, 0x3f43
push ebx
call sub.WININET.DLL_DeleteUrlCacheEntry
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x40be70
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
mov esi, eax
push 0xffffffffffffffff
push esi
call sub.KERNEL32.DLL_WaitForSingleObject
sub edi, 0x764d
lea eax, [ebp - 4]
push eax
push esi
call sub.KERNEL32.DLL_GetExitCodeThread
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 4]
jmp 0x40c2ad
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40cb71
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, 0x6ece7d8a
mov eax, edi
add eax, edi
mov edi, eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x40cb10
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, edi
sub eax, edi
mov edi, eax
pop edi
leave
ret 0x10
Function at 0x40cf5d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x11e0
call fcn.0040d87c
push esi
push edi
mov esi, 0x49584b5a
mov eax, esi
sub eax, esi
mov esi, eax
mov dword [ebp - 0x11c8], 0x10
mov eax, esi
sub eax, esi
mov esi, eax
xor eax, esi
mov esi, eax
push 0x3f
push 0x418400
call sub.CRTDLL.DLL_strchr
add esp, 8
or eax, eax
je 0x40d136
mov eax, esi
sub eax, esi
mov esi, eax
push 0x418400
lea eax, [ebp - 0x904]
push eax
call fcn.0040d89c
push 0x3f
lea eax, [ebp - 0x904]
push eax
call sub.CRTDLL.DLL_strchr
mov byte [eax], 0
mov eax, esi
xor eax, esi
mov esi, eax
lea eax, [ebp - 0x914]
push eax
call sub.KERNEL32.DLL_GetLocalTime
mov eax, esi
sub eax, esi
mov esi, eax
lea eax, [ebp - 0x11c4]
push eax
call sub.KERNEL32.DLL_GetTimeZoneInformation
lea eax, [ebp - 0x904]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov dword [ebp - 0x11dc], eax
movzx edi, word [ebp - 0x908]
push edi
movzx edi, word [ebp - 0x90a]
push edi
movzx edi, word [ebp - 0x90c]
push edi
mov eax, dword [ebp - 0x11c4]
mov edx, eax
mov eax, 0x88888889
mov ecx, edx
imul edx
mov eax, ecx
add edx, eax
sar edx, 5
sar eax, 0x1f
sub eax, edx
push eax
push dword [0x42d0b4]
push 0x419d90
movzx edi, word [0x42d0a8]
push edi
movzx edi, word [0x42d0a4]
push edi
push 0x430267
mov edi, dword [ebp - 0x11dc]
lea edi, [ebp + edi - 0x903]
push edi
lea edi, [ebp - 0x1118]
push edi
call sub.CRTDLL.DLL_sprintf
mov eax, 0x49bf
mul esi
mov dword [ebp - 0x11e0], eax
mov esi, eax
push 0x42c2e0
push 0x43016e
lea eax, [ebp - 0x104]
push eax
call sub.CRTDLL.DLL_sprintf
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.DLL_lstrlenA
push 0xc
lea edi, [ebp + eax - 0x104]
push edi
call fcn.00402cf1
sub esi, 0x687b
lea eax, [ebp - 0x1118]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00404e85
push 0
push 0
push 0x42f8ca
push str.alive
lea eax, [ebp - 0x904]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0040b72b
add esp, 0x68
mov dword [ebp - 0x918], eax
xor esi, 0x2524
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.DLL_DeleteFileA
cmp dword [ebp - 0x918], 0
je 0x40d11f
inc dword [0x42d0b4]
sub esi, 0x1739
xor eax, eax
inc eax
jmp 0x40d136
and dword [0x42d0b4], 0
add esi, 0xd0a
xor eax, eax
jmp 0x40d136
pop edi
pop esi
leave
ret
Function at 0x40d818
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
cmp byte [edi], 0x22
jne 0x40d84c
push 0x22
mov eax, edi
inc eax
push eax
call sub.CRTDLL.DLL_strchr
add esp, 8
mov dword [ebp - 4], eax
or eax, eax
je 0x40d867
mov edi, eax
inc edi
jmp 0x40d844
inc edi
cmp byte [edi], 0x20
je 0x40d843
jmp 0x40d867
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x40d858
cmp eax, 0x20
jne 0x40d84b
jmp 0x40d85b
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x40d867
cmp eax, 0x20
je 0x40d85a
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push 1
push edi
push 0
push eax
call fcn.0040c2b2
pop edi
leave
ret
Function at 0x40af20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jle 0x40b034
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
sub eax, 0xffffff80
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
lea esi, [ecx + 2]
sub ecx, eax
add ecx, 0xfffffffe
lea edx, [eax + 2]
mov dword [esp + 0x18], ecx
lea eax, [edi - 1]
mov dword [esp + 0x10], edx
shr eax, 3
inc eax
mov dword [esp + 0x14], eax
movzx eax, byte [edx - 2]
add ecx, edx
push ecx
mov byte [ecx], al
movzx eax, byte [edx - 1]
mov byte [esi - 1], al
movzx eax, byte [edx]
mov byte [esi], al
movzx eax, byte [edx + 1]
mov byte [esi + 1], al
movzx eax, byte [edx + 2]
mov byte [esi + 2], al
movzx eax, byte [edx + 3]
mov byte [esi + 3], al
movzx eax, byte [edx + 4]
mov byte [esi + 4], al
movzx eax, byte [edx + 5]
mov byte [esi + 5], al
mov edi, dword [edx - 2]
mov ebx, dword [edx + 2]
mov edx, ecx
mov ecx, dword [esp + 0x20]
call fcn.0040a5e0
mov ecx, dword [ebp + 8]
lea esi, [esi + 8]
mov edx, dword [esp + 0x14]
add esp, 4
movzx eax, byte [ecx + 0x100]
mov ecx, dword [esp + 0x18]
xor byte [edx + ecx], al
add edx, 8
mov ecx, dword [ebp + 8]
mov dword [esp + 0x10], edx
movzx eax, byte [ecx + 0x101]
xor byte [esi - 9], al
movzx eax, byte [ecx + 0x102]
xor byte [esi - 8], al
movzx eax, byte [ecx + 0x103]
xor byte [esi - 7], al
movzx eax, byte [ecx + 0x104]
xor byte [esi - 6], al
movzx eax, byte [ecx + 0x105]
xor byte [esi - 5], al
movzx eax, byte [ecx + 0x106]
xor byte [esi - 4], al
movzx eax, byte [ecx + 0x107]
xor byte [esi - 3], al
sub dword [esp + 0x14], 1
mov dword [ecx + 0x100], edi
mov dword [ecx + 0x104], ebx
mov ecx, dword [esp + 0x18]
jne 0x40af65
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412910
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x412925
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412930
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x412960
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x412979
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412985
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x412980
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4129c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x6240b8]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.00412860
mov esi, eax
test esi, esi
jne 0x412ab7
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x412a89
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.004129c0
mov esi, eax
test esi, esi
jne 0x412ab7
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x412a50
mov eax, dword [esp + 0xc]
test eax, eax
je 0x412aa0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.00412700
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x412ac6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0041eca9
mov esp, ebp
pop ebp
ret 4
Function at 0x412fb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c066
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x6240b8]
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 eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x41305c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x41305c
call fcn.004123e0
mov esi, eax
jmp 0x41314c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41307f
call fcn.004123e0
jmp 0x41313f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x41309d
call fcn.004123e0
jmp 0x41313f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4130be
mov esi, 0x8007000e
jmp 0x413141
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00414da0
jmp 0x4130e8
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x4130ff
mov esi, 0x8007000e
jmp 0x413141
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x41311f
call fcn.004123e0
jmp 0x41313f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00413e10
mov esi, eax
test edi, edi
je 0x41314c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x413170
lea ecx, [ebp - 0x418]
call fcn.00414f20
nop word [eax + eax]
mov eax, esi
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.0041eca9
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4153b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c1c3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6240b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x628f64
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x628f64
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x6197d1
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.00417080
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41bb00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x62db60], ecx
inc eax
cmp eax, 0x100
jb 0x41bb02
cmp eax, 0x800
jae 0x41bbd3
nop
mov edx, dword [eax*4 + 0x62d760]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x62db60]
mov dword [eax*4 + 0x62db60], edx
inc eax
cmp eax, 0x800
jb 0x41bbb0
mov dword [0x628f70], 0x41c970
call fcn.0041c7a0
mov ecx, dword [0x628f70]
test eax, eax
mov edx, 0x41ca10
cmove ecx, edx
mov dword [0x628f70], ecx
ret
Function at 0x41ccf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
xor ebx, ebx
and eax, 7
cmp ecx, 5
jae 0x41cd10
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
lea edx, [ecx - 4]
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
add edx, esi
mov dword [ebp - 4], edx
add esi, ebx
mov dword [ebp + 0xc], esi
cmp esi, edx
jae 0x41cd42
nop dword [eax]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x41cd3f
inc esi
cmp esi, edx
jb 0x41cd30
mov dword [ebp + 0xc], esi
mov ebx, esi
sub ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x41ce6c
cmp ecx, 3
jbe 0x41cd82
xor eax, eax
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x10], edi
test cl, cl
je 0x41cdc0
cmp cl, 0xff
je 0x41cdc0
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov ecx, 1
or eax, 1
add ebx, ecx
jmp 0x41cd24
dec ecx
shl eax, cl
and eax, 7
je 0x41cd5a
movzx ecx, byte [eax + 0x59fea8]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x59fea0], 0
mov cl, byte [edx + 4]
je 0x41cdaa
test cl, cl
je 0x41cdaa
cmp cl, 0xff
jne 0x41cd5a
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x41cd24
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 0x10]
shl edi, 8
or edi, ecx
cmp dword [ebp + 0x18], 0
je 0x41cdee
lea edx, [edi + ebx]
add edx, esi
jmp 0x41cdf4
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x41ce32
movzx edi, byte [eax + 0x59fea8]
mov ecx, 0x18
shl edi, 3
sub ecx, edi
mov dword [ebp - 0xc], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 8], edi
test cl, cl
je 0x41ce1e
cmp cl, 0xff
jne 0x41ce32
mov ecx, 0x20
mov edi, 1
sub ecx, dword [ebp - 0xc]
shl edi, cl
dec edi
xor edi, edx
jmp 0x41cde1
mov esi, dword [ebp + 0xc]
mov ecx, edx
mov edi, dword [ebp - 0x10]
shr ecx, 0x18
and cl, 1
dec cl
mov byte [esi + 1], dl
not cl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
mov edx, dword [ebp - 4]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
mov esi, dword [ebp + 8]
add ebx, ecx
jmp 0x41cd24
pop edi
pop esi
cmp ecx, 3
jbe 0x41ce81
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0x14]
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41fff0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
mov esi, dword [edi + 8]
mov ecx, dword [esi + 8]
call fcn.004214a0
push dword [ebp + 0xc]
mov ecx, dword [esi + 8]
call fcn.00421450
push dword [ebp + 0x10]
mov ecx, dword [esi + 8]
call fcn.004214f0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
test eax, eax
je 0x42002c
mov ecx, dword [edi + 8]
mov dword [ecx + 0xc], eax
mov esi, dword [edi + 8]
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x420080
push 0
push 0
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10], eax
test eax, eax
je 0x420070
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x420070
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0
mov eax, dword [edi + 8]
pop edi
pop esi
mov al, byte [eax + 4]
pop ebp
ret 0xc
Function at 0x420400
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c6a6
mov eax, dword fs:[0]
push eax
sub esp, 0x630
mov eax, dword [0x6240b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x638], esi
lea eax, [esi + 8]
mov dword [esi], 0
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x63c], esi
jb 0x42045a
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 0x34], 7
mov dword [esi + 0x30], ecx
cmp dword [esi + 0x34], 8
mov dword [ebp - 4], ecx
jb 0x420477
mov eax, dword [esi + 0x20]
jmp 0x42047a
lea eax, [esi + 0x20]
xor ecx, ecx
mov word [eax], cx
lea eax, [esi + 0x38]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x420494
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [esi + 0x50]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x4204ae
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [esi + 0x68]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x4204c8
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
push ecx
mov byte [ebp - 4], 4
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], ecx
call fcn.00442f67
push eax
call fcn.0044f5c2
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0043ffd0
add esp, 0x14
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x420587
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x634]
push eax
call fcn.0043ffd0
add esp, 0xc
lea eax, [ebp - 0x634]
push 0x208
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x420578
test eax, eax
je 0x420578
add eax, eax
cmp eax, 0x412
jae 0x420573
xor ecx, ecx
mov word [ebp + eax - 0x634], cx
lea eax, [ebp - 0x634]
jmp 0x42057e
call fcn.0041f2f3
lea eax, [ebp - 0x220]
push eax
lea ecx, [esi + 0x20]
call fcn.004017d0
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4205b3
cmp dword [esi + 0x34], 8
jb 0x420599
mov ecx, dword [esi + 0x20]
jmp 0x42059c
lea ecx, [esi + 0x20]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x4205b3
push 1
push 0x619b14
lea ecx, [esi + 0x20]
call fcn.004048e0
cmp dword [esi + 0x30], 0
jne 0x4205c8
push 3
push 0x5a0078
lea ecx, [esi + 0x20]
call fcn.00401820
mov dword [esi + 4], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041eca9
mov esp, ebp
pop ebp
ret
Function at 0x4205f0
Capabilities:
Delete file

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x60], 0
je 0x42060c
cmp dword [edi + 0x64], 8
lea eax, [edi + 0x50]
jb 0x420605
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [edi + 0x80]
test eax, eax
je 0x420629
push eax
call fcn.0041efa3
add esp, 4
mov dword [edi + 0x80], 0
mov eax, dword [edi + 0x7c]
lea esi, [edi + 0x68]
cmp eax, 8
jb 0x42063f
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00401b30
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x420655
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x50]
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x420670
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00401b30
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x420686
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x38]
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x4206a1
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00401b30
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4206b7
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x20]
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x4206d2
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00401b30
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4206e8
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
mov eax, dword [edi + 0x1c]
cmp eax, 8
jb 0x420702
inc eax
lea ecx, [edi + 8]
push eax
push dword [edi + 8]
call fcn.00401b30
mov dword [edi + 0x1c], 7
cmp dword [edi + 0x1c], 8
mov dword [edi + 0x18], 0
jb 0x420721
mov eax, dword [edi + 8]
xor ecx, ecx
pop edi
pop esi
mov word [eax], cx
ret
xor eax, eax
mov word [edi + 8], ax
pop edi
pop esi
ret
Function at 0x421e60
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
sub esp, 8
test eax, eax
je 0x421e9e
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 8], 4
push ecx
push 0x20000005
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x421e9e
mov eax, dword [ebp - 4]
xor edx, edx
mov esp, ebp
pop ebp
ret
xor eax, eax
xor edx, edx
mov esp, ebp
pop ebp
ret