joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x44d780
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4628d0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004108c4
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x407084
push 0x80004005
call fcn.004037e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], ebx
call fcn.004125e8
add esi, 0xbc
push esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.00403dd0
push 8
push str.data.zip
lea ecx, [esp + 0x18]
call fcn.00405830
push str.ZIPDATA
push 0x82
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x407127
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], bl
call fcn.004126f0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407112
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x4070dd
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x4070dd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebx
jne 0x407179
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], bl
call fcn.004126f0
lea ecx, [esp + 0x10]
call fcn.00403a60
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret
mov ecx, dword [esp + 0x10]
push ebx
push 0x1001
push ecx
lea ecx, [esp + 0x20]
call fcn.00412a76
lea ecx, [esp + 0x14]
test eax, eax
jne 0x4071bc
mov byte [esp + 0x2c], bl
call fcn.004126f0
lea ecx, [esp + 0x10]
call fcn.00403a60
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret
push edi
push esi
call fcn.0041231e
lea ecx, [esp + 0x14]
call fcn.00412582
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], bl
call fcn.004126f0
lea ecx, [esp + 0x10]
call fcn.00403a60
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret
Function at 0x408c80
Capabilities:
Create service
Delete service
Persist via windows service
Query service status
Start service
Stop service

Disassembly:
push 0xffffffffffffffff
push 0x44d988
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4628d0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x18], ebp
call fcn.004108c4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408cc7
push 0x80004005
call fcn.004037e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [ebp + 0xc4]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], 0
call fcn.00403dd0
push 0x14
push 0x451744
lea ecx, [esp + 0x1c]
call fcn.00405830
push str.Starting_Hardware_Server
lea ecx, [ebp + 0x244]
call fcn.0041a281
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x408dee
push 0xf01ff
push 0x451058
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x408da3
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
cmp dword [esp + 0x20], 1
je 0x408d91
lea eax, [esp + 0x1c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
lea ecx, [esp + 0x1c]
push ecx
push esi
call ebx
cmp dword [esp + 0x20], 1
je 0x408d91
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x34]
push edx
call ebp
lea eax, [esp + 0x1c]
push eax
push esi
call ebx
cmp dword [esp + 0x20], 1
jne 0x408d77
mov ebp, dword [esp + 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call ebx
jmp 0x408da9
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x14]
push 0
push 0
push str.zntport
push 0
push 0
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push 0x451058
push 0x451058
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
je 0x408deb
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
call ebx
push edi
call ebx
mov ecx, ebp
call fcn.00404d80
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x40], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408e1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x409890
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4628d0]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebp
lea eax, [esp + 8]
push eax
push 0x104
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x409a8c
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4098c6
push ebx
push esi
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x14]
lea esi, [ebp + 0xbc]
push ecx
mov ecx, esi
call fcn.00403830
push 1
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.004055a0
push 0x4510b4
push eax
call fcn.004050b0
mov bl, al
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409928
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x409938
push 0x4510b4
mov ecx, esi
call fcn.00406d80
push 9
push str.ISet3505_
mov ecx, esi
call fcn.00405830
push 0x104
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x409a72
push edi
lea edx, [esp + 0x14]
lea edi, [ebp + 0xc8]
push edx
mov ecx, edi
call fcn.00403940
push 1
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.004055a0
push 0x4510b4
push eax
call fcn.004050b0
mov bl, al
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4099af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4099bf
push 0x4510b4
mov ecx, edi
call fcn.00406d80
push 0x104
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x409a6e
lea edx, [esp + 0x14]
lea edi, [ebp + 0xc4]
push edx
mov ecx, edi
call fcn.00403940
push 1
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.004055a0
push 0x4510b4
push eax
call fcn.004050b0
mov bl, al
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409a27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x409a37
push 0x4510b4
mov ecx, edi
call fcn.00406d80
mov ecx, dword [esi]
push 0
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edx, dword [esi]
push 0
push edx
mov ecx, ebp
call fcn.00407f20
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0042babd
add esp, 0x210
ret
xor eax, eax
jmp 0x409a55
pop esi
pop ebx
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0042babd
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0042babd
add esp, 0x210
ret
Function at 0x4121cf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4121f3
cmp dword [edi + 0x54], 0
jne 0x4121f3
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041a0c2
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00412190
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41345f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4134a7
call fcn.0041a0c2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4134a7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4134ea
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4134d3
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4134d3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4134e7
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x419388
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4193cf
call fcn.0041a0c2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4193cf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4193eb
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00418f00
mov esi, eax
test edi, edi
je 0x4193e9
test ebx, ebx
je 0x4193e9
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41a8e2
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x44e5d9
call fcn.0042ca36
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41a907
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41a94d
lea ecx, [ebp - 0x10]
call fcn.00403c20
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e1b9
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00403a40
mov eax, esi
call fcn.0042cb0e
ret 8

Function at 0x42babd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4628d0]
jne 0x42bac7
repz ret
jmp fcn.0043577c

Function at 0x43a525
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00431672
and dword [ebp - 4], 0
cmp dword [0x4689b0], 0
mov ebx, eax
jne 0x43a5d6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43a687
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x455ed8
push edi
call esi
test eax, eax
je 0x43a687
push eax
call fcn.00431600
mov dword [esp], 0x455ec8
push edi
mov dword [0x4689b0], eax
call esi
push eax
call fcn.00431600
mov dword [esp], 0x455eb4
push edi
mov dword [0x4689b4], eax
call esi
push eax
call fcn.00431600
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4689b8], eax
call esi
push eax
call fcn.00431600
pop ecx
mov dword [0x4689c0], eax
test eax, eax
je 0x43a5d6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00431600
pop ecx
mov dword [0x4689bc], eax
mov eax, dword [0x4689bc]
cmp eax, ebx
je 0x43a62e
cmp dword [0x4689c0], ebx
je 0x43a62e
push eax
call fcn.0043167b
push dword [0x4689c0]
mov esi, eax
call fcn.0043167b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43a62e
test edi, edi
je 0x43a62e
call esi
test eax, eax
je 0x43a625
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43a625
test byte [ebp - 0xc], 1
jne 0x43a62e
or dword [ebp + 0x10], 0x200000
jmp 0x43a667
mov eax, dword [0x4689b4]
cmp eax, ebx
je 0x43a667
push eax
call fcn.0043167b
pop ecx
test eax, eax
je 0x43a667
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43a667
mov eax, dword [0x4689b8]
cmp eax, ebx
je 0x43a667
push eax
call fcn.0043167b
pop ecx
test eax, eax
je 0x43a667
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4689b0]
call fcn.0043167b
pop ecx
test eax, eax
je 0x43a687
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43a689
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43fef0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x468a60]
push esi
push edi
xor edi, edi
test eax, eax
je 0x43ff47
mov eax, dword [0x468ad4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x43ff47
push 0x95b6
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x43ff3f
push esi
call fcn.00441220
add esp, 4
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 0x440020
Capabilities:
Get disk information
Get thread local storage value

Disassembly:
push ecx
mov ecx, dword [0x468ad4]
mov eax, dword [0x463c28]
push ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44007b
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x440049
mov eax, 1
pop ecx
ret
mov eax, dword [esp + 8]
test eax, eax
jl 0x44007b
cmp eax, 0x1a
jg 0x44007b
test eax, eax
jne 0x44005f
call fcn.00440010
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]
cmp eax, 2
je 0x440042
xor eax, eax
pop ecx
ret

Function at 0x440110
Capabilities:
Get thread local storage value

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

Disassembly:
push ecx
mov eax, dword [0x468ad4]
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x440635
mov ebp, dword [esp + 0x14]
mov edx, dword [edi + 0x97e]
lea ecx, [esp + 0xc]
push 0
lea esi, [edi + 0x8f5c]
push ecx
push ebp
push esi
push edx
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x440635
cmp dword [esp + 0xc], ebp
jne 0x440635
mov byte [edi + ebp + 0x8f5c], 0
mov al, byte [edi + 0xc60]
test al, 8
je 0x44062d
push 0x2e
push esi
call fcn.0043f9a0
add esp, 8
test eax, eax
je 0x440626
push 0x2e
push esi
mov byte [eax], 0x20
call fcn.0043f9a0
add esp, 8
test eax, eax
jne 0x440614
mov byte [edi + 0x8f67], 0
push esi
push esi
call dword [sym.imp.USER32.dll_OemToCharA]
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x440680
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x468ad4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x440698
or eax, 0xffffffff
pop esi
ret
call fcn.00440640
push 0
push 0x8000080
push 3
push 0
push 3
lea ecx, [esi + 0x8cfc]
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x97e], eax
pop esi
ret

Function at 0x4406d0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x468ad4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4406ea
mov eax, 9
pop esi
ret
mov eax, dword [esi + 0x44]
mov dword [esi + 0x9070], 0
test eax, eax
mov dword [esi + 0x9074], 0
jne 0x440772
push ebx
push edi
push 0
push 0x80
push 3
push 0
lea ebx, [esi + 0x8cfc]
push 3
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x440759
push edi
call fcn.00448910
add esp, 4
mov dword [esi + 0x9070], eax
mov dword [esi + 0x9074], edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi + 0x8f04]
push ecx
push ebx
call fcn.00447650
add esp, 8
mov edx, dword [esi + 0x9070]
mov eax, dword [esi + 0x9074]
or edx, eax
pop edi
pop ebx
jne 0x440772
mov eax, 9
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x440780
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x468ad4]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x4407ee
mov ebp, dword [esp + 0x18]
lea esi, [ebx + 0x8f5c]
push ebp
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x4407ee
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.00440800
lea eax, [edi + eax + 0x2e]
xor edi, edi
mov di, word [ebx + 0xc56]
add esp, 8
lea ecx, [edi + 1]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
push esi
mov byte [edi + esi], 0
call dword [sym.imp.USER32.dll_OemToCharA]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4408e0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x468ad4]
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 0x440907
mov ecx, dword [esp + 0x10]
mov eax, 4
mov dword [ecx + 0x4c], edi
pop edi
pop esi
pop ebx
ret
lea edx, [esi + 0x318]
mov dword [esi + 0x98e], edi
push edx
call fcn.00445040
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x440949
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x28]
push eax
push 2
push 0x66
call fcn.004478e0
add esp, 8
push eax
push ebx
call fcn.0043ff50
add esp, 0xc
mov dword [esi + 0x4c], edi
mov eax, ebx
pop edi
pop esi
pop ebx
ret
push edi
call fcn.004451e0
add esp, 4
mov dword [esi + 0x976], edi
cmp eax, edi
mov dword [esi + 0x98a], eax
mov dword [esi + 0x97a], edi
je 0x4409c7
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x28]
mov dword [eax + 0x4c], edi
push ecx
push 2
push 0x67
call fcn.004478e0
mov edx, dword [esi + 0x98a]
add esp, 8
push eax
push edx
call fcn.0043ff50
mov eax, dword [esi + 0x8ce2]
add esp, 0xc
mov dword [esi + 0x976], edi
cmp eax, edi
mov dword [esi + 0x97a], edi
je 0x4409b4
push eax
call fcn.0042c9a8
add esp, 4
mov dword [esi + 0x8ce2], edi
mov eax, dword [esi + 0x8f50]
cmp eax, edi
je 0x440a68
jmp 0x440a59
cmp dword [esi + 0x34], edi
je 0x440a1a
mov ebx, dword [esp + 0x10]
mov dword [ebx + 0x4c], edi
call fcn.00440f50
cmp eax, edi
mov dword [esi + 0x98a], eax
jne 0x440a09
push ebp
lea ebp, [esi + 0x8f5c]
push ebp
call fcn.00445ef0
add esp, 4
test eax, eax
jne 0x4409f9
inc dword [ebx + 0x4c]
call fcn.00440f50
cmp eax, edi
mov dword [esi + 0x98a], eax
je 0x4409e9
pop ebp
cmp dword [esi + 0x98a], 2
jne 0x440a2a
mov dword [esi + 0x98a], edi
jmp 0x440a2a
mov ecx, dword [esp + 0x10]
xor eax, eax
mov ax, word [esi + 0xc2a]
mov dword [ecx + 0x4c], eax
mov eax, dword [esi + 0x8ce2]
mov dword [esi + 0x976], edi
cmp eax, edi
mov dword [esi + 0x97a], edi
je 0x440a4f
push eax
call fcn.0042c9a8
add esp, 4
mov dword [esi + 0x8ce2], edi
mov eax, dword [esi + 0x8f50]
cmp eax, edi
je 0x440a68
push eax
call fcn.0042c9a8
add esp, 4
mov dword [esi + 0x8f50], edi
mov eax, dword [esi + 0x98a]
pop edi
pop esi
pop ebx
ret
Function at 0x440a80
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x468ad4]
sub esp, 0x138
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x440ab2
mov ecx, dword [esp + 0x148]
pop edi
pop esi
pop ebx
mov dword [ecx + 0x4c], eax
mov eax, 4
add esp, 0x138
ret
mov esi, dword [esp + 0x148]
add eax, 0x318
test eax, eax
mov edi, dword [esi + 0x10]
je 0x440baa
test edi, edi
je 0x440baa
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call ebx
test eax, eax
je 0x440b80
push edi
call ebx
test eax, eax
je 0x440b80
push esi
call fcn.004408e0
add esp, 4
test eax, eax
jne 0x440bca
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x440b11
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x138
ret
lea edx, [esp + 0xc]
push esi
xor ebx, ebx
mov dword [esi + 0xc], edx
call fcn.004418f0
mov edi, eax
add esp, 4
test edi, edi
jne 0x440b39
push esi
inc ebx
call fcn.004418f0
mov edi, eax
add esp, 4
test edi, edi
je 0x440b29
cmp edi, 0x30
je 0x440b6a
cmp edi, 2
push esi
jne 0x440b62
call fcn.004408e0
add esp, 4
mov edi, eax
mov dword [esi + 0x4c], ebx
mov dword [esi + 0xc], 0
pop edi
pop esi
pop ebx
add esp, 0x138
ret
call fcn.004408e0
add esp, 4
mov eax, edi
mov dword [esi + 0x4c], ebx
mov dword [esi + 0xc], 0
pop edi
pop esi
pop ebx
add esp, 0x138
ret
mov eax, dword [esi + 0x28]
push eax
push 2
push 0x69
call fcn.004478e0
add esp, 8
push eax
push 0xb
call fcn.0043ff50
add esp, 0xc
mov eax, 0x2f
pop edi
pop esi
pop ebx
add esp, 0x138
ret
mov ecx, dword [esi + 0x28]
push ecx
push 2
push 0x68
call fcn.004478e0
add esp, 8
push eax
push 0xb
call fcn.0043ff50
add esp, 0xc
mov eax, 0xb
pop edi
pop esi
pop ebx
add esp, 0x138
ret
Function at 0x4421c0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x468ad4]
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 0x4421e0
pop edi
pop esi
mov eax, 4
pop ebx
ret
lea eax, [esi + 0x318]
cmp eax, ebx
jne 0x442215
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x28]
mov dword [eax + 0x4c], ebx
push ecx
push 2
push 0x71
call fcn.004478e0
add esp, 8
push eax
push 0x2f
call fcn.0043ff50
add esp, 0xc
mov eax, 0x2f
pop edi
pop esi
pop ebx
ret
push eax
call fcn.00445040
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x44224b
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 0x28]
push edx
push 2
push 0x6c
call fcn.004478e0
add esp, 8
push eax
push edi
call fcn.0043ff50
add esp, 0xc
mov eax, edi
mov dword [esi + 0x4c], ebx
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x8ce2]
cmp eax, ebx
je 0x442264
push eax
call fcn.0042c9a8
add esp, 4
mov dword [esi + 0x8ce2], ebx
mov eax, dword [esi + 0x8f50]
cmp eax, ebx
je 0x44227d
push eax
call fcn.0042c9a8
add esp, 4
mov dword [esi + 0x8f50], ebx
push 1
call fcn.004451e0
add esp, 4
cmp eax, ebx
mov dword [esi + 0x98a], eax
je 0x4422c2
mov eax, dword [esp + 0x10]
mov dword [eax + 0x4c], ebx
mov eax, dword [eax + 0x28]
push eax
push 2
push 0x72
call fcn.004478e0
mov ecx, dword [esi + 0x98a]
add esp, 8
push eax
push ecx
call fcn.0043ff50
mov eax, dword [esi + 0x98a]
add esp, 0xc
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x10]
xor edx, edx
mov dx, word [esi + 0xc34]
pop edi
mov dword [eax + 0x4c], edx
pop esi
xor eax, eax
pop ebx
ret