joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59ad70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x49c015
lea edi, [esi - 0x9b015]
push edi
or ebp, 0xffffffff
jmp 0x59ad92
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x59ad99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59ad88
mov eax, 1
add ebx, ebx
jne 0x59adab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x59adbc
jne 0x59addb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59addb
dec eax
add ebx, ebx
jne 0x59adc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x59ada0
add ebx, ebx
jne 0x59add7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x59ae2d
xor ecx, ecx
sub eax, 3
jb 0x59adf3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x59ae62
sar eax, 1
mov ebp, eax
jmp 0x59adfe
add ebx, ebx
jne 0x59adfe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59adcc
inc ecx
add ebx, ebx
jne 0x59ae0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59adcc
add ebx, ebx
jne 0x59ae19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x59ae0e
jne 0x59ae2a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x59ae0e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x59ae4c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x59ae3e
jmp 0x59ad8e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x59ae4c
add edi, ecx
jmp 0x59ad8e
pop esi
mov edi, esi
mov ecx, 0x2c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x59ae6a
cmp byte [edi], 0
jne 0x59ae6a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x59ae6f
lea edi, [esi + 0x198000]
mov eax, dword [edi]
or eax, eax
je 0x59aede
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19a1e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19a26c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x59ae9c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19a274]
or eax, eax
je 0x59aed8
mov dword [ebx], eax
add ebx, 4
jmp 0x59aeb9
call dword [esi + 0x19a270]
mov ebp, dword [esi + 0x19a278]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x59af12
sub esp, 0xffffff80
jmp 0x401d2a
Function at 0x402aeb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43631d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x44c054]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x44c054]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
cmp ebx, esi
jne 0x402b35
xor eax, eax
jmp 0x402ca5
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x402b5e
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x402b5e
dec dword [edx]
mov edx, dword [edi + 0x20]
mov eax, ebx
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x402ca5
cmp dword [edi + 0x50], 0
je 0x402ca3
mov ecx, edi
call fcn.00403ad4
xor eax, eax
cmp dword [edi + 0x40], eax
jne 0x402b8f
push dword [edi + 0x50]
movsx eax, bl
push eax
call dword [sym.imp.MSVCR110.dll_fputc]
pop ecx
cmp eax, esi
pop ecx
cmovne esi, ebx
jmp 0x402ca3
push eax
push 8
lea ecx, [esp + 0x28]
mov byte [esp + 0x1b], bl
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], eax
mov byte [esp + 0x28], al
call fcn.00403c99
and dword [esp + 0x48], 0
cmp dword [esp + 0x34], 0x10
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x24]
cmovae edx, dword [esp + 0x24]
lea ecx, [esp + 0x24]
cmovae ecx, dword [esp + 0x24]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x40]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x27]
push eax
lea eax, [edi + 0x48]
push eax
call dword [sym.imp.MSVCP110.dll_public:_int___thiscall_std::codecvt_char__char__int_::out_int___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x402c9a
cmp eax, 1
jg 0x402c7f
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
cmp ecx, 0x10
lea eax, [esp + 0x20]
cmovae eax, edx
sub ebx, eax
mov dword [esp + 0x14], ebx
mov ebx, dword [ebp + 8]
je 0x402c49
push dword [edi + 0x50]
cmp ecx, 0x10
push dword [esp + 0x18]
lea eax, [esp + 0x28]
cmovae eax, edx
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
mov ecx, dword [esp + 0x24]
add esp, 0x10
cmp ecx, eax
jne 0x402c9a
jmp 0x402c4d
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x13]
mov byte [edi + 0x45], 1
cmp dword [esp + 0x1c], eax
jne 0x402c7b
test ecx, ecx
jne 0x402bb4
cmp dword [esp + 0x30], 0x20
jae 0x402c9a
push ecx
push 8
lea ecx, [esp + 0x28]
call fcn.0040343c
jmp 0x402bb4
mov esi, ebx
jmp 0x402c9a
cmp eax, 3
jne 0x402c9a
movsx eax, byte [esp + 0x13]
push dword [edi + 0x50]
push eax
call dword [sym.imp.MSVCR110.dll_fputc]
pop ecx
cmp eax, esi
pop ecx
cmovne esi, ebx
lea ecx, [esp + 0x20]
call fcn.004023b1
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0041d508
mov esp, ebp
pop ebp
ret 4
Function at 0x40394d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4362b6
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x44c054]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x44c054]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x403a87
cmp byte [esi + 0x45], bl
je 0x403a87
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4039ad
xor al, al
jmp 0x403a89
push ebx
push 8
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00403c99
mov dword [esp + 0x40], ebx
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
cmp edi, 0x10
lea edx, [esp + 0x1c]
cmovae edx, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
cmovae ecx, dword [esp + 0x1c]
add eax, edx
push eax
push ecx
mov ecx, dword [esi + 0x40]
lea eax, [esi + 0x48]
push eax
call dword [sym.imp.MSVCP110.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, ebx
je 0x403a0e
dec eax
je 0x403a11
dec eax
dec eax
jne 0x403a7a
inc eax
jmp 0x403a78
mov byte [esi + 0x45], bl
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
cmp edi, 0x10
lea eax, [esp + 0x18]
cmovae eax, ecx
sub edx, eax
mov dword [esp + 0x10], edx
je 0x403a55
push dword [esi + 0x50]
lea eax, [esp + 0x1c]
push edx
cmp edi, 0x10
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
mov edx, dword [esp + 0x20]
add esp, 0x10
cmp edx, eax
jne 0x403a76
mov edi, dword [esp + 0x2c]
cmp byte [esi + 0x45], 0
je 0x403a74
test edx, edx
jne 0x4039d1
push ebx
push 8
lea ecx, [esp + 0x20]
call fcn.0040343c
jmp 0x4039cd
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [esp + 0x18]
call fcn.004023b1
mov al, bl
jmp 0x403a89
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.0041d508
mov esp, ebp
pop ebp
ret
Function at 0x40754f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x44c054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp dword [ecx + 0x14], 8
push esi
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x128], eax
jb 0x40757d
mov ecx, dword [ecx]
push ebx
push 0x80
push 3
push ebx
push 1
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40765c
push edi
xorps xmm0, xmm0
push 0x43fc44
movlpd qword [ebp - 0x124], xmm0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
jae 0x407608
push str.GetFileSize
push edi
mov dword [ebp - 0x11c], ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407622
lea ecx, [ebp - 0x11c]
push ecx
push esi
call eax
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x120], eax
jmp 0x407622
push str.GetFileSizeEx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407622
lea ecx, [ebp - 0x124]
push ecx
push esi
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [ebp - 0x12c]
push 8
lea eax, [ebp - 0x124]
push eax
push ebx
call dword [sym.imp.MSVCR110.dll_memcpy]
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x128]
add esp, 0xc
mov dword [ecx], eax
mov eax, dword [ebx + 4]
push esi
mov dword [ecx + 4], eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0041d508
leave
ret
Function at 0x407a4e
Capabilities:
Enumerate files on windows
Enumerate files recursively
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x436182
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x44c054]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
push esi
push edi
mov eax, dword [0x44c054]
xor eax, esp
push eax
lea eax, [esp + 0x2e8]
mov dword fs:[0], eax
mov dword [esp + 0x10], edx
mov edi, ecx
call fcn.00407363
test al, al
je 0x407c60
xor eax, eax
mov esi, 0x43fc2c
xor ebx, ebx
push esi
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], ax
call dword [sym.imp.MSVCR110.dll_wcslen]
pop ecx
push eax
push esi
lea ecx, [esp + 0x4c]
call fcn.00406ab4
lea eax, [esp + 0x44]
push eax
mov edx, edi
lea ecx, [esp + 0x60]
mov dword [esp + 0x2f4], ebx
call fcn.00407378
pop ecx
push ebx
push 1
lea ecx, [esp + 0x4c]
call fcn.00406ccf
cmp dword [esp + 0x70], 8
lea ecx, [esp + 0x8c]
lea eax, [esp + 0x5c]
cmovae eax, dword [esp + 0x5c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
xor ecx, ecx
cmp esi, 0xffffffff
setne cl
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], ax
mov byte [esp + 0x2f0], 3
test ecx, ecx
je 0x407c3a
mov ebx, dword [sym.imp.MSVCR110.dll_wcscmp]
and dword [esp + 0x3c], 0
xor eax, eax
mov dword [esp + 0x40], 7
mov word [esp + 0x2c], ax
cmp word [esp + 0xb8], ax
je 0x407b6f
lea eax, [esp + 0xb8]
push eax
call dword [sym.imp.MSVCR110.dll_wcslen]
pop ecx
push eax
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x34]
call fcn.00406ab4
lea eax, [esp + 0x2c]
push eax
mov edx, edi
lea ecx, [esp + 0x78]
mov byte [esp + 0x2f4], 4
call fcn.00407378
pop ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00407ea1
push 0
push 1
lea ecx, [esp + 0x7c]
call fcn.00406ccf
push 0
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x2f8], 3
call fcn.00406ccf
test byte [esp + 0x8c], 0x10
jne 0x407be0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
call fcn.00408e17
jmp 0x407c21
cmp byte [ebp + 8], 0
je 0x407c21
lea eax, [esp + 0xb8]
push 0x43fc34
push eax
call ebx
pop ecx
pop ecx
test eax, eax
je 0x407c21
lea eax, [esp + 0xb8]
push 0x43fc38
push eax
call ebx
pop ecx
pop ecx
test eax, eax
je 0x407c21
push dword [ebp + 8]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
call fcn.00407a4e
pop ecx
lea eax, [esp + 0x8c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407b42
xor ebx, ebx
cmp esi, 0xffffffff
je 0x407c46
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push 1
lea ecx, [esp + 0x1c]
call fcn.00406ccf
push ebx
push 1
lea ecx, [esp + 0x64]
call fcn.00406ccf
mov al, 1
mov ecx, dword [esp + 0x2e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2d0]
xor ecx, esp
call fcn.0041d508
mov esp, ebp
pop ebp
ret
Function at 0x408691
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43631d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x44c054]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x44c054]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov esi, 0xffff
cmp si, bx
jne 0x4086de
xor eax, eax
jmp 0x408868
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x40870a
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x40870a
dec dword [edx]
mov edx, dword [edi + 0x20]
mov ax, bx
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x408868
cmp dword [edi + 0x50], 0
je 0x408865
mov ecx, edi
call fcn.004094cb
xor ecx, ecx
cmp dword [edi + 0x40], ecx
jne 0x40873f
push dword [edi + 0x50]
push ebx
call dword [sym.imp.MSVCR110.dll_fputwc]
pop ecx
pop ecx
cmp ax, si
je 0x408865
movzx esi, bx
jmp 0x408865
movzx eax, bx
push ecx
mov dword [esp + 0x34], ecx
mov byte [esp + 0x24], cl
push 8
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], 0xf
call fcn.00403c99
and dword [esp + 0x48], 0
cmp dword [esp + 0x34], 0x10
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x24]
cmovae edx, dword [esp + 0x24]
lea ecx, [esp + 0x24]
cmovae ecx, dword [esp + 0x24]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x40]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x22]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [edi + 0x48]
push eax
call dword [sym.imp.MSVCP110.dll_public:_int___thiscall_std::codecvt_wchar_t__char__int_::out_int___wchar_t_const___wchar_t_const___wchar_t_const____char___char___char___const]
test eax, eax
js 0x40885c
cmp eax, 1
jg 0x40883d
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
cmp ecx, 0x10
lea eax, [esp + 0x20]
cmovae eax, edx
sub ebx, eax
mov dword [esp + 0x14], ebx
mov ebx, dword [ebp + 8]
je 0x408800
push dword [edi + 0x50]
cmp ecx, 0x10
push dword [esp + 0x18]
lea eax, [esp + 0x28]
cmovae eax, edx
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
mov ecx, dword [esp + 0x24]
add esp, 0x10
cmp ecx, eax
jne 0x408835
jmp 0x408804
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
mov byte [edi + 0x46], 1
cmp dword [esp + 0x1c], eax
jne 0x408832
test ecx, ecx
jne 0x408767
cmp dword [esp + 0x30], 0x20
jae 0x408838
push ecx
push 8
lea ecx, [esp + 0x28]
call fcn.0040343c
jmp 0x408767
movzx esi, bx
movzx esi, si
movzx esi, si
jmp 0x408859
cmp eax, 3
jne 0x40885c
push dword [edi + 0x50]
push dword [esp + 0x14]
call dword [sym.imp.MSVCR110.dll_fputwc]
pop ecx
pop ecx
cmp ax, si
je 0x408859
movzx esi, bx
movzx esi, si
lea ecx, [esp + 0x20]
call fcn.004023b1
mov ax, si
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0041d508
mov esp, ebp
pop ebp
ret 4
Function at 0x40936a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4362b6
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x44c054]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x44c054]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x4094ab
cmp byte [esi + 0x46], bl
je 0x4094ab
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x4093d1
xor al, al
jmp 0x4094ad
push ebx
push 8
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00403c99
mov dword [esp + 0x40], ebx
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
cmp edi, 0x10
lea edx, [esp + 0x1c]
cmovae edx, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
cmovae ecx, dword [esp + 0x1c]
add eax, edx
push eax
push ecx
mov ecx, dword [esi + 0x40]
lea eax, [esi + 0x48]
push eax
call dword [sym.imp.MSVCP110.dll_public:_int___thiscall_std::codecvt_wchar_t__char__int_::unshift_int___char___char___char___const]
sub eax, ebx
je 0x409432
dec eax
je 0x409435
dec eax
dec eax
jne 0x40949e
inc eax
jmp 0x40949c
mov byte [esi + 0x46], bl
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
cmp edi, 0x10
lea eax, [esp + 0x18]
cmovae eax, ecx
sub edx, eax
mov dword [esp + 0x10], edx
je 0x409479
push dword [esi + 0x50]
lea eax, [esp + 0x1c]
push edx
cmp edi, 0x10
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
mov edx, dword [esp + 0x20]
add esp, 0x10
cmp edx, eax
jne 0x40949a
mov edi, dword [esp + 0x2c]
cmp byte [esi + 0x46], 0
je 0x409498
test edx, edx
jne 0x4093f5
push ebx
push 8
lea ecx, [esp + 0x20]
call fcn.0040343c
jmp 0x4093f1
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [esp + 0x18]
call fcn.004023b1
mov al, bl
jmp 0x4094ad
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.0041d508
mov esp, ebp
pop ebp
ret

Function at 0x40a161
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40a1ba
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40a1ab
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x40a1a7
cmp esi, ecx
jae 0x40a1ab
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edx
jne 0x40a197
cmp esi, ecx
jb 0x40a1af
xor eax, eax
jmp 0x40a1b9
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40a9a5
Capabilities:
Create http request
Parse url

Disassembly:
push 0x64
mov eax, 0x43648c
call fcn.00433ea9
mov esi, ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
push 0x3c
lea eax, [esi + 0xc]
push ecx
push eax
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
call dword [sym.imp.MSVCR110.dll_memset]
or ecx, 0xffffffff
mov dword [esi + 0x14], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x44], ecx
lea eax, [esi + 0xc]
mov ecx, 0xffff
mov dword [eax], 0x3c
mov word [esi + 0x24], cx
mov ecx, dword [edi + 0x10]
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x40a9ff
mov edi, dword [edi]
push eax
push 0
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x40aa15
xor al, al
jmp 0x40aac9
push dword [esi + 0x1c]
lea ecx, [ebp - 0x28]
call fcn.00407e7c
xor edi, edi
mov dword [ebp - 4], edi
push dword [esi + 0x20]
lea ecx, [ebp - 0x58]
push edi
push ecx
mov ecx, eax
call fcn.00407fce
push eax
lea ecx, [esi + 0x48]
call fcn.00407ea1
push edi
push 1
lea ecx, [ebp - 0x58]
call fcn.00406ccf
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.00406ccf
push dword [esi + 0x38]
lea ecx, [ebp - 0x70]
call fcn.00407e7c
mov dword [ebp - 4], 1
push dword [esi + 0x3c]
lea ecx, [ebp - 0x40]
push edi
push ecx
mov ecx, eax
call fcn.00407fce
push eax
lea ecx, [esi + 0x60]
call fcn.00407ea1
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.00406ccf
push edi
push 1
lea ecx, [ebp - 0x70]
call fcn.00406ccf
cmp dword [ebx + 0x14], 8
jb 0x40aa9f
mov ebx, dword [ebx]
push edi
push edi
push edi
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi], eax
test eax, eax
je 0x40aa0e
xor ecx, ecx
mov edx, 0x4186f1
cmp ecx, edx
je 0x40aac7
push edx
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov al, 1
call fcn.00433e58
ret 0x10
Function at 0x40abd5
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push 0x20
mov eax, 0x436403
call fcn.00433edf
mov dword [ebp - 0x20], ecx
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], esi
push dword [eax + 8]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x40acc7
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x14]
inc eax
push eax
call fcn.0041d46f
pop ecx
mov ecx, dword [ebp - 0x14]
inc ecx
push ecx
mov ebx, eax
push esi
push ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.MSVCR110.dll_memset]
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
push ebx
push dword [eax + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x40ac53
mov dword [ebp - 0x14], esi
jmp 0x40ac65
cmp dword [ebp - 0x14], 0
jbe 0x40ac65
push dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
push ebx
call fcn.004067b0
or dword [ebp - 4], 0xffffffff
jmp 0x40acb0
push ebx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
cmp dword [ebp - 0x14], 0
pop ecx
mov dword [ebp - 0x18], esi
ja 0x40abec
test edi, edi
setne al
call fcn.00433e44
ret 4
Function at 0x40b069
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x44c054]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 8
push ebx
push esi
push edi
mov edi, edx
jb 0x40b089
mov ecx, dword [ecx]
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b0af
xor al, al
jmp 0x40b16b
or dword [ebp - 0x40c], 0xffffffff
cmp dword [edi + 0x14], 8
jb 0x40b0be
mov edi, dword [edi]
push 0x80
push 0x40
push 0x8101
lea eax, [ebp - 0x40c]
push edi
push eax
call dword [sym.imp.MSVCR110.dll__wsopen_s]
add esp, 0x14
test eax, eax
je 0x40b0f5
push dword [ebp - 0x40c]
call dword [sym.imp.MSVCR110.dll__close]
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b0a8
push 0x43fd6c
push dword [ebp - 0x40c]
call fcn.00419990
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x40b11b
push dword [ebp - 0x40c]
call dword [sym.imp.MSVCR110.dll__close]
jmp 0x40b161
mov dword [ebp - 0x408], ebx
jmp 0x40b134
push eax
lea eax, [ebp - 0x404]
push eax
push edi
call fcn.004194e0
add esp, 0xc
push ebx
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x408]
test eax, eax
jne 0x40b123
push edi
call fcn.00419690
mov bl, 1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d508
leave
ret