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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426c56
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4334c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x24c], esi
call fcn.00410340
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push 0x7e
push eax
call fcn.00410020
lea ecx, [ebp - 0x218]
add esp, 8
mov edx, eax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406890
sub ecx, edi
mov dword [ebp - 0x230], 0
xor eax, eax
sar ecx, 1
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
push ecx
lea ecx, [ebp - 0x230]
push eax
test edx, edx
je 0x406992
call fcn.0040d010
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040ba80
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00406e10
mov edx, dword [ebp - 0x234]
add esp, 0x10
cmp edx, 0x10
jb 0x406943
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406939
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4069d7
push edx
push ecx
call fcn.0040e748
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4069ba
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4069b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4069d7
jmp 0x4069b0
call fcn.0040d010
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 2
push eax
push esi
call fcn.0040ba80
add esp, 8
jmp 0x40695e
push edx
push ecx
call fcn.0040e748
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e93b
mov esp, ebp
pop ebp
ret
call fcn.00411d1f
int3
Function at 0x41a44b
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a3cd

Function at 0x41cc91
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x434b30]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ccd1
cmp byte [ebx], 0xa
jne 0x41ccd1
or byte [eax + edi + 0x28], 4
jmp 0x41ccd6
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41cdd4
mov al, byte [edx]
cmp al, 0x1a
je 0x41cdb6
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41cd05
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41cd2a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41cd34
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41cce7
jmp 0x41cdd4
push 0
lea eax, [ebp - 0xc]
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 0x41cdb1
cmp dword [ebp - 0xc], 0
je 0x41cdb1
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x434b30]
test byte [eax + edi + 0x28], 0x48
je 0x41cd8b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41cd76
mov byte [esi], dl
jmp 0x41cd87
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x434b30]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41cdd4
cmp byte [ebp - 1], 0xa
jne 0x41cd9a
cmp esi, ebx
jne 0x41cd9a
mov byte [esi], 0xa
jmp 0x41cdd3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d6df
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41cdd4
mov byte [esi], 0xd
jmp 0x41cdd3
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x434b30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41cdd0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41cdd4
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41cddd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x434b30]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ce20
cmp word [esi], dx
jne 0x41ce20
or byte [edi + eax + 0x28], 4
jmp 0x41ce25
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41cf78
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41cf58
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41ce67
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ce9d
cmp eax, edx
jae 0x41cea9
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41ce3f
jmp 0x41cf78
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41cf54
cmp dword [ebp - 0x14], 0
je 0x41cf54
mov eax, dword [ebx*4 + 0x434b30]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41cf2c
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41cef5
mov word [esi], cx
jmp 0x41cf28
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x434b30]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x434b30]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x434b30]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41cf78
pop ebx
cmp word [ebp - 4], bx
jne 0x41cf3d
cmp esi, dword [ebp + 0xc]
jne 0x41cf3d
mov word [esi], bx
jmp 0x41cf75
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041d6df
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41cf78
push 0xd
jmp 0x41cf71
mov ecx, dword [ebx*4 + 0x434b30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41cf6f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41cf78
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ea90
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c528
push 0x42c520
push str.FlsAlloc
push 0x1e
call fcn.0041e92e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41eac4
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281dc]
call esi
jmp 0x41eaca
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41eb0e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c538
push 0x42c530
push str.FlsGetValue
push 0x20
call fcn.0041e92e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41eb45
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281dc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41fe44
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 0x41fee1
push ebx
push esi
call fcn.0041fe0d
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.0041e72a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41fe8e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41fee0
push edi
push eax
call fcn.0041acfd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41feae
call fcn.0041acc3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41fedf
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041e72a
add esp, 0x20
test eax, eax
jne 0x41fecd
push edi
call fcn.0041acc3
jmp 0x41fed5
push ebx
call fcn.0041acc3
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 0x424ce5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00424c61
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x424e5d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x424e5d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x424e0c
jg 0x424d3e
test eax, eax
je 0x424e02
push 1
push 0x1000
call fcn.0041ee47
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x424d64
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x424df9
push 0x8000
push ebx
call fcn.004183c5
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x424d90
jg 0x424d8b
cmp ecx, 0x1000
jb 0x424d90
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041e02a
add esp, 0x10
cmp eax, 0xffffffff
je 0x424dd5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x424d8b
jl 0x424dbc
test ecx, ecx
jne 0x424d7d
push dword [ebp - 0xc]
push ebx
call fcn.004183c5
push esi
call fcn.0041acc3
add esp, 0xc
xor edi, edi
jmp 0x424e6e
cmp byte [edi + 0x24], 0
je 0x424dec
cmp dword [edi + 0x20], 5
jne 0x424dec
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x424df7
mov edi, dword [edi + 0x18]
jmp 0x424df9
xor edi, edi
push esi
call fcn.0041acc3
pop ecx
jmp 0x424e6e
test ecx, ecx
jg 0x424dce
jl 0x424e0c
test eax, eax
jae 0x424dce
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041d6df
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x424e2f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x424dce
jmp 0x424e66
push ebx
call fcn.004202ae
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x424dce
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x424e6e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x424e6b
mov edi, dword [edi + 0x18]
jmp 0x424e6e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041d6df
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4036d8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x409014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403770
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403750
xor eax, eax
push ebp
push 0x403749
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40378c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403750
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x409014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x409014], ax
mov esp, ebp
pop ebp
ret

Function at 0x40403c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a044], 0
je 0x40409d
cmp word [0x40a218], 0xd7b2
jne 0x404065
cmp dword [0x40a220], 0
jbe 0x404065
mov eax, 0x40a214
call dword [0x40a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40908c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4040c4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409020], 0
jne 0x4040b9
push 0
push 0x409084
push 0x40908c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404e4c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404eb2
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404408
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e90
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404e9c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404eb9
lea eax, [ebp - 0x10]
call fcn.004041c0
ret

Function at 0x406c94
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406ccd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042b0
jmp 0x406cd6
mov eax, ebx
mov edx, esi
call fcn.00404214
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406ce0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406d01
mov al, byte [esp]
jmp 0x406d03
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x407398
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x407200
mov eax, dword [0x4093dc]
cmp byte [eax], 0
je 0x407414
mov eax, dword [0x409330]
call fcn.00402d48
call fcn.004029a8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00406168
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40745c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40744a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x409310]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40a660]
call fcn.0040481c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x407e38
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x407e9c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404408
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406030
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407ea3
lea eax, [ebp - 0xc]
call fcn.004041c0
ret
Function at 0x40a17a
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x4016ac
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x40a1cc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401718
push edi
call esi
push 0x40170c
push edi
mov dword [0x4172a4], eax
call esi
push 0x401700
push edi
mov dword [0x4172a8], eax
call esi
push 0x4016f8
push edi
mov dword [0x4172ac], eax
call esi
mov dword [0x4172b0], eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [0x4172a4], ebx
je 0x40a1f2
cmp dword [0x4172a8], ebx
je 0x40a1f2
cmp dword [0x4172ac], ebx
je 0x40a1f2
cmp dword [0x4172b0], ebx
jne 0x40a216
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x4172a8], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x4172a4], 0x409dcb
mov dword [0x4172ac], esi
mov dword [0x4172b0], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x41616c], eax
cmp eax, 0xffffffff
je 0x40a289
push dword [0x4172a8]
push eax
call esi
test eax, eax
je 0x40a289
call fcn.00409c86
push dword [0x4172a4]
call fcn.00409ccd
push dword [0x4172a8]
mov dword [0x4172a4], eax
call fcn.00409ccd
push dword [0x4172ac]
mov dword [0x4172a8], eax
call fcn.00409ccd
push dword [0x4172b0]
mov dword [0x4172ac], eax
call fcn.00409ccd
add esp, 0x10
mov dword [0x4172b0], eax
call fcn.0040d8bc
test eax, eax
jne 0x40a28f
call fcn.00409e08
xor eax, eax
pop edi
pop esi
pop ebx
ret
push fcn.00409fb7
push dword [0x4172a4]
call fcn.00409d53
pop ecx
call eax
mov dword [0x416170], eax
cmp eax, 0xffffffff
je 0x40a284
push 0x214
push 1
call fcn.0040ef9d
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x40a284
push esi
push dword [0x416170]
push dword [0x4172ac]
call fcn.00409d53
pop ecx
call eax
test eax, eax
jne 0x40a2e2
push esi
call fcn.00408ab7
pop ecx
jmp 0x40a284
push ebx
push esi
call fcn.00409e4a
or dword [esi + 4], 0xffffffff
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x40a28b

Function at 0x40cc2f
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x40cc6a
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x40cc51
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x40cc62
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x40cc6c
inc edi
add eax, 0x28
cmp edi, esi
jb 0x40cc47
xor eax, eax
pop edi
pop esi
ret
Function at 0x40d8bc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x40d8e3
cmp dword [ebp - 0x398], 0
je 0x40daad
cmp dword [ebp + 0xc], 1
je 0x40daad
cmp dword [ebp + 0xc], 8
jne 0x40da75
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
stc
invalid
dec dword [ecx]
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
mov byte [ebp - 0x6a2], 0x64
lea eax, [ebp - 0x6b8]
push eax
call fcn.0040cbff
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040cbb4
add esp, 0xc
mov dword [ebp - 0x690], eax
mov byte [ebp - 0x6a0], 0x8b
or byte [ebp - 0x69f], 0xff
mov byte [ebp - 0x69e], 0x55
mov byte [ebp - 0x69d], 0x8b
mov byte [ebp - 0x69c], 0xec
lea eax, [ebp - 0x694]
push eax
push 5
lea eax, [ebp - 0x6a0]
push eax
push dword [ebp - 0x33c]
push 0xffffffffffffffff
call dword [ebp - 0x690]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6bc], eax
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x698], eax
call fcn.0040cbef
and eax, 0xff8a1fb5
mov ch, 0x68
stc
invalid
call fcn.0040cbef
and ah, ch
xor bl, byte [edi]
and byte [ebp - 0x544], 0
push 0
invalid
xchg ebp, eax
invalid
Function at 0x401179
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
test esi, esi
je 0x40120f
xor ebx, ebx
push ebx
push 0x1a
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40120f
push edi
push 0x40a7b8
mov edi, 0x104
push edi
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
push str.logs
push edi
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0x18
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push ebx
push str.zoomtest
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
pop edi
test eax, eax
je 0x40120f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
jmp 0x401211
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00406b30
leave
ret

Function at 0x40121f
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x41100c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 0x1a
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4012c1
push 0x40a788
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wstat64i32]
pop ecx
pop ecx
test eax, eax
jne 0x4012c1
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x220]
push eax
push 8
lea eax, [ebp - 0x14]
push eax
push 0
push str.com.zoom.test.disable_crash_handler
push str.ZoomChat
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4012c1
lea eax, [ebp - 0x14]
push 0x40a844
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
neg eax
pop ecx
sbb al, al
pop ecx
inc al
jmp 0x4012c3
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00406b30
leave
ret