joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100526c0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100803bd
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
mov eax, dword [0x1009c040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
push 0
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
mov dword [esi], vtable.std::codecvt_wchar_t__char__struct__Mbstatet_.0
call fcn.100383ff
mov dword [ebp - 0x6c], 0
mov byte [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x60], 0
xor eax, eax
mov dword [ebp - 0x5c], 0
mov word [ebp - 0x58], ax
mov dword [ebp - 0x54], eax
mov word [ebp - 0x50], ax
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], al
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], al
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 7
push 0x1008293c
push eax
call fcn.1003828d
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 8
push eax
call fcn.10038605
movups xmm0, xmmword [eax]
movups xmmword [esi + 8], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x18], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esi + 0x28], xmm0
mov eax, dword [eax + 0x28]
mov dword [esi + 0x30], eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 9
push eax
call fcn.100382d8
add esp, 0x10
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 0xa
test eax, eax
je 0x100527a0
push eax
call fcn.1005dd7c
add esp, 4
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 0xb
test eax, eax
je 0x100527bb
push eax
call fcn.1005dd7c
add esp, 4
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x54]
mov byte [ebp - 4], 0xc
test eax, eax
je 0x100527d6
push eax
call fcn.1005dd7c
add esp, 4
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x5c]
mov byte [ebp - 4], 0xd
test eax, eax
je 0x100527f1
push eax
call fcn.1005dd7c
add esp, 4
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x64]
mov byte [ebp - 4], 0xe
test eax, eax
je 0x1005280c
push eax
call fcn.1005dd7c
add esp, 4
mov dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x6c]
mov byte [ebp - 4], 0xf
test eax, eax
je 0x10052827
push eax
call fcn.1005dd7c
add esp, 4
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x6c], 0
call fcn.10038457
mov dword [esi], vtable.boost::archive::codecvt_null_wchar_t_.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10069f88
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10069fc7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10069fc7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10069fc7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10069fc7
cmp dword [ecx + 0x74], 0xe
jbe 0x10069fc7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1006d01b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100871ec
push 0x100871e4
push str.FlsAlloc
push 0x1f
call fcn.1006ce46
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1006d04f
push dword [ebp + 8]
mov ecx, esi
call dword [0x10081390]
call esi
jmp 0x1006d055
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1006d099
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100871fc
push 0x100871f4
push str.FlsGetValue
push 0x21
call fcn.1006ce46
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1006d0d0
push dword [ebp + 8]
mov ecx, esi
call dword [0x10081390]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1006d0d8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10087204
push 0x100871fc
push str.FlsSetValue
push 0x22
call fcn.1006ce46
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1006d112
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10081390]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10071ecb
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 0x10071f68
push ebx
push esi
call fcn.10071e94
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.100707ac
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10071f15
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10071f67
push edi
push eax
call fcn.1006caf6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10071f35
call fcn.1006cabc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10071f66
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100707ac
add esp, 0x20
test eax, eax
jne 0x10071f54
push edi
call fcn.1006cabc
jmp 0x10071f5c
push ebx
call fcn.1006cabc
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 0x10071f6b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10071f7c
pop esi
ret
push ebx
push edi
push esi
call fcn.10071e94
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1006caf6
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10071fa4
push ebx
push esi
push edi
call fcn.10053de0
add esp, 0xc
push 0
call fcn.1006cabc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10072374
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10071fb9

Function at 0x1007458c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1006b10c
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 0x100745fb
cmp esi, dword [ebp - 4]
je 0x100745f6
cmp dword [ebp + 0xc], 0
je 0x100745f6
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100745d3
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100740de
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100745fd
xor eax, eax
inc eax
jmp 0x100745fd
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10074662
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1009c040]
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.1006b10c
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.1006b10c
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 0x100746d9
cmp word [ecx], dx
je 0x100746d9
mov eax, dword [0x100878dc]
push edi
dec eax
push eax
push 0x100877c8
call fcn.10074601
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1007474c
cmp word [eax], dx
je 0x1007474c
mov eax, dword [edi]
test eax, eax
je 0x100746fd
cmp word [eax], dx
je 0x100746fd
lea eax, [ebp - 0x10]
push eax
call fcn.10073fe4
jmp 0x10074706
lea eax, [ebp - 0x10]
push eax
call fcn.1007407f
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10074776
mov eax, dword [0x100877c4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100874b8
call fcn.10074601
add esp, 0xc
test al, al
je 0x10074776
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10074741
cmp word [eax], di
je 0x10074741
lea eax, [ebp - 0x10]
push eax
call fcn.10073fe4
pop ecx
jmp 0x10074778
lea eax, [ebp - 0x10]
push eax
call fcn.1007407f
jmp 0x1007473e
mov eax, dword [edi]
test eax, eax
je 0x10074763
cmp word [eax], dx
je 0x10074763
lea eax, [ebp - 0x10]
push eax
call fcn.10073f99
pop ecx
jmp 0x10074776
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 0x10074841
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10074486
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10074841
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10074841
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10074841
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100747ce
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1006d2b4
test ebx, ebx
je 0x1007483c
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1006d2b4
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10074841
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 0x10074841
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1007848e
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10074843
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004df9a
leave
ret
Function at 0x1007a750
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1007a77d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1007a77d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x119c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0119c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x119c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x119c06a
add dl, dl
jne 0x119c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x119c0dc
xor eax, eax
add dl, dl
jne 0x119c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x119c17d
add dl, dl
jne 0x119c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x119c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x119c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x119c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x119c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x119c075
mov eax, 1
add dl, dl
jne 0x119c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x119c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x119c0e1
sub eax, ebx
mov ebx, 1
jne 0x119c128
mov ecx, 1
add dl, dl
jne 0x119c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x119c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x119c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x119c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x119c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x119c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x119c136
cmp eax, 0x7d00
jae 0x119c16d
cmp eax, 0x500
jb 0x119c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x119c075
cmp eax, 0x7f
ja 0x119c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x119c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x119c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x119c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x407570
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46736d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x487274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0042cef6
mov edi, eax
add esp, 4
test edi, edi
je 0x40760d
push 1
mov dword [ebp - 4], 0
call fcn.0042af8b
add esp, 4
mov dword [edi + 4], eax
jmp 0x40760f
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.00401710
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x40766a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x40766a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x407686
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x4076a9
cmp byte [ebp + 0xc], 0
je 0x407695
push esi
call fcn.0042b47a
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x4076b5
mov esi, str.ios_base::badbit_set
jmp 0x4076c5
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00404830
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.00402160
push 0x48036c
lea eax, [ebp - 0x28]
push eax
call fcn.00443f23
int3

Function at 0x40eb90
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
call sub.KERNEL32.dll_GetTickCount
mov edi, dword [esi + 4]
sub edi, eax
mov eax, 0
add edi, dword [esi]
cmovs edi, eax
call sub.KERNEL32.dll_GetTickCount
mov edx, dword [ebp + 8]
cmp dword [ebp + 0xc], edi
cmovl edi, dword [ebp + 0xc]
mov dword [edx + 4], edi
pop edi
mov dword [edx], eax
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x40f8c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x487274]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40f97a
cmp byte [esi + 0x3d], 0
je 0x40f97a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40f968
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40f930
sub eax, 1
je 0x40f934
sub eax, 2
jne 0x40f968
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cf39
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40f951
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0044a6e2
add esp, 0x10
cmp edi, eax
jne 0x40f968
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cf39
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cf39
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0042cf39
mov esp, ebp
pop ebp
ret
Function at 0x410700
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x487274]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x410730
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cf39
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x41076c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x41076c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cf39
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x410851
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x410794
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4107c7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00449d6b
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cf39
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x410851
cmp eax, 1
jle 0x410824
cmp eax, 3
jne 0x410851
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.0040ee00
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cf39
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x410841
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0044a6e2
add esp, 0x10
cmp edi, eax
jne 0x410851
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x410757
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cf39
mov esp, ebp
pop ebp
ret 4
Function at 0x4199b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468c21
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x487274]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x118]
push 0x104
push eax
mov dword [ebp - 0x17c], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x419acf
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x148]
call fcn.004116d0
push str.cscript.exe
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], 2
call fcn.004116d0
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x148]
push eax
push esi
call fcn.00411830
mov edx, dword [ebp - 0x11c]
add esp, 0xc
cmp edx, 0x10
jb 0x419a7d
mov ecx, dword [ebp - 0x130]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x419a73
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419b1d
push edx
push ecx
call fcn.0042cf26
add esp, 8
mov edx, dword [ebp - 0x134]
cmp edx, 0x10
jb 0x419ab3
mov ecx, dword [ebp - 0x148]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x419aa9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419b22
push edx
push ecx
call fcn.0042cf26
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042cf39
mov esp, ebp
pop ebp
ret
push str.Cannot_query_system_directory.
lea ecx, [ebp - 0x160]
call fcn.004060e0
lea eax, [ebp - 0x160]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x178]
push eax
call fcn.00418ba0
add esp, 8
push eax
lea ecx, [ebp - 0x188]
mov byte [ebp - 4], 1
call fcn.00406250
push 0x480ba0
lea eax, [ebp - 0x188]
push eax
call fcn.00443f23
call fcn.0044807a
call fcn.0044807a
int3

Function at 0x419b50
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468c68
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x487274]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x1b8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, eax
test esi, esi
jne 0x419bb4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042cf39
mov esp, ebp
pop ebp
ret
push 1
lea ecx, [ebp - 0x274]
call fcn.0040a530
push 0x46c598
push esi
lea eax, [ebp - 0x264]
mov dword [ebp - 4], 0
push str.Could_not_initialize_networking._Error_code:
push eax
call fcn.00401400
add esp, 8
mov ecx, eax
call fcn.00402830
push eax
call fcn.00401400
add esp, 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x274]
push eax
call fcn.004123d0
push eax
lea ecx, [ebp - 0x1c4]
mov byte [ebp - 4], 1
call fcn.00406250
push 0x480ba0
lea eax, [ebp - 0x1c4]
push eax
call fcn.00443f23
int3
Function at 0x41ad40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468e7b
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x487274]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x14c], esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov edi, eax
test edi, edi
jne 0x41adbd
lea eax, [ebp - 0x118]
mov ecx, esi
push eax
call fcn.004116d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042cf39
mov esp, ebp
pop ebp
ret
push str.Could_not_obtain_user_home_directory.
lea ecx, [ebp - 0x130]
call fcn.004060e0
push edi
lea eax, [ebp - 0x130]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.00418c60
add esp, 0xc
push eax
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 1
call fcn.00406250
push 0x480ba0
lea eax, [ebp - 0x158]
push eax
call fcn.00443f23
int3

Function at 0x41b0d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468f48
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x487274]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x42c], 0
mov eax, dword [ebp + 8]
jne 0x41b164
push 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push ecx
push dword [ebp + 0xc]
push eax
push dword [edi + 0x428]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test esi, esi
jne 0x41b143
cmp ebx, 0x6d
jne 0x41b177
mov byte [edi + 0x42c], 1
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042cf39
mov esp, ebp
pop ebp
ret 0xc
call fcn.0041b0c0
push 0x482240
lea eax, [ebp - 0x29]
push eax
call fcn.00443f23
push 1
lea ecx, [ebp - 0xec]
call fcn.0040a530
push 0x46c598
push ebx
lea eax, [ebp - 0xdc]
mov dword [ebp - 4], 0
push str.Error_while_reading_from_handle._Error_code:
push eax
call fcn.00401400
add esp, 8
mov ecx, eax
call fcn.00419800
push eax
call fcn.00401400
add esp, 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xec]
push eax
call fcn.004123d0
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.0040f3b0
push 0x4815f0
lea eax, [ebp - 0x3c]
push eax
call fcn.00443f23
int3