joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001ce0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014ad75
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [section..data]
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 esi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x34]
mov ebx, dword [ebp + 8]
lea edx, [esi + 0xc]
push ecx
push edx
mov dword [ebp - 0x38], eax
lea edi, [esi + 0x10]
mov dword [esi + 8], eax
lea eax, [esi + 0x18]
push eax
push edi
push dword [ebp - 0x38]
mov dword [esi], 6
push ebx
mov dword [esi + 4], ebx
mov dword [edx], 0
mov dword [esi + 0x30], 0
mov dword [ecx], 0
mov dword [edi], 6
mov dword [esi + 0x14], eax
call dword [sym.imp.node.exe_napi_get_cb_info]
add esp, 0x18
test eax, eax
je 0x10001d73
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x34]
call fcn.100015e0
mov dword [ebp - 4], 0
jmp 0x10001dc0
mov eax, dword [edi]
cmp eax, dword [esi]
jbe 0x10001dcf
mov ecx, 4
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.10136e7e
add esp, 4
mov dword [esi + 0x30], eax
mov dword [esi + 0x14], eax
push 0
push 0
push eax
push edi
push dword [ebp - 0x38]
push ebx
call dword [sym.imp.node.exe_napi_get_cb_info]
add esp, 0x18
test eax, eax
je 0x10001dcf
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x34]
call fcn.100015e0
mov dword [ebp - 4], 1
mov ecx, eax
call fcn.10001aa0
lea ecx, [ebp - 0x34]
call fcn.10001140
mov eax, esi
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.10136e2d
mov esp, ebp
pop ebp
ret 8
Function at 0x10002270
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014ae83
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x3c], esi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x40], esi
mov dword [esi], 0x10166cb4
mov dword [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov byte [esi + 0x14], 0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [esi + 0x18], 0
movups xmmword [esi + 0x1c], xmm0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0xf
mov byte [esi + 0x1c], 0
mov edi, eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x3c]
push eax
push dword [edi + 8]
push dword [edi + 4]
call dword [sym.imp.node.exe_napi_reference_ref]
add esp, 0xc
test eax, eax
je 0x10002341
mov edx, dword [edi + 4]
lea ecx, [ebp - 0x38]
call fcn.100015e0
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.10001aa0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.10001140
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x100023d4
mov edi, dword [sym.imp.node.exe_napi_typeof]
lea ecx, [ebp - 0x3c]
push ecx
push eax
push dword [ebx + 0xc]
call edi
add esp, 0xc
test eax, eax
je 0x10002383
mov edx, dword [ebx + 0xc]
lea ecx, [ebp - 0x38]
call fcn.100015e0
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.10001aa0
lea ecx, [ebp - 0x38]
call fcn.10001140
jmp 0x100023d4
cmp dword [ebp - 0x3c], 0
je 0x100023d4
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x100023d4
lea ecx, [ebp - 0x3c]
push ecx
push eax
push dword [ebx + 0xc]
call edi
add esp, 0xc
test eax, eax
je 0x100023c1
mov edx, dword [ebx + 0xc]
lea ecx, [ebp - 0x38]
call fcn.100015e0
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.10001aa0
lea ecx, [ebp - 0x38]
call fcn.10001140
jmp 0x100023d4
cmp dword [ebp - 0x3c], 7
jne 0x100023d4
push ecx
lea eax, [ebx + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.10006660
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10136e2d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
Function at 0x1003c540
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x6c], eax
mov eax, dword [0x10177c48]
push ebx
push ebp
mov ebp, edx
push esi
push edi
mov edi, ecx
test eax, eax
je 0x1003c59b
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x1003c59b
mov dword [esp + 0x78], eax
lea eax, [esp + 0x70]
push eax
push 3
push 0
push 0xc0000006
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
call dword [sym.imp.KERNEL32.dll_RaiseException]
cmp byte [edi + 0x2b], 2
mov eax, dword [edi + 0x20]
mov esi, dword [eax]
movups xmm0, xmmword [esi]
movups xmmword [esp + 0x10], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [esp + 0x20], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [esp + 0x30], xmm0
je 0x1003c5ce
mov eax, dword [edi + 4]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x3c]
call eax
add esp, 4
movups xmm0, xmmword [esi + 0x30]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x40]
movups xmmword [esp + 0x40], xmm0
movups xmm0, xmmword [esi + 0x40]
movups xmmword [esp + 0x50], xmm0
movups xmm0, xmmword [esi + 0x50]
mov esi, 0x2c
movups xmmword [esp + 0x60], xmm0
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1003c6cc
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1003c5f6
cmp byte [esp + 0x1c], 0
je 0x1003c6cc
lea eax, [esp + 0x70]
mov ecx, 1
push eax
push 0
push 0x28
lea edx, [esp + 0x1c]
call fcn.1003a670
mov eax, dword [esp + 0x7c]
add esp, 0xc
cmp eax, dword [esp + 0x38]
jne 0x1003c6cc
mov eax, dword [esp + 0x74]
cmp eax, dword [esp + 0x3c]
jne 0x1003c6cc
lea ecx, [edi + 0x34]
mov esi, 0x2c
lea edx, [esp + 0x10]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1003c67e
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1003c658
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.10136e2d
add esp, 0x74
ret
movups xmm0, xmmword [esp + 0x10]
mov dword [ebp], 1
movups xmmword [edi + 0x34], xmm0
movups xmm0, xmmword [esp + 0x20]
movups xmmword [edi + 0x44], xmm0
movups xmm0, xmmword [esp + 0x30]
movups xmmword [edi + 0x54], xmm0
movzx ecx, word [edi + 0x42]
mov eax, ecx
and ecx, 0xfe00
and eax, 1
shl eax, 0x10
add eax, ecx
mov dword [edi + 0x24], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.10136e2d
add esp, 0x74
ret
mov ecx, dword [esp + 0x7c]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10136e2d
add esp, 0x74
ret
Function at 0x100537e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x1005380d
push esi
lea esi, [edx + 1]
nop dword [eax + eax]
mov ecx, dword [eax + 0x98]
mov edx, esi
xor edx, ecx
and edx, 3
xor edx, ecx
mov dword [eax + 0x98], edx
mov eax, dword [eax + 8]
test eax, eax
jne 0x100537f0
pop esi
ret
Function at 0x100600b0
Capabilities:
Create thread

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov ebx, edx
push 0
push 0x14
mov dword [esp + 0x1c], ebx
mov dword [ebp], 0
call fcn.100267c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x100600e3
lea eax, [esi + 7]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp byte [0x10177b4c], 0
je 0x1006012f
mov eax, dword [0x10177c48]
test eax, eax
je 0x10060103
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x1006012f
mov eax, dword [esp + 0x1c]
lea edi, [esi + 8]
mov dword [edi], ebx
lea ebx, [esi + 4]
push ebx
push 0
push esi
push 0x10029cb0
push 0
push 0
mov dword [esi + 0xc], eax
call fcn.1013aa8f
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x10060142
jmp 0x10060135
lea edi, [esi + 8]
lea ebx, [esi + 4]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [edi], 0
jne 0x1006015d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push dword [esp + 0x1c]
mov dword [ebx], eax
call dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x10], eax
pop edi
mov dword [ebp], esi
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x100e9020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, edx
mov ebp, ecx
lea esi, [edi*8]
call fcn.100d6670
test eax, eax
jne 0x100e91a1
push eax
push esi
call fcn.100267c0
mov ebx, eax
add esp, 8
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x100e91a1
push esi
push 0
push ebx
call fcn.10138870
mov esi, dword [ebp + 0x10]
add esp, 0xc
test esi, esi
je 0x100e90c8
cmp dword [0x10177b48], 0
je 0x100e90be
mov eax, dword [0x1017ad00]
test eax, eax
je 0x100e908c
push eax
call dword [0x10177b98]
add esp, 4
push esi
call dword [0x10177b74]
sub dword [0x1017ab88], eax
add esp, 4
dec dword [0x1017abac]
push esi
call dword [0x10177b6c]
mov eax, dword [0x1017ad00]
add esp, 4
test eax, eax
je 0x100e90c8
push eax
call dword [0x10177ba0]
jmp 0x100e90c5
push esi
call dword [0x10177b6c]
add esp, 4
cmp byte [ebp], 1
mov eax, 0x100e8f00
mov ecx, 0x100e8f80
mov dword [ebp + 0x10], ebx
mov ebx, dword [ebp + 8]
cmovne eax, ecx
mov dword [ebp + 0xc], edi
mov dword [esp + 0x1c], eax
mov dword [ebp + 8], 0
test ebx, ebx
je 0x100e9197
lea ecx, [edi - 1]
mov dword [esp + 0x14], ecx
nop dword [eax]
mov esi, dword [ebx + 0x10]
mov edi, dword [ebx + 0xc]
cmp eax, 0x100e8f80
jne 0x100e9130
xor eax, eax
test esi, esi
jle 0x100e9129
movsx ecx, byte [edi]
lea edx, [eax*8]
xor edx, ecx
lea edi, [edi + 1]
dec esi
xor eax, edx
test esi, esi
jg 0x100e9113
and eax, 0x7fffffff
jmp 0x100e9137
push esi
push edi
call eax
add esp, 8
mov ecx, dword [esp + 0x14]
mov esi, dword [ebx]
and ecx, eax
mov eax, dword [esp + 0x18]
lea edx, [eax + ecx*8]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x100e916b
mov dword [ebx], ecx
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x100e9163
mov dword [eax], ebx
mov dword [ecx + 4], ebx
jmp 0x100e9184
mov dword [ebp + 8], ebx
mov dword [ecx + 4], ebx
jmp 0x100e9184
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x100e917a
mov dword [eax + 4], ebx
mov dword [ebx + 4], 0
mov dword [ebp + 8], ebx
inc dword [edx]
mov eax, dword [esp + 0x1c]
mov dword [edx + 4], ebx
mov ebx, esi
test esi, esi
jne 0x100e9100
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1010cbe0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, edx
mov esi, ecx
xor edx, edx
mov ebp, 0x64
push edx
push edx
push edx
push edx
push edx
push edx
push str.sqlite_stat1
push dword [edi + 0x20]
mov dword [esp + 0x30], edx
push esi
call fcn.100da910
add esp, 0x24
test eax, eax
je 0x1010cc35
xor ecx, ecx
mov dword [edi + 0x30], 0x100000
cmp eax, 1
mov dword [edi + 0x34], 0
cmove eax, ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push dword [edi + 0x24]
push dword [edi + 0x20]
push str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
call fcn.100294e0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1010cc56
lea esi, [eax + 7]
jmp 0x1010cd7e
push 0
lea eax, [esp + 0x18]
mov edx, ebx
push eax
push 0
push 0x80
push 0xffffffffffffffff
mov ecx, esi
call fcn.1009d7f0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1010cd17
mov esi, dword [esp + 0x14]
push esi
call fcn.10054c20
add esp, 4
cmp eax, 0x64
jne 0x1010cd0c
test esi, esi
je 0x1010ccca
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1010cca5
push eax
call dword [0x10177b98]
add esp, 4
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x1010ccb7
xor eax, eax
cmp ax, word [esi + 0x90]
jb 0x1010cccf
mov ecx, dword [esi]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.1002a360
mov ecx, 0x10161a88
call fcn.1004d340
mov dword [esp + 0x10], edx
mov ebp, eax
test esi, esi
je 0x1010cd0c
mov ecx, dword [esi]
mov edx, dword [esi + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x1010ccf1
test edx, edx
jne 0x1010ccf1
xor eax, eax
jmp 0x1010ccf6
call fcn.100272e0
mov dword [esi + 0x24], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1010cd0c
push eax
call dword [0x10177ba0]
add esp, 4
push esi
call fcn.10053bd0
add esp, 4
mov esi, eax
cmp dword [0x10177b48], 0
je 0x1010cd65
mov eax, dword [0x1017ad00]
test eax, eax
je 0x1010cd33
push eax
call dword [0x10177b98]
add esp, 4
push ebx
call dword [0x10177b74]
sub dword [0x1017ab88], eax
add esp, 4
dec dword [0x1017abac]
push ebx
call dword [0x10177b6c]
mov eax, dword [0x1017ad00]
add esp, 4
test eax, eax
je 0x1010cd6f
push eax
call dword [0x10177ba0]
jmp 0x1010cd6c
push ebx
call dword [0x10177b6c]
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x1010cd7e
jg 0x1010cd85
cmp ebp, 0x64
ja 0x1010cd85
mov ebp, 0x64
xor eax, eax
mov dword [edi + 0x34], eax
mov eax, esi
mov dword [edi + 0x30], ebp
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1010e3a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, edx
mov dword [esp + 0xc], str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
mov edi, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
mov esi, dword [edi + ebx*4 + 0x18]
test esi, esi
jne 0x1010e3e5
push dword [edi + 8]
push dword [edi + 4]
push dword [esp + ebx*4 + 0x14]
push edi
call fcn.1010e030
mov esi, eax
add esp, 0x10
mov dword [edi + ebx*4 + 0x18], esi
cmp dword [edi + 0x28], 0
jne 0x1010e534
push dword [ebp + 0xc]
push dword [ebp + 8]
push 1
push esi
call fcn.10056380
push esi
call fcn.10054c20
add esp, 0x14
cmp eax, 0x65
jne 0x1010e43c
mov edx, dword [ebp + 0xc]
mov ecx, str.__parent
test ebx, ebx
mov eax, str.__rowid
cmove eax, ecx
push eax
push dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push edx
push eax
push str.Mapping___lld_____lld__missing_from__s_table
push edi
call fcn.1010e100
add esp, 0x1c
jmp 0x1010e522
cmp eax, 0x64
jne 0x1010e522
test esi, esi
jne 0x1010e45c
mov ecx, 0x10161a88
call fcn.1004d340
mov ebx, eax
mov ecx, edx
jmp 0x1010e4de
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1010e46f
push eax
call dword [0x10177b98]
add esp, 4
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x1010e481
xor eax, eax
cmp ax, word [esi + 0x90]
jb 0x1010e499
mov ecx, dword [esi]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.1002a360
mov ecx, 0x10161a88
call fcn.1004d340
mov ebx, eax
mov ecx, edx
mov eax, dword [esi]
mov edx, dword [esi + 0x24]
mov dword [esp + 0xc], ecx
cmp byte [eax + 0x57], 0
jne 0x1010e4b9
test edx, edx
jne 0x1010e4b9
xor eax, eax
jmp 0x1010e4c4
mov ecx, eax
call fcn.100272e0
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x24], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1010e4de
push eax
call dword [0x10177ba0]
mov ecx, dword [esp + 0x10]
add esp, 4
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
cmp ebx, edx
jne 0x1010e4ec
cmp ecx, eax
je 0x1010e522
cmp dword [esp + 0x14], 0
push eax
mov eax, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, str.__rowid
mov dword [esp + 0x1c], str.__parent
cmove eax, dword [esp + 0x1c]
push eax
push ecx
push ebx
push edx
push dword [ebp + 8]
push str.Found___lld_____lld__in__s_table__expected___lld_____lld_
push edi
call fcn.1010e100
add esp, 0x2c
push esi
call fcn.10053c90
add esp, 4
cmp dword [edi + 0x28], 0
jne 0x1010e534
mov dword [edi + 0x28], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10112fe0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
push ebx
mov dword [eax], 0
push esi
push edi
test ecx, ecx
je 0x1011312a
mov ebx, dword [ebp + 0xc]
mov edx, 0xd
lea esi, [ebx - 1]
test esi, esi
js 0x10113034
mov edi, dword [ebp + 8]
nop word [eax + eax]
movsx ecx, byte [edi + esi]
lea eax, [edx*8]
xor ecx, eax
xor edx, ecx
sub esi, 1
jns 0x10113020
mov ecx, dword [esp + 0x10]
lea eax, [edx*8]
xor eax, edx
mov edx, dword [esp + 0x14]
xor eax, ecx
and eax, 0x1ff
mov edi, dword [edx + eax*4]
mov dword [esp + 0x1c], eax
lea eax, [edx + eax*4]
mov dword [esp + 0x18], eax
test edi, edi
je 0x101130d0
nop
cmp dword [edi + 8], ecx
jne 0x101130c9
cmp dword [edi + 4], ebx
jne 0x101130c9
mov ecx, dword [edi]
mov esi, ebx
mov edx, dword [ebp + 8]
sub esi, 4
jb 0x10113087
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10113090
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10113076
cmp esi, 0xfffffffc
je 0x10113133
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x101130c5
cmp esi, 0xfffffffd
je 0x10113133
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x101130c5
cmp esi, 0xfffffffe
je 0x10113133
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x101130c5
cmp esi, 0xffffffff
je 0x10113133
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x10113133
mov ecx, dword [esp + 0x10]
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x10113060
lea edi, [ebx + 0x10]
xor esi, esi
call fcn.100d6670
test eax, eax
jne 0x10113147
push esi
push edi
call fcn.100267c0
mov esi, eax
add esp, 8
test esi, esi
je 0x10113145
push edi
push 0
push esi
call fcn.10138870
mov edx, dword [esp + 0x1c]
lea ecx, [esi + 0x10]
add esp, 0xc
mov dword [esi], ecx
mov dword [esi + 4], ebx
mov dword [esi + 8], edx
push ebx
push dword [ebp + 8]
push ecx
call fcn.10139d00
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [ecx]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + ecx*4], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
test esi, esi
jne 0x1011314f
test edi, edi
je 0x1011312a
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10134f90
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
mov dword [esp + 4], edx
cmp ecx, 0x80
jge 0x10134faf
lea edx, [ecx - 0x41]
cmp edx, 0x19
lea eax, [ecx + 0x20]
cmova eax, ecx
add esp, 8
ret
cmp ecx, 0x10000
jge 0x1013505a
push ebx
push ebp
xor edx, edx
mov ebx, 0xa2
push esi
push edi
mov dword [esp + 0x10], edx
or ebp, 0xffffffff
nop dword [eax]
lea eax, [edx + ebx]
mov esi, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
movzx edx, word [edi*4 + 0x1015f270]
lea eax, [edi - 1]
sub esi, edx
mov edx, edi
cmovs edx, ebp
test esi, esi
mov ebp, edx
lea edx, [edi + 1]
cmovs edx, dword [esp + 0x10]
cmovs ebx, eax
mov dword [esp + 0x10], edx
cmp ebx, edx
jge 0x10134fd0
movzx edx, word [ebp*4 + 0x1015f270]
movzx eax, byte [ebp*4 + 0x1015f273]
add eax, edx
cmp ecx, eax
jge 0x1013503e
movzx eax, byte [ebp*4 + 0x1015f272]
xor edx, ecx
and edx, eax
test edx, 1
jne 0x1013503e
shr eax, 1
movzx eax, word [eax*2 + 0x10160740]
add eax, ecx
movzx ecx, ax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
je 0x10135068
xor edx, edx
cmp eax, 2
sete dl
add esp, 8
jmp fcn.100fefb0
lea eax, [ecx - 0x10400]
cmp eax, 0x27
lea eax, [ecx + 0x28]
jbe 0x1013506a
mov eax, ecx
add esp, 8
ret

Function at 0x1013e595
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10150de4
push 0x10150ddc
push str.FlsAlloc
push 0x1e
call fcn.1013e416
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1013e5c9
push dword [ebp + 8]
mov ecx, esi
call dword [0x1014f1e8]
call esi
jmp 0x1013e5cf
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1013e613
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10150df4
push 0x10150dec
push str.FlsGetValue
push 0x20
call fcn.1013e416
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1013e64a
push dword [ebp + 8]
mov ecx, esi
call dword [0x1014f1e8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10143791
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1014382e
push ebx
push esi
call fcn.1014375a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.101436a3
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x101437db
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1014382d
push edi
push eax
call fcn.1014225c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x101437fb
call fcn.1013e2a9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1014382c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.101436a3
add esp, 0x20
test eax, eax
jne 0x1014381a
push edi
call fcn.1013e2a9
jmp 0x10143822
push ebx
call fcn.1013e2a9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10143831
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10143842
pop esi
ret
push ebx
push edi
push esi
call fcn.1014375a
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1014225c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1014386a
push ebx
push esi
push edi
call fcn.10139d00
add esp, 0xc
push 0
call fcn.1013e2a9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10143c2e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1014387f
Function at 0x10149d20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10149d4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10149d4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret