joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101faab0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x260
mov eax, dword [0x103c2010]
xor eax, ebp
mov dword [esp + 0x258], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x240], xmm0
movdqa xmmword [esp + 0x230], xmm0
movdqa xmmword [esp + 0x220], xmm0
lea ebx, [esp + 0x18]
push 0x4bb
push str....._base_files_file_util_win.cc
push 0x1036544a
push ebx
call fcn.10221d60
add esp, 0x10
lea ecx, [esp + 0x220]
push 0
push ebx
call fcn.10209420
lea eax, [esp + 0x1a]
push 0x206
push 0xff
push eax
call fcn.102f7d80
add esp, 0xc
mov word [esp + 0x18], 0
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
dec esi
cmp esi, 0x103
ja 0x101fab83
push ebx
call fcn.1030fc76
add esp, 4
mov edi, esp
mov ecx, edi
push eax
push ebx
call fcn.10223310
lea ebx, [esp + 0xc]
mov ecx, edi
push ebx
call fcn.10224e60
mov ecx, dword [ebp + 8]
push ebx
call fcn.10223400
mov ecx, ebx
call fcn.102233c0
mov ecx, edi
call fcn.102233c0
cmp esi, 0x104
setb bl
lea ecx, [esp + 0x220]
call fcn.102094a0
mov ecx, dword [esp + 0x258]
xor ecx, ebp
call fcn.102f4c53
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x101fabb0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov edi, dword [ebp + 8]
mov eax, dword [0x103c2010]
xor eax, ebp
mov dword [esp + 0x48], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
movdqa xmmword [esp + 0x10], xmm0
mov ebx, esp
push 0x4cb
push str....._base_files_file_util_win.cc
push 0x1036545f
push ebx
call fcn.10221d60
add esp, 0x10
lea esi, [esp + 0x10]
mov ecx, esi
push 0
push ebx
call fcn.10209420
cmp byte [edi + 0xb], 0
jns 0x101fac10
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov ecx, esi
call fcn.102094a0
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.102f4c53
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101fbc20
Capabilities:
Get file version info
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, dword [ebp + 0xc]
mov eax, dword [0x103c2010]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
lea edi, [esp + 8]
push 0x62
push str....._base_file_version_info_win.cc
push str.CreateFileVersionInfoWin
push edi
call fcn.10221d60
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push edi
call fcn.10209420
mov dword [esp + 4], 0xffffffff
cmp byte [esi + 0xb], 0
jns 0x101fbc85
mov esi, dword [esi]
mov edi, dword [ebp + 8]
lea eax, [esp + 4]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x101fbd1c
js 0x101fbdb2
mov ebx, eax
push eax
call fcn.102f3c36
add esp, 4
mov edi, eax
mov dword [esp + 8], eax
add eax, ebx
mov dword [esp + 0x10], eax
xor ecx, ecx
nop word [eax + eax]
mov edx, edi
add edx, ecx
je 0x101fbd97
mov byte [edx], 0
inc ecx
cmp ebx, ecx
jne 0x101fbcc0
mov dword [esp + 0xc], eax
push edi
push ebx
push dword [esp + 0xc]
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x101fbd26
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0xffffffff
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x101fbd2a
mov eax, dword [esp + 0x1c]
movzx edi, word [eax]
movzx esi, word [eax + 2]
jmp 0x101fbd36
mov dword [edi], 0
mov esi, edi
jmp 0x101fbd79
xor ebx, ebx
jmp 0x101fbd5a
mov si, 0x4e4
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov edi, eax
push 0x1c
call fcn.102f3c36
add esp, 4
mov ebx, eax
movzx eax, si
movzx edx, di
mov ecx, ebx
push eax
push edx
lea eax, [esp + 0x10]
push eax
call fcn.101fbdd0
mov edi, dword [esp + 8]
mov esi, dword [ebp + 8]
mov dword [esi], ebx
test edi, edi
je 0x101fbd79
mov eax, dword [esp + 0xc]
mov ecx, eax
sub ecx, edi
dec eax
cmp ecx, eax
ja 0x101fbdb7
push edi
call fcn.102f3c66
add esp, 4
lea ecx, [esp + 0x20]
call fcn.102094a0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.102f4c53
mov eax, esi
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 0x25
push str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
push str._s:_d:_assertion__s_failed:__s
call fcn.10090eb0
call fcn.10308bbb
push str.null_pointer_given_to_destroy_at
push str.__loc___nullptr
push 0x41
jmp 0x101fbda3
Function at 0x101fd550
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov eax, dword [0x103c2010]
xor eax, ebp
mov dword [esp + 0x98], eax
test ecx, ecx
je 0x101fd61b
mov ebx, edx
push 0
push 0
push ecx
mov esi, ecx
call fcn.10305fe3
add esp, 0xc
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x60], xmm0
lea edi, [esp + 0x20]
push 0x48
push str....._base_files_file_util.cc
push str.ReadStreamToSpanWithMaxSize
push edi
call fcn.10221d60
add esp, 0x10
lea ecx, [esp + 0x60]
push 0
push edi
call fcn.10209420
pxor xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
mov dword [esp + 0x50], 0
mov dword [esp], esi
push esi
call fcn.10305fbc
add esp, 4
push eax
call fcn.103068aa
add esp, 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x101fd622
mov eax, dword [esp + 0x44]
xor ecx, ecx
mov edx, eax
neg edx
sbb ecx, dword [esp + 0x40]
mov edi, 0xffff
cmovl edi, eax
jmp 0x101fd627
xor ebx, ebx
jmp 0x101fd73f
mov edi, 0xffff
cmp edi, ebx
mov dword [esp + 0xc], ebx
cmovae edi, ebx
inc edi
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [ebp + 8]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
call dword [section..00cfg]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edi
push eax
push edx
mov dword [esp + 0x14], ecx
call ecx
add esp, 0xc
xor ebx, ebx
mov eax, dword [esp + 0x1c]
nop word cs:[eax + eax]
mov ecx, dword [esp]
add eax, ebx
push ecx
push edi
push 1
push eax
call fcn.1030db87
add esp, 0x10
test eax, eax
je 0x101fd700
mov esi, eax
mov eax, dword [esp + 0xc]
sub eax, ebx
cmp eax, esi
jb 0x101fd6f6
add esi, ebx
push dword [esp]
call fcn.1030d71e
add esp, 4
test eax, eax
jne 0x101fd6fe
test ebx, ebx
mov eax, 0x10000
cmove edi, eax
lea ebx, [esi + edi]
mov eax, dword [esp + 4]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 8]
call dword [section..00cfg]
mov eax, dword [esp + 0x5c]
push ebx
push eax
lea eax, [esp + 0x18]
push eax
call ecx
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov ebx, esi
jmp 0x101fd680
xor esi, esi
mov ebx, dword [esp + 0xc]
jmp 0x101fd712
mov ebx, esi
push dword [esp]
call fcn.1030d74a
add esp, 4
test eax, eax
sete al
mov esi, eax
mov eax, dword [esp + 4]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 8]
call dword [section..00cfg]
mov eax, dword [esp + 0x5c]
push ebx
push eax
lea eax, [esp + 0x18]
push eax
call ecx
add esp, 0xc
lea ecx, [esp + 0x60]
call fcn.102094a0
mov ebx, esi
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.102f4c53
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10207710
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x140c
call fcn.102f5080
mov eax, dword [0x103c2010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x103c5a78]
cmp eax, 0xffffffff
je 0x1020786f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x1020786f
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.102f7800
add esp, 0xc
mov ecx, dword [0x103c5a78]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x1414], ecx
push ecx
call fcn.10271710
add esp, 8
test ebx, ebx
je 0x1020778b
push ebx
call fcn.102f3c9c
add esp, 4
mov eax, dword [0x103cddc8]
mov ecx, dword [0x103c75a0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x10207884
mov esi, dword [0x103cddc4]
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x102077c4
mov ecx, esi
call fcn.101f2310
lea eax, [ebp - 0x1410]
push 0xc00
push 0x103cd1c4
push eax
call fcn.102f7800
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov al, 1
mov ecx, 0x101
jmp 0x102077f9
mov ecx, dword [ebp - 0x1418]
dec ecx
je 0x1020785a
test al, 1
je 0x1020785f
mov dword [ebp - 0x1418], ecx
xor edi, edi
lea ebx, [ebp - 0x1408]
xor eax, eax
jmp 0x1020781c
inc edi
add ebx, 0xc
cmp edi, 0x100
je 0x102077f0
mov esi, dword [ebp + edi*8 - 0x810]
test esi, esi
je 0x10207810
cmp dword [ebx - 8], 0
je 0x10207810
mov ecx, dword [ebp + edi*8 - 0x80c]
cmp ecx, dword [ebx]
jne 0x10207810
mov ecx, dword [ebx - 4]
test ecx, ecx
je 0x10207810
mov dword [ebp + edi*8 - 0x810], 0
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov al, 1
jmp 0x10207810
call sym.EmbeddedBrowserWebView.dll_public_virtual:_void___thiscall_telemetry_client::IDataFieldVisitor::destructor_void_
push 2
push dword [ebp - 0x1414]
call fcn.10271710
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.102f4c53
add esp, 0x140c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x103cddc8
call fcn.102f3cd7
add esp, 4
cmp dword [0x103cddc8], 0xffffffff
jne 0x102077ac
push 4
call fcn.102f3c36
add esp, 4
mov esi, eax
mov ecx, eax
call fcn.100b6230
mov dword [0x103cddc4], esi
push 0x103cddc8
call fcn.102f3d4d
add esp, 4
jmp 0x102077ac

Function at 0x102078f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x103c5a78]
cmp eax, 0xffffffff
je 0x10207910
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10207920
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov eax, dword [0x103c5a78]
cmp eax, 0xffffffff
je 0x1020793d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x10207942
call fcn.10207a40
mov eax, dword [0x103cddc8]
mov ecx, dword [0x103c75a0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x102079f4
mov edi, dword [0x103cddc4]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x1020797b
mov ecx, edi
call fcn.101f2310
mov ecx, dword [0x103cd1c0]
inc ecx
xor edx, edx
nop word cs:[eax + eax]
lea eax, [ecx + edx]
movzx ebx, al
lea eax, [ebx + ebx*2]
cmp dword [eax*4 + 0x103cd1c4], 0
je 0x102079ae
inc edx
cmp edx, 0x100
jne 0x10207990
jmp 0x102079de
lea eax, [eax*4 + 0x103cd1c4]
mov dword [eax], 1
lea eax, [ebx*4]
mov ecx, dword [ebp + 8]
mov dword [eax + eax*2 + 0x103cd1c8], ecx
mov dword [0x103cd1c0], ebx
mov dword [esi], ebx
mov eax, dword [eax + eax*2 + 0x103cd1cc]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp dword [esi], 0x100
jae 0x10207a39
pop esi
pop edi
pop ebx
pop ebp
ret 4
push 0x103cddc8
call fcn.102f3cd7
add esp, 4
cmp dword [0x103cddc8], 0xffffffff
jne 0x10207963
push 4
call fcn.102f3c36
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.100b6230
mov dword [0x103cddc4], edi
push 0x103cddc8
call fcn.102f3d4d
add esp, 4
jmp 0x10207963
int3

Function at 0x10207a40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x808
mov eax, dword [0x103c2010]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x810], 0xffffffff
mov ecx, dword [0x103c5a78]
mov dword [ebp - 0x810], ecx
cmp ecx, 0xffffffff
jne 0x10207ae4
lea esi, [ebp - 0x810]
push esi
call fcn.102716e0
add esp, 4
test al, al
je 0x10207b65
mov ecx, dword [ebp - 0x810]
cmp ecx, 0xffffffff
jne 0x10207ac0
push esi
call fcn.102716e0
add esp, 4
test al, al
je 0x10207b68
cmp dword [ebp - 0x810], 0xffffffff
je 0x10207b68
push 0xffffffffffffffff
call fcn.10271700
add esp, 4
mov ecx, dword [ebp - 0x810]
mov eax, 0xffffffff
lock cmpxchg dword [0x103c5a78], ecx
je 0x10207ae4
push ecx
call fcn.10271700
add esp, 4
mov ecx, dword [0x103c5a78]
mov dword [ebp - 0x810], ecx
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x10207b62
lea edi, [ebp - 0x80c]
push 0x800
push 0
push edi
call fcn.102f7d80
add esp, 0xc
lea eax, [ebp - 0x809]
push eax
push dword [ebp - 0x810]
call fcn.10271710
add esp, 8
push 0x800
call fcn.102f3c93
add esp, 4
mov esi, eax
push 0x800
push edi
push eax
call fcn.102f7800
add esp, 0xc
mov eax, esi
or eax, 3
push eax
push dword [ebp - 0x810]
call fcn.10271710
add esp, 8
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.102f4c53
mov eax, esi
add esp, 0x808
pop esi
pop edi
pop ebp
ret
int3
int3
int3
Function at 0x10208920
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [0x103cdddc]
cmp esi, 1
ja 0x10208986
push 0x103cdddc
call fcn.10221e50
add esp, 4
test al, al
je 0x10208980
mov dword [0x103cdde4], 0
mov dword [0x103cdde0], 0
mov esi, 0x103cdde0
mov ecx, 0x103cdde0
push 0
call fcn.10207c90
push 0x103cdddc
push 0
push 0x103cdde0
push 0x103cdddc
call fcn.10221f40
add esp, 0x10
jmp 0x10208986
mov esi, dword [0x103cdddc]
mov ecx, esi
pop esi
pop ebp
jmp fcn.10207c20

Function at 0x1020e750
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
cmp dword [ebp + 0xc], 0
je 0x1020e8a7
mov edx, dword [ebp + 8]
xor ebx, ebx
jmp 0x1020e77b
mov ebx, esi
cmp esi, dword [ebp + 0xc]
jae 0x1020e8a7
lea esi, [ebx + 1]
movzx eax, byte [edx + ebx]
test al, al
jns 0x1020e770
mov edi, 0xffffffff
cmp esi, dword [ebp + 0xc]
jne 0x1020e7a1
mov esi, dword [ebp + 0xc]
cmp edi, 0xd800
jae 0x1020e839
jmp 0x1020e770
cmp al, 0xe0
jb 0x1020e7dd
cmp al, 0xef
ja 0x1020e800
and eax, 0xf
movzx ecx, byte [eax + str._000000000000]
mov dword [ebp - 0x10], ecx
movzx ebx, byte [edx + esi]
mov edx, ebx
shr edx, 5
mov ecx, dword [ebp - 0x10]
bt ecx, edx
jae 0x1020e82a
and bl, 0x3f
mov edx, dword [ebp + 8]
inc esi
cmp esi, dword [ebp + 0xc]
je 0x1020e790
shl eax, 6
movzx edx, bl
or edx, eax
jmp 0x1020e7e6
cmp al, 0xc2
jb 0x1020e82d
and eax, 0x1f
mov edx, eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax + esi]
xor eax, 0x80
cmp al, 0x3f
ja 0x1020e82a
shl edx, 6
or edx, eax
inc esi
mov edi, edx
jmp 0x1020e82a
cmp al, 0xf4
ja 0x1020e82d
add eax, 0xffffff10
movzx edx, byte [edx + esi]
mov dword [ebp - 0x10], edx
shr edx, 4
movsx edx, byte [edx + 0x103661f1]
bt edx, eax
jae 0x1020e82a
add ebx, 2
cmp ebx, dword [ebp + 0xc]
jne 0x1020e871
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp edi, 0xd800
jb 0x1020e770
lea eax, [edi - 0xe000]
cmp eax, 0x1dd0
jb 0x1020e770
lea edx, [edi - 0xfdf0]
xor eax, eax
cmp edx, 0x10020f
ja 0x1020e8a9
and edi, 0xfffe
cmp edi, 0xfffe
mov edx, dword [ebp + 8]
jne 0x1020e770
jmp 0x1020e8a9
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ebx]
add cl, 0x80
mov dword [ebp - 0x14], ecx
cmp cl, 0x3f
ja 0x1020e898
shl eax, 6
mov esi, dword [ebp - 0x10]
and esi, 0x3f
or eax, esi
mov esi, ebx
mov ebx, dword [ebp - 0x14]
jmp 0x1020e7cd
mov esi, ebx
cmp edi, 0xd800
jae 0x1020e839
jmp 0x1020e770
mov al, 1
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x102256c0
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 0x10225710
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jb 0x102256fa
call fcn.10221d90
push dword [esi]
call fcn.101ee6e0
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x10225709
mov dword [esi], ebx
call fcn.10221d90
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esi + 4]
call fcn.102232b0
lea ecx, [esi + 0x10]
call fcn.1026e200
mov dword [esi + 0x14], 0
mov byte [esi + 0x18], 0
movzx eax, byte [ebp + 0xc]
mov byte [esi + 0x19], al
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x10225740
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.101f96d0
mov dword [esi], 0
test eax, eax
je 0x102257a2
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jb 0x10225788
mov dword [ebp - 0x10], eax
call fcn.10221d90
push dword [esi]
call fcn.101ee6e0
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
lea ecx, [ebx + 1]
cmp ecx, 2
jb 0x1022579b
mov dword [esi], ebx
mov ebx, eax
call fcn.10221d90
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esi + 4]
lea eax, [edi + 4]
push eax
call fcn.102232d0
lea ecx, [esi + 0x10]
call fcn.1026e200
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
movzx eax, byte [edi + 0x18]
mov byte [esi + 0x18], al
movzx eax, byte [edi + 0x19]
mov byte [esi + 0x19], al
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x10229a30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, edx
mov edi, ecx
mov eax, dword [0x103c2010]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x1c]
push edx
push ecx
push esi
call fcn.1020ced0
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x10229a5e
mov esi, dword [ebp - 0x1c]
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
cmp byte [ebp - 0x11], 0
jns 0x10229a7c
push dword [ebp - 0x1c]
call fcn.102f3c66
add esp, 4
cmp dword [ebp + 8], 0
je 0x10229b29
test esi, esi
je 0x10229b29
lea eax, [esi + esi]
test esi, esi
mov ecx, 0xffffffff
cmovns ecx, eax
push ecx
call fcn.102f3c93
add esp, 4
mov ecx, edi
mov edi, eax
mov eax, ebx
lea ebx, [ebp - 0x1c]
push eax
push ecx
push ebx
call fcn.1020ced0
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x10229ac1
mov ebx, dword [ebp - 0x1c]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [ebp - 0x11], 0
jns 0x10229adb
push dword [ebp - 0x1c]
call fcn.102f3c66
add esp, 4
test edi, edi
mov ebx, dword [ebp + 8]
je 0x10229aed
push edi
call fcn.1030fc76
add esp, 4
jmp 0x10229aef
xor eax, eax
lea ecx, [ebp - 0x1c]
push eax
push edi
push ecx
call fcn.1020cb10
add esp, 0xc
cmp byte [ebx + 0xb], 0
jns 0x10229b0d
push dword [ebx]
call fcn.102f3c66
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x1c]
movsd qword [ebx], xmm0
test edi, edi
je 0x10229b29
push edi
call fcn.102f3c9c
add esp, 4
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.102f4c53
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1022a870
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 [0x103c2010]
xor edx, ebp
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x20]
push 3
push ecx
push eax
push edx
call fcn.101f28c0
add esp, 0x10
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1022a9c3
mov esi, dword [ebp - 0x20]
mov dword [edi], esi
mov dword [edi + 4], eax
mov dword [ebp - 0x14], 0
push 0x800
push 0
push str.api_ms_win_downlevel_shell32_l1_1_0.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
mov dword [ebp - 0x30], eax
je 0x1022a8f0
push 0x10366a12
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1022a900
mov ecx, eax
call dword [section..00cfg]
lea eax, [ebp - 0x14]
push eax
push esi
call ecx
jmp 0x1022a8fb
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x24], eax
jmp 0x1022a907
mov dword [ebp - 0x24], 0
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
test esi, esi
je 0x1022a977
mov dword [ebp - 0x2c], edi
shl esi, 2
cmp esi, 0x55555555
jae 0x1022aa17
lea edi, [esi + esi*2]
push edi
call fcn.102f3c36
add esp, 4
mov ebx, eax
mov dword [ebp - 0x20], eax
add eax, edi
mov dword [ebp - 0x18], eax
xor edi, edi
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x1022a9fc
mov ecx, ebx
mov eax, dword [ebp - 0x24]
push dword [eax + edi]
call fcn.100f7978
add ebx, 0xc
add edi, 4
cmp esi, edi
jne 0x1022a950
mov dword [ebp - 0x1c], ebx
mov edi, dword [ebp - 0x2c]
jmp 0x1022a980
xor ebx, ebx
mov dword [ebp - 0x28], 0
mov ecx, edi
lea eax, [ebp - 0x20]
push eax
call fcn.1022a390
mov dword [edi], 0
mov dword [edi + 4], 0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1022a9af
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x1022a9c3
cmp ebx, edi
jne 0x1022a9e6
push edi
call fcn.102f3c66
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.102f4c53
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ebx, esi
cmp esi, edi
je 0x1022a9ba
lea esi, [ebx - 0xc]
cmp byte [ebx - 1], 0
jns 0x1022a9e0
push dword [ebx - 0xc]
call fcn.102f3c66
add esp, 4
jmp 0x1022a9e0
push str.null_pointer_given_to_construct_at
push str.__location___nullptr
push 0x25
push str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
push str._s:_d:_assertion__s_failed:__s
call fcn.10090eb0
call fcn.10308bbb
int3
Function at 0x1022ba30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x2c], edx
mov eax, dword [0x103c2010]
xor eax, ebp
mov dword [ebp - 0x10], eax
movzx eax, byte [0x103cdfac]
and eax, 1
neg eax
cmp eax, 0xfffffffd
je 0x1022bb2b
mov edi, ecx
xor esi, esi
jmp 0x1022ba8d
cmp byte [ebp - 0x24], 0
js 0x1022bb10
inc esi
movzx eax, byte [0x103cdfac]
xor eax, 3
cmp esi, eax
jae 0x1022bb2b
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 0xffffffff
lea ecx, [ebp - 0x1c]
push dword [esi*8 + 0x10366984]
push dword [esi*8 + 0x10366980]
call fcn.10093374
movzx edx, byte [ebp - 0x11]
test dl, dl
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
cmovs edx, eax
cmp edx, dword [ebp - 0x2c]
ja 0x1022ba70
test edx, edx
je 0x1022bb20
cmp byte [ebp - 0x24], 0
lea eax, [ebp - 0x1c]
cmovs eax, dword [ebp - 0x20]
xor ebx, ebx
nop word cs:[eax + eax]
movzx ecx, word [edi + ebx*2]
cmp cx, word [eax + ebx*2]
jne 0x1022ba70
inc ebx
cmp edx, ebx
jne 0x1022baf0
jmp 0x1022bb20
push dword [ebp - 0x20]
call fcn.102f3c66
add esp, 4
jmp 0x1022ba7a
mov eax, dword [ebp - 0x24]
test al, al
js 0x1022bb2f
mov esi, eax
jmp 0x1022bb3d
xor esi, esi
jmp 0x1022bb3d
push dword [ebp - 0x20]
call fcn.102f3c66
add esp, 4
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.102f4c53
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret