joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409fb5
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov al, byte [0x42868c]
push esi
push edi
push 0x40
mov byte [ebp - 0x104], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
push dword [ebp + 8]
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.0040c150
lea eax, [ebp - 0x104]
push eax
call fcn.0040c0a0
add esp, 0x10
cmp byte [ebp + eax - 0x105], 0x5c
je 0x40a01b
lea eax, [ebp - 0x104]
push 0x42503c
push eax
call fcn.0040bb40
pop ecx
pop ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call fcn.0040bb40
pop ecx
lea eax, [ebp - 0x244]
pop ecx
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40a08f
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x40a08f
push esi
call fcn.0040c3fe
mov edi, eax
push esi
push 0
push edi
call fcn.0040ba40
add esp, 0x10
lea eax, [ebp - 0x104]
push edi
push esi
xor esi, esi
push esi
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40a094
cmp edi, esi
je 0x40a08f
push edi
call fcn.0040c2e6
pop ecx
or eax, 0xffffffff
jmp 0x40a0c1
lea eax, [edi + 6]
push eax
call fcn.0040c2d0
lea eax, [eax + eax + 0xb]
pop ecx
and al, 0xfc
add eax, edi
mov eax, dword [eax + 0x10]
cmp dword [ebp + 0x10], eax
je 0x40a0b4
sbb esi, esi
and esi, 2
dec esi
test edi, edi
je 0x40a0bf
push edi
call fcn.0040c2e6
pop ecx
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x40a0c5
Capabilities:
Set registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov al, byte [0x42868c]
push ebx
push edi
push 0x40
mov byte [ebp - 0x108], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ebx, ebx
cmp byte [0x42a13c], bl
stosb byte es:[edi], al
jne 0x40a124
cmp byte [0x42a13d], bl
jne 0x40a124
cmp byte [0x42a13e], bl
jne 0x40a124
cmp byte [0x42a13f], bl
jne 0x40a124
cmp byte [0x42a140], bl
jne 0x40a124
cmp byte [0x42a141], bl
je 0x40a137
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
jmp 0x40a129
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
lea eax, [ebp - 0x108]
push eax
call fcn.0040bb30
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call fcn.0040c0a0
test eax, eax
pop ecx
je 0x40a1b9
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40a191
push esi
mov esi, 0x428e98
push 0x104
push esi
push 0xc356
push ebx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x40
push 0x425048
push esi
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0040be8d
pop esi
push dword [ebp + 8]
call fcn.0040c0a0
pop ecx
inc eax
push eax
push dword [ebp + 8]
push 1
push ebx
push str.SourcePath
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
leave
ret
Function at 0x40a1f3
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov al, byte [0x42868c]
push esi
push edi
push 0x40
mov byte [ebp - 0x108], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.__lIsContainAnySubKey
stosb byte es:[edi], al
call fcn.004013fd
pop ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push dword [ebp + 8]
push str.lIsContainAnySubKey_RegOpenKeyEx__s_:__u
call fcn.004013fd
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
lea eax, [ebp - 0x108]
push esi
push eax
push str.lIsContainAnySubKey_RegEnumKey__s_:__u
call fcn.004013fd
push 0x4271e8
call fcn.004013fd
add esp, 0x10
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x40d16d
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x420868
call fcn.0040f1a8
mov edi, 0x94
mov eax, edi
call fcn.0040c750
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x42c93c], ecx
mov eax, dword [esi + 4]
mov dword [0x42c948], eax
mov edx, dword [esi + 8]
mov dword [0x42c94c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x42c940], esi
cmp ecx, 2
je 0x40d1cd
or esi, 0x8000
mov dword [0x42c940], esi
shl eax, 8
add eax, edx
mov dword [0x42c944], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40d208
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d208
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40d220
cmp eax, 0x20b
je 0x40d20d
mov dword [ebp - 0x1c], esi
jmp 0x40d234
cmp dword [ecx + 0x84], 0xe
jbe 0x40d208
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40d22e
cmp dword [ecx + 0x74], 0xe
jbe 0x40d208
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040fdb6
pop ecx
test eax, eax
jne 0x40d248
push 0x1c
call fcn.0040d149
pop ecx
call fcn.0040ea68
test eax, eax
jne 0x40d259
push 0x10
call fcn.0040d149
pop ecx
mov dword [ebp - 4], esi
call fcn.0041270e
test eax, eax
jge 0x40d26d
push 0x1b
call fcn.0040d124
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42e160], eax
call fcn.004125e8
mov dword [0x42c980], eax
call fcn.00412546
test eax, eax
jge 0x40d293
push 8
call fcn.0040d124
pop ecx
call fcn.004122fa
test eax, eax
jge 0x40d2a4
push 9
call fcn.0040d124
pop ecx
call fcn.0040bd6e
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x40d2b7
push eax
call fcn.0040d124
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00412291
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x40d2d8
movzx eax, word [ebp - 0x34]
jmp 0x40d2db
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00414a80
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40d2f9
push edi
call fcn.0040be8d
call fcn.0040beaf
jmp 0x40d32b
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040f1e1
ret
Function at 0x411d79
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040c750
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x411e0e
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x42c93c]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x411e0e
cmp eax, 1
je 0x411e26
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x411e0e
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x411de3
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x411e0a
xor eax, eax
inc eax
jmp 0x411e42
cmp esi, ebx
jae 0x411e12
xor eax, eax
jmp 0x411e42
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x42c93c]
jmp 0x411e28
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411f2b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
cmp edx, dword [eax*8 + 0x4283a8]
je 0x411f4b
inc eax
cmp eax, 0x12
jb 0x411f3c
shl eax, 3
cmp edx, dword [eax + 0x4283a8]
mov dword [ebp + 8], eax
jne 0x4120e9
mov ecx, dword [0x42c988]
cmp ecx, 1
je 0x4120be
test ecx, ecx
jne 0x411f7d
cmp dword [0x427b24], 1
je 0x4120be
cmp edx, 0xfc
je 0x4120e9
and byte [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411fb8
push 5
pop ecx
mov esi, str._program_name_unknown_
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10c]
lea ebx, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411fc7
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x411fff
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411fdf
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x421020
push ebx
call fcn.0040c150
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412004
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4283ac]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41201b
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.0040c750
mov edx, esp
push 6
pop ecx
mov esi, str.Runtime_Error__n_nProgram:
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412047
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x412053
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41206c
mov eax, dword [ebp + 8]
mov esi, 0x421000
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x4283ac]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412087
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x412093
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0041454a
add esp, 0xc
jmp 0x4120e9
mov ecx, dword [eax + 0x4283ac]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4120c9
push 0
lea edx, [ebp - 4]
push edx
sub eax, esi
push eax
push ecx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413712
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
jne 0x413730
xor eax, eax
jmp 0x41389e
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x42cde0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x413763
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00414977
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x413835
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edi
jbe 0x413870
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
mov dword [ebp - 8], edi
cmp ecx, dword [ebp + 0x10]
jae 0x4137be
mov edx, dword [ebp - 0xc]
inc dword [ebp - 0xc]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4137af
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 8]
mov byte [eax], dl
inc eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x400
jl 0x413792
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4137fe
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
cmp eax, edi
jl 0x413807
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x413783
jmp 0x413809
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
xor edi, edi
mov eax, dword [ebp - 0x10]
cmp eax, edi
jne 0x413899
cmp dword [ebp - 4], edi
je 0x413870
push 5
pop esi
cmp dword [ebp - 4], esi
jne 0x413862
call fcn.0040e089
mov dword [eax], 9
call fcn.0040e092
mov dword [eax], esi
jmp 0x41386b
push edi
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x413857
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], eax
jmp 0x413809
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x413809
push dword [ebp - 4]
call fcn.0040e09b
pop ecx
or eax, 0xffffffff
jmp 0x41389c
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x413885
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x413885
xor eax, eax
jmp 0x41389c
call fcn.0040e089
mov dword [eax], 0x1c
call fcn.0040e092
mov dword [eax], edi
jmp 0x41386b
sub eax, dword [ebp - 0x14]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x4142d2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x414498
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x42cde0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x414498
test cl, 0x48
je 0x414338
mov al, byte [eax + 5]
cmp al, 0xa
je 0x414338
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41438a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x414372
call fcn.0040e089
mov dword [eax], 9
call fcn.0040e092
mov dword [eax], esi
jmp 0x414382
cmp eax, 0x6d
je 0x414498
push eax
call fcn.0040e09b
pop ecx
or eax, 0xffffffff
jmp 0x41449a
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x414493
test edx, edx
je 0x4143ad
cmp byte [ebx], 0xa
jne 0x4143ad
or al, 4
jmp 0x4143af
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x41448d
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41447d
cmp al, 0xd
je 0x4143e3
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41446f
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4143fd
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4143f8
add dword [ebp + 0x10], 2
jmp 0x414451
mov dword [ebp + 0x10], eax
jmp 0x41446b
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x414425
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41446b
cmp dword [ebp - 0xc], 0
je 0x41446b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x414446
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x414451
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41446e
cmp ebx, dword [ebp + 0xc]
jne 0x414456
cmp byte [ebp - 1], 0xa
jne 0x414456
mov byte [ebx], 0xa
jmp 0x41446e
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00413a08
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x41446f
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4143c7
jmp 0x41448d
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x41448d
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41449a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41454a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x42cd74], ebx
push esi
push edi
jne 0x4145ca
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x414605
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4215bc
push edi
call esi
test eax, eax
mov dword [0x42cd74], eax
je 0x414605
push 0x4215ac
push edi
call esi
push 0x421598
push edi
mov dword [0x42cd78], eax
call esi
cmp dword [0x42c93c], 2
mov dword [0x42cd7c], eax
jne 0x4145ca
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x42cd84], eax
je 0x4145ca
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x42cd80], eax
mov eax, dword [0x42cd80]
test eax, eax
je 0x41460f
call eax
test eax, eax
je 0x4145f6
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x42cd84]
test eax, eax
je 0x4145f6
test byte [ebp - 8], 1
jne 0x41460f
cmp dword [0x42c948], 4
jb 0x414609
or byte [ebp + 0x12], 0x20
jmp 0x41462e
xor eax, eax
jmp 0x41463e
or byte [ebp + 0x12], 4
jmp 0x41462e
mov eax, dword [0x42cd78]
test eax, eax
je 0x41462e
call eax
mov ebx, eax
test ebx, ebx
je 0x41462e
mov eax, dword [0x42cd7c]
test eax, eax
je 0x41462e
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x42cd74]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41482c
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
call fcn.00413a08
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x414971
push 2
push esi
push dword [ebp + 8]
call fcn.00413a08
add esp, 0xc
cmp eax, ebx
je 0x414971
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x414914
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp - 4], eax
jne 0x4148a5
call fcn.0040e089
mov dword [eax], 0xc
or esi, 0xffffffff
jmp 0x41495c
push 0x8000
push dword [ebp + 8]
call fcn.00414a03
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp edi, ebx
mov eax, ebx
jge 0x4148bf
mov eax, edi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.00413712
add esp, 0xc
cmp eax, 0xffffffff
je 0x4148db
sub edi, eax
test edi, edi
jg 0x4148b7
jmp 0x4148f3
call fcn.0040e092
cmp dword [eax], 5
jne 0x4148f0
call fcn.0040e089
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00414a03
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x41495c
jge 0x41495c
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00413a08
push dword [ebp + 8]
call fcn.004134ef
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x41495c
call fcn.0040e089
mov dword [eax], 0xd
call fcn.0040e092
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00413a08
add esp, 0xc
mov eax, esi
pop edi
jmp 0x414973
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x4198a5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4198e7
call fcn.0041cb1a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4198e7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4198de
xor eax, eax
jmp 0x4198ef
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004198f5
pop edi
pop esi
pop ebx
ret 4

Function at 0x41d1f0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41d21e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41d23c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041d156
jmp 0x41d23c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41d23c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041d156
test edi, edi
mov eax, edi
jne 0x41d226
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x477971
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x28], 0
je 0x47799a
push 0x184
push str.thrdcore.cpp
call fcn.004d3290
test eax, eax
je 0x47799a
int3
xor ecx, ecx
test ecx, ecx
jne 0x47797d
push 0x1c
push 0
lea edx, [ebp - 0x1c]
push edx
call fcn.0041e6f0
add esp, 0xc
call fcn.004e8545
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
push 0
push 0
push 1
push 0
call dword [0x5eb72c]
mov dword [ebp - 0xc], eax
push 0
push 0
push 1
push 0
call dword [0x5eb72c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0xc], 0
je 0x4779f2
cmp dword [ebp - 8], 0
jne 0x477a2b
push str.Warning:_CreateEvent_failed_in_CWinThread::CreateThread._n
push 0x5d3560
call fcn.00450e45
add esp, 8
cmp dword [ebp - 0xc], 0
je 0x477a14
mov edx, dword [ebp - 0xc]
push edx
call dword [0x5eb6f4]
cmp dword [ebp - 8], 0
je 0x477a24
mov eax, dword [ebp - 8]
push eax
call dword [0x5eb6f4]
xor eax, eax
jmp 0x477b60
mov ecx, dword [ebp - 0x20]
add ecx, 0x2c
push ecx
mov edx, dword [ebp + 8]
or edx, 4
push edx
lea eax, [ebp - 0x1c]
push eax
push 0x477190
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00420d40
add esp, 0x18
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x28], 0
jne 0x477a68
xor eax, eax
jmp 0x477b60
mov ecx, dword [ebp - 0x20]
call fcn.004dc19b
cmp eax, 0xffffffff
jne 0x477a89
push 0x19e
push str.thrdcore.cpp
call fcn.004d3290
test eax, eax
je 0x477a89
int3
xor eax, eax
test eax, eax
jne 0x477a68
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xc]
push ecx
call dword [0x5eb6ec]
test eax, eax
je 0x477ab3
push 0x19f
push str.thrdcore.cpp
call fcn.004d3290
test eax, eax
je 0x477ab3
int3
xor edx, edx
test edx, edx
jne 0x477a8f
mov eax, dword [ebp - 0xc]
push eax
call dword [0x5eb6f4]
mov ecx, dword [ebp + 8]
and ecx, 4
test ecx, ecx
je 0x477af9
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x28]
push eax
call dword [0x5eb728]
cmp eax, 0xffffffff
jne 0x477af3
push 0x1a4
push str.thrdcore.cpp
call fcn.004d3290
test eax, eax
je 0x477af3
int3
xor ecx, ecx
test ecx, ecx
jne 0x477acd
cmp dword [ebp - 4], 0
je 0x477b51
push 0xffffffffffffffff
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x28]
push eax
call dword [0x5eb6ec]
test eax, eax
je 0x477b26
push 0x1a9
push str.thrdcore.cpp
call fcn.004d3290
test eax, eax
je 0x477b26
int3
xor ecx, ecx
test ecx, ecx
jne 0x477aff
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x28]
push eax
call dword [0x5eb6f4]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x28], 0
mov edx, dword [ebp - 8]
push edx
call dword [0x5eb6f4]
xor eax, eax
jmp 0x477b60
mov eax, dword [ebp - 8]
push eax
call dword [0x5eb724]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc