joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ea20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3e68
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x521e28]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp - 0x64]
cmp dword [eax + 0x3c], 0
je 0x45ea60
mov ecx, dword [ebp - 0x64]
movzx edx, byte [ecx + 0x42]
test edx, edx
jne 0x45ea6c
mov al, 1
jmp 0x45ec11
mov dword [ebp - 0x10], 8
call fcn.0045c990
push eax
mov eax, dword [ebp - 0x64]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x64]
mov eax, dword [edx + 4]
call eax
mov word [ebp - 0x3a], ax
call fcn.0045c990
mov word [ebp - 0x3c], ax
lea ecx, [ebp - 0x3a]
push ecx
lea edx, [ebp - 0x3c]
push edx
call fcn.0045ca60
add esp, 8
movzx eax, al
test eax, eax
je 0x45eab1
xor al, al
jmp 0x45ec11
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0045deb0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x34]
call fcn.0045df70
mov ecx, eax
call fcn.0045ed80
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.0041e670
add esi, eax
push esi
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x34]
call fcn.0045df70
mov ecx, eax
call fcn.0045ed80
push eax
mov ecx, dword [ebp - 0x64]
add ecx, 0x44
push ecx
mov edx, dword [ebp - 0x64]
mov ecx, dword [edx + 0x3c]
call fcn.0045ec30
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x45eb2c
cmp dword [ebp - 0x68], 1
je 0x45eb33
cmp dword [ebp - 0x68], 3
je 0x45ebcd
jmp 0x45ebe5
mov eax, dword [ebp - 0x64]
mov byte [eax + 0x42], 0
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0045df70
mov ecx, eax
call fcn.0045ed80
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x45eb96
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x34]
call fcn.0045df70
mov ecx, eax
call fcn.0045ed80
push eax
call fcn.004b1a07
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x45eb96
mov byte [ebp - 0x5d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0041e570
mov al, byte [ebp - 0x5d]
jmp 0x45ec11
mov ecx, dword [ebp - 0x64]
movzx edx, byte [ecx + 0x42]
test edx, edx
jne 0x45ebb9
mov byte [ebp - 0x5e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0041e570
mov al, byte [ebp - 0x5e]
jmp 0x45ec11
cmp dword [ebp - 0x38], 0
jne 0x45ebcb
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0045def0
jmp 0x45ebfd
mov byte [ebp - 0x5f], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0041e570
mov al, byte [ebp - 0x5f]
jmp 0x45ec11
mov byte [ebp - 0x60], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0041e570
mov al, byte [ebp - 0x60]
jmp 0x45ec11
jmp 0x45eac4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004ad2aa
mov esp, ebp
pop ebp
ret
Function at 0x460b30
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4148
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x521e28]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28c], ecx
movzx eax, byte [ebp + 0x10]
cmp eax, 1
jne 0x460b6f
jmp 0x460cab
mov ecx, dword [ebp + 8]
call fcn.00460f50
movzx ecx, al
cmp ecx, 1
jne 0x460b86
xor al, al
jmp 0x460cad
mov ecx, dword [ebp + 8]
call fcn.0041d8f0
push eax
lea ecx, [ebp - 0x30]
call fcn.0041d890
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00460f30
sub eax, 1
push eax
lea ecx, [ebp - 0x30]
call fcn.00460f00
movzx edx, word [eax]
cmp edx, 0x5c
je 0x460bc7
push 0x50328c
lea ecx, [ebp - 0x30]
call fcn.00460ed0
push 0x503290
lea ecx, [ebp - 0x30]
call fcn.00460ed0
mov dword [ebp - 0x284], 0
push 0x24c
push 0
lea eax, [ebp - 0x280]
push eax
call fcn.004ad2c0
add esp, 0xc
lea ecx, [ebp - 0x284]
push ecx
lea ecx, [ebp - 0x30]
call fcn.0041d8f0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x460c31
mov byte [ebp - 0x285], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0041d8d0
mov al, byte [ebp - 0x285]
jmp 0x460cad
mov edx, dword [ebp - 0x284]
and edx, 0x10
jne 0x460c6b
mov eax, dword [ebp - 0x268]
imul eax, eax, 0
add eax, dword [ebp - 0x264]
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x290], 0
fild qword [ebp - 0x294]
mov ecx, dword [ebp + 0xc]
fadd qword [ecx]
mov edx, dword [ebp + 0xc]
fstp qword [edx]
lea eax, [ebp - 0x284]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x460c82
jmp 0x460c8b
mov edx, 1
test edx, edx
jne 0x460c31
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0041d8d0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ad2aa
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4613c0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x526978]
push esi
push edi
xor edi, edi
test eax, eax
je 0x46141d
mov eax, dword [0x5296dc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x46141d
push 0x18950
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x461415
push esi
call fcn.0046cfa0
push esi
call fcn.00462fd0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, 1
pop esi
ret
mov eax, edi
pop edi
pop esi
ret
Function at 0x461560
Capabilities:
Get disk information
Get thread local storage value

Disassembly:
push ecx
mov ecx, dword [0x5296dc]
mov eax, dword [0x51cd9c]
push ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je case.0x4615be.3
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x461589
mov eax, 1
pop ecx
ret
mov eax, dword [esp + 8]
test eax, eax
jl case.0x4615be.3
cmp eax, 0x1a
jg case.0x4615be.3
test eax, eax
jne 0x46159f
call fcn.00461550
mov cl, byte [esp]
dec al
lea edx, [esp]
add cl, al
push edx
mov byte [esp + 4], cl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
add eax, 0xfffffffe
cmp eax, 3
ja case.0x4615be.3
jmp dword [eax*4 + 0x4615d0]
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret

Function at 0x461670
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x5296dc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4616d2
mov ecx, dword [eax + 0x3d10]
push ebx
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
call fcn.00469080
mov bl, al
call fcn.00469080
mov byte [esp + 6], al
call fcn.00469080
mov byte [esp + 7], al
call fcn.00469080
cmp bl, 0x50
pop ebx
jne 0x4616d2
cmp byte [esp + 2], 0x4b
jne 0x4616d2
cmp byte [esp + 3], 1
jne 0x4616d2
cmp al, 2
jne 0x4616d2
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x462000
Capabilities:
Get thread local storage value
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
cmp ebp, 0x7ff
jle 0x462014
mov ebp, 0x7ff
mov eax, dword [0x5296dc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x462098
lea esi, [ebx + 0x16000]
push edi
mov ecx, 0x200
xor eax, eax
mov edi, esi
push eax
rep stosd dword es:[edi], eax
mov edx, dword [ebx + 0x3d10]
lea ecx, [esp + 0x18]
push ecx
push ebp
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
pop edi
je 0x462098
cmp dword [esp + 0x10], ebp
jne 0x462098
test byte [ebx + 0x4ea6], 8
je 0x462089
push 0x2e
push esi
call fcn.004b6bd0
add esp, 8
test eax, eax
je 0x462082
push 0x2e
push esi
mov byte [eax], 0x20
call fcn.004b6bd0
add esp, 8
test eax, eax
jne 0x462070
mov byte [ebx + 0x1600b], 0
mov eax, dword [ebx + 0x38]
test eax, eax
jne 0x462098
push esi
push esi
call dword [sym.imp.USER32.dll_OemToCharA]
pop esi
pop ebp
pop ebx
ret

Function at 0x4620a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
push edi
lea edi, [ebp + 0x45ea]
mov edx, 1
mov ecx, 8
xor eax, eax
mov dword [esp + 0x14], edi
cmp esi, 4
mov dword [esp + 0x10], edx
rep stosd dword es:[edi], eax
jle 0x462190
push esi
call fcn.004adbfa
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x462186
mov ecx, dword [ebp + 0x3d10]
lea eax, [esp + 0x1c]
push 0
push eax
push esi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x462169
cmp dword [esp + 0x1c], esi
jne 0x462169
add esi, 0xfffffffc
xor edx, edx
mov dword [esp + 0x20], esi
xor ebp, ebp
test ebp, ebp
jne 0x462171
cmp dx, word [esp + 0x20]
ja 0x462171
mov eax, edx
and eax, 0xffff
add eax, ebx
cmp word [eax], 1
jne 0x46215d
mov ax, word [eax + 2]
mov ebp, 1
add ax, 4
cmp ax, 0x20
ja 0x462169
mov edi, dword [esp + 0x14]
mov ecx, eax
and ecx, 0xffff
mov esi, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x462112
mov cx, word [eax + 2]
add cx, 4
add edx, ecx
jmp 0x462112
mov dword [esp + 0x10], 0
push ebx
call fcn.004ad74d
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
add esp, 8
ret

Function at 0x4621e0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5296dc]
push ebx
push esi
push eax
mov ebx, 5
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4621ff
pop esi
or eax, 0xffffffff
pop ebx
ret
push edi
call fcn.004621a0
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x3d10], 0xffffffff
test ebx, ebx
jle 0x462242
push 0
push 0x8000080
push 3
push 0
push 3
lea ecx, [esi + 0x14fac]
push SysReAllocString
push ecx
call edi
cmp eax, 0xffffffff
mov dword [esi + 0x3d10], eax
jne 0x462242
dec ebx
jmp 0x462215
mov eax, dword [esi + 0x3d10]
pop edi
pop esi
pop ebx
ret
Function at 0x462250
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5296dc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x46226a
mov eax, 9
pop esi
ret
mov eax, dword [esi + 0x54]
mov dword [esi + 0x16810], 0
test eax, eax
mov dword [esi + 0x16814], 0
jne 0x4622f2
push ebx
push edi
push 0
push 0x80
push 3
push 0
lea ebx, [esi + 0x14fac]
push 3
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4622d9
push edi
call fcn.0046e790
add esp, 4
mov dword [esi + 0x16810], eax
mov dword [esi + 0x16814], edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi + 0x15fac]
push ecx
push ebx
call fcn.0046b750
add esp, 8
mov edx, dword [esi + 0x16810]
mov eax, dword [esi + 0x16814]
or edx, eax
pop edi
pop ebx
jne 0x4622f2
mov eax, 9
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x462300
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x5296dc]
push ebx
push eax
mov dword [esp + 8], 1
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x46231f
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
lea edi, [ebx + 0x16000]
push ebp
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x4623a2
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.004623b0
lea eax, [esi + eax + 0x2e]
xor esi, esi
mov si, word [ebx + 0x4e9c]
add esp, 8
cmp esi, 0x104
jge 0x462393
lea ecx, [esi + 1]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov byte [esi + edi], 0
mov eax, dword [ebx + 0x38]
test eax, eax
jne 0x46239b
push edi
push edi
call dword [sym.imp.USER32.dll_OemToCharA]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [esp + 0x10], 0
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4625d0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5296dc]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x4625f7
mov ecx, dword [esp + 0x10]
mov eax, 4
mov dword [ecx + 0x4c], edi
pop edi
pop esi
pop ebx
ret
lea edx, [esi + 0x350]
mov dword [esi + 0x3d20], edi
push edx
call fcn.00468880
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x462639
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x28]
push eax
push 2
push 0x66
call fcn.0046cff0
add esp, 8
push eax
push ebx
call fcn.00461490
add esp, 0xc
mov dword [esi + 0x4c], edi
mov eax, ebx
pop edi
pop esi
pop ebx
ret
push edi
call fcn.00468a30
add esp, 4
mov dword [esi + 0x3d08], edi
cmp eax, edi
mov dword [esi + 0x3d1c], eax
mov dword [esi + 0x3d0c], edi
je 0x4626b7
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x28]
mov dword [eax + 0x4c], edi
push ecx
push 2
push 0x67
call fcn.0046cff0
mov edx, dword [esi + 0x3d1c]
add esp, 8
push eax
push edx
call fcn.00461490
mov eax, dword [esi + 0x14f90]
add esp, 0xc
mov dword [esi + 0x3d08], edi
cmp eax, edi
mov dword [esi + 0x3d0c], edi
je 0x4626a4
push eax
call fcn.004ad74d
add esp, 4
mov dword [esi + 0x14f90], edi
mov eax, dword [esi + 0x15ff4]
cmp eax, edi
je 0x462755
jmp 0x462746
cmp dword [esi + 0x44], edi
je 0x46270a
mov ebx, dword [esp + 0x10]
mov dword [ebx + 0x4c], edi
call fcn.00462ce0
cmp eax, edi
mov dword [esi + 0x3d1c], eax
jne 0x4626f9
push ebp
lea ebp, [esi + 0x16000]
push ebp
call fcn.00469bb0
add esp, 4
test eax, eax
jne 0x4626e9
inc dword [ebx + 0x4c]
call fcn.00462ce0
cmp eax, edi
mov dword [esi + 0x3d1c], eax
je 0x4626d9
pop ebp
cmp dword [esi + 0x3d1c], 2
jne 0x462717
mov dword [esi + 0x3d1c], edi
jmp 0x462717
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x4e4a]
mov dword [ecx + 0x4c], eax
mov eax, dword [esi + 0x14f90]
mov dword [esi + 0x3d08], edi
cmp eax, edi
mov dword [esi + 0x3d0c], edi
je 0x46273c
push eax
call fcn.004ad74d
add esp, 4
mov dword [esi + 0x14f90], edi
mov eax, dword [esi + 0x15ff4]
cmp eax, edi
je 0x462755
push eax
call fcn.004ad74d
add esp, 4
mov dword [esi + 0x15ff4], edi
mov eax, dword [esi + 0x3d1c]
pop edi
pop esi
pop ebx
ret
Function at 0x462760
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5296dc]
sub esp, 0x868
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x462792
mov ecx, dword [esp + 0x878]
pop edi
pop esi
pop ebx
mov dword [ecx + 0x4c], eax
mov eax, 4
add esp, 0x868
ret
mov esi, dword [esp + 0x878]
add eax, 0x350
test eax, eax
mov edi, dword [esi + 0x10]
je 0x462896
test edi, edi
je 0x462896
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call ebx
test eax, eax
je 0x46286c
push edi
call ebx
test eax, eax
je 0x46286c
push esi
call fcn.004625d0
add esp, 4
test eax, eax
jne 0x4628b6
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x4627f1
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x868
ret
xor ebx, ebx
lea edx, [esp + 0xc]
push esi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x8e], edx
call fcn.00463910
mov edi, eax
add esp, 4
test edi, edi
jne 0x46281f
push esi
inc ebx
call fcn.00463910
mov edi, eax
add esp, 4
test edi, edi
je 0x46280f
cmp edi, 0x30
je 0x462853
cmp edi, 2
push esi
jne 0x46284b
call fcn.004625d0
add esp, 4
mov edi, eax
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x8e], 0
pop edi
pop esi
pop ebx
add esp, 0x868
ret
call fcn.004625d0
add esp, 4
mov eax, edi
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x8e], 0
pop edi
pop esi
pop ebx
add esp, 0x868
ret
mov eax, dword [esi + 0x28]
push eax
push 2
push 0x69
call fcn.0046cff0
add esp, 8
push eax
push 0xb
call fcn.00461490
add esp, 0xc
mov eax, 0x2f
pop edi
pop esi
pop ebx
add esp, 0x868
ret
mov ecx, dword [esi + 0x28]
push ecx
push 2
push 0x68
call fcn.0046cff0
add esp, 8
push eax
push 0xb
call fcn.00461490
add esp, 0xc
mov eax, 0xb
pop edi
pop esi
pop ebx
add esp, 0x868
ret
Function at 0x464280
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5296dc]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x4642a0
pop edi
pop esi
mov eax, 4
pop ebx
ret
lea eax, [esi + 0x350]
cmp eax, ebx
jne 0x4642d5
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x28]
mov dword [eax + 0x4c], ebx
push ecx
push 2
push 0x71
call fcn.0046cff0
add esp, 8
push eax
push 0x2f
call fcn.00461490
add esp, 0xc
mov eax, 0x2f
pop edi
pop esi
pop ebx
ret
push eax
call fcn.00468880
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x46430b
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 0x28]
push edx
push 2
push 0x6c
call fcn.0046cff0
add esp, 8
push eax
push edi
call fcn.00461490
add esp, 0xc
mov eax, edi
mov dword [esi + 0x4c], ebx
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x14f90]
cmp eax, ebx
je 0x464324
push eax
call fcn.004ad74d
add esp, 4
mov dword [esi + 0x14f90], ebx
mov eax, dword [esi + 0x15ff4]
cmp eax, ebx
je 0x46433d
push eax
call fcn.004ad74d
add esp, 4
mov dword [esi + 0x15ff4], ebx
push 1
call fcn.00468a30
add esp, 4
cmp eax, ebx
mov dword [esi + 0x3d1c], eax
je 0x464382
mov eax, dword [esp + 0x10]
mov dword [eax + 0x4c], ebx
mov eax, dword [eax + 0x28]
push eax
push 2
push 0x72
call fcn.0046cff0
mov ecx, dword [esi + 0x3d1c]
add esp, 8
push eax
push ecx
call fcn.00461490
mov eax, dword [esi + 0x3d1c]
add esp, 0xc
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x10]
xor edx, edx
mov dx, word [esi + 0x4e28]
pop edi
mov dword [eax + 0x4c], edx
pop esi
xor eax, eax
pop ebx
ret
Function at 0x464bf0
Capabilities:
Encode data using xor
Get thread local storage value

Disassembly:
mov eax, dword [0x5296dc]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x464c0c
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
lea ecx, [ebx + 0x4ef0]
push ebp
push ecx
call fcn.0046ec10
mov ebp, dword [esp + 0x18]
add esp, 4
xor edi, edi
call fcn.0046eb60
xor edx, edx
mov esi, eax
mov dl, byte [edi + ebp]
xor esi, edx
push esi
call fcn.0046eb90
add esp, 4
inc edi
cmp edi, 0xc
jl 0x464c22
mov al, byte [ebx + 0x45d2]
pop ebp
test al, 8
je 0x464c58
xor eax, eax
mov ax, word [ebx + 0x45d6]
shr eax, 8
jmp 0x464c6d
mov eax, dword [ebx + 0x4e90]
xor ecx, ecx
shr eax, 0x10
mov cl, ah
and ecx, 0xff
mov eax, ecx
and esi, 0xffff
cmp esi, eax
je 0x464c7e
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
mov edx, dword [ebx + 0x4554]
mov eax, dword [ebx + 0x14f98]
xor ecx, ecx
cmp ecx, edx
jl 0x464ca0
jg 0x464c9a
cmp eax, dword [ebx + 0x4550]
jbe 0x464ca0
mov eax, dword [ebx + 0x4550]
mov esi, dword [ebx + 0x14f94]
mov edx, eax
dec eax
test edx, edx
je 0x464ccc
lea edi, [eax + 1]
call fcn.0046eb60
mov ebx, eax
xor eax, eax
mov al, byte [esi]
xor ebx, eax
push ebx
call fcn.0046eb90
add esp, 4
mov byte [esi], bl
inc esi
dec edi
jne 0x464cb0
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x464ce0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5296dc]
sub esp, 0x10
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x464d00
mov eax, 4
pop edi
add esp, 0x10
ret
push esi
mov dword [edi + 0x4eec], 0
xor esi, esi
lea ecx, [esp + 0xa]
push edi
push ecx
call fcn.0046d640
mov dl, byte [esp + 0x12]
add esp, 8
mov byte [esp + esi + 0xc], dl
inc esi
cmp esi, 0xc
jl 0x464d0d
mov al, byte [edi + 0x4ef0]
mov dword [edi + 0x4eec], 1
test al, al
pop esi
je 0x464d54
lea eax, [esp + 8]
push eax
call fcn.00464bf0
add esp, 4
test eax, eax
jne 0x464d54
pop edi
add esp, 0x10
ret
mov eax, 0x2c
pop edi
add esp, 0x10
ret
Function at 0x465000
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5296dc]
push ebx
push ebp
push esi
push edi
push eax
mov ebp, 5
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x465025
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
ret
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x8000080
push 3
push 0
push 3
push SysReAllocString
push edi
call ebx
cmp eax, 0xffffffff
mov dword [esi + 0x14fa8], eax
jne 0x46505e
dec ebp
test ebp, ebp
jg 0x46502f
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x467330
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x824
mov eax, dword [0x5296dc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
mov dword [esp + 4], eax
je 0x467487
mov ecx, dword [esp + 0x834]
lea edx, [esp + 0x28]
push 0x800
push edx
mov esi, dword [ecx]
push esi
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x467487
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
lea ecx, [esp + 0x28]
push str.IMI_VBSTATCONTROL
push ecx
call fcn.0046d0f0
test eax, eax
je 0x467487
push ebx
push ebp
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x422
push esi
call edi
test al, 1
mov dword [esp + 0x14], eax
je 0x467428
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 0
push 0
lea edx, [esp + 0x24]
push 0
push edx
call ebp
test eax, eax
je 0x467428
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
cmp dword [esp + 0x1c], 0x12
jne 0x4673e2
mov eax, dword [esp + 0x10]
mov dword [eax], 1
jmp 0x467403
test byte [esp + 0x14], 2
je 0x467403
push 0
push 0
push 0x424
push esi
call edi
test eax, eax
je 0x467403
mov ecx, dword [esp + 0x10]
mov dword [ecx], 1
lea edx, [esp + 0x18]
push edx
call ebx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea ecx, [esp + 0x24]
push 0
push ecx
call ebp
test eax, eax
jne 0x4673cf
lea edx, [esp + 0x34]
push edx
push 0
push 0x41d
push esi
call edi
lea eax, [esp + 0x34]
mov ebx, dword [esp + 0x838]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x467465
push ebx
push 0
push 0x41c
push esi
call edi
push 0
push 0
push 0x41e
push esi
call edi
mov ecx, dword [esp + 0x83c]
push 0
and ecx, 0xffff
push ecx
push 0x41e
push esi
call edi
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x824
ret 0xc