joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f131
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x4a0590]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [ebx + 0x3f0]
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 0x8c], 0x80
lea eax, [ebp - 0x88]
push eax
mov eax, dword [edi + 0x154]
push 0
add eax, 4
push eax
push dword [edi + 0x15c]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x148], 0
mov dword [edi + 0x14c], eax
jne 0x42f1b8
push dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
push eax
lea eax, [edi + 0xc8]
push eax
call fcn.0045b860
mov eax, dword [ebp - 0x8c]
add esp, 0xc
mov dword [edi + 0x148], eax
mov ecx, dword [edi + 0x14c]
cmp ecx, 4
jge 0x42f1e5
push str.Received_too_short_packet
call fcn.00429149
pop ecx
mov dword [edi + 0xc], 7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00453655
leave
ret
mov eax, dword [edi + 0x15c]
movzx dx, byte [eax]
movzx eax, byte [eax + 1]
shl dx, 8
movzx edx, dx
or edx, eax
mov dword [edi + 0xc], edx
sub edx, 3
je 0x42f278
dec edx
je 0x42f301
dec edx
je 0x42f242
dec edx
je 0x42f222
push str.Internal_error:_Unexpected_packet
push 0x47e874
call fcn.00429149
jmp 0x42f271
mov eax, dword [edi + 0x15c]
add ecx, 0xfffffffe
inc eax
push ecx
inc eax
push eax
push edi
call fcn.0042e3d7
add esp, 0xc
test eax, eax
je 0x42f301
jmp 0x42f1d7
mov eax, dword [edi + 0x15c]
movzx cx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl cx, 8
movzx ecx, cx
or ecx, eax
mov eax, dword [edi + 0x15c]
add eax, 4
push eax
push 0x47f5cc
mov dword [edi + 8], ecx
call fcn.004290d9
pop ecx
pop ecx
jmp 0x42f301
cmp ecx, 4
jle 0x42f301
mov eax, dword [edi + 0x15c]
movzx dx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl dx, 8
movzx edx, dx
or edx, eax
movzx eax, word [edi + 0x40]
inc eax
and eax, 0xffff
cmp eax, edx
jne 0x42f301
mov eax, dword [edi + 0x15c]
add ecx, 0xfffffffc
push ecx
add eax, 4
push eax
push 1
push ebx
call fcn.00429417
add esp, 0x10
mov dword [ebp - 0x90], eax
test eax, eax
je 0x42f2df
push 5
mov eax, edi
call fcn.0042eef3
mov eax, dword [ebp - 0x90]
pop ecx
jmp 0x42f1d7
mov eax, dword [edi + 0x14c]
sub eax, 4
cdq
add dword [esi + 0x70], eax
mov eax, dword [esi + 0x70]
adc dword [esi + 0x74], edx
mov dword [esi + 0x4a0], eax
mov eax, dword [esi + 0x74]
mov dword [esi + 0x4a4], eax
push ebx
call fcn.0042767a
pop ecx
test eax, eax
je 0x42f1d5
push 5
mov eax, edi
call fcn.0042eef3
pop ecx
push 0x2a
pop eax
jmp 0x42f1d7
Function at 0x435e25
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
or eax, 0xffffffff
cmp dword [esp + 0xc], ecx
jle 0x435e55
push esi
mov edx, dword [esp + 0xc]
movzx edx, byte [ecx + edx]
mov esi, eax
and esi, 0xff
xor edx, esi
mov esi, dword [esp + 8]
shr eax, 8
xor eax, dword [esi + edx*4]
inc ecx
cmp ecx, dword [esp + 0x10]
jl 0x435e31
pop esi
not eax
ret 0xc

Function at 0x4365b4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
push dword [ebp + 0xc]
call fcn.00436479
push 0
mov esi, eax
mov eax, 0x80
push eax
push 3
push 0
push 3
push eax
push dword [ebp + 0xc]
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, edi
je 0x4365fb
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [esi + 0x24], edi
call fcn.0043661e
mov dword [esi + 0x28], eax
lea eax, [esi + 0x38]
call fcn.0040bacf
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x4366e2
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
xor ebx, ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x14], eax
call fcn.00452c78
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x4367df
mov esi, dword [edi + 0xc]
mov dword [ebp - 8], ebx
cmp esi, dword [edi + 0x10]
jbe 0x43671e
call fcn.00455b8a
mov eax, dword [edi]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
mov esi, dword [edi + 0x10]
cmp dword [edi + 0xc], esi
jbe 0x436733
call fcn.00455b8a
mov eax, dword [edi]
cmp dword [ebp - 0x20], ebx
je 0x43673f
cmp dword [ebp - 0x20], eax
je 0x436744
call fcn.00455b8a
cmp dword [ebp - 0x1c], esi
je 0x4367d6
lea esi, [ebp - 0x20]
call fcn.0040cf8f
mov eax, dword [eax + 4]
add eax, dword [ebp - 8]
cmp dword [ebp - 0x14], eax
jb 0x4367d6
push ebx
lea eax, [ebp - 0x18]
push eax
call fcn.0040cf8f
push dword [eax + 4]
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4367d6
call fcn.0040cf8f
mov ecx, eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ecx + 4]
jne 0x4367d6
add dword [ebp - 8], eax
push eax
push dword [ebp - 0xc]
call fcn.00435dda
push eax
call fcn.00435e25
mov ebx, eax
call fcn.0040cf8f
cmp dword [eax], ebx
jne 0x4367d6
mov eax, dword [ebp - 0x20]
inc dword [ebp - 0x10]
test eax, eax
jne 0x4367d2
call fcn.00455b8a
xor eax, eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x10]
jb 0x4367c7
call fcn.00455b8a
add dword [ebp - 0x1c], 8
xor ebx, ebx
jmp 0x436726
mov eax, dword [eax]
jmp 0x4367ba
push dword [ebp - 0xc]
call fcn.00453b90
pop ecx
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
leave
ret 4
Function at 0x437a51
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
push edi
mov ebx, esi
mov byte [ebp - 1], 0
call fcn.00438df2
test al, al
je 0x437b4f
lea eax, [esi + 0xfc]
cmp dword [eax + 0x18], 8
jb 0x437a7f
mov eax, dword [eax + 4]
jmp 0x437a82
add eax, 4
push dword [esi + 0xc]
mov ecx, eax
call fcn.00437f96
xor ebx, ebx
cmp byte [ebp + 8], bl
je 0x437a9b
push dword [esi + 0xc]
call fcn.00437f56
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [esi + 0xc]
call edi
test eax, eax
jne 0x437ae9
push dword [esi + 0xc]
mov eax, esi
call fcn.00438133
test al, al
je 0x437b51
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [esi + 0xc]
call edi
test eax, eax
jne 0x437ae9
mov dword [esi + 0x120], 0x1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x118], eax
jmp 0x437b51
cmp dword [esi + 0xd8], ebx
je 0x437af8
call fcn.004381c1
jmp 0x437afa
mov al, 1
cmp al, bl
je 0x437b51
push ebx
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x437b21
push dword [ebp + 0x10]
mov eax, esi
push dword [ebp + 0xc]
push dword [esi + 0xc]
call fcn.00438a9d
mov byte [ebp - 1], al
jmp 0x437b37
mov dword [esi + 0x120], 0x1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x118], eax
cmp byte [ebp - 1], bl
je 0x437b51
mov ecx, dword [esi + 0x94]
cmp ecx, ebx
je 0x437b6e
push dword [esi]
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x437b6e
xor ebx, ebx
mov ecx, dword [esi + 0x94]
cmp ecx, ebx
je 0x437b6e
push dword [esi]
mov eax, dword [ecx]
push dword [esi + 0x118]
push dword [esi + 0x120]
call dword [eax + 4]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x438204
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x16
push dword [ebp + 8]
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
call esi
cmp eax, ebx
jne 0x438236
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x43828c
mov eax, dword [ebp - 8]
push edi
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00452c78
mov edi, eax
pop ecx
cmp edi, ebx
je 0x43828b
mov eax, dword [ebp - 8]
add eax, eax
push eax
push ebx
push edi
call fcn.0045f360
add esp, 0xc
push ebx
lea eax, [ebp - 8]
push eax
push edi
push ebx
push 0x16
push dword [ebp + 8]
call esi
test eax, eax
je 0x438284
push edi
push dword [ebp + 0xc]
call fcn.004095cb
mov byte [ebp - 1], 1
push edi
call fcn.00453b90
pop ecx
pop edi
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret 8
Function at 0x438295
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
or dword [ebp - 8], 0xffffffff
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x13
push dword [ebp + 8]
mov dword [ebp - 4], edi
call esi
cmp eax, edi
jne 0x4382c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x438325
mov eax, dword [ebp - 4]
push ebx
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00452c78
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x438324
mov eax, dword [ebp - 4]
add eax, eax
push eax
push edi
push ebx
call fcn.0045f360
add esp, 0xc
push edi
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0x13
push dword [ebp + 8]
call esi
test eax, eax
je 0x43831d
lea eax, [ebp - 8]
push eax
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_StrToIntExW]
test eax, eax
jne 0x43831d
or dword [ebp - 8], 0xffffffff
push ebx
call fcn.00453b90
pop ecx
pop ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 4

Function at 0x4383ab
Capabilities:
Read http header

Disassembly:
push ebp
lea ebp, [esp - 0xf8c]
mov eax, 0x100c
call fcn.00463310
mov eax, dword [0x4a0590]
xor eax, ebp
mov dword [ebp + 0xf88], eax
mov eax, dword [ebp + 0xf94]
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x7c], esi
cmp esi, edi
je 0x4383df
mov dword [esi], edi
push edi
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push edi
push 0x35
push eax
mov dword [ebp - 0x80], 0x400
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x4384a4
lea eax, [ebp - 0x78]
cmp word [ebp - 0x78], di
je 0x438424
movzx ecx, word [ebp - 0x78]
cmp cx, 0x30
jb 0x43841a
cmp cx, 0x39
jbe 0x438424
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, di
jne 0x43840e
push eax
lea eax, [ebp + 0x788]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp + 0x788]
cmp word [ebp + 0x788], di
je 0x438457
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x438457
cmp cx, 0x39
ja 0x438457
inc eax
inc eax
cmp word [eax], di
jne 0x438441
xor ecx, ecx
cmp esi, edi
mov esi, dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov word [eax], cx
je 0x438499
jmp 0x438474
cmp cx, 0x30
jb 0x43848d
cmp cx, 0x39
ja 0x43847e
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, di
jne 0x438468
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x43848d
cmp cx, 0x39
jbe 0x438491
inc eax
inc eax
jmp 0x43847e
push eax
call esi
mov ecx, dword [ebp - 0x7c]
mov dword [ecx], eax
lea eax, [ebp + 0x788]
push eax
call esi
jmp 0x4384a6
xor eax, eax
mov ecx, dword [ebp + 0xf88]
pop edi
xor ecx, ebp
pop esi
call fcn.00453655
add ebp, 0xf8c
leave
ret 4
Function at 0x43882d
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, eax
lea edi, [esi + 0x9c]
mov ecx, edi
call fcn.004383ab
cmp dword [edi], 0
mov dword [ebp - 8], eax
jne 0x438858
mov ecx, dword [esi + 0x98]
mov dword [edi], ecx
test eax, eax
jl 0x438870
mov ebx, dword [esi + 0x1ac]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0x18]
mov eax, dword [ebp - 8]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x88], eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x438940
push dword [edi]
mov ecx, esi
push dword [esi + 0x88]
call fcn.00437b78
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.00452c78
mov ebx, eax
pop ecx
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x43891e
mov eax, dword [ebp - 4]
inc eax
push eax
push 0
push ebx
call fcn.0045f360
and dword [ebp - 8], 0
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x43896c
push dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp - 8]
call fcn.00438730
test al, al
je 0x43895a
lea ebx, [esi + 0x1ac]
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 8]
test al, al
je 0x43895a
push dword [ebp - 8]
mov ebx, dword [ebx]
push dword [ebp - 0xc]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
push dword [ebp - 0xc]
add dword [ebx + 0x24], eax
call fcn.00453b90
pop ecx
cmp dword [ebp - 4], 0
ja 0x438879
push dword [edi]
mov ecx, esi
push dword [esi + 0x88]
call fcn.00437b78
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x120], 0x26
mov dword [esi + 0x118], eax
xor al, al
jmp 0x438939
mov dword [esi + 0x120], 0x2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x438950
mov dword [esi + 0x120], 0x28
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi + 0x118], eax
call fcn.00453b90
pop ecx
jmp 0x438956

Function at 0x438b61
Capabilities:
Initialize winhttp library

Disassembly:
push edi
xor edi, edi
cmp dword [esi + 4], edi
jne 0x438ba9
lea eax, [esi + 0x128]
cmp dword [eax + 0x18], 8
jb 0x438b7a
mov eax, dword [eax + 4]
jmp 0x438b7d
add eax, 4
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 4], eax
cmp eax, edi
jne 0x438ba9
mov dword [esi + 0x120], 0x2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x118], eax
xor al, al
pop edi
ret
mov al, 1
pop edi
ret

Function at 0x438bad
Capabilities:
Set http header

Disassembly:
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x438bf1
cmp dword [eax + 0x18], 8
jb 0x438bbf
mov eax, dword [eax + 4]
jmp 0x438bc2
add eax, 4
push 0x1000000
push ecx
push eax
push dword [esp + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x438bf1
mov dword [esi + 0x120], 0x2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x118], eax
xor al, al
jmp 0x438bf3
mov al, 1
ret 4
Function at 0x43abce
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x474493
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4a0590]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x4a0590]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
push ebx
mov esi, edi
call fcn.0043af7b
lea esi, [edi + 0x2c]
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [edi + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, str.POST
cmp byte [edi + 0xd], bl
jne 0x43ac38
mov eax, 0x485be8
push eax
lea esi, [esp + 0x48]
call fcn.004095a2
mov dword [esp + 0x70], ebx
mov byte [esp + 0x18], bl
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [edi + 0x1c]
mov eax, dword [edi + 0x1c]
push dword [esp + 0x1c]
mov byte [esp + 0x74], 0
cmp eax, dword [edi + 0x20]
jg 0x43ad6f
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, edi
call fcn.0043aa56
xor ebx, ebx
xor esi, esi
cmp byte [esp + 0x18], bl
jne 0x43adba
cmp esi, ebx
je 0x43ac96
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0043ab28
mov al, byte [edi + 0xf]
cmp byte [edi + 0xc], bl
mov byte [esp + 0x20], al
push dword [esp + 0x20]
mov byte [esp + 0x28], al
push dword [esp + 0x28]
sete al
movzx eax, al
push eax
mov eax, dword [edi + 0x44]
lea ecx, [esp + 0x50]
call fcn.00437a51
inc esi
cmp esi, 0x64
mov byte [esp + 0x18], al
jl 0x43ac7d
cmp al, bl
jne 0x43adba
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x43ac4a
add eax, 4
push eax
lea esi, [esp + 0x2c]
call fcn.0040ba81
mov byte [esp + 0x70], 2
mov esi, dword [edi + 0x14]
call fcn.0043b356
mov ebx, 0x4a86c8
push ebx
push 0x30c
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x43ad58
mov esi, 0x4a80b0
push esi
push 0
push 0x485de8
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x43ad58
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x43ad50
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
push 1
lea esi, [esp + 0x30]
mov byte [esp + 0x78], 0
call fcn.004095f2
jmp 0x43ac4a
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 0x44]
push dword [eax + 0x118]
push dword [eax + 0x120]
push dword [esp + 0x20]
mov ecx, edi
call fcn.0043add8
push 0
push 1
lea esi, [esp + 0x4c]
call fcn.004095f2
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00453655
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x124]
cmp eax, 0x12c
jl 0x43ad75
cmp eax, 0x1f4
jge 0x43ad75
push eax
push 0x50
push 0
jmp 0x43ad88
Function at 0x43af28
Capabilities:
Terminate thread

Disassembly:
cmp dword [edi + 0x18], 0
je 0x43af5b
push esi
mov esi, dword [edi + 0x44]
call fcn.00439030
mov esi, dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp eax, esi
je 0x43af4d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x18], 0
pop esi
ret

Function at 0x43b1ab
Capabilities:
Create directory

Disassembly:
push ebx
xor ebx, ebx
test byte [esp + 8], 1
push esi
mov esi, ecx
je 0x43b1b5
mov ebx, closesocket
test byte [esp + 0xc], 6
je 0x43b1db
cmp dword [esi + 0x44], 8
jb 0x43b1c7
mov eax, dword [esi + 0x30]
jmp 0x43b1ca
lea eax, [esi + 0x30]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
or ebx, 0x40000000
cmp dword [esi + 0x60], 8
jb 0x43b1e6
mov eax, dword [esi + 0x4c]
jmp 0x43b1e9
lea eax, [esi + 0x4c]
xor ecx, ecx
cmp dword [esp + 0xc], 2
push 0
setne cl
push 0x80
lea ecx, [ecx + ecx + 2]
push ecx
push 0
push 1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ecx, ecx
cmp eax, 0xffffffff
mov dword [esi + 0x28], eax
setne cl
pop esi
mov al, cl
pop ebx
ret 4
Function at 0x43bb24
Capabilities:
Get session user name

Disassembly:
push 0x440
mov eax, 0x4721b4
call fcn.00459c76
mov eax, dword [ebp + 8]
and dword [ebp - 0x428], 0
mov dword [ebp - 0x418], eax
mov eax, edi
mov dword [ebp - 0x44c], edi
call fcn.0043bdc9
and dword [ebp - 4], 0
lea eax, [ebp - 0x41c]
push eax
xor ebx, ebx
lea eax, [ebp - 0x414]
inc ebx
push eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x41c], 0x200
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0x22
mov esi, edi
call fcn.004368cc
push str._env
push edi
call fcn.0040baa6
push str.ALL_USERS_DESKTOP
push edi
call fcn.0040baa6
push 0x3d
call fcn.0040c1c7
push str.ALL_USERS_DESKTOP
lea eax, [ebp - 0x448]
call fcn.0043bde9
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x424]
add ebx, 0x20
push eax
mov dword [ebp - 0x418], ebx
call fcn.0043c021
mov esi, eax
call fcn.00440e19
push 0xffffffffffffffff
add eax, 0x20
push 0
mov esi, edi
call fcn.0040cb6f
lea eax, [ebp - 0x448]
mov byte [ebp - 4], 0
call fcn.0043b39a
xor ebx, ebx
push 0xa
inc ebx
call fcn.0040c1c7
push str.USER_DESKTOP
push edi
call fcn.0040baa6
push 0x3d
call fcn.0040c1c7
push str.USER_DESKTOP
lea eax, [ebp - 0x448]
call fcn.0043bde9
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x424]
push eax
mov dword [ebp - 4], 2
call fcn.0043c021
mov esi, eax
call fcn.00440e19
push 0xffffffffffffffff
add eax, 0x20
push 0
mov esi, edi
call fcn.0040cb6f
lea eax, [ebp - 0x448]
mov byte [ebp - 4], 0
call fcn.0043b39a
xor ebx, ebx
push 0xa
inc ebx
call fcn.0040c1c7
push str.ALL_USERS_START_MENU_PROGRAMS
push edi
call fcn.0040baa6
push 0x3d
call fcn.0040c1c7
push str.ALL_USERS_START_MENU_PROGRAMS
lea eax, [ebp - 0x448]
call fcn.0043bde9
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x424]
push eax
mov dword [ebp - 4], 3
call fcn.0043c021
mov esi, eax
call fcn.00440e19
push 0xffffffffffffffff
add eax, 0x20
push 0
mov esi, edi
call fcn.0040cb6f
lea eax, [ebp - 0x448]
mov byte [ebp - 4], 0
call fcn.0043b39a
xor ebx, ebx
push 0xa
inc ebx
call fcn.0040c1c7
push str.USER_START_MENU_PROGRAMS
push edi
call fcn.0040baa6
push 0x3d
call fcn.0040c1c7
push str.USER_START_MENU_PROGRAMS
lea eax, [ebp - 0x448]
call fcn.0043bde9
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x424]
push eax
mov dword [ebp - 4], 4
call fcn.0043c021
mov esi, eax
call fcn.00440e19
push 0xffffffffffffffff
add eax, 0x20
push 0
mov esi, edi
call fcn.0040cb6f
lea eax, [ebp - 0x448]
mov byte [ebp - 4], 0
call fcn.0043b39a
xor ebx, ebx
push 0xa
inc ebx
call fcn.0040c1c7
push str.B1_USER_NAME
push edi
call fcn.0040baa6
push 0x3d
call fcn.0040c1c7
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.0040baa6
push 0x22
call fcn.0040c1c7
mov eax, edi
call fcn.00459cf9
ret 4
Function at 0x43e147
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x472ee1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
mov eax, dword [0x4a0590]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push 0x485f4c
lea ebx, [esp + 0x10]
call fcn.0044088e
pop ecx
and dword [esp + 0x38], 0
cmp dword [eax + 0x18], 8
jb 0x43e190
mov eax, dword [eax + 4]
jmp 0x43e193
add eax, 4
push dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push eax
push esi
call fcn.0043df10
lea eax, [esp + 0xc]
call fcn.0043b39a
mov dword [esi], vtable.CInstallHandler.0
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43e21d
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x472ee1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
mov eax, dword [0x4a0590]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push str.Package
lea ebx, [esp + 0x10]
call fcn.0044088e
pop ecx
and dword [esp + 0x38], 0
cmp dword [eax + 0x18], 8
jb 0x43e266
mov eax, dword [eax + 4]
jmp 0x43e269
add eax, 4
push dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push eax
push esi
call fcn.0043df10
lea eax, [esp + 0xc]
call fcn.0043b39a
mov dword [esi], vtable.CPackageHandler.0
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43e2f3
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x472ee1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
mov eax, dword [0x4a0590]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push str.PackageGroup
lea ebx, [esp + 0x10]
call fcn.0044088e
pop ecx
and dword [esp + 0x38], 0
cmp dword [eax + 0x18], 8
jb 0x43e33c
mov eax, dword [eax + 4]
jmp 0x43e33f
add eax, 4
push dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push eax
push esi
call fcn.0043df10
lea eax, [esp + 0xc]
call fcn.0043b39a
mov dword [esi], vtable.CPackageGroupHandler.0
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43e3c9
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x472ee1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
mov eax, dword [0x4a0590]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push str.Statistic
lea ebx, [esp + 0x10]
call fcn.0044088e
pop ecx
and dword [esp + 0x38], 0
cmp dword [eax + 0x18], 8
jb 0x43e412
mov eax, dword [eax + 4]
jmp 0x43e415
add eax, 4
push dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push eax
push esi
call fcn.0043df10
lea eax, [esp + 0xc]
call fcn.0043b39a
mov dword [esi], vtable.CStatisticHandler.0
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 8