joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001a358
Capabilities:
Encode data using xor

Disassembly:
call 0x1001a2d1
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x1001a301
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x1001a31d
xor edx, 0
jmp 0x1001a328
xor edx, edx
jmp 0x1001a33f
jmp 0x1001a34b
xor eax, eax
push 0x8427d7c0
call 0x1001a358
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x1001a394
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x1001a36d
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x1001a3ab
add eax, 0
jno 0x1001a3b0
add esi, 0
ret 0x10

Function at 0x1001b119
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x1001b13b
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x1001b2dd
cmp edi, dword [ebp + 0x10]
jb 0x1001b2dd
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.1001ac05
inc edi
jmp 0x1001b1c4
jmp 0x1001b1d1
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1001ac05
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1001ac05
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x1001b225
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x1001b209
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.1001b253
add dword [eax], 0x39
jle 0x1001b22f
sub al, 0xf5
mov ch, al
call fcn.1001b268
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10
Function at 0x1001cf40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x1001cf56
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x1001cf67
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.1001cfa8
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx

Function at 0x1001f314
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x1001f25d
add ebx, 0
push ecx
call 0x1001f272
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x73a41048
sub ebx, dword [0x73a60887]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x73a60877
call fcn.1001ad3c
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.1001a24a
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x1001f3d0
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x1001f3d0
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x1001f387
mov eax, 1
lock xchg dword [0x73a60883], eax
push 0x3dd1fc71
call 0x1001f314
push esi
add esp, 8
cmp eax, 0
jne 0x1001f2fd
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x1001f323
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x1001f338
cmp ecx, edx
cmp eax, 0
je 0x1001f35d
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x1001f347
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.1001f376
dec eax
loope 0x1001f379
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x73a60883], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x1001f3ad
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x1001f3c2
jmp 0x1001f3cd
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x1001f2bb
Function at 0x10026435
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x1002670b
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x73a4d4fb
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x73a444c1
push 0xffffffffffffffff
call fcn.1001d635
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x1002649f
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.100264b7
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x100266ff
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x100266d3
Function at 0x10035f05
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10035f27
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10035f27
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10035f27
ret
cmp word [ebx + 4], 0x14c
jne 0x10035f27
test word [ebx + 0x16], 2
je 0x10035f27
test word [ebx + 0x16], 0x100
je 0x10035f27
cmp word [ebx + 0x18], 0x10b
jne 0x10035f27
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10035f27
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10035fb3
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10035f47
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1001ce92
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10035f27
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x10035fb3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10035f27
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10035f27
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10035f27
ret
cmp word [ebx + 4], 0x14c
jne 0x10035f27
test word [ebx + 0x16], 2
je 0x10035f27
test word [ebx + 0x16], 0x100
je 0x10035f27
cmp word [ebx + 0x18], 0x10b
jne 0x10035f27
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10035f27
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10035fb3
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10035f47
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1001ce92
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10035f27
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x1003606a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x100360c3
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1003606a
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10036079
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1043bd1c
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x100360ca
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1001cf40
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10036169
add edi, 4
add eax, 2
dec ecx
jne 0x100360af
call 0x10036116
loope 0x1003610c
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10036166
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x10036177
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1003612a
cmp eax, ecx
ja 0x1003612a
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100361b4
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x100361aa
lea edi, [ebp - 0x100]
push pe_nt_image_headers32
push edi
push esi
call fcn.1001d41f
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x10036079
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x100360c3
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1003606a
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10036079
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1043bd1c
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x100360ca
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1001cf40
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10036169
add edi, 4
add eax, 2
dec ecx
jne 0x100360af
call 0x10036116
loope 0x1003610c
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10036166
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x10036177
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1003612a
cmp eax, ecx
ja 0x1003612a
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100361b4
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x100361aa
lea edi, [ebp - 0x100]
push pe_nt_image_headers32
push edi
push esi
call fcn.1001d41f
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1001c200
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov edi, dword [ebp + 8]
mov eax, dword [0x10146014]
xor eax, ebp
mov dword [ebp - 0x10], eax
test edi, edi
je 0x1001c270
mov eax, dword [ebp + 0xc]
push eax
mov ebx, esp
xor ecx, ecx
mov dword [ebx], ecx
mov esi, dword [eax]
mov dword [eax], ecx
cmp esi, 0xffffffff
je 0x1001c234
test esi, esi
je 0x1001c255
call fcn.1007c020
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [esi + 1]
cmp eax, 2
jb 0x1001c24b
mov dword [ebx], esi
call fcn.1007c020
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.10041e50
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c2603
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push str.null_pointer_given_to_construct_at
push str.__location___nullptr
push 0x23
push str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
push str._s:_d:_assertion__s_failed:__s
call fcn.100f2480
int3
Function at 0x100237c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp + 0xc], eax
mov dword [esi], eax
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
lea edi, [ebx + 1]
cmp edi, 2
jb 0x100237e4
call fcn.1007c020
lea ecx, [ebp + 0xc]
cmp dword [esi], ebx
je 0x10023814
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x10023830
cmp edi, 2
jb 0x10023808
mov dword [esi], ebx
call fcn.1007c020
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp + 0xc]
lea esi, [ebp + 8]
lea edi, [esi + 0xc]
call fcn.10094f10
mov ecx, edi
call fcn.10094f10
mov eax, dword [esi]
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.1007c020
push dword [esi]
call fcn.10084410
add esp, 4
mov dword [esi], 0
jmp 0x100237fc
Function at 0x10025450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1b8
mov esi, edx
mov dword [ebp - 0x1c4], ecx
mov eax, dword [0x10146014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, 0x100
lea edi, [ebp - 0x110]
push eax
push 0xff
push edi
call fcn.100c5370
add esp, 0xc
xor ebx, ebx
lea eax, [ebp - 0x114]
mov dword [eax], ebx
push ebx
push eax
mov eax, 0x100
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002556f
lea esi, [ebp - 0x1c0]
mov dword [esi], 0xffffffff
push ebx
push ebx
push dword [ebp - 0x114]
push edi
push esi
call fcn.10012510
add esp, 0x14
mov ecx, dword [esi]
test ecx, ecx
je 0x10025513
call fcn.100677e0
cmp eax, 7
jbe 0x10025513
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c0]
call fcn.10067720
cmp dword [eax], esi
jne 0x1002558e
mov eax, dword [ebp - 0x1c0]
mov esi, dword [ebp - 0x1c4]
mov dword [esi], eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c2603
mov eax, esi
add esp, 0x1b8
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call fcn.1007c030
add esp, 4
test al, al
je 0x10025554
lea esi, [ebp - 0x1bc]
mov ecx, esi
push 2
push 0x40
push str.....mojocore_broker_win.cc
call fcn.10034a50
lea eax, [ebp - 0x1b4]
push 0x16
push str.Invalid_broker_message
push eax
call fcn.100ec330
add esp, 0xc
mov ecx, esi
call fcn.10034e90
push edi
call fcn.10065dd0
add esp, 4
lea eax, [ebp - 0x114]
push eax
call fcn.10065dd0
add esp, 4
int3
push 2
call fcn.1007c030
add esp, 4
test al, al
jne 0x100255ea
mov esi, dword [ebp - 0x1c4]
mov dword [esi], 0
jmp 0x100254fc
push 2
call fcn.1007c030
add esp, 4
test al, al
je 0x100255cf
lea esi, [ebp - 0x1bc]
mov ecx, esi
push 2
push 0x4b
push str.....mojocore_broker_win.cc
call fcn.10034a50
lea eax, [ebp - 0x1b4]
push 0x1e
push str.Unexpected_broker_message_type
push eax
call fcn.100ec330
add esp, 0xc
mov ecx, esi
call fcn.10034e90
push edi
call fcn.10065dd0
add esp, 4
lea eax, [ebp - 0x114]
push eax
call fcn.10065dd0
add esp, 4
int3
call fcn.1010a430
lea edi, [ebp - 0x1bc]
mov ecx, edi
push eax
push 2
push 0x38
push str.....mojocore_broker_win.cc
call fcn.1010a570
lea eax, [ebp - 0x1b4]
push 0x19
push str.Error_reading_broker_pipe
push eax
call fcn.100ec330
add esp, 0xc
mov ecx, edi
call fcn.1010a5d0
jmp 0x1002557d
Function at 0x10026300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov edi, edx
mov dword [ebp - 0x28], ecx
mov eax, dword [0x10146014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
lea esi, [ebp - 0x1c]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, dword [edx]
mov ebx, dword [eax + 0x1c]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push esi
call ebx
mov ebx, dword [esi]
mov esi, dword [esi + 4]
cmp ebx, esi
jne 0x100263aa
mov esi, dword [ebp - 0x28]
lea eax, [esi + 0x7c]
mov dword [ebp - 0x24], eax
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x20], ecx
mov ebx, dword [eax + 8]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
call ebx
push dword [ebp - 0x24]
push 0
push dword [ebp - 0x20]
push eax
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1002639b
mov byte [esi + 0xa6], 1
lock inc dword [esi + 4]
mov edi, dword [ebp - 0x1c]
test edi, edi
jne 0x100263b6
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c2603
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x10026377
jmp 0x10026382
mov ecx, ebx
call fcn.10023470
add ebx, 0x14
jmp 0x1002633d
mov esi, dword [ebp - 0x18]
mov eax, edi
cmp esi, edi
je 0x100263d0
add esi, 0xffffffec
mov ecx, esi
call fcn.1006f470
cmp esi, edi
jne 0x100263bf
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edi
push eax
call fcn.100c1c31
add esp, 4
jmp 0x10026389
Function at 0x10031b30
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [0x1014b80c]
test ebx, ebx
jne 0x10031bb2
push 0x28
call fcn.100c1c01
add esp, 4
mov esi, eax
xor edi, edi
mov dword [eax], edi
mov dword [eax + 4], edi
mov byte [eax + 8], 0
push 0xc
call fcn.100c1c01
add esp, 4
mov dword [esi + 0xc], eax
lea ecx, [eax + 0xc]
mov dword [esi + 0x14], ecx
test eax, eax
je 0x10031bbc
mov dword [eax + 4], edi
mov dword [eax], edi
mov dword [eax + 8], edi
mov dword [esi + 0x10], ecx
mov eax, esi
add eax, 0x1c
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x24], 1
mov dword [0x1014b80c], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
je 0x10031bd7
mov edi, eax
push eax
call fcn.100da260
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.10031be0
test ebx, ebx
sete al
pop esi
pop edi
pop ebx
pop ebp
ret
push str.null_pointer_given_to_construct_at
push str.__location___nullptr
push 0x23
push str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
push str._s:_d:_assertion__s_failed:__s
call fcn.100f2480
int3
Function at 0x10031be0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov edi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x10146014]
xor edx, ebp
mov dword [ebp - 0x10], edx
lea esi, [ebp - 0x20]
push 3
push ecx
push eax
push esi
call fcn.10042640
add esp, 0x10
mov eax, dword [esi + 4]
test eax, eax
je 0x10031d36
mov esi, dword [ebp - 0x20]
mov dword [edi], esi
mov dword [edi + 4], eax
xor eax, eax
mov dword [ebp - 0x14], eax
push 0x800
mov dword [ebp - 0x24], 0
push eax
push 0x10138b64
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], eax
je 0x10031d73
push 0x10138bb4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10031c6c
mov ecx, eax
call dword [section..00cfg]
lea eax, [ebp - 0x14]
push eax
push esi
call ecx
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov edi, 0
mov dword [ebp - 0x28], 0
test ebx, ebx
je 0x10031cd6
shl ebx, 2
cmp ebx, 0x55555555
jae 0x10031d83
lea esi, [ebx + ebx*2]
push esi
call fcn.100c1c01
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], eax
add eax, esi
mov dword [ebp - 0x18], eax
xor esi, esi
mov dword [ebp - 0x28], edi
test edi, edi
je 0x10031d4a
mov ecx, edi
mov eax, dword [ebp - 0x24]
push dword [eax + esi]
call fcn.1002cc60
add edi, 0xc
add esi, 4
cmp ebx, esi
jne 0x10031cb4
mov dword [ebp - 0x1c], edi
mov esi, dword [ebp - 0x30]
mov ecx, esi
lea eax, [ebp - 0x20]
push eax
call fcn.10031a10
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10031d02
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x10031d36
cmp edi, esi
je 0x10031d2d
add edi, 0xfffffff4
test edi, edi
je 0x10031d65
cmp byte [edi + 0xb], 0
jns 0x10031d24
push dword [edi]
call fcn.100c1c31
add esp, 4
lea eax, [edi - 0xc]
cmp edi, esi
mov edi, eax
jne 0x10031d10
push esi
call fcn.100c1c31
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c2603
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 8
push str.null_pointer_given_to_construct_at
push str.__location___nullptr
push 0x23
push str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
push str._s:_d:_assertion__s_failed:__s
call fcn.100f2480
push str.null_pointer_given_to_destroy_at
push str.__loc___nullptr
push 0x3f
jmp 0x10031d56
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x10031c69
call fcn.100d5450
int3
Function at 0x10034880
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
call fcn.10034920
mov eax, dword [esi]
mov dword [0x10147bfc], eax
test al, 1
jne 0x1003489c
mov al, 1
pop esi
pop ebp
ret
mov eax, dword [0x1014b860]
test eax, eax
jne 0x100348b1
mov ecx, dword [0x1014b84c]
test ecx, ecx
je 0x100348d3
jmp 0x100348ef
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1014b860], 0
mov ecx, dword [0x1014b84c]
test ecx, ecx
jne 0x100348ef
and byte [0x10147bfc], 0xfe
push 0xc
call fcn.100c1c01
add esp, 4
mov ecx, eax
xor eax, eax
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [ecx + 8], eax
mov dword [0x1014b84c], ecx
push dword [esi + 4]
call fcn.10035350
cmp dword [esi + 0xc], 0
jne 0x10034911
mov eax, dword [0x1014b84c]
cmp byte [eax + 0xb], 0
jns 0x1003490a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebp
jmp fcn.1010a060