joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485300
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x48539d
push ebx
push esi
call fcn.004852bc
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00480858
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x48534a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x48539c
push edi
push eax
call fcn.0047bdd0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x48536a
call fcn.004796ae
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x48539b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00480858
add esp, 0x20
test eax, eax
jne 0x485389
push edi
call fcn.004796ae
jmp 0x485391
push ebx
call fcn.004796ae
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4853a0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4853b1
pop esi
ret
push ebx
push edi
push esi
call fcn.004852bc
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0047bdd0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4853d9
push ebx
push esi
push edi
call fcn.0043af70
add esp, 0xc
push 0
call fcn.004796ae
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x485cbe
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048564e

Function at 0x488b59
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0047a813
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x488bc8
cmp esi, dword [ebp - 4]
je 0x488bc3
cmp dword [ebp + 0xc], 0
je 0x488bc3
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x488ba0
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004886ab
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x488bca
xor eax, eax
inc eax
jmp 0x488bca
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x488c2f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4b7780]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0047a813
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0047a813
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x488ca6
cmp word [ecx], dx
je 0x488ca6
mov eax, dword [0x4af55c]
push edi
dec eax
push eax
push 0x4af448
call fcn.00488bce
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x488d19
cmp word [eax], dx
je 0x488d19
mov eax, dword [edi]
test eax, eax
je 0x488cca
cmp word [eax], dx
je 0x488cca
lea eax, [ebp - 0x10]
push eax
call fcn.004885b1
jmp 0x488cd3
lea eax, [ebp - 0x10]
push eax
call fcn.0048864c
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x488d43
mov eax, dword [0x4af444]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4af138
call fcn.00488bce
add esp, 0xc
test al, al
je 0x488d43
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x488d0e
cmp word [eax], di
je 0x488d0e
lea eax, [ebp - 0x10]
push eax
call fcn.004885b1
pop ecx
jmp 0x488d45
lea eax, [ebp - 0x10]
push eax
call fcn.0048864c
jmp 0x488d0b
mov eax, dword [edi]
test eax, eax
je 0x488d30
cmp word [eax], dx
je 0x488d30
lea eax, [ebp - 0x10]
push eax
call fcn.00488548
pop ecx
jmp 0x488d43
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x488e0e
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00488a53
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x488e0e
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x488e0e
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x488e0e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x488d9b
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0047ed6f
test ebx, ebx
je 0x488e09
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0047ed6f
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x488e0e
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x488e0e
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00492736
add esp, 0x10
xor eax, eax
inc eax
jmp 0x488e10
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00439c24
leave
ret
Function at 0x48a598
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4bb858]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x48a5d8
cmp byte [ebx], 0xa
jne 0x48a5d8
or byte [edi + eax + 0x28], 4
jmp 0x48a5dd
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x48a6dc
mov dl, byte [eax]
cmp dl, 0x1a
je 0x48a6bf
inc eax
cmp dl, 0xd
je 0x48a609
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x48a62f
cmp eax, ecx
jae 0x48a63d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x48a5f1
jmp 0x48a6dc
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48a6ba
cmp dword [ebp - 0x10], 0
je 0x48a6ba
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4bb858]
test byte [eax + edi + 0x28], 0x48
je 0x48a694
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x48a67f
mov byte [esi], dl
jmp 0x48a690
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4bb858]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x48a6dc
cmp byte [ebp - 1], 0xa
jne 0x48a6a3
cmp esi, ebx
jne 0x48a6a3
mov byte [esi], 0xa
jmp 0x48a6db
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004909cd
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x48a6dc
mov byte [esi], 0xd
jmp 0x48a6db
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4bb858]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48a6d9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x48a6dc
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x48a6e5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4bb858]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x48a72b
cmp word [ebx], dx
jne 0x48a72b
or byte [eax + edi + 0x28], 4
jmp 0x48a730
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x48a893
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x48a873
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x48a771
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x48a7a7
cmp eax, edx
jae 0x48a7b5
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x48a74c
jmp 0x48a893
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48a86e
cmp dword [ebp - 0x18], 0
je 0x48a86e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4bb858]
test byte [eax + edi + 0x28], 0x48
je 0x48a844
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x48a808
mov word [esi], cx
jmp 0x48a83f
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4bb858]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4bb858]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4bb858]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x48a893
pop eax
cmp word [ebp - 4], ax
jne 0x48a854
cmp esi, ebx
jne 0x48a854
mov word [esi], ax
jmp 0x48a890
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004909cd
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x48a893
push 0xd
pop eax
jmp 0x48a84f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4bb858]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x48a88d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x48a893
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x492f2c
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00492d50
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x49309b
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x49309b
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x493050
jg 0x492f88
test eax, eax
je 0x493046
push 1
push 0x1000
call fcn.0047e015
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x492fab
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x49303d
push 0x8000
push ebx
call fcn.00476d34
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x492fd4
jg 0x492fcf
cmp ecx, 0x1000
jb 0x492fd4
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0047fe05
add esp, 0x10
cmp eax, 0xffffffff
je 0x493019
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x492fcf
jl 0x493000
test ecx, ecx
jne 0x492fc1
push dword [ebp - 0xc]
push ebx
call fcn.00476d34
push esi
call fcn.004796ae
add esp, 0xc
xor ebx, ebx
jmp 0x4930a9
cmp byte [edi + 0x24], 0
je 0x493030
cmp dword [edi + 0x20], 5
jne 0x493030
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x49303b
mov ebx, dword [edi + 0x18]
jmp 0x49303d
xor ebx, ebx
push esi
call fcn.004796ae
pop ecx
jmp 0x4930a9
test ecx, ecx
jg 0x493012
jl 0x493050
test eax, eax
jae 0x493012
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004909cd
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x493070
cmp byte [edi + 0x1c], 0
je 0x493012
jmp 0x4930a1
push ebx
call fcn.004860f0
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x493012
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4930a9
cmp byte [edi + 0x1c], 0
je 0x4930a6
mov ebx, dword [edi + 0x18]
jmp 0x4930a9
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004909cd
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x496260
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49628d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49628d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x405ed6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232fc], 0
push esi
jne 0x405f0d
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405ee7
mov dword [ecx*4 + 0x4232f8], eax
inc ecx
cmp ecx, 0x100
jl 0x405ee2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f3e
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232f8]
xor eax, esi
inc ecx
dec edx
jne 0x405f20
pop edi
not eax
pop esi
ret 0xc

Function at 0x40ce0a
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push esi
lea edx, [6]
push edx
mov edi, 0x4ee
shr edi, 8
push edi
pop dword [0x42499a]
push 0x424b96
mov ebx, 0x482
and ebx, 0xff
or ebx, ebx
jne 0x40ce3f
shl ebx, 6
mov dword [ebp - 0x30], ebx
push 0x60
jmp loc.00462570
Function at 0x4063a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4737b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x496a90]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push ecx
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.0044c719
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
push 2
push eax
add ecx, 0x3c
call fcn.0040cff0
mov ebx, dword [esp + 0x28]
xor edx, edx
mov eax, ebx
mov ecx, 0x400
mov dword [ebx + 0x2024], 3
lea ebp, [ebx + 0x1014]
mov dword [eax], edx
mov edi, ebp
push 0x494b48
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
xor eax, eax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
call fcn.004541c0
mov edx, dword [esp + 0x10]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x1c], 0xffffffff
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 0x2018], ebp
mov edx, dword [edx - 8]
lea ecx, [esp + 0x10]
mov dword [ebx + 0x2014], edx
call fcn.00453de4
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

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

Disassembly:
push esi
mov esi, ecx
push 1
call fcn.00452741
mov eax, dword [esi + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40ad4d
push 0
push 1
mov ecx, esi
call fcn.00453218
mov ecx, eax
call fcn.00453516
pop esi
ret
mov eax, dword [esi + 0x60]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40ad78
mov ecx, dword [esi + 0x64]
mov eax, dword [ecx - 8]
test eax, eax
je 0x40ad78
mov eax, 1
mov ecx, esi
push eax
push eax
call fcn.00453218
mov ecx, eax
call fcn.00453516
pop esi
ret
xor eax, eax
mov ecx, esi
push eax
push 1
call fcn.00453218
mov ecx, eax
call fcn.00453516
pop esi
ret
Function at 0x40adc0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Create pipe
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x473c3c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, 0xa
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 0x80], 0x47a18c
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], eax
mov dword [esp + 0x3c], ebx
mov dword [esi + 0x9c], 0x47a180
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb4], eax
lea eax, [esp + 0x10]
mov byte [esp + 0x3c], 1
push eax
mov dword [esi], 0x47a178
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x24]
lea edi, [esi + 0xe4]
xor eax, eax
lea edx, [ecx + ecx + 2]
mov ecx, 8
mov dword [esi + 0x108], edx
rep stosd dword es:[edi], eax
mov dword [esi + 0xb8], ebx
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 0x48]
push eax
call edi
lea ecx, [esi + 0x60]
push ecx
call edi
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
push ebx
lea edx, [esi + 0x34]
push ebx
lea eax, [esi + 0x30]
push edx
push eax
call edi
test eax, eax
push ebx
push ebx
jne 0x40aec9
push str.CreatePipe_m_hCmdPipe_error__
call fcn.0045f9fb
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
lea ecx, [esi + 0x3c]
lea edx, [esi + 0x38]
push ecx
push edx
call edi
test eax, eax
push ebx
push ebx
jne 0x40aef7
push str.CreatePipe_m_hWaiterPipe_error__
call fcn.0045f9fb
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
lea eax, [esi + 0x44]
lea ecx, [esi + 0x40]
push eax
push ecx
call edi
test eax, eax
jne 0x40af25
push ebx
push ebx
push str.CreatePipe_m_hFluxLimitPipe_error__
call fcn.0045f9fb
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0xc0], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xc4], ebx
mov eax, dword [esi + 0x84]
cmp eax, ebx
je 0x40af68
mov eax, dword [eax]
cmp eax, ebx
jne 0x40af62
mov ecx, dword [esi + 0x94]
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x84], ebx
call fcn.0044ea84
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x94], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x40d260
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
lea ecx, [esp + 4]
push 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
push ecx
lea edx, [esp + 0x10]
push 4
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40d291
push eax
push eax
push str.write_pipe_error__
call fcn.0045f9fb
ret 8

Function at 0x40df30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x473df8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0043b241
lea ecx, [esp + 0xc]
mov dword [esi + 0x34], eax
call fcn.0043ad20
mov edi, dword [0x49ea34]
lea ecx, [esp + 8]
call fcn.0043ad20
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x40df7c
inc eax
mov dword [edi + 4], eax
lea ecx, [esp + 8]
call fcn.0043adbc
lea ecx, [esp + 0xc]
call fcn.0043adbc
lea eax, [esi + 4]
lea ecx, [esi + 0x14]
lea edx, [esi + 0x18]
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
lea eax, [esi + 8]
lea ecx, [esi + 0x24]
lea edx, [esi + 0x28]
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], edx
mov dword [eax], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov edx, dword [esi + 0xc]
mov dword [edx], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov ecx, dword [esi + 0x2c]
mov dword [ecx], 0
mov edx, dword [esp + 0x24]
push 0
push 0
push 0
push edx
mov ecx, esi
mov dword [esp + 0x2c], 0
mov dword [esi], vtable.std::strstreambuf.0
call fcn.0043bd15
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x419ef0
Capabilities:
Create directory
Create shortcut via ishelllink

Disassembly:
sub esp, 0x314
push ebp
call fcn.00419eb0
test eax, eax
je 0x41a05c
mov ebp, dword [esp + 0x324]
lea ecx, [esp + 0xc]
push ecx
push 0
test ebp, ebp
push 0
je 0x419f1c
push 2
jmp 0x419f1e
push 7
push 0
call eax
xor edx, edx
test eax, eax
setge dl
mov eax, edx
test eax, eax
je 0x41a05c
push esi
push 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0xc]
push eax
push 0x482ed0
push 1
push 0
push 0x482ec0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x41a04b
mov eax, dword [esp + 0xc]
lea edx, [esp + 8]
push edx
push 0x482ee0
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x41a041
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x320]
push edi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x328]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jl 0x41a036
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x14]
push 0x494c04
push edx
call esi
test ebp, ebp
je 0x419fe1
lea eax, [esp + 0x14]
push ebp
push eax
call esi
lea ecx, [esp + 0x14]
push 0x494c04
push ecx
call esi
lea edx, [esp + 0x14]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esp + 0x14]
push edi
push eax
call esi
lea ecx, [esp + 0x14]
push str..lnk
push ecx
call esi
lea edx, [esp + 0x118]
push 0x104
push edx
lea eax, [esp + 0x1c]
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x118]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
pop ebp
add esp, 0x314
ret
mov eax, dword [esp + 4]
pop ebp
add esp, 0x314
ret

Function at 0x41a070
Capabilities:
Delete file

Disassembly:
sub esp, 0x104
push edi
call fcn.00419eb0
test eax, eax
je 0x41a0fd
mov edi, dword [esp + 0x110]
lea ecx, [esp + 4]
push ecx
push 0
test edi, edi
push 0
je 0x41a098
push 2
jmp 0x41a09a
push 7
push 0
call eax
xor edx, edx
test eax, eax
setge dl
mov eax, edx
test eax, eax
je 0x41a0fd
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 8]
push 0x494c04
push eax
call esi
test edi, edi
je 0x41a0d6
lea ecx, [esp + 8]
push edi
push ecx
call esi
lea edx, [esp + 8]
push 0x494c04
push edx
call esi
mov eax, dword [esp + 0x110]
lea ecx, [esp + 8]
push eax
push ecx
call esi
lea edx, [esp + 8]
push str..lnk
push edx
call esi
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
pop edi
add esp, 0x104
ret