joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004938
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x10004959
jl 0x10004950
test edi, edi
jne 0x10004959
xor eax, eax
xor edx, edx
jmp 0x10004a1a
cmp dword [ebx + 0x38], 0
je 0x1000496e
push eax
push edi
push dword [ebp + 8]
call fcn.10004a20
jmp 0x10004a1a
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x100049b5
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x100049b5
cmp eax, edi
jb 0x1000498f
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.10006790
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x100049bb
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x10004a0f
mov ecx, ebx
call fcn.10004187
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x100049fa
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.1000b3bf
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x10004a0f
jmp 0x100049cd
test edx, edx
je 0x10004a0f
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.1000b3bf
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x1000c9fc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000ca3b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000ca3b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000ca3b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000ca3b
cmp dword [ecx + 0x74], 0xe
jbe 0x1000ca3b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1000fda3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001f2e8
push 0x1001f2e0
push str.FlsAlloc
push 0x1f
call fcn.1000fc6b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000fdd7
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c148]
call esi
jmp 0x1000fddd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000fe21
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001f2f8
push 0x1001f2f0
push str.FlsGetValue
push 0x21
call fcn.1000fc6b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000fe58
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c148]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1000fe60
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001f300
push 0x1001f2f8
push str.FlsSetValue
push 0x22
call fcn.1000fc6b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000fe9a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001c148]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10012687
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100060f0
mov eax, dword [0x10026040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.100112ce
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100126c9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10012825
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1001ab30
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10027938]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10013684
mov ecx, dword [esi*4 + 0x10027938]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1001281e
cmp eax, dword [ecx + edi + 0x24]
jne 0x1001281e
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001281e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10013684
add esp, 0x14
test edx, edx
jl 0x1001281e
jg 0x10012794
test eax, eax
jb 0x1001281e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1001281e
jl 0x100127ae
cmp dword [ebp - 0x1008], eax
ja 0x1001281e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100127cc
test ebx, ebx
je 0x10012805
cmp ecx, edi
jae 0x10012805
mov al, byte [ecx]
cmp al, 0xd
jne 0x100127e6
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100127f2
cmp byte [ecx + 1], 0xa
jne 0x100127f2
inc ecx
jmp 0x100127f2
movzx eax, al
movsx eax, byte [eax + 0x100262f0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100127cc
cmp edx, ebx
jne 0x100127cc
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10012823
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100050fd
leave
ret
Function at 0x10012b1c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10027938]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10012b5c
cmp byte [ebx], 0xa
jne 0x10012b5c
or byte [edi + eax + 0x28], 4
jmp 0x10012b61
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10012c60
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10012c43
inc eax
cmp dl, 0xd
je 0x10012b8d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10012bb3
cmp eax, ecx
jae 0x10012bc1
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10012b75
jmp 0x10012c60
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10012c3e
cmp dword [ebp - 0x10], 0
je 0x10012c3e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10027938]
test byte [eax + edi + 0x28], 0x48
je 0x10012c18
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10012c03
mov byte [esi], dl
jmp 0x10012c14
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10027938]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10012c60
cmp byte [ebp - 1], 0xa
jne 0x10012c27
cmp esi, ebx
jne 0x10012c27
mov byte [esi], 0xa
jmp 0x10012c5f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100136a2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10012c60
mov byte [esi], 0xd
jmp 0x10012c5f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10027938]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10012c5d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10012c60
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10012c69
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10027938]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10012caf
cmp word [ebx], dx
jne 0x10012caf
or byte [eax + edi + 0x28], 4
jmp 0x10012cb4
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10012e17
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10012df7
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10012cf5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10012d2b
cmp eax, edx
jae 0x10012d39
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10012cd0
jmp 0x10012e17
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10012df2
cmp dword [ebp - 0x18], 0
je 0x10012df2
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10027938]
test byte [eax + edi + 0x28], 0x48
je 0x10012dc8
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10012d8c
mov word [esi], cx
jmp 0x10012dc3
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10027938]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10027938]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10027938]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10012e17
pop eax
cmp word [ebp - 4], ax
jne 0x10012dd8
cmp esi, ebx
jne 0x10012dd8
mov word [esi], ax
jmp 0x10012e14
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100136a2
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10012e17
push 0xd
pop eax
jmp 0x10012dd3
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10027938]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10012e11
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10012e17
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10015abf
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 0x10015b5c
push ebx
push esi
call fcn.10015a88
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.1001485d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10015b09
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10015b5b
push edi
push eax
call fcn.100100f9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10015b29
call fcn.1000dc72
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10015b5a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001485d
add esp, 0x20
test eax, eax
jne 0x10015b48
push edi
call fcn.1000dc72
jmp 0x10015b50
push ebx
call fcn.1000dc72
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 0x10017dd9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1000e016
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10017e48
cmp esi, dword [ebp - 4]
je 0x10017e43
cmp dword [ebp + 0xc], 0
je 0x10017e43
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10017e20
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1001792b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10017e4a
xor eax, eax
inc eax
jmp 0x10017e4a
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10017eaf
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10026040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1000e016
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1000e016
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10017f26
cmp word [ecx], dx
je 0x10017f26
mov eax, dword [0x1001f944]
push edi
dec eax
push eax
push 0x1001f830
call fcn.10017e4e
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10017f99
cmp word [eax], dx
je 0x10017f99
mov eax, dword [edi]
test eax, eax
je 0x10017f4a
cmp word [eax], dx
je 0x10017f4a
lea eax, [ebp - 0x10]
push eax
call fcn.10017831
jmp 0x10017f53
lea eax, [ebp - 0x10]
push eax
call fcn.100178cc
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10017fc3
mov eax, dword [0x1001f82c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1001f520
call fcn.10017e4e
add esp, 0xc
test al, al
je 0x10017fc3
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10017f8e
cmp word [eax], di
je 0x10017f8e
lea eax, [ebp - 0x10]
push eax
call fcn.10017831
pop ecx
jmp 0x10017fc5
lea eax, [ebp - 0x10]
push eax
call fcn.100178cc
jmp 0x10017f8b
mov eax, dword [edi]
test eax, eax
je 0x10017fb0
cmp word [eax], dx
je 0x10017fb0
lea eax, [ebp - 0x10]
push eax
call fcn.100177e6
pop ecx
jmp 0x10017fc3
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1001808e
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10017cd3
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1001808e
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1001808e
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1001808e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001801b
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1000ffa0
test ebx, ebx
je 0x10018089
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1000ffa0
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001808e
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001808e
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10019304
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10018090
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100050fd
leave
ret
Function at 0x1001aaf0
Capabilities:
Parse pe header

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

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40113e
Capabilities:
Check if file exists
Get common file path
Link many functions at runtime
Query environment variable
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x456018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x44d56c
push 0x5d
push str.CBugReporter::Init
push str.D:jenkinsworkspaceThunderPCThunderPC_AP_Gray_Pack_Pipelinechannel_trunk_build_setupOnlineInstallOnlineInstallBugReporter.h
push 5
call fcn.00402aff
mov esi, 0x208
lea eax, [ebp - 0x828]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.00421280
add esp, 0x20
lea eax, [ebp - 0x828]
mov edi, 0x104
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00421280
push esi
lea eax, [ebp - 0x418]
push ebx
push eax
call fcn.00421280
add esp, 0x18
lea eax, [ebp - 0x418]
push edi
push eax
push str.resdir
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x418]
push eax
call esi
cmp eax, 1
jne 0x401267
push edi
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.00427cc4
add esp, 0x10
lea eax, [ebp - 0x210]
push str..XLBugHandler.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call esi
cmp eax, 1
jne 0x401267
push 0x208
lea eax, [ebp - 0x620]
push ebx
push eax
call fcn.00421280
add esp, 0xc
lea eax, [ebp - 0x620]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x418]
push eax
call esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x458484], eax
lea eax, [ebp - 0x620]
push eax
call esi
mov eax, dword [0x458484]
test eax, eax
jne 0x40129d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x210]
push eax
push str.LoadLibrary_failed__XLBugHandler_path:_s___errno:__d
push 0x77
push str.CBugReporter::Init
push str.D:jenkinsworkspaceThunderPCThunderPC_AP_Gray_Pack_Pipelinechannel_trunk_build_setupOnlineInstallOnlineInstallBugReporter.h
push 4
call fcn.00402aff
add esp, 0x1c
xor eax, eax
jmp 0x40130d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._XL_SetBugReportRootDir_4
push eax
call esi
push str._XL_InitBugHandler_20
push dword [0x458484]
mov dword [0x45846c], eax
call esi
push str._XL_SetPeerID_4
push dword [0x458484]
mov dword [0x458470], eax
call esi
push str._XL_SetReportShowMode_4
push dword [0x458484]
mov dword [0x458474], eax
call esi
push str._XL_SetAlwaysSendReport_4
push dword [0x458484]
mov dword [0x458478], eax
call esi
push str._XL_SetReportPath_4
push dword [0x458484]
mov dword [0x45847c], eax
call esi
mov dword [0x458480], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f653
leave
ret
Function at 0x401859
Capabilities:
Create directory

Disassembly:
push esi
push edi
push 0
mov esi, ecx
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edi, eax
test edi, edi
je 0x401895
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
push edi
push str.SHCreateDirectoryEx_failed__ret:_d__lastErr:_d__lpszDirpath:_s
push 0x5a
push str.CInstallEnv::CreateDirectoryW
push str.D:jenkinsworkspaceThunderPCThunderPC_AP_Gray_Pack_Pipelinechannel_trunk_build_setupOnlineInstallOnlineInstallInstallEnv.cpp
push 3
call fcn.00402aff
xor eax, eax
add esp, 0x20
inc eax
pop edi
pop esi
ret

Function at 0x401a97
Capabilities:
Get common file path
Set environment variable

Disassembly:
push 0x434
mov eax, 0x44084b
call fcn.0041ffcd
mov esi, ecx
mov edi, 0x208
lea eax, [ebp - 0x21c]
push edi
xor ebx, ebx
push ebx
push eax
call fcn.00421280
add esp, 0xc
lea eax, [ebp - 0x424]
push edi
push ebx
push eax
call fcn.00421280
add esp, 0xc
lea eax, [ebp - 0x424]
mov edi, 0x104
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x42c], ebx
push 0x44e4e8
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x428], 7
mov word [ebp - 0x43c], ax
call fcn.004023d2
lea edx, [ebp - 0x43c]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x424]
call fcn.00401931
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x440], ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x21c]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
push str.OnlineInstall
push eax
call edi
lea edx, [ebp - 0x440]
lea ecx, [ebp - 0x21c]
call fcn.0040182f
cmp dword [ebp - 0x440], ebx
jne 0x401b7d
lea ecx, [ebp - 0x21c]
call fcn.00401859
cmp dword [ebp - 0x428], 8
lea eax, [ebp - 0x43c]
cmovae eax, dword [ebp - 0x43c]
push eax
lea eax, [ebp - 0x21c]
push eax
call edi
lea edx, [ebp - 0x440]
lea ecx, [ebp - 0x21c]
call fcn.0040182f
cmp dword [ebp - 0x440], 0
jne 0x401bc0
lea ecx, [ebp - 0x21c]
call fcn.00401859
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.004023d2
lea eax, [ebp - 0x21c]
push eax
push str.workdir
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp dword [esi + 0x14], 8
jb 0x401be8
mov esi, dword [esi]
push esi
push str.m_strWorkPath:_s
push 0xd9
push str.CInstallEnv::InitWorkPath
push str.D:jenkinsworkspaceThunderPCThunderPC_AP_Gray_Pack_Pipelinechannel_trunk_build_setupOnlineInstallOnlineInstallInstallEnv.cpp
push 4
call fcn.00402aff
add esp, 0x18
lea ecx, [ebp - 0x43c]
call fcn.00402393
xor eax, eax
call fcn.0041ff88
ret
Function at 0x401e86
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0xc], esi
jne 0x401eb7
push str.lpszFilePath__NULL
push 0x11b
push str.CInstallEnv::ExtractResource
push str.D:jenkinsworkspaceThunderPCThunderPC_AP_Gray_Pack_Pipelinechannel_trunk_build_setupOnlineInstallOnlineInstallInstallEnv.cpp
push 2
call fcn.00402aff
add esp, 0x14
jmp 0x401f3c
push 0x44e124
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x401ed8
push str.FindResource_Fail_
push 0x122
jmp 0x401e9e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x401ef2
push str.LoadResource_Fail_
push 0x128
jmp 0x401e9e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0x44e17c
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
call fcn.00427678
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x401f35
push ebx
push dword [ebp + 8]
xor esi, esi
inc esi
push esi
push dword [ebp - 4]
call fcn.004278ae
push ebx
call fcn.00427988
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8