joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54bb90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5de00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push str._5_3
push esi
mov dword [ebp - 0x114], eax
mov eax, dword [ebp + 0x14]
push str._s_s
push edi
mov dword [ebp - 0x110], eax
call fcn.00531e50
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x54bbef
push esi
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x54bc52
push str.LUA_NOENV
push 0xfff0b9d8
push edi
call fcn.005317c0
push 0xffffffffffffffff
push edi
call fcn.00532830
push 0xfffffffffffffffe
push edi
mov esi, eax
call fcn.00532650
add esp, 0x1c
test esi, esi
jne 0x54bc52
push 0x5a7148
push 0x5a714c
push ebx
push edi
call fcn.00533680
push dword [ebp - 0x110]
push 0x5a7150
push eax
push edi
call fcn.00533680
push 0xffffffffffffffff
push 0xfffffffffffffffe
push edi
call fcn.00532350
push 0xfffffffffffffffe
push edi
call fcn.00532650
add esp, 0x34
jmp 0x54bc61
push dword [ebp - 0x110]
push edi
call fcn.00531f80
add esp, 8
push 0x105
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x54bccf
cmp eax, 0x105
je 0x54bccf
lea eax, [ebp - 0x10c]
push 0x5c
push eax
call sub.VCRUNTIME140.dll_strrchr
add esp, 8
test eax, eax
je 0x54bccf
mov byte [eax], 0
lea eax, [ebp - 0x10c]
push eax
push 0x5a7114
push 0
push 0xffffffffffffffff
push edi
call fcn.005328f0
add esp, 0xc
push eax
push edi
call fcn.00533680
push 0xffffffffffffffff
push 0xfffffffffffffffe
push edi
call fcn.00532350
push 0xfffffffffffffffe
push edi
call fcn.00532650
add esp, 0x24
jmp 0x54bcdd
push str.unable_to_get_ModuleFileName
push edi
call fcn.00533410
add esp, 8
push dword [ebp - 0x114]
push 0xfffffffffffffffd
push edi
call fcn.005323f0
push 0xfffffffffffffffe
push edi
call fcn.00532650
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0052d3c5
mov esp, ebp
pop ebp
ret
Function at 0x5504c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebx]
lea esi, [ebx + 8]
cmp eax, 0xc
jne 0x5505bb
mov eax, dword [edi]
mov ecx, dword [esi]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + ecx*4]
mov eax, ecx
and eax, 0x3f
cmp al, 0x1b
jne 0x5505c0
dec dword [edi + 0x10]
and ecx, 0xffc5ffff
or ecx, 0x440000
xor eax, eax
shr ecx, 0x11
mov edx, 0x4000
cmp dword [ebp + 0x10], eax
cmove eax, edx
or ecx, eax
push ecx
push edi
call fcn.005506b0
mov eax, dword [edi + 0x18]
push 0x7fff801e
push edi
mov dword [ebp + 0xc], eax
mov dword [edi + 0x18], 0xffffffff
call fcn.005506b0
mov edx, dword [ebp + 0xc]
add esp, 0x10
mov dword [ebp - 4], eax
cmp edx, 0xffffffff
je 0x55064d
cmp eax, 0xffffffff
jne 0x550552
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, eax
mov eax, dword [edi]
mov edi, dword [eax + 0x30]
nop dword [eax]
mov esi, dword [edi + ecx*4]
lea ebx, [edi + ecx*4]
mov eax, esi
shr eax, 0xe
sub eax, 0x1ffff
cmp eax, 0xffffffff
je 0x550581
inc eax
add eax, ecx
cmp eax, 0xffffffff
je 0x550581
mov ecx, eax
jmp 0x550560
mov edi, dword [ebp + 8]
sub edx, ecx
dec edx
mov eax, edx
mov dword [ebp + 0xc], edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x1ffff
jg 0x550654
mov eax, dword [ebp + 0xc]
and esi, 0x3fff
add eax, 0x1ffff
shl eax, 0xe
or eax, esi
pop edi
mov dword [ebx], eax
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 7
je 0x5505f6
mov edx, dword [edi]
movzx ecx, byte [edi + 0x2c]
inc ecx
movzx eax, byte [edx + 8]
cmp ecx, eax
jbe 0x5505de
cmp ecx, 0xff
jae 0x550661
mov byte [edx + 8], cl
inc byte [edi + 0x2c]
movzx eax, byte [edi + 0x2c]
dec eax
push eax
push ebx
push edi
call fcn.005500c0
add esp, 0xc
cmp dword [ebx], 7
jne 0x55060d
mov edx, dword [esi]
mov ecx, esi
test edx, 0x100
jne 0x55060d
movzx eax, byte [edi + 0x2a]
cmp edx, eax
jl 0x55060d
dec byte [edi + 0x2c]
mov eax, dword [esi]
shl eax, 9
or eax, dword [ebp + 0x10]
shl eax, 0xe
or eax, 0x3fe3
push eax
push edi
call fcn.005506b0
mov esi, dword [edi + 0x18]
push 0x7fff801e
push edi
mov dword [edi + 0x18], 0xffffffff
call fcn.005506b0
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push esi
push eax
push edi
call fcn.00550810
mov eax, dword [ebp + 0xc]
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.control_structure_too_long
push dword [edi + 8]
call fcn.00540650
push str.function_or_expression_needs_too_many_registers
push dword [edi + 8]
call fcn.00540650
int3
Function at 0x556c40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5de00c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x5e4514], 0
push esi
mov esi, dword [ebp + 0x10]
jne 0x556caf
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x556c9f
mov eax, dword [ebp - 0x114]
cmp eax, 5
ja 0x556c91
jne 0x556c9f
cmp dword [ebp - 0x110], 1
jb 0x556c9f
mov al, 1
mov byte [0x5e4515], al
mov byte [0x5e4514], al
jmp 0x556cb4
xor al, al
mov byte [0x5e4514], 1
mov byte [0x5e4515], al
jmp 0x556cb4
mov al, byte [0x5e4515]
test al, al
mov eax, dword [ebp + 0x18]
je 0x556cc0
or eax, 0x100
push eax
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WINMM.dll_timeSetEvent]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0052d3c5
mov esp, ebp
pop ebp
ret
Function at 0x410280
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi + 0x58]
cmp dword [esi + 0x5c], eax
je 0x410295
mov ecx, dword [esi + 0x5c]
movzx eax, byte [ecx + esi + 0x14]
inc ecx
mov dword [esi + 0x5c], ecx
ret
cmp eax, 4
push edi
jle 0x41030c
mov edi, 4
mov eax, 4
sub eax, edi
push eax
lea ecx, [edi + esi + 0x10]
push ecx
lea edx, [esi + 0x10]
push edx
call fcn.00415e60
mov eax, dword [esi + 0x58]
sub eax, edi
mov edx, esi
push edi
lea ecx, [eax + esi + 0x14]
sub edx, edi
push ecx
add edx, 0x14
push edx
call fcn.00412960
mov eax, dword [esi + 4]
push eax
push pe_nt_image_headers32
lea ecx, [esi + 0x14]
push 1
push ecx
mov dword [esi + 0x54], edi
call fcn.00415c17
add esp, 0x28
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], 0
pop edi
test eax, eax
jne 0x410288
mov edx, dword [esi + 4]
push edx
call fcn.00415c34
add esp, 4
test eax, eax
je 0x429b18
or eax, 0xffffffff
ret
mov edi, eax
jmp 0x4102a0
mov eax, dword [esi + 4]
push eax
call fcn.00415c68
add esp, 4
test eax, eax
jne 0x410308
ret

Function at 0x410310
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, eax
call fcn.00410280
cmp eax, 0xffffffff
je 0x41040c
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
xor ebx, ebx
lea edi, [ebx + 1]
call fcn.004101e0
mov edi, dword [esp + 0x18]
dec edi
test edi, edi
jle 0x410386
jmp 0x410340
mov eax, dword [esi + 0x58]
cmp dword [esi + 0x5c], eax
je 0x410393
mov ecx, dword [esi + 0x5c]
movzx eax, byte [ecx + esi + 0x14]
inc ecx
mov dword [esi + 0x5c], ecx
cmp eax, 0xd
je 0x410378
cmp eax, 0xffffffff
je 0x410386
cmp eax, 0xa
je 0x410386
mov byte [ebx + ebp], al
inc ebx
cmp ebx, edi
jl 0x410340
pop edi
mov byte [ebx + ebp], 0
pop ebp
pop ebx
mov al, 1
pop esi
ret 8
call fcn.00410280
cmp eax, 0xa
jne 0x429b63
pop edi
mov byte [ebx + ebp], 0
pop ebp
pop ebx
mov al, 1
pop esi
ret 8
cmp eax, 4
jle 0x429b2d
mov dword [esp + 0x14], 4
mov eax, dword [esp + 0x14]
lea ecx, [esi + 0x10]
mov edx, 4
sub edx, eax
push edx
add eax, ecx
push eax
push ecx
call fcn.00415e60
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x58]
mov ecx, esi
sub ecx, eax
lea ecx, [ecx + edx + 0x14]
push eax
mov edx, esi
sub edx, eax
push ecx
add edx, 0x14
push edx
call fcn.00412960
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x2c]
push ecx
push pe_nt_image_headers32
lea edx, [esi + 0x14]
push 1
push edx
mov dword [esi + 0x54], eax
call fcn.00415c17
add esp, 0x28
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], 0
test eax, eax
jne 0x410348
jmp 0x429b36
xor al, al
pop esi
ret 8
mov dword [esp + 0x14], eax
jmp 0x4103a8
mov eax, dword [esi + 4]
push eax
call fcn.00415c34
add esp, 4
test eax, eax
jne 0x410386
mov ecx, dword [esi + 4]
push ecx
call fcn.00415c68
add esp, 4
test eax, eax
jne 0x410386
jmp 0x410363
cmp eax, 0xffffffff
je 0x410386
mov edi, 1
call fcn.004101e0
jmp 0x410386
Function at 0x423308
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041832f
and dword [ebp - 4], 0
cmp dword [0x48e540], 0
mov ebx, eax
jne 0x4233b9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42346a
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42346a
push eax
call fcn.004182bd
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x48e540], eax
call esi
push eax
call fcn.004182bd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x48e544], eax
call esi
push eax
call fcn.004182bd
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x48e548], eax
call esi
push eax
call fcn.004182bd
pop ecx
mov dword [0x48e550], eax
test eax, eax
je 0x4233b9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004182bd
pop ecx
mov dword [0x48e54c], eax
mov eax, dword [0x48e54c]
cmp eax, ebx
je 0x423411
cmp dword [0x48e550], ebx
je 0x423411
push eax
call fcn.00418338
push dword [0x48e550]
mov esi, eax
call fcn.00418338
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x423411
test edi, edi
je 0x423411
call esi
test eax, eax
je 0x423408
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x423408
test byte [ebp - 0xc], 1
jne 0x423411
or dword [ebp + 0x10], 0x200000
jmp 0x42344a
mov eax, dword [0x48e544]
cmp eax, ebx
je 0x42344a
push eax
call fcn.00418338
pop ecx
test eax, eax
je 0x42344a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42344a
mov eax, dword [0x48e548]
cmp eax, ebx
je 0x42344a
push eax
call fcn.00418338
pop ecx
test eax, eax
je 0x42344a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48e540]
call fcn.00418338
pop ecx
test eax, eax
je 0x42346a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42346c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001700
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1b8
mov esi, ecx
mov eax, dword [0x100db010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x114], 0
lea eax, [ebp - 0x114]
lea ebx, [ebp - 0x110]
push 0
push eax
push 0x100
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10001796
lea eax, [ebp - 0x1c4]
push 0
push dword [ebp - 0x114]
push ebx
push eax
call fcn.10002080
add esp, 0x10
mov ecx, dword [ebp - 0x1c4]
test ecx, ecx
je 0x100017fa
call fcn.100025e0
cmp eax, 7
jbe 0x100017fa
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c4]
call fcn.100023d0
cmp dword [eax], edi
jne 0x10001856
mov eax, dword [ebp - 0x1c4]
mov dword [esi], eax
jmp 0x100017e3
push 2
call fcn.1003fbb0
add esp, 4
test al, al
je 0x100017dd
call fcn.10040550
lea edi, [ebp - 0x1c0]
mov ecx, edi
push eax
push 2
push 0x38
push str..._.._mojo_core_broker_win.cc
call fcn.10040680
lea eax, [ebp - 0x1b8]
push 0x19
push str.Error_reading_broker_pipe
push eax
call fcn.10001ba0
add esp, 0xc
mov ecx, edi
call fcn.10040730
mov dword [esi], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10099c81
mov eax, esi
add esp, 0x1b8
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call fcn.1003fbb0
add esp, 4
test al, al
je 0x1000183b
lea esi, [ebp - 0x1c0]
mov ecx, esi
push 2
push 0x3f
push str..._.._mojo_core_broker_win.cc
call fcn.1003fc70
lea eax, [ebp - 0x1b8]
push 0x16
push str.Invalid_broker_message
push eax
call fcn.10001ba0
add esp, 0xc
mov ecx, esi
call fcn.10040010
push ebx
call fcn.1000bc20
add esp, 4
lea eax, [ebp - 0x114]
push eax
call fcn.1000bc20
add esp, 4
int3
push 2
call fcn.1003fbb0
add esp, 4
test al, al
je 0x10001897
lea esi, [ebp - 0x1c0]
mov ecx, esi
push 2
push 0x4a
push str..._.._mojo_core_broker_win.cc
call fcn.1003fc70
lea eax, [ebp - 0x1b8]
push 0x1e
push str.Unexpected_broker_message_type
push eax
call fcn.10001ba0
add esp, 0xc
mov ecx, esi
call fcn.10040010
push ebx
call fcn.1000bc20
add esp, 4
lea eax, [ebp - 0x114]
push eax
call fcn.1000bc20
add esp, 4
int3
Function at 0x10003390
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
mov dword [eax], 0
lea edi, [ebx + 1]
cmp edi, 2
jae 0x100033b2
cmp dword [esi], ebx
jne 0x100033bb
jmp 0x100033d7
call fcn.1003f7b0
cmp dword [esi], ebx
je 0x100033d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
add ecx, 1
cmp ecx, 2
jae 0x100033e3
cmp edi, 2
jae 0x10003403
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], eax
call fcn.1003f7b0
push dword [esi]
call fcn.10045060
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
cmp edi, 2
jb 0x100033d0
mov dword [esi], ebx
mov edi, eax
call fcn.1003f7b0
mov eax, edi
jmp 0x100033d0

Function at 0x10003ea0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ecx], 0
mov ebx, dword [eax]
mov dword [eax], 0
lea edi, [ebx + 1]
cmp edi, 2
jae 0x10003ec8
cmp dword [esi], ebx
jne 0x10003ed1
jmp 0x10003eed
call fcn.1003f7b0
cmp dword [esi], ebx
je 0x10003eed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
add ecx, 1
cmp ecx, 2
jae 0x10003ef9
cmp edi, 2
jae 0x10003f19
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], eax
call fcn.1003f7b0
push dword [esi]
call fcn.10045060
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
cmp edi, 2
jb 0x10003ee6
mov dword [esi], ebx
mov edi, eax
call fcn.1003f7b0
mov eax, edi
jmp 0x10003ee6

Function at 0x10004130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, edx
mov dword [ebp - 0x20], ecx
mov eax, dword [0x100db010]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
mov ecx, edx
push eax
call fcn.10002850
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
cmp ebx, esi
je 0x1000416e
nop dword [eax]
mov ecx, ebx
call fcn.10019a10
add ebx, 0x10
cmp esi, ebx
jne 0x10004160
mov esi, dword [ebp - 0x20]
lea eax, [esi + 0x70]
push eax
push 0
push dword [edi + 8]
push dword [edi]
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10004196
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x100041a6
mov byte [esi + 0x9a], 1
lock add dword [esi + 4], 1
mov bl, 1
jmp 0x100041a8
xor ebx, ebx
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x100041e1
mov esi, dword [ebp - 0x18]
cmp esi, edi
je 0x100041d3
nop word cs:[eax + eax]
add esi, 0xfffffff0
mov ecx, esi
call fcn.10019980
cmp edi, esi
jne 0x100041c0
mov eax, dword [ebp - 0x1c]
jmp 0x100041d5
mov eax, edi
mov dword [ebp - 0x18], edi
push eax
call fcn.10099c44
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10099c81
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000ee00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [0x100db010]
xor eax, ebp
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 8]
mov ecx, dword [eax + 0x20]
lea eax, [edi + 0x10]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.1004f6f0
test eax, eax
je 0x1000ee5e
mov eax, dword [edi + 0x38]
test eax, eax
jne 0x1000ee4c
cmp byte [edi + 0x40], 0
jne 0x1000ee4c
mov eax, dword [edi + 0x44]
test eax, eax
je 0x1000efd1
mov dword [esi], 0
mov dword [esi + 4], 0
jmp 0x1000ef1c
movzx eax, byte [esp + 0x10]
cmp byte [esp + 0x12], 0
je 0x1000ee83
mov cl, byte [esp + 0x11]
or cl, al
movzx edx, cl
or eax, 4
or edx, 0x24
mov ebx, eax
cmp byte [edi + 0x68], 0
jne 0x1000ee9b
jmp 0x1000eeaa
movzx ebx, byte [esp + 0x13]
shl ebx, 4
or ebx, eax
or ebx, 2
mov edx, 0x37
cmp byte [edi + 0x68], 0
je 0x1000eeaa
mov eax, dword [edi + 0x70]
mov ecx, dword [edi + 0x74]
cmp eax, dword [esp + 0x14]
sbb ecx, 0
jb 0x1000eec5
cmp byte [edi + 0x78], 0
je 0x1000eeca
mov eax, dword [edi + 0x80]
mov ecx, dword [edi + 0x84]
cmp eax, dword [esp + 0x18]
sbb ecx, 0
jae 0x1000eeca
or ebx, 0x20
jmp 0x1000eef6
cmp byte [edi + 0x88], 0
je 0x1000eef6
mov eax, dword [edi + 0x90]
mov ecx, dword [edi + 0x94]
mov dword [esp + 4], edx
mov edx, ebx
or edx, 0x20
cmp eax, dword [esp + 0x1c]
sbb ecx, 0
cmovb ebx, edx
mov edx, dword [esp + 4]
mov eax, dword [edi + 0x3c]
mov dword [edi + 0x3c], ebx
test bl, 4
je 0x1000ef17
and eax, 4
jne 0x1000ef17
mov dword [esp + 4], edx
test byte [0x100da7dc], 0x19
jne 0x1000ef33
mov edx, dword [esp + 4]
mov dword [esi + 4], edx
mov dword [esi], ebx
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.10099c81
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov eax, 1
sub eax, dword [edi + 0x30]
mov ecx, eax
sar ecx, 0x1f
add eax, dword [edi + 0x28]
mov dword [esp + 0xc], eax
adc ecx, dword [edi + 0x2c]
mov dword [esp + 8], ecx
call fcn.10044900
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.10045ca0
add esp, 4
push 0x82
push 0
lea eax, [esp + 0x28]
push eax
push edi
push dword [esp + 0x18]
push dword [esp + 0x20]
push 0
push 0
push 0
push str.MessagePipe_peer_closed
push 0x100da7dc
push 0x58
call fcn.1004ba10
add esp, 0x30
cmp byte [0x100da7dc], 0
je 0x1000ef13
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
sub esp, 0x10
movsd xmm0, qword [esp + 0x30]
movsd qword [esp + 8], xmm0
mov dword [esp + 4], str.MessagePipe_peer_closed
mov dword [esp], 0x100da7dc
call fcn.1004bb40
add esp, 0x10
jmp 0x1000ef13
int3
Function at 0x10019b30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov eax, dword [0x100db010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
mov ebx, esp
call fcn.100443b0
mov dword [ebp - 0x14], edi
lea ecx, [ebp - 0x14]
push 3
push 0
push 0
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [ebp - 0x14]
mov dword [ebx], 0
je 0x10019bb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebx]
add eax, 1
cmp eax, 2
jb 0x10019ba0
call fcn.1003f7b0
push dword [ebx]
call fcn.10045060
add esp, 4
mov dword [ebx], 0
lea eax, [esi + 1]
cmp eax, 2
jb 0x10019baf
mov dword [ebx], esi
call fcn.1003f7b0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.100547bc
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10099c81
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1001a370
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [0x100dbbd4]
cmp esi, 1
ja 0x1001a3d6
push 0x100dbbd4
call fcn.1003f430
add esp, 4
test al, al
je 0x1001a3d0
mov dword [0x100dbbdc], 0
mov dword [0x100dbbd8], 0
mov esi, 0x100dbbd8
mov ecx, 0x100dbbd8
push 0
call fcn.100422a0
push 0x100dbbd4
push 0
push 0x100dbbd8
push 0x100dbbd4
call fcn.1003f4e0
add esp, 0x10
jmp 0x1001a3d6
mov esi, dword [0x100dbbd4]
mov ecx, esi
pop esi
pop ebp
jmp fcn.10042230

Function at 0x1001aa40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ecx], 0
test ebx, ebx
je 0x1001aa92
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
add eax, 1
cmp eax, 2
jb 0x1001aa7c
call fcn.1003f7b0
push dword [esi]
call fcn.10045060
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x1001aa8b
mov dword [esi], ebx
call fcn.1003f7b0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x1001aaa0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10003ea0
Function at 0x1001c670
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
lea ebx, [ebp + 8]
push 0x100bfad4
call fcn.100543b0
mov dword [esi], 0x100bfad8
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], 0
mov dword [esi + 0x18], eax
mov word [esi + 0x1c], 0x101
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
movups xmm0, xmmword [0x100c4578]
movups xmmword [esi + 0x40], xmm0
mov eax, dword [0x100dbbf8]
mov ecx, dword [0x100de718]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1001c73d
lock add dword [0x100dbbf0], 1
mov edi, dword [ebx + 4]
mov dword [ebx + 4], 0
test edi, edi
je 0x1001c734
mov ecx, edi
call fcn.10002020
push edi
call fcn.10099c44
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
push 0x100dbbf8
call fcn.10099cc7
add esp, 4
cmp dword [0x100dbbf8], 0xffffffff
jne 0x1001c70e
call fcn.1001ce80
push 0x100dbbf8
call fcn.10099d3d
add esp, 4
jmp 0x1001c70e

Function at 0x10020f58
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xb]
mov esi, dword [eax]
mov edi, dword [eax + 4]
add edi, esi
mov edx, ecx
add edx, eax
test cl, cl
cmovs edx, edi
cmovs eax, esi
sub edx, eax
mov ecx, edx
cmp edx, 4
jb 0x10020fa6
imul esi, dword [eax], 0x5bd1e995
mov edi, esi
shr edi, 0x18
xor edi, esi
imul esi, edi, 0x5bd1e995
imul ecx, ecx, 0x5bd1e995
xor ecx, esi
add eax, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x10020f80
cmp edx, 1
je 0x10020fc7
cmp edx, 2
je 0x10020fbe
cmp edx, 3
jne 0x10020fd2
movzx edx, byte [eax + 2]
shl edx, 0x10
xor ecx, edx
movzx edx, byte [eax + 1]
shl edx, 8
xor ecx, edx
movzx eax, byte [eax]
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
pop esi
pop edi
pop ebp
ret 4