joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40686f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x460114], 0
jne 0x4068ad
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406883
mov dword [ecx*4 + 0x460110], eax
inc ecx
cmp ecx, 0x100
jl 0x40687e
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4068da
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x460110]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4068bb
not eax
pop ebp
ret 0xc

Function at 0x430e4e
Capabilities:
Encode data using xor

Disassembly:
rol dword [esi], cl
cdq
cmp al, byte [ecx]
jb 0x430e44
mul bh
xor eax, 0x689da285
test dword [edx - 0x17fe9763], esp
or eax, 0x8aa8994e
shr dword [ebp + 0x340d0a87], 1
das
mov edx, 0x712b4a0
sub cl, ah
pushfd
wait
inc esp
cmpsd dword [esi], dword es:[edi]
mov eax, 0x77928998
xor esi, ebp
jge 0x430e9f
sbb byte [edx], ch
inc ecx
push 0xad1c2435
insd dword es:[edi], dx
outsw dx, word [esi]
inc ecx
sub eax, 0x21678d3e
fcomp qword [ebx + 0x6db5ba47]
insd dword es:[edi], dx
fisttp dword [edx + esi - 0x33]
aad 0x78
fmul qword [ebx]
rol byte [edx], 2
xchg esp, eax
invalid
invalid

Function at 0x4c5f51
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4cd390
cmp edx, dword [eax]
je 0x4c5f73
add eax, 8
inc ecx
cmp eax, 0x4cd420
jl 0x4c5f64
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4cd390]
jne 0x4c60a1
mov eax, dword [0x4d2dc0]
cmp eax, 1
je 0x4c607b
test eax, eax
jne 0x4c5fa4
cmp dword [0x4cd2bc], 1
je 0x4c607b
cmp edx, 0xfc
je 0x4c60a1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c5fdb
lea eax, [ebp - 0x1a4]
push 0x4cb6b8
push eax
call fcn.004c6930
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c6dc0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c601e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c6dc0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cb6b4
push edi
call fcn.004c8c90
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4cb698
push eax
call fcn.004c6930
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c6940
lea eax, [ebp - 0xa0]
push 0x4cb694
push eax
call fcn.004c6940
push dword [esi + 0x4cd394]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c6940
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4cb66c
push eax
call fcn.004c8c04
add esp, 0x2c
pop edi
jmp 0x4c60a1
lea eax, [ebp + 8]
lea esi, [esi + 0x4cd394]
push 0
push eax
push dword [esi]
call fcn.004c6dc0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x89f4e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd2000]
push edi
jmp 0x89f4fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x89f501
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x89f4f0
mov eax, 1
add ebx, ebx
jne 0x89f513
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x89f524
jne 0x89f543
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x89f543
dec eax
add ebx, ebx
jne 0x89f530
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x89f508
add ebx, ebx
jne 0x89f53f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x89f595
xor ecx, ecx
sub eax, 3
jb 0x89f55b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x89f5ca
sar eax, 1
mov ebp, eax
jmp 0x89f566
add ebx, ebx
jne 0x89f566
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x89f534
inc ecx
add ebx, ebx
jne 0x89f574
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x89f534
add ebx, ebx
jne 0x89f581
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x89f576
jne 0x89f592
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x89f576
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x89f5b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x89f5a6
jmp 0x89f4f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x89f5b4
add edi, ecx
jmp 0x89f4f6
pop esi
mov edi, esi
mov ecx, 3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x89f5d2
cmp byte [edi], 1
jne 0x89f5d2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x89f5d7
lea edi, [esi + 0x44d000]
mov eax, dword [edi]
or eax, eax
je 0x89f64f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4a113c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4a1260]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x89f604
mov ecx, edi
jns 0x89f633
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4a1268]
or eax, eax
je 0x89f649
mov dword [ebx], eax
add ebx, 4
jmp 0x89f621
call dword [esi + 0x4a1264]
mov ebp, dword [esi + 0x4a126c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x89f683
sub esp, 0xffffff80
jmp 0x4c3b74
Function at 0x401063
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4dc6e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push 0x4c5150
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401138
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401127
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x401111
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x401127
push eax
push edi
push dword [ebp - 0x110]
call section..text
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x40113a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0048fc6c
leave
ret 4
Function at 0x40354f
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
jmp 0x495108
push 0x14
push 0x4d1970
call fcn.00496ef0
call fcn.00497127
movzx esi, ax
push 2
call fcn.0049fec2
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x494fbf
xor ebx, ebx
jmp 0x494ff2
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x494fbb
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x494fbb
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x494ff2
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004956d1
test eax, eax
jne 0x495006
push 0x1c
call fcn.004950e1
pop ecx
call fcn.00495edf
test eax, eax
jne 0x495017
push 0x10
call fcn.004950e1
pop ecx
call fcn.0049ffab
and dword [ebp - 4], 0
call fcn.0049ab8e
test eax, eax
jns 0x495031
push 0x1b
call fcn.004950e1
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x5016dc], eax
call fcn.0049ffeb
mov dword [0x50099c], eax
call fcn.0049fba3
test eax, eax
jns 0x495057
push 8
call fcn.00495763
pop ecx
call fcn.0049fde0
test eax, eax
jns 0x495068
push 9
call fcn.00495763
pop ecx
push 1
call fcn.0049579d
pop ecx
test eax, eax
je 0x49507b
push eax
call fcn.00495763
pop ecx
call fcn.004a0048
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x49509d
push esi
call fcn.00495a06
call fcn.0049578e
jmp 0x4950d2
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00496f35
ret
call fcn.0049ff0f
jmp 0x494f91
Function at 0x4046a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7960
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4dc6e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 2
mov dword [ebp - 0x1c], 0
call fcn.0048fb2f
mov esi, eax
xor eax, eax
mov word [esi], ax
push 2
mov dword [ebp - 4], eax
call fcn.0048fb2f
mov edi, eax
xor eax, eax
mov dword [ebp - 0x14], edi
mov word [edi], ax
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0048faa4
mov ebx, eax
push esi
mov dword [ebp - 0x18], ebx
call fcn.0048faf7
add esp, 0x10
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0x100
jne 0x404799
push ebx
call fcn.0048faa4
mov esi, eax
push esi
call fcn.00491d2a
push 0x4affd0
push esi
call fcn.004913b3
add esp, 0x10
test eax, eax
je 0x404790
push 0x4affd0
push esi
call fcn.004913b3
movdqu xmm0, xmmword [0x4afe64]
mov ecx, eax
add esp, 8
sub ecx, esi
sar ecx, 1
movdqu xmmword [ebx + ecx*2], xmm0
movq xmm0, qword [0x4afe74]
movq qword [ebx + ecx*2 + 0x10], xmm0
mov eax, dword [0x4afe7c]
mov dword [ebx + ecx*2 + 0x18], eax
add ecx, 0xe
lea ecx, [ebx + ecx*2]
mov edx, ecx
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x404780
push esi
call fcn.0048faf7
add esp, 4
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00410090
push dword [eax]
call fcn.0048faa4
mov esi, eax
push edi
mov dword [ebp - 0x14], esi
call fcn.0048faf7
push dword [ebp - 0x10]
call fcn.0048faf7
push esi
call fcn.0048faa4
mov edi, eax
push ebx
mov dword [ebp - 0x18], edi
call fcn.0048faf7
add esp, 0x1c
cmp word [esi], 0x22
jne 0x40482a
lea eax, [esi + 2]
push 0x22
push eax
call fcn.0049110f
add esp, 8
mov dword [ebp - 0x18], eax
mov ebx, edi
test eax, eax
je 0x404814
xor ecx, ecx
mov word [eax], cx
lea ecx, [esi + 2]
push ecx
call fcn.0048faa4
push ebx
mov edi, eax
call fcn.0048faf7
mov eax, dword [ebp - 0x18]
add esp, 8
mov ecx, 0x22
jmp 0x404894
lea ecx, [esi + 2]
push ecx
call fcn.0048faa4
push ebx
mov edi, eax
call fcn.0048faf7
add esp, 8
jmp 0x404897
push esi
call fcn.00410170
add esp, 4
cmp eax, 0xffffffff
jne 0x404897
xor eax, eax
push 0x20
push esi
mov dword [ebp - 0x10], eax
call fcn.0049130d
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x404897
mov eax, dword [ebp - 0x10]
mov ecx, 0x20
test eax, eax
je 0x40485d
mov word [eax], cx
xor eax, eax
push esi
mov word [ebx], ax
call fcn.00410170
add esp, 4
cmp eax, 0xffffffff
je 0x404874
test al, 0x10
je 0x4048c5
push 0x20
push esi
mov dword [ebp - 0x10], ebx
call fcn.0049130d
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40484e
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x404897
mov ecx, 0x20
mov word [eax], cx
push edi
call fcn.0048faa4
mov ebx, dword [ebp + 8]
push esi
mov dword [ebx], eax
call fcn.0048faf7
push edi
call fcn.0048faf7
mov eax, ebx
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
jmp 0x404898
Function at 0x405440
Capabilities:
Get common file path
Query environment variable
Set environment variable

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push edi
push 0x4afe18
push 0x4afd54
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x104
push 0x4df110
test eax, eax
je 0x40546f
call eax
jmp 0x405475
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor ecx, ecx
jmp 0x405480
movzx eax, word [ecx + 0x4df110]
lea ecx, [ecx + 2]
mov word [ecx + 0x4de02e], ax
test ax, ax
jne 0x405480
mov ecx, 0x4de030
add ecx, 0xfffffffe
mov edi, edi
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4054a0
mov eax, dword [0x4afe34]
mov dword [ecx], eax
mov eax, dword [0x4afe38]
mov dword [ecx + 4], eax
mov eax, dword [0x4afe3c]
mov dword [ecx + 8], eax
mov eax, dword [0x4afe40]
mov dword [ecx + 0xc], eax
mov eax, dword [0x4afe44]
push 0x4afe48
push 0x4afd54
mov dword [ecx + 0x10], eax
call esi
push eax
call edi
test eax, eax
je 0x405516
push 0x104
push 0x4de238
call eax
test eax, eax
jne 0x405516
xor ecx, ecx
jmp 0x405500
movzx eax, word [ecx + 0x4de030]
lea ecx, [ecx + 2]
mov word [ecx + 0x4de236], ax
test ax, ax
jne 0x405500
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x104
push 0x4df318
push 0x4afe64
call esi
mov ecx, 0x4df318
mov eax, 0x4afe64
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40555d
test dx, dx
je 0x405559
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40555d
add eax, 4
add ecx, 4
test dx, dx
jne 0x405537
xor eax, eax
jmp 0x405562
sbb eax, eax
or eax, 1
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x405589
push 0x104
push 0x4df318
push 0x4afe84
call esi
push 0x4df318
push 0x4afea4
call edi
push 0x104
push 0x4df520
push 0x4afec0
call esi
push 0x4afee8
push 0x4df318
call fcn.004913b3
add esp, 8
test eax, eax
je 0x4055d3
push 0x4afee8
push 0x4df318
call fcn.004913b3
add esp, 8
xor ecx, ecx
mov word [eax], cx
push 0x4df318
push 0x4afef8
call edi
pop edi
pop esi
ret
Function at 0x4066b0
Capabilities:
Acquire debug privileges
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4dc6e0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x4afb7c
call fcn.0043e9d0
add esp, 4
test eax, eax
je 0x40682f
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
test edi, edi
je 0x40682e
push ebx
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40682a
push esi
lea esi, [ebp - 0x20c]
mov eax, esi
push 0x5c
push eax
call fcn.0049130d
add esp, 8
test eax, eax
je 0x40673e
mov eax, esi
push 0x5c
push eax
call fcn.0049130d
mov esi, eax
add esp, 8
add esi, 2
je 0x406750
push 0x4afba0
push esi
call fcn.00491646
add esp, 8
test eax, eax
je 0x406775
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406713
pop esi
push edi
call ebx
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x228]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x406829
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 0
push eax
push 0xa
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x406826
lea eax, [ebp - 0x238]
push eax
push 2
push 2
push 0
push 0xf01ff
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x40681e
push 0x4afbbc
call fcn.0043e9d0
add esp, 4
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x406816
push 0x4afbec
call fcn.0043e9d0
push 0x4afb7c
call fcn.0043e9d0
push 0x4afc14
call fcn.0043e9d0
add esp, 0xc
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push dword [ebp - 0x238]
call ebx
push dword [ebp - 0x234]
call ebx
push esi
call ebx
pop esi
push edi
call ebx
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
Function at 0x407520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push ebx
push 0
push 0
push eax
push 0x400
push dword [ebp + 8]
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ebx, eax
test ebx, ebx
je 0x40760c
cmp byte [0x4de451], 0
push esi
push edi
je 0x407597
call fcn.00491e75
lea edi, [eax + 0x20]
push edi
push 0x3c
call fcn.004922b5
add esp, 8
mov esi, 0x4aff90
mov ecx, 0x65
push edi
push ecx
call fcn.004922b5
movzx ecx, word [esi + 2]
lea esi, [esi + 2]
add esp, 8
test cx, cx
jne 0x407576
push edi
push 0x3e
call fcn.004922b5
add esp, 8
push 0
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 4]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [0x4de451], 0
je 0x407601
call fcn.00491e75
lea edi, [eax + 0x20]
push edi
push 0x3c
call fcn.004922b5
push edi
push 0x2f
call fcn.004922b5
add esp, 0x10
mov esi, 0x4aff90
mov eax, 0x65
mov edi, edi
push edi
push eax
call fcn.004922b5
movzx eax, word [esi + 2]
lea esi, [esi + 2]
add esp, 8
test ax, ax
jne 0x4075e0
push edi
push 0x3e
call fcn.004922b5
add esp, 8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408a70
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab728
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4dc6e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 2
call fcn.0048fb2f
mov ebx, eax
xor eax, eax
mov word [ebx], ax
mov ecx, dword [ebp + 0x14]
test ecx, ecx
mov dword [ebp - 4], eax
mov eax, 0x4af9b8
cmovne eax, ecx
push eax
call fcn.0048faa4
mov esi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esi
push 0x4b05e0
push eax
call fcn.00417070
push 0x4b05cc
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00418660
push dword [eax]
call fcn.0048faa4
mov edi, eax
push ebx
mov dword [ebp - 0x10], edi
call fcn.0048faf7
push dword [ebp - 0x14]
call fcn.0048faf7
push dword [ebp - 0x18]
call fcn.0048faf7
push esi
call fcn.0048faf7
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00408130
add esp, 0x40
cmp dword [ebp + 8], 0
je 0x408bd7
mov eax, dword [0x4de02c]
test eax, eax
je 0x408b44
push 1
call eax
push 0x200
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp + 0x14]
mov ecx, 0x4af9b8
test eax, eax
cmovne ecx, eax
push ecx
call fcn.0048faa4
mov esi, eax
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp + 0x14], esi
push 0x4b0610
push eax
call fcn.00417070
push 0x4b05cc
push eax
lea eax, [ebp + 8]
push eax
call fcn.00418660
mov ebx, edi
push dword [eax]
call fcn.0048faa4
mov edi, eax
push ebx
mov dword [ebp - 0x10], edi
call fcn.0048faf7
push dword [ebp + 8]
call fcn.0048faf7
push dword [ebp - 0x18]
call fcn.0048faf7
push esi
call fcn.0048faf7
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00408130
mov eax, dword [0x4de02c]
add esp, 0x3c
test eax, eax
je 0x408bd7
push 0
call eax
push 0x100
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
call fcn.0048faf7
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e5d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8870
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4dc6e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 2
call fcn.0048fb2f
mov ebx, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], ebx
mov word [ebx], ax
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
push dword [0x4de020]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push esi
push dword [ebp + 0xc]
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x40e7cd
push 2
mov dword [ebp - 0x20], eax
call fcn.0048fb2f
mov esi, eax
xor eax, eax
mov dword [ebp - 0x14], esi
mov word [esi], ax
push 2
call fcn.0048fb2f
mov edi, eax
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x24], edi
mov word [edi], ax
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov word [eax], cx
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
push ecx
push dword [ebp - 0x1c]
call fcn.00410500
add esp, 0x18
test eax, eax
jne 0x40e7ad
mov ebx, edi
push 0x4afa48
push dword [ebp + 0x10]
lea eax, [ebp - 0x28]
push eax
call fcn.00418660
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041ca30
push dword [eax]
call fcn.0048faa4
mov edi, eax
push esi
mov dword [ebp - 0x14], edi
call fcn.0048faf7
push dword [ebp - 0x18]
call fcn.0048faf7
push dword [ebp - 0x28]
call fcn.0048faf7
push 0
push 1
push 0xffffffffffffffff
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004095b0
add esp, 0x48
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x14]
push 0x4af9f8
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00418660
push dword [eax]
call fcn.0048faa4
mov esi, eax
push ebx
mov dword [ebp - 0x24], esi
call fcn.0048faf7
push dword [ebp - 0x2c]
call fcn.0048faf7
push 0
push 0
push dword [ebp - 0x30]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004095b0
push dword [ebp - 0x10]
call fcn.0048faf7
push esi
call fcn.0048faf7
add esp, 0x40
push edi
call fcn.0048faf7
mov edi, dword [ebp - 0x20]
inc edi
push 2
mov dword [ebp - 0x20], edi
call fcn.0048fb2f
mov esi, eax
xor eax, eax
mov dword [ebp - 0x14], esi
mov word [esi], ax
push 2
call fcn.0048fb2f
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x24], ebx
mov word [ebx], ax
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov word [eax], cx
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
push edi
push dword [ebp - 0x1c]
call fcn.00410500
add esp, 0x1c
test eax, eax
je 0x40e695
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.0048faf7
push edi
call fcn.0048faf7
push esi
call fcn.0048faf7
add esp, 0xc
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.0048faf7
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret