joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404280
Capabilities:
Create service
Persist via windows service

Disassembly:
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ecx, dword [esp + 4]
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
push 2
push 0x10
push 0xa0000000
push str.Microsoft_.NET_Framework_MGEN_v4.0.30318_X86
push str.dr_optimization_v4.0.30318_32
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
ret

Function at 0x407c80
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x4668f0]
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 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]
test eax, eax
jne 0x407cdf
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0043432c
add esp, 0x14
ret
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push ebx
mov dword [esp + 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x407cfc
mov dword [esp + 4], ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [esp + 4], ebx
mov ecx, dword [esp + 0x14]
setne al
pop ebx
xor ecx, esp
call fcn.0043432c
add esp, 0x14
ret
Function at 0x408e30
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 0xffffffffffffffff
push 0x454fb0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4668f0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea ecx, [esp + 0x14]
call fcn.00408d00
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x467aa0
mov dword [esp + 0x44], 0
call fcn.0042bf10
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x2c], 0x10
jb 0x408e91
mov eax, dword [esp + 0x18]
push eax
call fcn.00434321
add esp, 4
mov eax, dword [0x468de0]
test eax, eax
je 0x408ea2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [0x468d90]
mov dword [0x468de0], 0
test eax, eax
je 0x408ebd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [0x468d90], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x408f19
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jl 0x408f19
push 0x468d90
push 0x45883c
push 1
push 0
push 0x45890c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x408f2d
call fcn.00408df0
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
lea eax, [esp + 0x10]
push eax
mov edi, 0x45be30
call fcn.00408310
mov dword [esp + 0x38], 1
mov eax, dword [eax]
test eax, eax
je 0x408f4e
mov ecx, dword [eax]
jmp 0x408f50
xor ecx, ecx
mov eax, dword [0x468d90]
mov edx, dword [eax]
push 0x468de0
push 0
push 0
push 0x80
push 0
push 0
push 0
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.004083b0
test esi, esi
jl 0x408f14
mov ecx, dword [0x468de0]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jl 0x408f14
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
Function at 0x409e20
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x4528bb
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4668f0]
xor eax, esp
mov dword [esp + 0x220], eax
push esi
mov eax, dword [0x4668f0]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0xc], 0
push ecx
mov dword [esp + 0x10], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor edx, edx
lea eax, [esp + 0x28]
mov word [esp + 0x10], dx
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409e96
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x2c]
lea esi, [esp + 0x10]
call fcn.0042d9a0
mov eax, esi
push eax
mov esi, edi
mov dword [esp + 0x238], 0
call fcn.00402ae0
add esp, 4
cmp dword [esp + 0x24], 8
jb 0x409edf
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00434321
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0043432c
add esp, 0x230
ret
Function at 0x4184f0
Capabilities:
Get disk information
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x452c71
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4668f0]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push ebp
push esi
mov eax, dword [0x4668f0]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x18], ebx
push ebx
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
push 0x45b404
mov ecx, edi
mov dword [esp + 0x2c], edi
mov byte [edi + 4], bl
call fcn.0042d2b0
push ebx
mov dword [esp + 0x8c], ebx
mov esi, 1
push 0x45b404
mov ecx, edi
mov dword [esp + 0x20], esi
call fcn.0042d2b0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
lea ebp, [ebx + 0x10]
mov eax, dword [esp + 0x1c]
shr eax, cl
and eax, esi
je 0x4186fa
push ebx
push 0x45b404
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
call fcn.0042d2b0
mov dword [esp + 0x88], esi
cmp dword [esp + 0x5c], esi
jae 0x4185c8
mov ecx, dword [esp + 0x58]
push ecx
push esi
lea ecx, [esp + 0x4c]
call fcn.0042d570
mov al, byte [esp + 0x14]
mov ecx, dword [esp + 0x48]
add al, 0x41
cmp dword [esp + 0x5c], ebp
jae 0x4185dc
lea ecx, [esp + 0x48]
mov byte [ecx], al
mov eax, dword [esp + 0x48]
mov dword [esp + 0x58], esi
cmp dword [esp + 0x5c], ebp
jae 0x4185f0
lea eax, [esp + 0x48]
push esi
mov byte [eax + 1], bl
push 0x45bc24
lea eax, [esp + 0x4c]
call fcn.0042bd50
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x5c], ebp
jae 0x418610
lea eax, [esp + 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push eax
call esi
cmp eax, 2
je 0x418638
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x5c], ebp
jae 0x41862c
lea eax, [esp + 0x48]
push eax
call esi
cmp eax, 3
jne 0x4186db
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x3c], esp
push 1
xor ecx, ecx
lea edx, [esp + 0x64]
call fcn.0042b6b0
lea edx, [esp + 0x7c]
push edx
call fcn.00417220
add esp, 0x20
mov byte [esp + 0x88], 2
mov edx, dword [esp + 0x64]
cmp dword [esp + 0x78], ebp
jae 0x418671
lea edx, [esp + 0x64]
xor eax, eax
mov ecx, 0x45b404
call section..text
cmp eax, ebx
jne 0x41868e
xor eax, eax
cmp dword [esp + 0x74], ebx
setne al
cmp eax, ebx
je 0x4186c8
lea eax, [esp + 0x60]
push 0xd
push eax
lea esi, [esp + 0x30]
call fcn.0042f3f0
add esp, 8
push ebx
push eax
or eax, 0xffffffff
mov esi, edi
mov byte [esp + 0x90], 3
call fcn.0042d1c0
cmp dword [esp + 0x40], ebp
jb 0x4186c8
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00434321
add esp, 4
cmp dword [esp + 0x78], ebp
jb 0x4186db
mov edx, dword [esp + 0x64]
push edx
call fcn.00434321
add esp, 4
mov byte [esp + 0x88], bl
cmp dword [esp + 0x5c], ebp
jb 0x4186f5
mov eax, dword [esp + 0x48]
push eax
call fcn.00434321
add esp, 4
mov esi, 1
mov ecx, dword [esp + 0x14]
add ecx, esi
cmp ecx, 0x1a
mov dword [esp + 0x14], ecx
jl 0x41857f
mov eax, edi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.0043432c
add esp, 0x7c
ret
Function at 0x41c5b0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x451cd9
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4668f0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
push 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41c601
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x41c605
mov edi, dword [esp + 0x10]
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], 1
test edi, edi
je 0x41c644
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c630
sub eax, edx
sar eax, 1
push eax
mov eax, edi
jmp 0x41c64b
push 0
mov eax, 0x45b3f8
call fcn.0042d9a0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x41dfe0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x451ca0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4668f0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x68]
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x14], ebx
mov edx, 1
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x34]
mov edi, 8
cmp dword [esp + 0x48], edi
jae 0x41e02f
lea ecx, [esp + 0x34]
mov ebp, dword [esp + 0x50]
cmp dword [esp + 0x64], edi
jae 0x41e03d
lea ebp, [esp + 0x50]
lea edi, [esp + 0x14]
push edi
push edx
push ebx
push ecx
push eax
mov dword [esp + 0x30], 0x3e8
mov dword [esp + 0x2c], edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e137
push 0x800
call fcn.00432f0b
mov edx, dword [esp + 0x18]
add esp, 4
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push edi
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, 7
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebp
test eax, eax
jne 0x41e0f2
mov word [esi + 4], ax
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41e0a0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.0042d9a0
mov edi, 8
cmp dword [esp + 0x48], edi
jb 0x41e0cf
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00434321
add esp, 4
xor edx, edx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], dx
cmp dword [esp + 0x64], edi
jb 0x41e18d
mov eax, dword [esp + 0x50]
push eax
jmp 0x41e185
xor ecx, ecx
push ebx
mov eax, 0x45b3f8
mov word [esi + 4], cx
call fcn.0042d9a0
mov edi, 8
cmp dword [esp + 0x48], edi
jb 0x41e11b
mov edx, dword [esp + 0x34]
push edx
call fcn.00434321
add esp, 4
xor eax, eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], ax
cmp dword [esp + 0x64], edi
jb 0x41e18d
mov ecx, dword [esp + 0x50]
push ecx
jmp 0x41e185
mov ebp, 7
xor edx, edx
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push ebx
mov eax, 0x45b3f8
mov word [esi + 4], dx
call fcn.0042d9a0
mov edi, 8
cmp dword [esp + 0x48], edi
jb 0x41e16b
mov eax, dword [esp + 0x34]
push eax
call fcn.00434321
add esp, 4
xor ecx, ecx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], cx
cmp dword [esp + 0x64], edi
jb 0x41e18d
mov edx, dword [esp + 0x50]
push edx
call fcn.00434321
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x41e1b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
push ebx
mov ebx, 8
push esi
push edi
cmp dword [esp + 0x38], ebx
jae 0x41e1c9
lea eax, [esp + 0x24]
mov edi, dword [esp + 0x40]
cmp dword [esp + 0x54], ebx
jae 0x41e1d7
lea edi, [esp + 0x40]
lea edx, [esp + 0x10]
push edx
push 1
push 0
push eax
mov esi, 4
push ecx
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e264
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push edi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e264
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x38], ebx
jb 0x41e231
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00434321
add esp, 4
xor edx, edx
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], dx
cmp dword [esp + 0x54], ebx
jb 0x41e25b
mov eax, dword [esp + 0x40]
push eax
call fcn.00434321
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
cmp dword [esp + 0x38], ebx
jb 0x41e277
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00434321
add esp, 4
xor edx, edx
mov word [esp + 0x24], dx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], 7
cmp dword [esp + 0x54], ebx
jb 0x41e29d
mov eax, dword [esp + 0x40]
push eax
call fcn.00434321
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret

Function at 0x41e2b0
Capabilities:
Create thread
Terminate thread

Disassembly:
sub esp, 8
mov eax, dword [0x468ddc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [0x468ddc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
mov dword [0x468df4], 0
mov dword [esp + 4], 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 4]
push edx
push 0
lea eax, [esp + 8]
push eax
push 0x41dcc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x468ddc], eax
add esp, 8
ret

Function at 0x41e310
Capabilities:
Create thread
Terminate thread

Disassembly:
sub esp, 8
mov eax, dword [0x468dd0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [0x468dd0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
mov dword [0x468dd4], 0
mov dword [esp + 4], 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 4]
push edx
push 0
lea eax, [esp + 8]
push eax
push 0x41dc90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x468dd0], eax
add esp, 8
ret
Function at 0x41ec50
Capabilities:
Create thread

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
push 0
lea ecx, [esp + 8]
push ecx
push 0x41dcc0
push 0
push 0
mov dword [esp + 0x18], 0xa
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x468ddc], eax
add esp, 8
ret

Function at 0x41ec80
Capabilities:
Create thread

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
push 0
lea ecx, [esp + 8]
push ecx
push 0x41cf10
push 0
push 0
mov dword [esp + 0x18], 0xa
call dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 8
ret

Function at 0x41ecb0
Capabilities:
Create thread

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
push 0
lea ecx, [esp + 8]
push ecx
push 0x419950
push 0
push 0
mov dword [esp + 0x18], 0xa
call dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 8
ret

Function at 0x41ece0
Capabilities:
Create thread

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
push 0
lea ecx, [esp + 8]
push ecx
push 0x41bfa0
push 0
push 0
mov dword [esp + 0x18], 0xa
call dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 8
ret

Function at 0x41ed10
Capabilities:
Create thread

Disassembly:
sub esp, 8
cmp byte [0x468e4c], 0
jne 0x41ed46
lea eax, [esp + 4]
push eax
push 0
lea ecx, [esp + 8]
push ecx
push 0x41a700
push 0
push 0
mov byte [0x468e4c], 1
mov dword [esp + 0x18], 0xa
call dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 8
ret
Function at 0x42b1f0
Capabilities:
Create thread

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
lea ecx, [esp + 4]
push ecx
mov dword [0x468df8], eax
mov dword [esp + 8], str.dr_optimization_v4.0.30318_32
mov dword [esp + 0xc], 0x42b270
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x42b262
lea edx, [esp]
push edx
push eax
lea eax, [esp + 0x20]
push eax
push 0x42ad00
push 0
push 0
mov dword [esp + 0x30], 0xa
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x468d8c], eax
call fcn.00404790
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10

Function at 0x42f490
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x452108
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x4668f0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.0042c6a0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x42f4e6
sub eax, edx
sar eax, 1
push eax
push ebx
lea eax, [esp + 0x14]
call fcn.0042d880
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.0042c6a0
cmp dword [esp + 0x24], 8
jb 0x42f52e
mov edx, dword [esp + 0x10]
push edx
call fcn.00434321
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x43217b
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x45142b
call fcn.00438745
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
je 0x43228d
cmp byte [esi + 0x42], bl
je 0x43228d
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 4]
movzx eax, ax
cmp di, ax
jne 0x4321b7
xor al, al
jmp 0x43228f
push ebx
push 8
lea ecx, [ebp - 0x2c]
call fcn.0042fda0
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042b580
mov ecx, eax
call fcn.0042bbc0
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042b580
mov ecx, eax
call fcn.0042bbc0
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
add edi, ebx
push edi
push dword [ebp - 0x34]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x432227
dec eax
je 0x43222b
dec eax
dec eax
je 0x432289
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0042c4b0
mov al, bl
jmp 0x43228f
mov byte [esi + 0x42], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042b580
mov ecx, eax
call fcn.0042bbc0
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x43226b
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042b580
mov ecx, eax
call fcn.0042bbc0
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00436f1e
add esp, 0x10
cmp edi, eax
jne 0x432215
cmp byte [esi + 0x42], 0
je 0x432289
test edi, edi
jne 0x4321c5
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0042be60
jmp 0x4321c5
mov bl, 1
jmp 0x432217
mov al, 1
call fcn.0043878f
ret
Function at 0x432336
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x451502
call fcn.00438745
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x432360
lea eax, [ebp + 8]
push eax
call fcn.00431ab7
pop ecx
jmp 0x4324db
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, ebx
je 0x43238e
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x43238e
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x4324db
mov eax, dword [esi + 0x4c]
cmp eax, ebx
je 0x4324d6
cmp dword [esi + 0x3c], ebx
jne 0x4323b7
push eax
push edi
call fcn.00431b24
pop ecx
test al, al
pop ecx
movzx eax, di
jne 0x4324db
jmp 0x4324d6
movzx eax, di
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
call fcn.0042fda0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0042b580
mov ecx, eax
call fcn.0042bbc0
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042b580
mov ecx, eax
call fcn.0042bbc0
lea edx, [ebp - 0x38]
add edi, ebx
push edx
lea ebx, [esi + 0x44]
jmp 0x4324a8
cmp eax, 1
jg 0x4324e3
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042b580
mov ecx, eax
call fcn.0042bbc0
mov edi, dword [ebp - 0x38]
sub edi, eax
je 0x43244d
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042b580
mov ecx, eax
call fcn.0042bbc0
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00436f1e
add esp, 0x10
cmp edi, eax
jne 0x4324ca
lea eax, [ebp - 0x30]
mov byte [esi + 0x42], 1
cmp dword [ebp - 0x3c], eax
jne 0x432513
test edi, edi
ja 0x432473
cmp dword [ebp - 0x18], 0x20
push 0
lea ecx, [ebp - 0x2c]
jae 0x4324cf
push 8
call fcn.0042be60
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042b580
mov ecx, eax
call fcn.0042bbc0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042b580
mov ecx, eax
call fcn.0042bbc0
lea edx, [ebp - 0x38]
push edx
mov edx, dword [ebp - 0x40]
add edi, edx
mov ecx, dword [esi + 0x3c]
push edi
push eax
lea edx, [ebp - 0x3c]
push edx
lea edx, [ebp - 0x2e]
push edx
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x34], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
test eax, eax
jge 0x432404
push 0
lea ecx, [ebp - 0x2c]
push 1
call fcn.0042c4b0
mov eax, 0xffff
call fcn.0043878f
ret 4
cmp eax, 3
jne 0x4324ca
push dword [esi + 0x4c]
push dword [ebp - 0x30]
call fcn.00431b24
movzx esi, word [ebp + 8]
pop ecx
pop ecx
test al, al
jne 0x432502
mov esi, 0xffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0042c4b0
mov ax, si
jmp 0x4324db
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0042c4b0
mov ax, word [ebp + 8]
jmp 0x4324db

Function at 0x43432c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4668f0]
jne 0x434336
repz ret
jmp fcn.0043c3cc