joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408e60
Capabilities:
Hash data with md5

Disassembly:
push esi
push 0x40
mov esi, ecx
mov dword [0x7ab7b4], 1
mov byte [0x7ab788], 0
call fcn.00409957
add esp, 4
mov dword [0x7ab7ac], eax
test eax, eax
je 0x408ebc
mov ecx, esi
mov dword [0x7ab7b0], eax
mov dword [0x7ab7c0], 0x67452301
mov dword [0x7ab7c4], 0xefcdab89
mov dword [0x7ab7c8], 0x98badcfe
mov dword [0x7ab7cc], 0x10325476
pop esi
jmp fcn.00409710
pop esi
ret
Function at 0x414102
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040fa0b
mov dword [ebp - 0x14], eax
cmp dword [0x7ab0e4], esi
jne 0x4141f5
push 0x800
push esi
push 0x41e7d8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x414182
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4142d5
push esi
push esi
push 0x41e7d8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4142d5
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4142d5
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x7ab0e4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x7ab0e8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x7ab0ec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x7ab0f4], eax
test eax, eax
je 0x4141f2
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x7ab0f0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41421a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41420d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41422f
push 4
pop eax
jmp 0x4142d7
cmp dword [ebp - 0x14], esi
je 0x41422f
push dword [0x7ab0e4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x414214
mov eax, dword [0x7ab0f0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41428d
cmp dword [0x7ab0f4], edi
je 0x41428d
push eax
call ebx
push dword [0x7ab0f4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41428d
test eax, eax
je 0x41428d
call ecx
test eax, eax
je 0x414282
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x414282
test byte [ebp - 8], 1
jne 0x41428d
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4142bd
mov eax, dword [0x7ab0e8]
cmp eax, edi
je 0x4142ba
push eax
call ebx
test eax, eax
je 0x4142ba
call eax
mov esi, eax
test esi, esi
je 0x4142ba
mov eax, dword [0x7ab0ec]
cmp eax, edi
je 0x4142ba
push eax
call ebx
test eax, eax
je 0x4142ba
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x7ab0e4]
call ebx
test eax, eax
je 0x4142d5
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4142d7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409948
mov esp, ebp
pop ebp
ret
Function at 0x401940
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4195f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, dword [0x4206f4]
push ebp
push esi
mov ebp, ecx
xor esi, esi
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 8]
push ecx
push 0x420318
push edx
mov dword [esp + 0x50], esi
call fcn.0040f81d
mov ecx, dword [esp + 0x14]
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
push 0xf003f
push esi
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401a9c
lea edx, [esp + 0xc]
lea eax, [esp + 0x28]
push edx
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x28]
push eax
push ecx
push esi
push 0x420308
push edx
mov dword [esp + 0x24], 0x14
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401a8d
lea eax, [esp + 0x28]
push edi
push eax
lea ecx, [esp + 0x28]
call fcn.00413c88
mov esi, eax
push 0x420304
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 1
call fcn.00413c88
mov edi, eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x48], 2
push ecx
lea ecx, [esp + 0x20]
call fcn.0041398f
push edi
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x54], 3
call fcn.00413dfd
push esi
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x50], 4
push eax
call fcn.00413dfd
push eax
lea ecx, [ebp + 0x9c]
mov byte [esp + 0x4c], 5
call fcn.00413d07
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 4
call fcn.00413c1a
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 3
call fcn.00413c1a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 2
call fcn.00413c1a
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 1
call fcn.00413c1a
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 0
call fcn.00413c1a
mov esi, 1
pop edi
mov ecx, dword [esp + 0x4c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401aaa
push 0
push 0
push 0x4202f0
call fcn.004171da
lea ecx, [esp + 8]
mov dword [esp + 0x44], 0xffffffff
call fcn.00413c1a
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x401df0
Capabilities:
Delete registry value

Disassembly:
mov ecx, dword [ecx + 0x9c]
sub esp, 0x18
lea eax, [esp]
push eax
push 0xf003f
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401e54
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, 1
push esi
lea ecx, [esp + 0x10]
push 0x420348
push ecx
call fcn.00403e79
mov eax, dword [esp + 0x14]
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push eax
call edi
inc esi
cmp esi, 0x14
jl 0x401e22
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0x18
ret

Function at 0x401e60
Capabilities:
Set registry value

Disassembly:
sub esp, 0x18
push ebx
mov ebx, ecx
lea ecx, [esp + 4]
mov eax, dword [ebx + 0x9c]
push ecx
push 0xf003f
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401eec
mov eax, dword [ebx + 0xac]
push esi
xor esi, esi
test eax, eax
jle 0x401ee0
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
lea edi, [esi + 1]
lea edx, [esp + 0x14]
push edi
push 0x420348
push edx
call fcn.00403e79
mov eax, dword [ebx + 0xa8]
add esp, 0xc
lea edx, [esp + 0x14]
mov esi, dword [eax + esi*4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi - 8]
inc ecx
push ecx
push esi
push 1
push 0
push edx
push eax
call ebp
mov eax, dword [ebx + 0xac]
mov esi, edi
cmp esi, eax
jl 0x401e9d
pop edi
pop ebp
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x402780
Capabilities:
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x419718
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
push edi
mov esi, ecx
push 0x44
call fcn.00403ecb
mov ebx, eax
mov ecx, 0x11
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xac]
add esp, 4
xor edi, edi
test eax, eax
jle 0x4027ef
mov eax, dword [esi + 0xa8]
lea ecx, [eax + edi*4]
push ecx
call fcn.00402a70
add esp, 4
cmp eax, 1
jl 0x4027e4
cmp eax, 0x11
jg 0x4027e4
mov dword [ebx + eax*4 - 4], 1
mov eax, dword [esi + 0xac]
inc edi
cmp edi, eax
jl 0x4027c0
lea ecx, [esp + 0x54]
call fcn.0040f9b2
lea ecx, [esp + 0x2c]
mov dword [esp + 0x70], 0
call fcn.0040f9b2
mov eax, dword [0x4206f4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], 4
call fcn.004141f7
lea ecx, [esp + 0x40]
mov byte [esp + 0x70], 5
call fcn.004141f7
mov edx, dword [esi + 0xa0]
lea eax, [esp + 0x14]
push edx
push 0x420544
push eax
mov byte [esp + 0x7c], 6
call fcn.0040f81d
mov ecx, dword [esi + 0xa0]
lea edx, [esp + 0x1c]
push ecx
push 0x42052c
push edx
call fcn.0040f81d
mov eax, dword [esp + 0x2c]
add esp, 0x18
lea ecx, [esp + 0x18]
push 0
push 0
push eax
call fcn.0041426c
cmp eax, 1
jne 0x402962
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0041444f
test eax, eax
je 0x4028bc
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x5c]
call fcn.0040fbba
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0041444f
test eax, eax
jne 0x402897
push ebp
lea ecx, [esp + 0x1c]
call fcn.0041459c
mov edi, 0x4200f0
mov ebp, ebx
cmp dword [ebp], 1
je 0x4028e5
lea edx, [esp + 0x30]
lea eax, [esp + 0x58]
push edx
push eax
push edi
mov ecx, esi
call fcn.004029f0
add edi, 0x1e
add ebp, 4
cmp edi, 0x4202ee
jl 0x4028cd
mov ecx, dword [esp + 0x14]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [esp + 0x14]
push 0
push 0x1001
push edx
lea ecx, [esp + 0x50]
call fcn.0041426c
cmp eax, 1
pop ebp
jne 0x402962
mov eax, dword [esp + 0x34]
xor esi, esi
test eax, eax
jle 0x402959
mov eax, dword [esp + 0x30]
lea edx, [esp + 0xc]
mov ecx, dword [eax + esi*4]
push ecx
push 0x420528
push edx
call fcn.0040f81d
mov eax, dword [esp + 0x18]
add esp, 0xc
lea ecx, [esp + 0x40]
push eax
call fcn.004143df
mov eax, dword [esp + 0x34]
inc esi
cmp esi, eax
jl 0x402928
lea ecx, [esp + 0x40]
call fcn.0041459c
push ebx
call fcn.00403f57
add esp, 4
lea ecx, [esp + 0x40]
mov byte [esp + 0x70], 5
call fcn.00414229
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], 4
call fcn.00414229
lea ecx, [esp + 0xc]
mov byte [esp + 0x70], 3
call fcn.00413c1a
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 2
call fcn.00413c1a
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 1
call fcn.00413c1a
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 0
call fcn.0040f9e5
lea ecx, [esp + 0x54]
mov dword [esp + 0x70], 0xffffffff
call fcn.0040f9e5
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret
Function at 0x4090d1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4212e0
cmp edx, dword [eax]
je 0x4090f3
add eax, 8
inc ecx
cmp eax, 0x421370
jl 0x4090e4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4212e0]
jne 0x409221
mov eax, dword [0x4239f8]
cmp eax, 1
je 0x4091fb
test eax, eax
jne 0x409124
cmp dword [0x420bf4], 1
je 0x4091fb
cmp edx, 0xfc
je 0x409221
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40915b
lea eax, [ebp - 0x1a4]
push 0x41bf44
push eax
call fcn.004096b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004097a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40919e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004097a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41bf40
push edi
call fcn.0040b170
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x41bf24
push eax
call fcn.004096b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004096c0
lea eax, [ebp - 0xa0]
push 0x41bf20
push eax
call fcn.004096c0
push dword [esi + 0x4212e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004096c0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x41bef8
push eax
call fcn.0040b0e7
add esp, 0x2c
pop edi
jmp 0x409221
lea eax, [ebp + 8]
lea esi, [esi + 0x4212e4]
push 0
push eax
push dword [esi]
call fcn.004097a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40eda0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00406230
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40ee6b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40ee6b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40ee1e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40ee29
or bh, 8
and edi, 0x8000000
je 0x40ee44
mov eax, dword [0x42519c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x40ee6b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f240
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40f26b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40f28f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x40f2aa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x412c0e
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 0x412c50
call fcn.004182e7
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x412c50
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x412c47
xor eax, eax
jmp 0x412c58
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00412c5e
pop edi
pop esi
pop ebx
ret 4

Function at 0x418a39
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 0x418a67
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x418a85
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041899f
jmp 0x418a85
mov eax, dword [esi + 0x14]
test eax, eax
je 0x418a85
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041899f
test edi, edi
mov eax, edi
jne 0x418a6f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401255
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea ebx, [ebp - 4]
call fcn.004011ad
mov eax, dword [ebp - 4]
xor esi, esi
cmp dword [eax - 0xc], esi
je 0x401279
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401279
inc esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004050ec
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40128a
Capabilities:
Query environment variable

Disassembly:
push ebp
sub esp, 0x414
lea ebp, [esp - 4]
mov eax, dword [0x449030]
xor eax, ebp
mov dword [ebp + 0x414], eax
push 4
mov eax, 0x43398f
call fcn.0042bee2
xor edi, edi
mov dword [ebp - 0x10], edi
mov eax, dword [0x449644]
mov ecx, 0x449644
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
cmp ebx, edi
mov dword [ebp - 4], edi
jne 0x4012d2
lea edi, [eax - 0x10]
jmp 0x40130b
push 0x410
lea eax, [ebp + 2]
push edi
push eax
mov word [ebp], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040306d
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff0
mov eax, edi
call fcn.00403dac
add eax, 0x10
mov dword [esi], eax
mov eax, edi
call fcn.004050ec
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x414]
xor ecx, ebp
call fcn.0042b7ea
add ebp, 0x418
leave
ret

Function at 0x401d71
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x43420f
call fcn.0042bee2
mov esi, ecx
lea edi, [esi + 4]
call fcn.0042b024
push eax
mov ecx, edi
call fcn.0042b060
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x401d9f
call fcn.00401c95
jmp 0x401de2
lea eax, [ebp - 0x10]
push str.disapp
push eax
mov ecx, edi
call fcn.0040344a
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.0040302c
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004050ec
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401ddf
push dword [edi]
call fcn.004229ec
pop ecx
jmp 0x401de2
xor eax, eax
inc eax
call fcn.0042bfba
ret
Function at 0x401ebe
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3e8]
sub esp, 0x468
mov eax, dword [0x449030]
xor eax, ebp
mov dword [ebp + 0x3e4], eax
push esi
push edi
xor esi, esi
push 0x40e
lea eax, [ebp - 0x2a]
push esi
push eax
mov edi, ecx
mov word [ebp - 0x2c], si
call sub.MSVCR80.dll_memset
push dword [edi]
lea eax, [ebp - 0x2c]
push 0x208
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
push 0x44
pop edi
push edi
lea eax, [ebp - 0x80]
push esi
push eax
call sub.MSVCR80.dll_memset
push 0x10
lea eax, [ebp - 0x3c]
push esi
push eax
mov dword [ebp - 0x80], edi
call sub.MSVCR80.dll_memset
add esp, 0x30
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push esi
push 0x10
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401f49
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401f75
cmp dword [ebp - 0x3c], esi
je 0x401f59
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x38], esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x401f69
push dword [ebp - 0x38]
call edi
cmp dword [ebp - 0x3c], esi
je 0x401f73
push dword [ebp - 0x3c]
call edi
xor eax, eax
mov ecx, dword [ebp + 0x3e4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042b7ea
add ebp, 0x3e8
leave
ret
Function at 0x4028e7
Capabilities:
Create process on windows

Disassembly:
push 0x24
mov eax, 0x436379
call fcn.0042bee2
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
call fcn.00401c16
cmp dword [0x449a7c], 8
mov eax, dword [0x449a68]
jae 0x40291b
mov eax, 0x449a68
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00402fa8
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi + 0x20]
lea edi, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0042106d
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004050ec
mov eax, edi
mov dword [ebp - 0x10], ebx
call fcn.0040372e
test eax, eax
jbe 0x402a72
xor edi, edi
mov eax, dword [0x449644]
mov ecx, 0x449644
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.0040372e
cmp dword [ebp - 0x10], eax
jb 0x402984
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x2c]
add eax, edi
cmp dword [eax + 0x18], 8
jb 0x402994
mov eax, dword [eax + 4]
jmp 0x402997
add eax, 4
push eax
push str._s:_s__nomsg__try
lea eax, [ebp - 0x14]
call fcn.00404707
pop ecx
pop ecx
lea eax, [ebp - 0x30]
call fcn.0040372e
cmp dword [ebp - 0x10], eax
jb 0x4029ba
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x2c]
add eax, edi
cmp dword [eax + 0x18], 8
jb 0x4029ca
mov eax, dword [eax + 4]
jmp 0x4029cd
add eax, 4
push eax
call dword [sym.imp.MSVCR80.dll__wtoi]
pop ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00421348
pop ecx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], ebx
je 0x4029fb
push eax
push str.__extra_param:_s
lea ecx, [ebp - 0x14]
call fcn.00404754
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
call fcn.0042296a
lea ecx, [ebp - 0x18]
push 0x438030
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0040344a
mov eax, dword [ebp - 0x20]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004050ec
mov esi, dword [ebp - 0x14]
push 5
push ebx
push esi
push dword [ebp - 0x18]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004050ec
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004050ec
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
call fcn.004050ec
inc dword [ebp - 0x10]
lea eax, [ebp - 0x30]
add edi, 0x1c
call fcn.0040372e
cmp dword [ebp - 0x10], eax
jb 0x40295a
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x30]
call fcn.00403709
call fcn.0042bfba
ret