joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a7a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x50f108
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor esi, esi
push 0xffffffffffffffff
push esi
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
call fcn.00401610
push 0x24
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], esi
call fcn.0043b600
mov eax, dword [esp + 0x10]
mov esi, 8
add esp, 4
cmp dword [esp + 0x20], esi
jae 0x43a818
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43a83f
test al, 0x10
jne 0x43a83f
cmp dword [esp + 0x20], esi
jb 0x43a83b
mov eax, dword [esp + 0xc]
push eax
call fcn.004e7d7e
add esp, 4
mov al, 1
jmp 0x43a854
cmp dword [esp + 0x20], esi
jb 0x43a852
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004e7d7e
add esp, 4
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004e7d6f
add esp, 0x2c
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x50f108
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor esi, esi
push 0xffffffffffffffff
push esi
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
call fcn.00401610
push 0x24
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], esi
call fcn.0043b600
mov eax, dword [esp + 0x10]
mov esi, 8
add esp, 4
cmp dword [esp + 0x20], esi
jae 0x43a8e8
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43a90f
test al, 0x10
je 0x43a90f
cmp dword [esp + 0x20], esi
jb 0x43a90b
mov eax, dword [esp + 0xc]
push eax
call fcn.004e7d7e
add esp, 4
mov al, 1
jmp 0x43a924
cmp dword [esp + 0x20], esi
jb 0x43a922
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004e7d7e
add esp, 4
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004e7d6f
add esp, 0x2c
ret

Function at 0x43a940
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [edi + 0x18], 8
push esi
lea esi, [edi + 4]
jb 0x43a94e
mov eax, dword [esi]
jmp 0x43a950
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
cmp dword [edi + 0x18], 8
jb 0x43a964
mov ecx, dword [esi]
jmp 0x43a966
mov ecx, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x18], 8
jb 0x43a976
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
pop esi
ret
Function at 0x43aea0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x510e98
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x48]
mov eax, dword [ebx + 0x14]
xor edi, edi
test eax, eax
mov dword [esp + 0x14], eax
jbe 0x43afc9
lea ebp, [ebx + 4]
lea ebx, [ebx]
cmp edi, dword [ebx + 0x14]
jbe 0x43aefa
call fcn.004e89bf
mov esi, 8
cmp dword [ebx + 0x18], esi
jb 0x43af09
mov eax, dword [ebp]
jmp 0x43af0b
mov eax, ebp
cmp word [eax + edi*2], 0x2f
je 0x43af33
cmp edi, dword [ebx + 0x14]
jbe 0x43af1c
call fcn.004e89bf
cmp dword [ebx + 0x18], esi
jb 0x43af26
mov eax, dword [ebp]
jmp 0x43af28
mov eax, ebp
cmp word [eax + edi*2], 0x5c
jne 0x43afbc
push edi
xor ecx, ecx
lea esi, [esp + 0x1c]
mov edx, ebx
call fcn.00406be0
xor esi, esi
mov dword [esp + 0x40], esi
cmp dword [esp + 0x2c], esi
je 0x43af8f
lea ecx, [esp + 0x18]
push ecx
call fcn.0043a6d0
add esp, 4
test al, al
jne 0x43af8f
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
jae 0x43af6d
lea eax, [esp + 0x1c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x43af8f
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x43afab
mov edx, dword [esp + 0x1c]
push edx
jmp 0x43afa3
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x43afab
mov eax, dword [esp + 0x1c]
push eax
call fcn.004e7d7e
add esp, 4
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], esi
mov word [esp + 0x1c], si
add edi, 1
cmp edi, dword [esp + 0x14]
jb 0x43aef0
push ebx
call fcn.0043a6d0
add esp, 4
test al, al
jne 0x43aff5
cmp dword [ebx + 0x18], 8
jb 0x43afe1
mov eax, dword [ebx + 4]
jmp 0x43afe4
lea eax, [ebx + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x43aff5
xor al, al
jmp 0x43affe
push ebx
call fcn.0043a870
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004e7d6f
add esp, 0x30
ret

Function at 0x43c040
Capabilities:
Set registry value

Disassembly:
mov eax, edx
push esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43c046
mov ecx, dword [esp + 8]
sub eax, esi
sar eax, 1
add eax, eax
push eax
push edx
mov edx, dword [edi]
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop esi
je 0x43c078
mov dword [edi + 4], eax
xor al, al
ret 4
mov al, 1
ret 4
Function at 0x43c0b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50b158
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [eax]
xor ebx, ebx
mov dword [esp + 0x14], vtable.GameMgr::GMBuffer_unsigned_char_.0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x38], ebx
call fcn.004473e0
test al, al
jne 0x43c115
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x43c145
push eax
jmp 0x43c13d
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov eax, dword [ebp + 0xc]
push edx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x43c15c
cmp esi, ebx
mov dword [edi + 4], eax
je 0x43c145
push esi
call fcn.004e7d6a
add esp, 4
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp esi, ebx
je 0x43c169
push esi
call fcn.004e7d6a
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x43c180
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
push 0x400
mov esi, eax
mov dword [esp + 0x14], 1
xor bl, bl
call fcn.004e9924
push 0x400
mov edi, eax
push 0
push edi
call fcn.004f1960
mov edx, dword [esp + 0x2c]
add esp, 0x10
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebp]
push edi
lea ecx, [esp + 0x18]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x30], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x43c1f6
mov dword [ebp + 4], eax
mov eax, esi
call fcn.0041d530
push edi
call fcn.004e8e42
add esp, 4
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, edi
mov bl, 1
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43c200
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.00407330
push edi
call fcn.004e8e42
add esp, 4
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret 8
Function at 0x43c230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5137f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi]
push ebx
lea ecx, [esp + 0x20]
push ecx
push ebx
push edx
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x43c28b
mov dword [esi + 4], eax
jmp 0x43c2f0
mov edi, dword [esp + 0x14]
lea esi, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.GameMgr::GMBuffer_unsigned_char_.0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.00401110
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x38], ebx
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
mov edx, dword [ebp + 8]
push esi
lea eax, [esp + 0x20]
push eax
mov dword [edi], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx]
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x43c307
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
cmp esi, ebx
je 0x43c2f0
push esi
call fcn.004e7d6a
add esp, 4
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x14]
push esi
push edi
call fcn.00446250
test al, al
je 0x43c2e3
cmp esi, ebx
je 0x43c323
push esi
call fcn.004e7d6a
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43dee0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x178
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x174], eax
mov eax, dword [edi]
cmp eax, 0xffffffff
push ebx
mov ebx, dword [esp + 0x180]
push esi
je 0x43df35
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x40
lea edx, [esp + 0x144]
push edx
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43df35
mov ecx, dword [esp + 0xc]
test ecx, ecx
seta al
test al, al
jne 0x43df4f
or eax, 0xffffffff
pop esi
pop ebx
mov ecx, dword [esp + 0x174]
xor ecx, esp
call fcn.004e7d6f
add esp, 0x178
ret
cmp ecx, 0x40
jne 0x43df35
cmp word [esp + 0x138], 0x5a4d
jne 0x43df35
mov eax, dword [esp + 0x174]
cdq
push 0
push edx
push eax
lea esi, [esp + 0x1c]
mov eax, edi
call fcn.0043ec40
test al, al
je 0x43df35
push 0xf8
lea esi, [esp + 0x10]
lea eax, [esp + 0x1c]
mov ecx, edi
call fcn.0043eb60
test al, al
je 0x43df35
cmp dword [esp + 0xc], 0xf8
jne 0x43df35
cmp dword [esp + 0x18], 0x4550
jne 0x43df35
movzx eax, word [esp + 0x1e]
lea eax, [eax + eax*4 - 5]
add eax, eax
push 1
add eax, eax
add eax, eax
push 0
push eax
lea esi, [esp + 0x1c]
mov eax, edi
call fcn.0043ec40
test al, al
je 0x43df35
push 0x28
lea esi, [esp + 0x10]
lea eax, [esp + 0x114]
mov ecx, edi
call fcn.0043eb60
test al, al
je 0x43df35
cmp dword [esp + 0xc], 0x28
jne 0x43df35
mov esi, dword [esp + 0x120]
mov ecx, dword [esp + 0x54]
xor edx, edx
mov eax, esi
div ecx
test edx, edx
jne 0x43e00e
mov eax, esi
jmp 0x43e014
add eax, 1
imul eax, ecx
mov ecx, dword [esp + 0x124]
add eax, ecx
mov ecx, dword [esp + 0xb4]
test ecx, ecx
mov dword [ebx], eax
je 0x43e03d
mov edx, dword [esp + 0xb0]
test edx, edx
je 0x43e03d
add ecx, edx
cmp ecx, eax
jb 0x43e03d
mov eax, ecx
mov ecx, dword [esp + 0x17c]
pop esi
pop ebx
xor ecx, esp
call fcn.004e7d6f
add esp, 0x178
ret
Function at 0x43e060
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebx]
xor esi, esi
cmp edi, esi
jne 0x43e082
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], esi
call fcn.0043dee0
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x43e077
xor ecx, ecx
cmp dword [esp + 0x10], edi
mov eax, esi
setne cl
mov byte [esp + 0xf], 0
mov dword [esp + 0x18], eax
inc ecx
mov dword [esp + 0x1c], ecx
je 0x43e077
jmp 0x43e0b9
xor esi, esi
cmp eax, esi
jle 0x43e0c1
mov edi, dword [esp + 0x10]
mov eax, dword [ebx]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x43e152
push esi
lea edx, [esp + 0x28]
mov ecx, edi
push edx
push ecx
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
jne 0x43e0f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x43e152
mov eax, dword [ebx]
mov dword [esp + 0x14], esi
lea esi, [ebx + 0x10]
test esi, esi
je 0x43e152
cmp dword [eax], 0xffffffff
je 0x43e152
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x1c
mov dword [esp + 0x20], 0
mov edx, dword [eax]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43e152
mov ecx, dword [esp + 0x14]
test ecx, ecx
seta al
test al, al
je 0x43e152
cmp ecx, 0x1c
jne 0x43e152
cmp byte [esi], 0x47
jne 0x43e152
cmp byte [ebx + 0x11], 0x4d
jne 0x43e152
cmp byte [ebx + 0x12], 0xee
jne 0x43e152
mov byte [esp + 0xf], 1
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
jb 0x43e0b7
cmp byte [esp + 0xf], 0
je 0x43e077
mov eax, dword [ebx]
push 1
push 0
push 0
lea esi, [esp + 0x2c]
call fcn.0043ec40
test al, al
je 0x43e077
cmp dword [ebx + 0x28], 0x11223344
mov dword [ebx + 0xc], edi
jne 0x43e077
cmp dword [ebx + 0x1c], 0
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x43e500
Capabilities:
Get common file path
Get startup folder

Disassembly:
sub esp, 0x210
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0x12]
push edi
push eax
mov esi, ecx
mov dword [esp + 0x14], edi
mov word [esp + 0x18], di
call fcn.004f1960
mov ecx, dword [esp + 0x228]
add esp, 0xc
push edi
push ecx
lea edx, [esp + 0x14]
push edx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov word [esi + 4], di
jne 0x43e565
push edi
push 0x51a1d4
jmp 0x43e585
lea eax, [esp + 0xc]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x43e570
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00407330
mov ecx, dword [esp + 0x214]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.004e7d6f
add esp, 0x210
ret
Function at 0x43e5b0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x50d2f8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
push 1
lea eax, [esp + 0x14]
mov edi, ecx
push eax
xor ebp, ebp
xor eax, eax
mov edx, edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], 0x25
call fcn.0041f9d0
cmp eax, 0xffffffff
push 0xffffffffffffffff
push ebp
push edi
jne 0x43e624
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
mov eax, esi
mov word [esi + 4], bp
call fcn.00401610
jmp 0x43e6f8
mov ebx, 7
lea eax, [esp + 0x24]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebp
mov word [esp + 0x28], bp
call fcn.00401610
mov dword [esp + 0x40], ebp
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [esp + 0x10], eax
jb 0x43e652
mov eax, dword [eax]
push ebp
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebp
mov dword [esp + 0x14], eax
jne 0x43e66c
push 0xffffffffffffffff
push ebp
mov dword [esi + 0x18], ebx
push edi
jmp 0x43e6d6
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e7330
add esp, 4
cmp dword [edi + 0x18], 8
mov ebx, eax
mov eax, dword [esp + 0x10]
jb 0x43e696
mov eax, dword [eax]
mov edi, dword [esp + 0x14]
lea ecx, [edi + 1]
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebp
jbe 0x43e6be
cmp eax, edi
ja 0x43e6be
lea edx, [esp + 0x18]
push edx
mov edx, ebx
mov word [ebx + eax*2], bp
call fcn.00406b00
push ebx
call fcn.004e7d6a
add esp, 4
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x20]
mov dword [esi + 0x18], 7
push eax
mov dword [esi + 0x14], ebp
mov eax, esi
mov word [esi + 4], bp
call fcn.00401610
cmp dword [esp + 0x30], 8
jb 0x43e6f8
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004e7d7e
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004e7d6f
add esp, 0x34
ret

Function at 0x43e720
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push edi
push 0x38
xor edi, edi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.004f1960
add esp, 0xc
mov dword [esp + 4], 0x3c
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp esi, edi
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
jne 0x43e776
mov dword [esp + 0x3c], edi
mov dword [esp + 8], edi
jmp 0x43e780
mov dword [esi], edi
mov dword [esp + 8], 0x40
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x43e7ab
cmp esi, edi
je 0x43e799
mov edx, dword [esp + 0x3c]
mov dword [esi], edx
mov eax, 0x20
cmp eax, dword [esp + 0x24]
pop edi
sbb eax, eax
neg eax
add esp, 0x3c
ret
xor al, al
pop edi
add esp, 0x3c
ret
Function at 0x43e7c0
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, 1
mov dword [esp + 4], eax
jne 0x43e83e
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x43e82f
mov dword [esp + 4], ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x14]
xor edx, edx
cmp eax, 1
sete dl
pop ebx
xor ecx, esp
mov al, dl
call fcn.004e7d6f
add esp, 0x14
ret

Function at 0x43e9e0
Capabilities:
Create thread
Resume thread

Disassembly:
push edi
mov edi, eax
mov eax, dword [edi]
test eax, eax
jne 0x43e9ed
xor al, al
pop edi
ret
cmp dword [eax + 4], 0
je 0x43e9e9
push esi
lea ecx, [eax + 0xc]
push ecx
push 4
push eax
push 0x43e8e0
push 0
push 0
call fcn.004eb334
mov edx, dword [edi]
mov dword [edx + 0x10], eax
mov eax, dword [edi]
add esp, 0x18
cmp dword [eax + 0x10], 0
jne 0x43ea42
or esi, 0xffffffff
mov dword [eax + 0x10], esi
mov edi, dword [edi]
mov eax, dword [edi + 0x10]
cmp eax, esi
je 0x43ea32
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x10], esi
pop esi
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
xor al, al
pop edi
ret
mov byte [eax + 8], 1
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x43ea64
mov esi, dword [edi]
call fcn.0043e970
mov edx, dword [edi]
mov byte [edx + 8], 0
pop esi
mov al, 1
pop edi
ret

Function at 0x43ebf0
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x43ebfc
xor al, al
pop ecx
ret
push esi
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43ec1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x43ec1f
xor al, al
pop esi
pop ecx
ret
mov edx, dword [esp + 4]
push 1
push 0
push 0
push edx
call fcn.004f5030
xor ecx, ecx
add eax, esi
adc edx, ecx
mov dword [edi], eax
mov dword [edi + 4], edx
mov al, 1
pop esi
pop ecx
ret
Function at 0x43ecf0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x50ef26
mov eax, dword fs:[0]
push eax
sub esp, 0x838
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x830], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x84c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x85c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea ecx, [esp + 0x44]
push ecx
push 0x3fe
mov dword [esp + 0x2c], eax
call ebp
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x43edbb
lea ecx, [esp + 0x44]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], ebx
cmp edi, 0x3fe
mov dword [esp + 0x854], ebx
jbe 0x43edc2
xor ecx, ecx
lea eax, [edi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e7330
mov esi, eax
push ebx
mov dword [esp + 0x28], esi
call fcn.004e7d6a
add esp, 8
push esi
push edi
call ebp
cmp eax, ebx
je 0x43edb2
cmp eax, edi
ja 0x43edb2
mov word [esi + eax*2], bx
mov word [esi + eax*2 + 2], bx
mov edi, eax
mov dword [esp + 0x18], esi
mov ecx, esi
jmp 0x43edcc
push esi
call fcn.004e7d6a
add esp, 4
xor al, al
jmp 0x43ee7f
mov word [esp + edi*2 + 0x44], bx
mov word [esp + edi*2 + 0x46], bx
xor eax, eax
xor ebp, ebp
cmp edi, ebx
jbe 0x43ee70
mov dword [esp + 0x1c], 2
mov edx, dword [esp + 0x1c]
cmp word [ecx + edx - 2], bx
jne 0x43ee60
cmp eax, ebp
je 0x43ee60
lea ecx, [ecx + eax*2]
mov eax, ecx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
lea esi, [eax + 2]
jmp 0x43ee10
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x43ee10
sub eax, esi
sar eax, 1
push eax
push ecx
lea esi, [esp + 0x30]
call fcn.00407330
mov eax, esi
mov esi, dword [esp + 0x24]
push eax
mov byte [esp + 0x858], 1
call fcn.00409760
mov byte [esp + 0x854], bl
cmp dword [esp + 0x40], 8
jb 0x43ee59
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004e7d7e
add esp, 4
mov ecx, dword [esp + 0x18]
lea eax, [ebp + 1]
add dword [esp + 0x1c], 2
add ebp, 1
cmp ebp, edi
jb 0x43ede0
mov edx, dword [esp + 0x20]
push edx
call fcn.004e7d6a
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x84c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x830]
xor ecx, esp
call fcn.004e7d6f
add esp, 0x844
ret
Function at 0x4480b0
Capabilities:
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x50b128
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [esp + 0x18], esi
push 4
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x2c], 0
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 2
push esi
mov dword [esp + 0x24], 0x7d0
call edi
push 4
lea ecx, [esp + 0x18]
push ecx
push 3
push esi
mov dword [esp + 0x24], 3
call edi
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x38]
call fcn.00448a50
add esp, 0xc
test esi, esi
mov bl, al
je 0x44814a
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, bl
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret