joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000af22
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1000afe9
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0xfff6
jb 0x1000af84
mov dword [ebp - 4], 1
jmp 0x1000af88
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp dword [ebp - 4], eax
jl 0x1000af9b
mov dword [ebp - 8], 1
jmp 0x1000af9f
and dword [ebp - 8], 0
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
cmp dword [ebp - 8], eax
jge 0x1000afb2
mov dword [ebp - 0xc], 1
jmp 0x1000afb6
and dword [ebp - 0xc], 0
push 0
mov ecx, dword [ebp - 0x34]
call fcn.10008f7a
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax]
mov eax, dword [ebp - 0x10]
sub ecx, dword [eax]
cmp ecx, 0xda73
jle 0x1000afdb
mov dword [ebp - 0x14], 1
jmp 0x1000afdf
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
jmp 0x1000b007
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax]
test eax, eax
je 0x1000b007
push 0
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov esp, ebp
pop ebp
ret
Function at 0x1000b00b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1000b03e
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
test eax, eax
je 0x1000b039
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
jmp 0x1000b19a
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 1
jle 0x1000b0a7
mov dword [ebp - 0x10], 1
jmp 0x1000b0ab
and dword [ebp - 0x10], 0
imul eax, dword [ebp - 0x10], 0xc23e
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jl 0x1000b0cc
mov dword [ebp - 0x18], 1
jmp 0x1000b0d0
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x18], eax
jl 0x1000b0e2
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x1000b0ea
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x1000b0f8
or eax, 0xffffffff
je 0x1000b0f8
mov dword [ebp - 0x1c], 1
jmp 0x1000b0fc
and dword [ebp - 0x1c], 0
push 0xfffffffffffffff6
pop eax
sub eax, dword [ebp - 0x1c]
jne 0x1000b112
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x1000b112
and dword [ebp - 0x20], 0
jmp 0x1000b119
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x20], eax
jg 0x1000b12c
mov dword [ebp - 0x24], 1
jmp 0x1000b130
and dword [ebp - 0x24], 0
cmp dword [ebp - 0x24], 0xffffffff
jl 0x1000b13f
mov dword [ebp - 0x28], 1
jmp 0x1000b143
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x28]
jl 0x1000b156
mov dword [ebp - 0x2c], 1
jmp 0x1000b15a
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [eax]
mov eax, dword [ebp - 4]
cmp ecx, dword [eax]
jl 0x1000b172
mov dword [ebp - 0x30], 1
jmp 0x1000b176
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
dec eax
jne 0x1000b18b
mov eax, 0x1940
test eax, eax
jne 0x1000b18b
and dword [ebp - 0x34], 0
jmp 0x1000b192
mov dword [ebp - 0x34], 1
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10014906
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x1001492a
xor eax, eax
jmp 0x10014aba
lea eax, [ebp + 8]
push eax
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x6384
push 0x709
call fcn.100143c4
add esp, 0x18
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x1001495c
xor eax, eax
jmp 0x10014aba
push dword [ebp - 8]
push 1
lea eax, [ebp - 0xc]
push eax
push 0x2cf3
call fcn.10014210
add esp, 0x10
cmp dword [ebp - 0xc], 0
jne 0x1001497f
xor eax, eax
jmp 0x10014aba
lea eax, [ebp - 0x24]
push eax
push 1
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call fcn.100142a1
add esp, 0x18
push 0x1bac
lea eax, [ebp - 8]
push eax
push 0x4591
push 0x1219
push 0x3119
push 0xf3d
lea eax, [ebp + 8]
push eax
push 1
push 0x1864
push 0x72e3
lea eax, [ebp - 4]
push eax
push 0x5951
push 0x4028
push 0x1e4c
push 0x1421
call fcn.1001443b
add esp, 0x3c
push 1
lea eax, [ebp - 0x14]
push eax
push 0x3892
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.10014686
add esp, 0x14
cmp dword [ebp - 0x14], 0
je 0x10014a25
push 0x91b
lea eax, [ebp - 0x14]
push eax
push 0x2ea
push 1
lea eax, [ebp - 4]
push eax
call fcn.100146f2
add esp, 0x14
push dword [ebp - 4]
call fcn.100140e5
pop ecx
test eax, eax
jne 0x10014a39
xor eax, eax
jmp 0x10014aba
push 0x4cc7
lea eax, [ebp - 4]
push eax
push 0x6baa
push 0x2621
push 0x5fcb
push 1
push 0x721d
call fcn.1001477a
add esp, 0x1c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x10014aa2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x10014a7f
xor eax, eax
jmp 0x10014aba
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10014a98
xor eax, eax
jmp 0x10014aba
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x10014ab3
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x10014ab7
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x1003a81b
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1003a830
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1003a84e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1003a84e
push 0
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov esp, ebp
pop ebp
ret
Function at 0x10051f38
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10051f58
push 0x13d5
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x10051fea
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0xfffffffa
jmp 0x10051f86
mov eax, dword [ebp - 4]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0xffffffe8
jge 0x10051fea
mov dword [ebp - 0x1c], 0xab27
mov dword [ebp - 0x24], 0x58bfc4f2
mov dword [ebp - 8], 0x5362
cmp dword [ebp - 0x1c], 0
je 0x10051fbd
mov eax, dword [ebp - 4]
cmp dword [eax], 0xd208
jne 0x10051fbd
mov dword [ebp - 0xc], 1
jmp 0x10051fc1
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp dword [ebp - 0xc], eax
jl 0x10051fd9
mov dword [ebp - 0x10], 1
jmp 0x10051fdd
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
jmp 0x10051f7b
mov esp, ebp
pop ebp
ret
Function at 0x1007d425
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1008738c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1006e22c
mov dword [ebp - 0x14], eax
cmp dword [0x10674aac], esi
jne 0x1007d518
push 0x800
push esi
push 0x10007aec
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1007d4a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1007d5f8
push esi
push esi
push 0x10007aec
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1007d5f8
push 0x10007b04
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007d5f8
push eax
call ebx
push 0x10007b10
push edi
mov dword [0x10674aac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007b20
push edi
mov dword [0x10674ab0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007b34
push edi
mov dword [0x10674ab4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10674abc], eax
test eax, eax
je 0x1007d515
push 0x10007b50
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10674ab8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007d53d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007d530
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1007d552
push 4
pop eax
jmp 0x1007d5fa
cmp dword [ebp - 0x14], esi
je 0x1007d552
push dword [0x10674aac]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1007d537
mov eax, dword [0x10674ab8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1007d5b0
cmp dword [0x10674abc], edi
je 0x1007d5b0
push eax
call ebx
push dword [0x10674abc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1007d5b0
test eax, eax
je 0x1007d5b0
call ecx
test eax, eax
je 0x1007d5a5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1007d5a5
test byte [ebp - 8], 1
jne 0x1007d5b0
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1007d5e0
mov eax, dword [0x10674ab0]
cmp eax, edi
je 0x1007d5dd
push eax
call ebx
test eax, eax
je 0x1007d5dd
call eax
mov esi, eax
test esi, esi
je 0x1007d5dd
mov eax, dword [0x10674ab4]
cmp eax, edi
je 0x1007d5dd
push eax
call ebx
test eax, eax
je 0x1007d5dd
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10674aac]
call ebx
test eax, eax
je 0x1007d5f8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1007d5fa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x5709d0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
push eax
call sub.ws2_32.dll_connect
mov esp, ebp
pop ebp
ret

Function at 0x431001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x4017e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401838
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x40718c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40182b
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40183a
xor eax, eax
pop esi
leave
ret 4
Function at 0x406219
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x3c]
sub esp, 0x14
lea ecx, [eax + esi + 0x78]
mov eax, dword [ecx]
push ebx
push edi
test eax, eax
je 0x4062a8
cmp dword [ecx + 4], 0
je 0x4062a8
add eax, esi
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x4062a8
mov edx, dword [eax + 0x20]
mov edi, dword [eax + 0x1c]
mov eax, dword [eax + 0x24]
add eax, esi
xor ebx, ebx
add edx, esi
add edi, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ebx
test ecx, ecx
je 0x4062a8

Function at 0x432006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x4f0a6c1a
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0x632647d1
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4028a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x42feec
call fcn.004104d8
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x402954
test esi, esi
jne 0x402954
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x402938
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402932
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402932
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x402921
cmp esi, eax
jae 0x402925
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402913
cmp esi, eax
jb 0x402929
xor eax, eax
jmp 0x402932
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x40295d
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x42feec
call fcn.004104d8
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x4028c5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402a40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402a58
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402a8a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x402a86
cmp esi, eax
jae 0x402a8a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402a78
cmp esi, eax
jb 0x402a90
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x403f90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424c20
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x42e2ac]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
lea ecx, [ebp - 0x30]
call fcn.00402ac0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x30]
mov ebx, 0x10
cmp dword [ebp - 0x1c], ebx
jae 0x403fe1
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x20]
push 0
lea ecx, [ebp - 0x98]
push ecx
push edx
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x404057
xor ecx, ecx
mov dword [ebp - 0x3c], eax
mov word [ebp - 0x4c], cx
push 0x17
mov eax, str.Failed_to_write_to_pipe
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 7
call fcn.0040bfd0
push 0x215
push str.....CommonSourceADXBootstrapperClickTwice.DownloaderPipe.cpp
sub esp, 0x48
lea ebx, [ebp - 0x4c]
mov esi, esp
mov byte [ebp - 4], 1
mov dword [ebp - 0x9c], esp
call fcn.004043f0
lea esi, [ebp - 0x94]
call fcn.00407f90
add esp, 0x50
push 0x42b588
mov edx, esi
push edx
call fcn.004128da
cmp dword [ebp - 0x1c], ebx
jb 0x404068
mov eax, dword [ebp - 0x30]
push eax
call fcn.0041159e
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004115a9
mov esp, ebp
pop ebp
ret 4

Function at 0x406790
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423b4b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x42e2ac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004107f9
push 4
mov dword [ebp - 4], 0
call fcn.0041194d
mov edi, eax
add esp, 4
test edi, edi
je 0x40680c
call fcn.00410ba7
mov dword [edi], eax
call fcn.00410966
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0041089b
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406802
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004108c3
jmp 0x40680e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406880
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423b4b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x42e2ac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004107f9
push 4
mov dword [ebp - 4], 0
call fcn.0041194d
mov edi, eax
add esp, 4
test edi, edi
je 0x4068fc
call fcn.00410ba7
mov dword [edi], eax
call fcn.00410966
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0041089b
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4068f2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004108c3
jmp 0x4068fe
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4