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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x10050f7c
jl 0x10050f70
test esi, esi
jne 0x10050f7c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10050f95
push eax
push esi
push ecx
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, esi
mov dword [ebp - 4], esi
mov edx, dword [eax]
test edx, edx
je 0x10050fd5
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x10050fd5
mov edi, dword [ebp + 0xc]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 8], esi
add esp, 0xc
mov dword [ebp - 4], edi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
cmp dword [ebx + 0x4c], 0
je 0x1005108c
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10051000
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [ebp - 4]
mov edx, eax
mov ecx, dword [ebp - 8]
cmp eax, 0xfff
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov dword [ebp - 4], edx
jbe 0x1005104f
nop word [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call eax
mov ecx, dword [ebp - 8]
sub edi, eax
add ecx, eax
mov dword [ebp - 4], edi
add esp, 0x10
mov dword [ebp - 8], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x10051079
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10051020
cmp dword [ebp - 4], 0
jbe 0x1005108f
push dword [ebx + 0x4c]
push edi
push 1
push ecx
call eax
mov edx, dword [ebp - 4]
add esp, 0x10
sub edx, eax
sub esi, edx
mov edx, dword [ebp + 0x10]
mov eax, esi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp - 4]
sub esi, edx
mov edx, dword [ebp + 0x10]
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10051400
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1008800c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10051430
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005d0c9
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10051460
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10051460
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005d0c9
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x10051535
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10051489
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10051495
movsx eax, bl
jmp 0x100514cc
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x10051535
cmp eax, 1
jle 0x100514f6
cmp eax, 3
jne 0x10051535
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005d0c9
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10051514
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10051535
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x10051535
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005d0c9
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005d0c9
mov esp, ebp
pop ebp
ret 4
Function at 0x1005a630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1008800c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1005a6ec
cmp byte [esi + 0x3d], 0
je 0x1005a6ec
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1005a6da
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x1005a6a1
sub eax, 1
je 0x1005a6a5
sub eax, 2
jne 0x1005a6da
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005d0c9
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1005a6c3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1005a6da
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005d0c9
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005d0c9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1005d0c9
mov esp, ebp
pop ebp
ret
Function at 0x1005ce60
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006970d
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x1008800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x84]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x84], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x67452301
mov dword [ebp - 0x34], 0xefcdab89
mov dword [ebp - 0x30], 0x98badcfe
mov dword [ebp - 0x2c], 0x10325476
call fcn.1005cd00
cmp byte [ebp - 0x84], 0
jne 0x1005cfb1
xor edx, edx
lea ecx, [ebp - 0x3f]
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0x18], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0x17], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 0x16], al
movzx eax, byte [ecx - 2]
mov byte [ebp + edx - 0x15], al
add edx, 4
cmp edx, 8
jb 0x1005cef5
mov edx, dword [ebp - 0x40]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
lea ecx, [ebp - 0x84]
push eax
push 0x10089608
call fcn.1005cd00
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x84]
call fcn.1005cd00
xor edx, edx
lea ecx, [ebp - 0x37]
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0x28], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0x27], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 0x26], al
movzx eax, byte [ecx - 2]
mov byte [ebp + edx - 0x25], al
add edx, 4
cmp edx, 0x10
jb 0x1005cf64
push 0x40
lea eax, [ebp - 0x83]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov byte [ebp - 0x84], 1
add esp, 0xc
movq qword [ebp - 0x40], xmm0
push esi
lea ecx, [ebp - 0x84]
call fcn.1005cdb0
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x1005cff3
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1005cfe9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005cfe9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1005d9f0
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005d0c9
mov esp, ebp
pop ebp
ret
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1002aaee
pop dword [ebp - 0x20]
mov eax, 0x1002aaee
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x31f2889c
add dword [ebp - 0x30], 0x1c5fbcaf
mov dword [ebp - 0x2c], 0xd524d965
add dword [ebp - 0x2c], 0x5d0e72e0
mov dword [ebp - 0x28], 0x73f9855a
sub dword [ebp - 0x28], 0x27ad412c
mov dword [ebp - 0x24], 0x1b0243d5
sub dword [ebp - 0x24], 0x1b0243d5
lea eax, [ebp - 0x30]
push eax
mov eax, 0xf42fb16f
add eax, 0x1bd30ec9
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xbceae5e2
add dword [ebp - 0x30], 0xb7878374
mov dword [ebp - 0x2c], 0xf4316cc5
add dword [ebp - 0x2c], 0x4d3af4b0
mov dword [ebp - 0x28], 0xb8e33cae
add dword [ebp - 0x28], 0xaa8c2fbe
mov dword [ebp - 0x24], 0x809901ca
add dword [ebp - 0x24], 0x7f66fe36
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x35cf4
push 0
call eax
mov ecx, 0x4fdeaffb
sub ecx, 0x4fde6a9d
mov edx, eax
mov esi, 0xc2570e7d
add esi, 0x4dac8783
add esi, dword [ebp - 0x20]
mov ebx, 0x79886855
add ebx, 0x4786a4e8
mov edi, dword [esi]
xor dword [ebp - 0x18], 0x4baaa959
sub edi, ebx
xor dword [ebp - 4], 0x2552a5f
mov dword [edx], edi
sub dword [ebp - 4], 0x87bf4af9
add edx, 0x1459aa48
sub edx, 0x1459aa44
add esi, 0xd929cb9d
add esi, 0x26d63467
loop 0x1002ac06
add eax, 0x320195af
add eax, 0xcdff729c
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x792ade27
sub ecx, 0x692ade27
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x401490
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459bea
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4714d0]
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 edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.00439d3e
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x401536
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.0043d901
push 0x46fc9c
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.0044171b
push edi
push esi
call fcn.00439ac9
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 - 0x10]
xor ecx, ebp
call fcn.0043d8bb
mov esp, ebp
pop ebp
ret 4

Function at 0x401b80
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x459c78
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x4714d0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00402fc0
push dword [ebp + 0xc]
lea eax, [esp + 0x28]
push dword [ebp + 8]
push eax
call fcn.00401ab0
add esp, 0x24
mov dword [esp + 0x30], 0
cmp dword [eax + 0x14], 0x10
jb 0x401bf1
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ecx, esi
lea eax, [esp + 8]
push eax
call fcn.0043d901
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x401c1a
push dword [esp + 0xc]
call fcn.0043e223
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.std::_System_error.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x459d18
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4714d0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x4714d0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x403774
cmp byte [ebx + 0x45], 0
je 0x403774
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x403680
xor al, al
jmp 0x403776
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x4036c0
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x403701
dec eax
je 0x403705
sub eax, 2
je 0x40375b
xor bl, bl
jmp 0x40375d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x40373c
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0043e381
add esp, 0x10
cmp esi, eax
jne 0x4036fd
cmp byte [ebx + 0x45], 0
je 0x40375b
test esi, esi
jne 0x4036c0
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00402c70
jmp 0x4036c0
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x403770
push dword [esp + 0x18]
call fcn.0043e223
add esp, 4
mov al, bl
jmp 0x403776
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0043d8bb
mov esp, ebp
pop ebp
ret
Function at 0x406aa0
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx], 0
push ebx
mov ebx, dword [sym.imp.libcurl.dll_curl_easy_setopt]
push esi
push edi
mov edi, dword [ebp + 0x14]
je 0x406acb
push 1
push 0x29
push edi
call ebx
push 0x4060e0
push 0x4e7e
push edi
call ebx
add esp, 0x18
mov esi, dword [sym.imp.libcurl.dll_curl_slist_append]
push str.User_Agent:_Mozilla_5.0__Windows_NT_6.1__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_43.0.2357.130_Safari_537.36
push 0
call esi
push str.Accept_Language:_zh_CN_zh_q0.8_en_US_q0.6_en_q0.5_q0.4
push eax
mov dword [ebp + 0x14], eax
call esi
push dword [ebp + 0x14]
push 0x2727
push edi
call ebx
push 0
push 0x29
push edi
call ebx
push 0x465da0
push 0x272f
push edi
call ebx
mov eax, dword [ebp + 8]
add esp, 0x34
cmp dword [eax + 0x14], 0x10
jb 0x406b12
mov eax, dword [eax]
push eax
push 0x2712
push edi
call ebx
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov edx, dword [eax + 0x14]
cmp edx, 0x10
jb 0x406b2d
mov ecx, dword [eax]
jmp 0x406b2f
mov ecx, eax
cmp ecx, 0x465da0
je 0x406b4a
cmp edx, 0x10
jb 0x406b3e
mov eax, dword [eax]
push eax
push 0x2726
push edi
call ebx
add esp, 0xc
push 0
push 0x4e2c
push edi
call ebx
push 0x406150
push 0x4e2b
push edi
call ebx
push dword [ebp + 0x10]
push 0x2711
push edi
call ebx
push 1
push 0x63
push edi
call ebx
push 8
push 0x4e
push edi
call ebx
push 0xa
push 0xd
push edi
call ebx
add esp, 0x48
push edi
call dword [sym.imp.libcurl.dll_curl_easy_perform]
push dword [ebp + 0x14]
mov esi, eax
call dword [sym.imp.libcurl.dll_curl_slist_free_all]
push edi
call dword [sym.imp.libcurl.dll_curl_easy_cleanup]
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x408960
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a174
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4714d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x2c], 0xf
mov dword [edi + 0x28], 0
mov byte [edi + 0x18], 0
mov dword [edi + 0x44], 0xf
mov dword [edi + 0x40], 0
mov byte [edi + 0x30], 0
mov dword [edi + 0x78], 0
push 0
mov byte [ebp - 4], 3
push 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
call fcn.0040ddd0
mov dword [edi + 0x7c], eax
xor ecx, ecx
mov byte [ebp - 4], 4
mov byte [edi + 0x54], 0
mov eax, 6
cmp byte [str.._log_], cl
cmove eax, ecx
lea ecx, [edi + 0x30]
push eax
push str.._log_
call fcn.004037a0
mov dword [edi + 0x48], 1
mov eax, edi
mov word [edi + 0x4c], 0x101
mov byte [edi + 0x4e], 0
mov dword [edi + 0x50], 0x64
mov byte [edi + 0x55], 1
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408ac0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a19b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4714d0]
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 ebx, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x218], 0xf
mov dword [ebp - 0x21c], 0
mov byte [ebp - 0x22c], 0
mov dword [ebp - 4], 0
cmp dword [ebx], 0
je 0x408b65
jmp 0x408b30
push dword [ebx]
lea eax, [ebp - 0x214]
push 0x200
push 1
push eax
call fcn.004408e3
add esp, 0x10
lea ecx, [ebp - 0x22c]
mov esi, eax
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.00402ed0
cmp esi, 0x200
je 0x408b30
lea eax, [ebp - 0x22c]
mov ecx, edi
push eax
call fcn.00402b90
cmp dword [ebp - 0x218], 0x10
jb 0x408b8a
push dword [ebp - 0x22c]
call fcn.0043e223
add esp, 4
mov eax, edi
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.0043d8bb
mov esp, ebp
pop ebp
ret 4
Function at 0x409b20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a2f8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4714d0]
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
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
je 0x409c56
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00408be0
push 1
push 0
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x2f
push eax
lea ecx, [ebp + 8]
call fcn.004054a0
mov esi, eax
cmp esi, 0xffffffff
je 0x409c56
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop
push esi
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 8]
call fcn.0040ccf0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], 0
jbe 0x409c20
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x4c], 0xf
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
call fcn.00402fc0
cmp dword [ebp - 0x4c], 0x10
lea eax, [ebp - 0x60]
cmovae eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
setne bl
cmp dword [ebp - 0x4c], 0x10
jb 0x409c03
push dword [ebp - 0x60]
call fcn.0043e223
add esp, 4
test bl, bl
jne 0x409c20
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
call edi
test eax, eax
setne al
test al, al
je 0x409c87
push 1
lea eax, [esi + 1]
mov byte [ebp - 0x14], 0x2f
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.004054a0
mov byte [ebp - 4], 1
mov esi, eax
cmp dword [ebp - 0x18], 0x10
jb 0x409c4d
push dword [ebp - 0x2c]
call fcn.0043e223
add esp, 4
cmp esi, 0xffffffff
jne 0x409ba0
mov bl, 1
cmp dword [ebp + 0x1c], 0x10
jb 0x409c69
push dword [ebp + 8]
call fcn.0043e223
add esp, 4
mov al, bl
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.0043d8bb
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x18], 0x10
jb 0x409c98
push dword [ebp - 0x2c]
call fcn.0043e223
add esp, 4
xor bl, bl
jmp 0x409c58
Function at 0x40b230
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x40b24c
push 6
push str.log4z_already_start__r_n
lea ecx, [esi - 0x10]
call fcn.0040ab50
xor al, al
pop esi
ret
push edi
push 0
push 0x40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push 0
push 0
lea edi, [esi - 0x10]
mov dword [esi + 0xc], eax
push edi
push 0x408940
push 0
push 0
call fcn.0044048f
xor ecx, ecx
add esp, 0x18
cmp ecx, 0xffffffff
je 0x40b2a9
mov ecx, eax
or ecx, 0
je 0x40b2a9
push 0xbb8
mov dword [edi + 8], eax
mov dword [edi + 0xc], 0
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40b2b6
pop edi
mov eax, 1
pop esi
ret
push str.log4z:_create_log4z_thread_error___r_n
call fcn.0043f3d8
add esp, 4
pop edi
xor eax, eax
pop esi
ret

Function at 0x40ba70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x459c78
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x4714d0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0x465da0
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.004037a0
lea eax, [esp + 0xc]
mov dword [esp + 0x30], 0
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [esi - 0x10]
movzx eax, al
push eax
push 6
push dword [ebp + 8]
call fcn.0040b680
cmp dword [esp + 0x20], 0x10
mov bl, al
jb 0x40baf8
push dword [esp + 0xc]
call fcn.0043e223
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40bb10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x459c78
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x4714d0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0x465da0
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.004037a0
lea eax, [esp + 0xc]
mov dword [esp + 0x30], 0
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [esi - 0x10]
movzx eax, al
push eax
push 7
push dword [ebp + 8]
call fcn.0040b680
cmp dword [esp + 0x20], 0x10
mov bl, al
jb 0x40bb98
push dword [esp + 0xc]
call fcn.0043e223
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8