joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ffb8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5a3ea8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5a712c]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x410004
push 0x553a54
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x410021
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5a712c], eax
jmp 0x41000d
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x410021
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x41008e
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x41003c
xor eax, eax
jmp 0x41008e
lea eax, [ebp - 0x210]
push eax
call fcn.00527777
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x41006d
push 0x553a8c
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0052a1e9
add esp, 0xc
test eax, eax
jne 0x410038
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0052a1e9
add esp, 0xc
test eax, eax
jne 0x410038
lea eax, [ebp - 0x210]
push eax
call fcn.00414d3e
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00526d92
leave
ret

Function at 0x410835
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
je 0x41087a
call fcn.00408ae8
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41087a
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x410896
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00419307
mov ebx, eax
test edi, edi
je 0x410894
test esi, esi
je 0x410894
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41542f
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x54402c
call fcn.005275ad
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x415455
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4154a9
call fcn.004069e1
push eax
lea ecx, [ebp - 0x10]
call fcn.00401000
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], esi
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00527560
push eax
call fcn.00401820
add esp, 0x14
test edi, edi
je 0x41549c
push edi
call fcn.00527690
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00404850
mov eax, esi
call fcn.0052757b
ret 8
Function at 0x41a5e5
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5a3ea8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x5a7430]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
test eax, eax
jne 0x41a63e
push 0x553a54
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41a65b
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5a7430], eax
jmp 0x41a647
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x41a65b
mov eax, dword [ebp - 0x20]
push ebx
push edi
push eax
push dword [ebp + 8]
call esi
jmp 0x41a798
mov eax, dword [ebp - 0x20]
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.00540140
lea eax, [ebp - 0x14]
push eax
call fcn.00527777
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.0052771b
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
lea edi, [esi + 1]
call fcn.00540140
lea eax, [ebp - 0x14]
push eax
call fcn.00527777
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0052771b
add esp, 0x38
add edi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.00540140
lea eax, [ebp - 0x14]
push eax
call fcn.00527777
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0052771b
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
add edi, esi
call fcn.00540140
lea eax, [ebp - 0x14]
push eax
call fcn.00527777
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.0052771b
push 7
lea eax, [ebp - 0x14]
push eax
push 0x800
add edi, esi
call fcn.00540140
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.00527777
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.0052771b
lea eax, [edi + esi]
xor ecx, ecx
mov word [ebx + eax*2 + 2], cx
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00526d92
leave
ret
Function at 0x426a95
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, dword [esi + 4]
push eax
push dword [ebp + 0xc]
call fcn.004150b2
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x426ad1
call fcn.00426cb0
mov dword [esi + 0xc], 1
jmp 0x426ad6
call fcn.00426cb0
cmp dword [esi], 0
je 0x426b1f
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x426af9
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00402770
jmp 0x426b0a
push 0xff
mov ecx, esi
call fcn.00404010
push pe_nt_image_headers32
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040662e
jmp 0x426b43
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x426b43
push dword [esi]
push dword [ebp - 4]
call fcn.00418b8d
pop esi
leave
ret 0xc

Function at 0x426c07
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00426cb0
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x426c4f
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00402770
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040662e
jmp 0x426c5a
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00418b8d
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x44ad5b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x44ad73
call fcn.00408ae8
mov esi, dword [eax + 0xc]
push 0x55b73c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x44adc9
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x44adc8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x44ada9
xor esi, esi
jmp 0x44adbf
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.0044adcf
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x489b00
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x489b1e
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x489b19
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x489b03
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
adc ebx, ebp
invalid
adc ebx, ebp
or byte [ebx], bh
ror dword [edi], cl
test dword [esi + 1], ecx
add byte [eax], al
cmp edx, ebx
jne 0x489c59
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x489ada
add eax, dword [eax + 4]
jmp 0x489ac7
mov dword [ebp + 0xc], ebx
jmp 0x489b29
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x489b41
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x489b5f
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x489bbd
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x489ba4
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x489bad
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x489bb7
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x489b99
inc dword [ebp + 0xc]
invalid
test dword [eax - 1], edi
invalid
Function at 0x4e94af
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp method.CPaneFrameWnd.virtual_528

Function at 0x50b2b9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test byte [esi + 4], 1
push edi
mov dword [ebp - 4], ebx
je 0x50b2d3
mov edi, dword [esi + 0xc]
jmp 0x50b313
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x50b2ec
call fcn.0040de81
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x50b301
call fcn.0040de81
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x50b313
call fcn.0040de81
call fcn.00408ae8
cmp dword [eax + 0x3c], 0
je 0x50b328
push edi
mov ecx, ebx
call fcn.0050ab4d
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0050b4eb
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x50b34b
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x7c], 0
test ebx, ebx
je 0x50b354
mov edi, ebx
mov dword [eax + 0x7c], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x53aedf
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5a3ea8]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.005328ab
mov dword [ebp - 0x14], eax
cmp dword [0x5ab914], edi
jne 0x53afd0
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x53af5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x53b0b0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x53b0b0
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x53b0b0
push eax
call ebx
push 0x57eccc
push esi
mov dword [0x5ab914], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x57ecdc
push esi
mov dword [0x5ab918], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x5ab91c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5ab924], eax
test eax, eax
je 0x53afcd
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5ab920], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x53aff5
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x53afe8
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x53b00a
push 4
pop eax
jmp 0x53b0b2
cmp dword [ebp - 0x14], edi
je 0x53b00a
push dword [0x5ab914]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x53afef
mov eax, dword [0x5ab920]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x53b068
cmp dword [0x5ab924], esi
je 0x53b068
push eax
call ebx
push dword [0x5ab924]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x53b068
test eax, eax
je 0x53b068
call ecx
test eax, eax
je 0x53b05d
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 0x53b05d
test byte [ebp - 8], 1
jne 0x53b068
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x53b098
mov eax, dword [0x5ab918]
cmp eax, esi
je 0x53b095
push eax
call ebx
test eax, eax
je 0x53b095
call eax
mov edi, eax
test edi, edi
je 0x53b095
mov eax, dword [0x5ab91c]
cmp eax, esi
je 0x53b095
push eax
call ebx
test eax, eax
je 0x53b095
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x5ab914]
call ebx
test eax, eax
je 0x53b0b0
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x53b0b2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00526d92
leave
ret
Function at 0x3ad7258d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3ad7a064]
jne 0x3ad72597
repz ret
jmp fcn.3ad73d0c

Function at 0x3ad775d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x3ad775df
pop dword [ebp - 0x10]
mov eax, 0x3ad775df
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x3842a
push 0
mov eax, 0x2805113a
add eax, 0x12d1ff7a
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x87804e47
add ecx, 0x787ffc52
mov esi, eax
mov edx, 0x359714da
add edx, 0x5413926
add edx, dword [ebp - 0x10]
mov edi, 0x5a51761
xor dword [ebp - 0xc], ebx
mov ebx, dword [edx]
sub dword [ebp - 0xc], 0x3d1f164f
sub ebx, edi
mov dword [esi], ebx
add dword [ebp - 8], esi
add esi, 0x5f9635fb
add esi, 0xa069ca09
add edx, 4
loop 0x3ad77633
add eax, 0x11d37
xor ebx, ebx
add ebx, eax
add eax, 0xb70d2da3
add eax, 0x48f2d262
mov ecx, 0x11c903d8
sub ecx, 0xd6f203d8
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x1003a66
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
push esi
push 0x100245c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x1003b38
push ebx
mov ebx, 0x100d5c0
push ebx
push 0x100244c
push 0x100d380
call fcn.01002d05
push esi
push 0x4000002
push 1
push esi
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [0x100c020], esi
je 0x1003b37
push edi
mov edi, 0x314
push edi
push 0
push 0x100cbc0
call fcn.010068ee
add esp, 0xc
push 0
lea eax, [ebp - 4]
push eax
push edi
push 0x100cbc0
push esi
mov dword [0x100cbc0], 0x6e776453
mov dword [0x100cbc4], 0x10000
mov dword [0x100cbc8], 0xc0000013
mov byte [0x100cdd0], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1003b23
cmp dword [ebp - 4], edi
jne 0x1003b23
push ebx
push 0x100245c
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x1003b36
push dword [0x100c020]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x100c020], 0xffffffff
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1003b40
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x280
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x1003b5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [0x101d6e0], 0
jne 0x1003bbd
lea eax, [ebp - 0x280]
push eax
push 0x200
push esi
call fcn.01002e46
lea eax, [ebp - 0x280]
push eax
call fcn.01003746
push 0x80
lea eax, [ebp - 0x80]
push eax
push 0x20000003
push dword [0x100c35c]
mov byte [ebp - 0x80], 0
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10010
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x280]
push eax
push dword [0x100d104]
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.01002eb5
test esi, esi
jne 0x1003bc7
inc esi
cmp dword [0x100c360], 0
je 0x1003be2
push 0x100d360
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
and dword [0x100c360], 0
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10048f8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov edx, esi
xor ebx, ebx
push edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100490c
push 0x2e
push esi
call dword [sym.imp.msvcrt.dll_strrchr]
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x1004979
push 0x10025e0
push edi
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
pop ecx
pop ecx
jne 0x1004979
xor ebx, ebx
inc ebx
mov eax, dword [0x101d6e8]
xor edx, edx
mov ecx, 0x3e8
div ecx
inc dword [0x101d6e8]
push edx
push 0x10025d8
push edi
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100493c
push esi
push 0x100c004
call fcn.010048ca
jmp 0x100497b
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100c024]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push esi
mov eax, ecx
push edi
mov edi, dword [ebp + 0xc]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1004a57
sub eax, esi
mov esi, eax
lea eax, [esi + 1]
push eax
push ecx
lea eax, [ebp - 0x108]
push eax
call fcn.010068e2
lea eax, [ebp + esi - 0x108]
add esp, 0xc
cmp byte [eax - 1], 0x5c
je 0x1004a8a
mov byte [eax], 0x5c
mov byte [eax + 1], 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.010049da
test eax, eax
pop edi
pop esi
je 0x1004aef
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1004aef
test al, 0x10
je 0x1004aef
push 0x10024e0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x1004aea
push 0x10025e8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1004aea
push 0
lea ecx, [ebp - 0x108]
push ecx
call eax
test eax, eax
jne 0x1004aea
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
inc eax
jmp 0x1004af1
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010068cd
leave
ret 0xc
Function at 0x1006f3a
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x1006f82
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x1006f7d
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x1006f67
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x1006f6f
cmp edx, ebx
jne 0x10070bd
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
dec eax
add al, 0x83
inc ebp
or byte [edx], al
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x1006f3e
invalid
add eax, dword [eax + 4]
jmp 0x1006f2b
mov dword [ebp + 0xc], ebx
jmp 0x1006f8d
Function at 0x100093f3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10009432
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10009432
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10009432
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10009432
cmp dword [ecx + 0x74], 0xe
jbe 0x10009432
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000c0af
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 0x1000c14c
push ebx
push esi
call fcn.1000c078
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.1000c00c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000c0f9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000c14b
push edi
push eax
call fcn.1000d06a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000c119
call fcn.1000ab54
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000c14a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000c00c
add esp, 0x20
test eax, eax
jne 0x1000c138
push edi
call fcn.1000ab54
jmp 0x1000c140
push ebx
call fcn.1000ab54
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 0x1000c3b9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013658
push 0x10013650
push str.FlsAlloc
push 0x1f
call fcn.1000c2d5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000c3ed
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001213c]
call esi
jmp 0x1000c3f3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000c437
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013668
push 0x10013660
push str.FlsGetValue
push 0x21
call fcn.1000c2d5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000c46e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001213c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000c476
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013670
push 0x10013668
push str.FlsSetValue
push 0x22
call fcn.1000c2d5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000c4b0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001213c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]