joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4044f0
Capabilities:
Get file size
Parse pe header

Disassembly:
push ecx
mov cl, byte [esp + 0x14]
push ebx
push ebp
push esi
test cl, cl
mov dword [esp + 0xc], 0
mov eax, 0x80000000
mov esi, 2
mov ebp, 4
je 0x40451f
mov esi, ebp
mov eax, 0xc0000000
mov ebp, 0xf001f
push 0
push 0x10000000
push 3
push 0
push 1
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
jne 0x40454e
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebp
pop ebx
pop ecx
ret
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push esi
push 0
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
jne 0x40457f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x404606
push 0
push 0
push 0
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x40459f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x4045fb
cmp word [esi], 0x5a4d
je 0x4045b0
mov dword [esp + 0x10], 0xb
jmp 0x4045fb
mov ecx, dword [esi + 0x3c]
mov ebp, esi
add ebp, ecx
cmp dword [ebp], 0x4550
je 0x4045ca
mov dword [esp + 0x10], 0xb
jmp 0x4045fb
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x58]
mov dword [edx], ecx
mov eax, dword [esi + 0x3c]
add eax, 0xf8
sub edi, eax
lea ecx, [esi + eax]
push ecx
push edi
call fcn.00404b40
mov edx, dword [esp + 0x28]
mov cl, byte [esp + 0x2c]
add esp, 8
test cl, cl
mov dword [edx], eax
je 0x4045fb
mov dword [ebp + 0x58], eax
test esi, esi
je 0x404606
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
test ebx, ebx
je 0x404614
push ebx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x404b40
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x41478c]
test eax, eax
jne 0x404b4e
call fcn.00404b90
mov ecx, dword [esp + 4]
or eax, 0xffffffff
dec ecx
js 0x404b8a
push ebx
push esi
lea esi, [ecx + 1]
mov ecx, dword [esp + 0x10]
mov bl, byte [ecx]
mov edx, eax
shr edx, 0x18
xor dl, bl
inc ecx
mov byte [esp + 0xc], dl
mov edx, dword [esp + 0xc]
and edx, 0xff
shl eax, 8
mov edx, dword [edx*4 + 0x41438c]
xor eax, edx
dec esi
jne 0x404b61
pop esi
pop ebx
not eax
ret

Function at 0x404b90
Capabilities:
Hash data using crc32b

Disassembly:
push ecx
push ebx
mov ebx, 1
push esi
mov dword [0x41478c], ebx
xor edx, edx
mov ecx, 0x41438c
mov eax, edx
mov esi, 8
shl eax, 0x18
test eax, 0x80000000
je 0x404bbf
add eax, eax
xor eax, 0x4c11db7
jmp 0x404bc1
shl eax, 1
dec esi
jne 0x404baf
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x41478c
jb 0x404ba5
xor ecx, ecx
mov eax, 0x41418c
mov dword [esp + 8], ecx
mov edx, 8
test byte [esp + 8], bl
je 0x404bfc
mov si, word [esp + 8]
shr si, 1
xor esi, 0x8408
mov dword [esp + 8], esi
jmp 0x404c01
shr word [esp + 8], 1
dec edx
jne 0x404be2
mov dx, word [esp + 8]
inc ecx
mov word [eax], dx
add eax, 2
cmp eax, 0x41438c
jb 0x404bd9
pop esi
pop ebx
pop ecx
ret
Function at 0x404c20
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x41478c]
test eax, eax
jne 0x404c2e
call fcn.00404b90
mov ecx, dword [esp + 4]
mov eax, pe_overlay
dec ecx
js 0x404c6a
push ebx
push esi
lea esi, [ecx + 1]
mov ecx, dword [esp + 0x10]
mov dl, byte [ecx]
xor ebx, ebx
xor dl, al
mov bl, ah
mov byte [esp + 0xc], dl
inc ecx
mov edx, dword [esp + 0xc]
and edx, 0xff
mov ax, word [edx*2 + 0x41418c]
xor ax, bx
dec esi
jne 0x404c43
pop esi
pop ebx
not eax
ret

Function at 0x404c70
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x40609b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x828
push ebx
push esi
lea ecx, [esp + 8]
call fcn.004056a0
mov eax, dword [esp + 0x848]
xor esi, esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x83c], esi
call fcn.004056b0
mov ebx, dword [esp + 0x840]
cmp ebx, esi
jle 0x404cda
push edi
mov edi, dword [esp + 0x848]
lea ecx, [esp + 0xc]
call fcn.00405750
mov dl, byte [esi + edi]
xor dl, al
mov byte [esi + edi], dl
inc esi
cmp esi, ebx
jl 0x404cc3
pop edi
lea ecx, [esp + 8]
mov dword [esp + 0x838], 0xffffffff
call fcn.004029b0
mov ecx, dword [esp + 0x830]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x834
ret

Function at 0x405250
Capabilities:
Set registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
push ebx
lea eax, [esp + 0x10]
push esi
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
xor bl, bl
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4052bb
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
mov esi, dword [esp + 0x10]
push 1
push 0
push 0x407528
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4052b0
mov bl, 1
test esi, esi
je 0x4052bb
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop esi
pop ebx
pop ecx
ret

Function at 0x4052d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
mov edx, dword [esp + 0x10]
mov ecx, 0x41
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push ecx
push edx
xor bl, bl
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40534d
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push esi
push ecx
push 0
push 0x407528
push edi
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405342
mov edx, dword [esp + 0x14]
mov bl, 1
mov byte [edx + esi], al
test edi, edi
je 0x40534d
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop esi
pop ebx
ret
Function at 0x4055e0
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
call fcn.00405540
push eax
call dword [sym.imp.MSVCRT.dll__strdup]
add esp, 4
mov edi, eax
lea eax, [esp + 0x14]
mov ebp, 1
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x405679
push ebx
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push 0x4093fc
push ebx
mov dword [esp + 0x20], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40565c
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
xor ebp, ebp
mov ecx, dword [eax + 8]
mov dword [edx], ecx
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop ebx
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
add esp, 0xc
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x4056b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ecx, ecx
mov ebx, 0x11
lea edi, [esi + 4]
mov edx, 0x20
imul eax, eax, 0x5d588b65
inc eax
mov ebp, eax
shr ecx, 1
and ebp, 0x80000000
or ecx, ebp
dec edx
jne 0x4056c9
mov dword [edi], ecx
add edi, 4
dec ebx
jne 0x4056c4
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 4]
shl eax, 0x17
shr ecx, 9
xor eax, ecx
mov ecx, dword [esi + 0x40]
xor eax, ecx
mov ecx, 0x1f8
mov dword [esi + 0x44], eax
lea eax, [esi + 8]
mov edx, dword [eax - 4]
mov edi, dword [eax]
mov ebx, dword [eax + 0x3c]
add eax, 4
shl edx, 0x17
shr edi, 9
xor edx, edi
xor edx, ebx
dec ecx
mov dword [eax + 0x3c], edx
jne 0x405705
mov ecx, esi
call fcn.00405780
mov ecx, esi
call fcn.00405780
mov ecx, esi
call fcn.00405780
mov dword [esi], 0x208
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x405780
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
lea eax, [ecx + 4]
mov edx, 0x20
mov esi, dword [eax + 0x7a4]
mov edi, dword [eax]
xor edi, esi
mov dword [eax], edi
add eax, 4
dec edx
jne 0x40578a
lea eax, [ecx + 0x84]
mov ecx, 0x1e9
mov edx, dword [eax - 0x80]
mov edi, dword [eax]
xor edi, edx
mov dword [eax], edi
add eax, 4
dec ecx
jne 0x4057a7
pop edi
pop esi
ret
Function at 0x4057c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
mov dword [esp], 0
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405833
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea ecx, [esp]
mov dword [esp], eax
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0xc]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x405828
mov dword [esp], 0
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 8
ret

Function at 0x405840
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push ecx
push edx
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4058a9
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push esi
push eax
push ecx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40589e
cmp dword [esp + 0xc], 4
jne 0x40589e
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
Function at 0x4058b0
Capabilities:
Create pipe
Create thread
Write file on windows
Write pipe

Disassembly:
mov eax, dword [0x409404]
sub esp, 8
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
jge 0x4058ed
push 0x409404
push str.RETRY_MAX
push str.SoftwarePaltiosoftucharge
push 0x80000002
call fcn.00405840
add esp, 0x10
cmp eax, 4
je 0x4058ed
mov dword [0x409404], 0xa
cmp dword [0x409408], ebx
jge 0x405920
push 0x409408
push str.RETRY_DELAY
push str.SoftwarePaltiosoftucharge
push 0x80000002
call fcn.00405840
add esp, 0x10
cmp eax, 4
je 0x405920
mov dword [0x409408], 0xc8
mov eax, dword [0x445884]
cmp eax, ebx
je 0x405956
mov eax, dword [0x445884]
cmp eax, 0xffffffff
je 0x405956
mov eax, dword [esp + 0x1c]
push str._StartMonitor_1_
push 0x1b64
push 1
push eax
call fcn.00405170
add esp, 0x10
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push ebx
push 0x445780
call fcn.00405d30
add esp, 8
mov esi, eax
push ebx
push 0x1f4
push 0x80
push 0x80
push 0xff
push ebx
push 0x40001
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [0x445884], eax
mov eax, dword [0x445884]
cmp eax, 0xffffffff
jne 0x4059c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str._StartMonitor_2__s__d
push 0x1b64
push ebx
push ecx
call fcn.00405170
add esp, 0x18
call fcn.00405ac0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x1c]
push eax
push esi
push str._StartMonitor_3__s__d
push 0x1b64
push 1
push edx
call fcn.00405170
add esp, 0x18
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
push eax
push ebx
push ebx
push 0x405ba0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x445888], eax
mov eax, dword [0x445888]
cmp eax, ebx
je 0x405aae
cmp dword [0x409404], ebx
jle 0x405aae
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push str..pipe_softdenchi_login
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x405a68
mov ecx, dword [0x409408]
push ecx
call ebp
mov eax, dword [0x409404]
inc ebx
cmp ebx, eax
jl 0x405a29
call fcn.00405ac0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
lea edx, [esp + 0x10]
push 0
push edx
push pe_nt_image_headers32
push 0x445780
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405aa7
cmp dword [esp + 0x10], 0x100
jne 0x405aa7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 8
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00405ac0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
Function at 0x405ac0
Capabilities:
Terminate thread
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov eax, dword [0x445888]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
je 0x405b40
push esi
push edi
push edi
push 3
push edi
push edi
push 0x40000000
push edi
push 0x445780
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], 0x1f40
mov dword [esp + 0x3c], edi
call fcn.00405d30
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405b2d
lea eax, [esp + 0xc]
push edi
push eax
lea ecx, [esp + 0x18]
push 0x10
push ecx
push esi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call ebx
push 0x3e8
mov edx, dword [0x445888]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov eax, dword [0x445884]
cmp eax, edi
je 0x405b61
mov eax, dword [0x445884]
cmp eax, 0xffffffff
je 0x405b61
mov eax, dword [0x445884]
push eax
call ebx
mov dword [0x445884], edi
mov eax, dword [0x445888]
cmp eax, edi
je 0x405b89
mov eax, dword [0x445888]
cmp eax, 0xffffffff
je 0x405b89
push 0xffffffffffffffff
mov ecx, dword [0x445888]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x445888], edi
call fcn.00405c90
mov dword [0x445890], edi
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x401270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401289
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4012c4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4012c0
lea ebx, [ebx]
cmp esi, eax
jae 0x4012c4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4012b0
cmp esi, eax
jb 0x4012ca
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401c70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x51e798
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5c5c30]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401cb6
and al, 0x10
xor cl, cl
cmp cl, al
sbb edx, edx
neg edx
jne 0x401d96
lea eax, [esp + 0x10]
call fcn.00401760
mov dword [esp + 0x24], 0
mov edi, dword [esp + 0x10]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401cd0
sub eax, edx
sar eax, 1
cmp eax, 1
jle 0x401cf1
cmp word [edi + eax*2 - 2], 0x5c
jne 0x401cf1
mov word [edi + eax*2 - 2], cx
push 0x5c
push edi
call fcn.004d1550
add esp, 8
test eax, eax
push edi
jne 0x401d21
call fcn.004263d0
add esp, 4
mov eax, 0xf
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
mov word [eax], 0
call fcn.00401c70
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x401d52
push edi
call fcn.004263d0
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401d8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
je 0x401d8d
push edi
call fcn.004263d0
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
push edi
call fcn.004263d0
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x402ae0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov esi, eax
mov dword [esi], vtable.Cabinet::CExtract.0
call fcn.00402d60
test eax, eax
je 0x402b15
mov eax, dword [0x5cac50]
cmp eax, 0xffffffff
je 0x402b15
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x402b15
mov eax, dword [0x5cac50]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [esi + 0x110c]
test eax, eax
je 0x402b26
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0x10fc]
test eax, eax
je 0x402b39
push eax
call fcn.00426390
add esp, 4
mov ecx, dword [esi + 0x10dc]
push ecx
call fcn.004263d0
mov eax, dword [esi + 0x10c0]
add esp, 4
test eax, eax
je 0x402b5b
push eax
call fcn.004263d0
add esp, 4
mov dword [esi + 0x10c0], 0
mov edx, dword [esi + 0x60]
push edx
call fcn.004263d0
mov eax, dword [esi + 0x58]
push eax
call fcn.004263d0
mov ecx, dword [esi + 0x50]
push ecx
call fcn.00426390
mov edx, dword [esi + 0x54]
push edx
call fcn.00426390
mov eax, dword [esi + 0x14]
push eax
call fcn.004263d0
mov ecx, dword [esi + 0xc]
push ecx
call fcn.004263d0
add esp, 0x18
pop esi
ret
Function at 0x402bb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ebp, ebp
cmp dword [esi + 0x1108], eax
je 0x402bdb
mov dword [esi + 0x10e8], ebp
mov dword [esi + 0x10ec], ebp
mov dword [esi + 0x10e4], 0x3f3
xor eax, eax
pop ebp
ret
mov eax, dword [0x5cac50]
cmp eax, 0xffffffff
push edi
je 0x402c30
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
cmp eax, ebp
je 0x402c0e
pop edi
mov dword [esi + 0x10e8], ebp
mov dword [esi + 0x10ec], ebp
mov dword [esi + 0x10e4], 0x3f4
xor eax, eax
pop ebp
ret
mov eax, dword [0x5cac50]
cmp eax, 0xffffffff
je 0x402c30
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x402c30
mov eax, dword [0x5cac50]
push eax
call edi
cmp eax, ebp
jne 0x402c4b
pop edi
mov dword [esi + 0x10e4], ebp
mov dword [esi + 0x10ec], ebp
mov dword [esi + 0x10e8], 0xe
xor eax, eax
pop ebp
ret
lea edi, [esi + 0x10cc]
xor eax, eax
mov dword [edi + 0x18], ebp
mov dword [edi + 0x1c], ebp
mov dword [edi + 0x20], ebp
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
cmp dword [esi + 0x10f0], ebp
jne 0x402d0e
cmp dword [esi + 0x110c], ebp
jne 0x402d13
push ebx
push str.Cabinet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICreate
push eax
mov dword [esi + 0x110c], eax
call ebx
mov ecx, dword [esi + 0x110c]
push str.FDICopy
push ecx
mov dword [esi + 0x1110], eax
call ebx
mov edx, dword [esi + 0x110c]
push str.FDIIsCabinet
push edx
mov dword [esi + 0x1114], eax
call ebx
mov dword [esi + 0x1118], eax
mov eax, dword [esi + 0x110c]
push str.FDIDestroy
push eax
call ebx
cmp dword [esi + 0x1110], ebp
mov dword [esi + 0x111c], eax
pop ebx
je 0x402cfb
cmp dword [esi + 0x1114], ebp
je 0x402cfb
cmp dword [esi + 0x1118], ebp
je 0x402cfb
cmp eax, ebp
jne 0x402d13
mov dword [esi + 0x110c], ebp
mov dword [edi + 0x18], 0x3e8
mov dword [edi + 0x1c], ebp
mov dword [edi + 0x20], ebp
pop edi
xor eax, eax
pop ebp
ret
mov ecx, dword [esi + 0x1110]
push edi
push 1
push 0x403420
push fcn.004033b0
push 0x403370
push 0x403340
push 0x403300
push 0x4032f0
push 0x4032e0
call ecx
add esp, 0x24
xor edx, edx
cmp eax, ebp
setne dl
pop edi
mov dword [esi + 0x10f0], eax
pop ebp
mov eax, edx
ret
Function at 0x4033b0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5cac50]
push ebp
push esi
xor ebp, ebp
cmp eax, 0xffffffff
push edi
jne 0x4033c3
xor esi, esi
jmp 0x4033cc
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov edi, dword [esp + 0x10]
cmp edi, ebp
jg 0x4033da
pop edi
pop esi
xor eax, eax
pop ebp
ret
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
push ebx
push edi
mov ecx, esi
call edx
cmp edi, dword [esi + 8]
mov ebx, eax
jne 0x403404
mov eax, dword [esi + 0xc]
mov dword [esi + 8], ebp
mov word [eax], bp
mov ecx, dword [esi + 0x14]
mov word [ecx], bp
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], ebp
lea eax, [esi + 0x48]
call fcn.00401c20
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x403fd0
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x14
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40405b
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x404049
test edi, 0x100
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
ja 0x404038
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea ecx, [esp + 8]
push ecx
push 0
mov edx, ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and edi, 0x27
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
add esp, 0x14
ret 8

Function at 0x404a60
Capabilities:
Get hostname
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x51f002
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x5c5c30]
xor eax, esp
mov dword [esp + 0x88], eax
push edi
mov eax, dword [0x5c5c30]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov dword [esp + 0x9c], 0
push esi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
call fcn.0040b770
push 0x80
lea eax, [esp + 0x14]
mov dword [esp + 0xa0], 0
push eax
mov dword [esp + 0x10], 1
call dword [sym.imp.WS2_32.dll_gethostname]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x404b16
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
test eax, eax
jne 0x404afd
xor ecx, ecx
jmp 0x404b0d
mov ecx, eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x404b02
sub ecx, edi
push ecx
push eax
mov ecx, esi
call fcn.0040d600
mov eax, esi
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.004d1610
add esp, 0x98
ret
Function at 0x405270
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x18
push esi
lea eax, [esp + 4]
push eax
xor esi, esi
push 0x20
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4052e2
lea ecx, [esp + 0xc]
push ecx
push str.SeDebugPrivilege
push esi
mov dword [esp + 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 4]
push esi
push esi
push 0x10
lea edx, [esp + 0x14]
push edx
push esi
push eax
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push ecx
add esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x18
ret