joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40da70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov eax, dword [0x44b540]
test eax, eax
je 0x40dad0
mov esi, dword [eax + 0x2c]
test esi, esi
js 0x40daf0
mov ebx, dword [eax + 0x2c]
test ebx, ebx
jne 0x40db10
mov eax, dword [eax + 0x28]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
je 0x40db60
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44b540]
mov esi, dword [eax + 0x2c]
test esi, esi
jns 0x40da92
jmp 0x40daf0
call sym._fc_key_init_once
mov eax, dword [0x44b540]
mov ebx, dword [eax + 0x2c]
test ebx, ebx
je 0x40da99
jmp 0x40db10
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
sub esp, 4
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
jne 0x40dac1
lea esi, [esi]
mov eax, dword [0x44b540]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40dbad
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x40dbb9
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x40db8e
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40db7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40db7d
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44b540]
jmp 0x40db6c
call sym._fc_key_init_once
mov eax, dword [0x44b540]
jmp 0x40db73
Function at 0x40dbd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x44b540]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40dc64
mov esi, dword [eax + 0x2c]
test esi, esi
js 0x40dc80
mov ebx, dword [eax + 0x2c]
test ebx, ebx
jne 0x40dca0
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x40dc58
lea edx, [ebp - 0x14]
mov eax, edi
call sym.__Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x40dd1f
mov eax, dword [0x44b540]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40dcf6
mov edx, dword [eax + 0x2c]
test edx, edx
js 0x40dd10
mov edi, dword [eax + 0x2c]
test edi, edi
jne 0x40dcd0
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
lea edx, [ebp - 0x14]
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
jmp 0x40dc15
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44b540]
mov esi, dword [eax + 0x2c]
test esi, esi
jns 0x40dbf0
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x44b540]
mov ebx, dword [eax + 0x2c]
test ebx, ebx
je 0x40dbfb
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40dbfe
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40dc47
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40dc47
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44b540]
mov edx, dword [eax + 0x2c]
test edx, edx
jns 0x40dc39
nop
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x44b540]
jmp 0x40dc39
call sym._abort
lea esi, [esi]
lea edi, [edi]
Function at 0x40dd30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x40ddc2
mov eax, dword [0x44b540]
test eax, eax
je 0x40ddb6
mov ebx, dword [eax + 0x2c]
test ebx, ebx
js 0x40de31
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jne 0x40ddd7
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
jne 0x40de4f
mov eax, dword [0x44b540]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40de22
mov edx, dword [eax + 0x2c]
test edx, edx
js 0x40de40
mov edi, dword [eax + 0x2c]
test edi, edi
jne 0x40de03
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44b540]
jmp 0x40dd52
mov dword [esp], edi
call sym.__Unwind_SjLj_RaiseException
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40dd67
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40dda5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40dda5
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44b540]
jmp 0x40dd90
call sym._fc_key_init_once
mov eax, dword [0x44b540]
jmp 0x40dd5d
call sym._fc_key_init_once
mov eax, dword [0x44b540]
jmp 0x40dd9b
call sym._abort
lea esi, [esi]
lea edi, [edi]
Function at 0x416030
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init

Function at 0x4169a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sym._fread
test eax, eax
mov edx, eax
jle 0x4169f0
movzx eax, byte [esi + eax - 1]
mov dword [ebx + 0x24], eax
mov ebx, dword [ebp - 8]
mov eax, edx
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x24], 0xffffffff
mov eax, edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10001410
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10001432
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
je 0x10001452
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x50]
mov eax, dword [edi + 0x34]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push edx
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x10001496
mov ecx, dword [edi + 0x50]
push 4
push 0x3000
push ecx
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x10001496
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push 0x28
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x100014ce
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov dword [esi + 4], ebx
mov edx, dword [edi + 0x50]
push 4
mov dword [esi + 8], edx
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0x100013c0
mov dword [esi + 0x1c], 0x100013d0
mov dword [esi + 0x20], 0x100013f0
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x54]
push 0x1000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [edi + 0x54]
mov edx, dword [ebp + 8]
push ecx
push edx
push eax
mov dword [ebp - 4], eax
call fcn.1000b320
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 4]
push esi
push edi
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], ebx
call section..text
mov eax, ebx
add esp, 0x18
sub eax, dword [edi + 0x34]
je 0x10001546
push eax
mov eax, esi
call fcn.100011c0
add esp, 4
call fcn.10001250
test eax, eax
je 0x10001580
push esi
call fcn.100010b0
add esp, 4
mov eax, esi
call fcn.10001180
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x10001599
push 0
push 1
add eax, ebx
push ebx
call eax
test eax, eax
jne 0x10001592
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call fcn.10001690
add esp, 4
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x14], 1
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10001ab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
push edi
push esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], esi
call fcn.10006d3e
push eax
call fcn.10006bba
add esp, 8
xor edi, edi
jmp 0x10001ae2
xor esi, esi
push 4
push 0x1000
push 0xffff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp + edi*4 - 0x1c], eax
cmp eax, esi
je 0x10001bd1
mov ecx, edi
dec ecx
je 0x10001b23
dec ecx
jne 0x10001b36
mov ebx, dword [ebp - 0x14]
lea esp, [esp]
call fcn.10006bcc
mov byte [esi + ebx], al
inc esi
cmp esi, 0xffff
jb 0x10001b10
jmp 0x10001b36
push 0xffff
push 0xff
push eax
call fcn.1000a660
add esp, 0xc
inc edi
cmp edi, 3
jb 0x10001ae0
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
mov ebx, dword [ebp + 0xc]
je 0x10001b5f
mov ecx, dword [ebp + 8]
push 1
push 0
mov eax, ebx
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor edi, edi
mov dword [ebp - 0xc], edi
test edi, edi
je 0x10001b7b
mov eax, dword [ebp + 8]
push 1
push 0
mov edx, ebx
neg edx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor esi, esi
test ebx, ebx
je 0x10001bb8
mov edi, dword [ebp + edi*4 - 0x1c]
mov eax, ebx
sub eax, esi
cmp eax, 0xffff
jbe 0x10001b95
mov eax, 0xffff
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10001bd1
add esi, dword [ebp - 8]
cmp esi, ebx
jb 0x10001b85
mov edi, dword [ebp - 0xc]
inc edi
mov dword [ebp - 0xc], edi
cmp edi, 3
jb 0x10001b64
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, 3
jb 0x10001b43
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
lea esp, [esp]
mov eax, dword [ebp + esi*4 - 0x1c]
test eax, eax
je 0x10001bf2
push 0x8000
push 0
push eax
call edi
inc esi
cmp esi, 3
jb 0x10001be0
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001de0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
push ebx
call fcn.10006cdb
push 0x5c
push ebx
call fcn.10006b8c
mov esi, eax
push edi
lea eax, [ebp - 0x20c]
push 0x104
sub esi, ebx
push eax
sar esi, 1
call fcn.10006cdb
add esp, 0x20
inc esi
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x214], esi
mov edx, dword [ebp - 0x214]
mov eax, edi
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001e40
sub eax, esi
sar eax, 1
cmp edx, eax
jae 0x10001ea3
mov eax, edi
lea ecx, [ebp - 0x20c]
sub eax, ecx
mov dword [ebp - 0x218], eax
jmp 0x10001e6b
mov eax, dword [ebp - 0x218]
lea eax, [eax + edx*2]
cmp word [ebp + eax - 0x20c], 0x2e
je 0x10001e8a
mov ecx, dword [ebp - 0x210]
add ecx, 0x41
mov word [ebp + edx*2 - 0x20c], cx
mov eax, edi
inc edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001e90
sub eax, esi
sar eax, 1
cmp edx, eax
jb 0x10001e65
lea edx, [ebp - 0x20c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x10001ee0
lea eax, [ebp - 0x20c]
push eax
push 0x104
push ebx
call fcn.10006cdb
mov eax, dword [ebp - 0x210]
inc eax
add esp, 0xc
mov dword [ebp - 0x210], eax
cmp eax, 0x1a
jb 0x10001e34
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10006570
mov esp, ebp
pop ebp
ret
Function at 0x10001ef0
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
push edi
xor eax, eax
push eax
push 0x80000000
push 3
push eax
push 3
mov edi, ecx
push 0x80
push edi
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x10002055
lea eax, [ebp - 0x214]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x218], eax
cmp eax, 0xffffffff
jne 0x10001f78
cmp dword [ebp - 0x214], 0
je 0x10002055
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80000000
push 3
push 0
push 3
push 0x40000000
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x10002055
mov ecx, dword [ebp - 0x218]
mov eax, dword [ebp - 0x214]
mov edx, ecx
or edx, eax
je 0x1000202f
test eax, eax
jb 0x1000202f
ja 0x10001fc6
test ecx, ecx
je 0x1000202f
jmp 0x10001fc6
mov ecx, dword [ebp - 0x218]
sub ecx, dword [ebp - 0x220]
sbb eax, dword [ebp - 0x21c]
test eax, eax
ja 0x10001fe6
jb 0x10001fe0
cmp ecx, 0xffff
jae 0x10001fe6
mov ebx, ecx
mov edi, eax
jmp 0x10001fed
mov ebx, 0xffff
xor edi, edi
push ebx
push esi
call fcn.10001ab0
add esp, 8
test eax, eax
je 0x10002055
add dword [ebp - 0x220], ebx
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x214]
adc ecx, edi
mov dword [ebp - 0x21c], ecx
cmp ecx, eax
jb 0x10001fc0
ja 0x10002029
mov ecx, dword [ebp - 0x218]
cmp dword [ebp - 0x220], ecx
jb 0x10001fc6
mov edi, dword [ebp - 0x228]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ebx, [ebp - 0x210]
or esi, 0xffffffff
call fcn.10001de0
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x224], eax
jmp 0x10002059
test esi, esi
je 0x10002060
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x224]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10006570
mov esp, ebp
pop ebp
ret
Function at 0x10002080
Capabilities:
Delete file
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov edx, dword [0x10010b2c]
mov ecx, dword [str..A:]
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x80000000
push 3
push ebx
mov dword [ebp - 0x20], ecx
mov ecx, dword [0x10010b30]
mov dword [ebp - 0x1c], edx
mov dx, word [0x10010b34]
push ebx
mov dword [ebp - 0x18], ecx
mov ecx, dword [0x10010b38]
mov word [ebp - 0x14], dx
mov edx, dword [0x10010b3c]
push 0xc0000000
push eax
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x254], ebx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x10002254
mov ecx, esi
call fcn.10001850
mov dword [ebp - 0x240], eax
cmp eax, ebx
jne 0x10002144
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10002231
mov ax, word [eax]
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
lea ecx, [ebp - 0x20]
push ecx
mov word [ebp - 0x18], ax
call edi
mov edi, eax
mov dword [ebp - 0x234], edi
cmp edi, 0xffffffff
je 0x10002210
mov edx, dword [ebp - 0x240]
mov ax, word [edx]
lea ecx, [ebp - 0x248]
push ecx
lea edx, [ebp - 0x244]
push edx
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x23c]
push ecx
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov ebx, dword [ebp - 0x238]
imul ebx, dword [ebp - 0x23c]
lea eax, [ebp - 0x24c]
push eax
push esi
call fcn.10001c10
add esp, 8
test eax, eax
jne 0x100021de
push eax
lea ecx, [ebp - 0x254]
push ecx
push eax
push eax
push eax
push eax
push 0x90194
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1000220e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x250]
lea ebx, [ebp - 0x22c]
or esi, 0xffffffff
call fcn.10001de0
mov edx, ebx
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp - 0x234]
mov dword [ebp - 0x230], eax
xor ebx, ebx
mov eax, dword [ebp - 0x240]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp edi, 0xffffffff
je 0x10002231
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x1000223d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x230]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10006570
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.10006570
mov esp, ebp
pop ebp
ret
Function at 0x10002b10
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push esi
push edi
push 0x800000
push eax
push eax
push eax
push 0x10010c18
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov eax, dword [ecx + 4]
push str.POST
push eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x58], 0x14
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x50], 0x20
mov dword [ebp - 0x54], 0x3100
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [ebp - 0x5c], ebx
test ebx, ebx
jne 0x10002bc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x48]
mov eax, 0x20
xor ecx, ecx
lea esp, [esp]
mov esi, dword [ecx + 0x10015664]
cmp esi, dword [ebp + ecx - 0x24]
jne 0x10002c9b
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x10002ba0
jmp 0x10002cb3
push 4
lea ecx, [ebp - 0x54]
push ecx
push 0x1f
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 0
xor edi, edi
call fcn.10002650
add esp, 4
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x10002cb0
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x48]
push eax
push 0x4e
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
test eax, eax
jne 0x10002c0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
jmp 0x10002b92
mov edx, dword [ebp - 0x48]
test edx, edx
jne 0x10002c1e
mov dword [ebp - 0x4c], 0x2f89
jmp 0x10002b92
lea ecx, [ebp - 0x50]
push ecx
mov ecx, dword [edx + 8]
mov edx, dword [edx + 4]
lea eax, [ebp - 0x24]
push eax
push ecx
push edx
call fcn.10003c90
add esp, 0x10
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x10002b8f
push 0x10015884
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, 8
mov esi, 0x10014624
lea edi, [ebp - 0x44]
push 0x10015884
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x50], 0x20
jne 0x10002b8f
mov eax, 0x20
xor ecx, ecx
jmp 0x10002c80
mov edx, dword [ebp + ecx - 0x24]
cmp edx, dword [ebp + ecx - 0x44]
jne 0x10002b8f
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x10002c80
jmp 0x10002cb0
test edx, edx
je 0x10002ca7
mov eax, dword [edx + 8]
mov ebx, dword [edx + 4]
jmp 0x10002cab
xor eax, eax
xor ebx, ebx
call fcn.10006210
mov edx, dword [ebp - 0x48]
mov ecx, 8
lea esi, [ebp - 0x24]
mov edi, 0x10015664
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
test edx, edx
je 0x10002cd0
push edx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x10002cde
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4c]
xor ecx, ebp
call fcn.10006570
mov esp, ebp
pop ebp
ret
Function at 0x10002cf0
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [esi + 4]
push ebx
push edi
push 0x800000
push 0
push 0
push 0
push 0x10010c18
push str.POST
push eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 1
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
test ebx, ebx
jne 0x10002d39
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x10002d95
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 4
lea eax, [ebp - 4]
push eax
push 0x1f
push ebx
mov dword [ebp - 4], 0x3100
call edi
push 4
lea ecx, [ebp - 4]
push ecx
push 0x3f
push ebx
mov dword [ebp - 4], 8
call edi
push 0x36ee80
push 0x36ee80
push 0x493e0
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
lea edx, [esi + 8]
push edx
mov edi, 8
call fcn.10002650
add esp, 4
push ebx
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call ebx
mov eax, dword [esi + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test eax, eax
je 0x10002da5
push eax
call edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x10002daf
push eax
call edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10002dc6
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10002dd6
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov eax, dword [esi]
test eax, eax
je 0x10002df6
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10002e07
push eax
call ebx
mov dword [esi + 4], 0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002e10
Capabilities:
Initialize winhttp library
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
xor eax, eax
mov dword [esi], eax
push edi
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
push eax
mov dword [esi + 0x14], eax
push eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
push eax
mov dword [esi + 0x20], eax
push str.Mozilla_5.0__Windows_NT_6.3__Trident_7.0__rv:11.0__like_Gecko
mov dword [esi + 0x24], eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi], eax
test eax, eax
je 0x10002e7b
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esi + 4], eax
test eax, eax
je 0x10002e7b
call fcn.10002910
mov edi, eax
test edi, edi
jne 0x10002e87
mov ecx, esi
call fcn.10002b10
mov eax, edi
pop edi
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x10002e94
cmp edi, 0x102
je 0x10002e94
call fcn.10002cf0
mov eax, edi
pop edi
pop esi
pop ebp
ret