joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426a30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b2e98
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4f2888]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
mov dword [esp + 0x34], edi
call fcn.00426070
add esp, 0x10
test eax, eax
je 0x426adc
mov ecx, dword [esp + 0x34]
push ecx
lea ecx, [esp + 0x10]
call fcn.004269d0
test eax, eax
je 0x426adc
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
cmp eax, edi
je 0x426abc
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 0xc
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
cmp eax, edi
je 0x426af1
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 0xc

Function at 0x428db0
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
push 0x4bacfe
push str.Shell_TrayWnd
mov edi, ecx
xor esi, esi
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x428de5
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [esp + 0x18]
sub esi, dword [esp + 0x10]
sub esi, 2
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call ebx
push 1
mov dword [edi + 0xbc], eax
call ebx
sub eax, esi
mov dword [edi + 0xc0], eax
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x42a700
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x42a72e
cmp dword [eax + 0x3c], 0
jl 0x42a72e
jg 0x42a716
cmp dword [eax + 0x38], 0
jbe 0x42a72e
push 1
push 0
push 0
add eax, 0x2144
push eax
mov eax, dword [ecx + 0x20]
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret 4

Function at 0x42a740
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x42a763
push 1
push 0
push 0
add eax, 0x1144
push eax
mov eax, dword [ecx + 0x20]
push str.explore
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret 4
Function at 0x435f06
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.004329d2
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x435f3f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00435b57
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x435f9d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x435fc1
cmp dword [edi + 0x54], 0
jne 0x435fc1
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004329d2
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00435f5e
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4378c7
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4b4168
call fcn.0048447b
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4378ec
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x437932
lea ecx, [ebp - 0x10]
call fcn.00401a50
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042dd70
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401150
mov eax, esi
call fcn.00484553
ret 8

Function at 0x43e639
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x43e680
call fcn.004329d2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x43e680
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x43e69c
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0043e1b3
mov esi, eax
test edi, edi
je 0x43e69a
test ebx, ebx
je 0x43e69a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x445435
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x4f2888]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x4454d3
push 0x4c58fc
push 4
push eax
call fcn.0048058f
push eax
call fcn.00405e40
add esp, 0x10
push ebx
push edi
call fcn.004848da
mov edi, dword [eax]
call fcn.004848da
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00480ac0
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.004848da
cmp dword [eax], ebx
je 0x4454ea
call fcn.004848da
push dword [eax]
call fcn.0042e3ca
pop ecx
jmp 0x4454f1
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x44547b
jmp 0x445578
call fcn.004848da
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
je 0x445574
cmp dword [ebp - 0x11c], esi
jae 0x445574
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x15c]
push ebx
push eax
mov dword [ebp - 0x160], 0x40
call fcn.00480970
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x445563
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x445563
lea ecx, [ebp - 0x160]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x445563
push ebx
push ebx
push esi
jmp 0x44556c
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x445576
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0047f7c9
leave
ret

Function at 0x44705a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4470a2
call fcn.004329d2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4470a2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4470e5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4470ce
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4470ce
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4470e2
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x447cc8
Capabilities:
Connect socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.WSOCK32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret 8

Function at 0x457e0f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x4b6a2b
call fcn.0048447b
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004021a0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x457e71
call fcn.00431dd1
cmp eax, 1
jne 0x457e71
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00421180
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00401fb0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401150
mov dword [ebp + 8], reloc.WSOCK32.dll_accept
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401150
mov eax, esi
call fcn.00484553
ret 0x10

Function at 0x457e9a
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x4b6a56
call fcn.0048447b
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004021a0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x457efc
call fcn.00431dd1
cmp eax, 1
jne 0x457efc
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00421180
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00401fb0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401150
mov dword [ebp + 8], reloc.WSOCK32.dll_accept
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401150
mov eax, esi
call fcn.00484553
ret 0x14

Function at 0x457f28
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x4b6a81
call fcn.0048447b
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004021a0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x457f8a
call fcn.00431dd1
cmp eax, 1
jne 0x457f8a
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00421180
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00401fb0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401150
mov dword [ebp + 8], reloc.WSOCK32.dll_accept
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401150
mov eax, esi
call fcn.00484553
ret 8
Function at 0x47e3bd
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4f2888]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x47e3f2
xor eax, eax
jmp 0x47e445
lea eax, [ebp - 0x210]
push eax
call fcn.00484364
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x47e423
push 0x4cbf84
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0048ad31
add esp, 0xc
test eax, eax
jne 0x47e3ee
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0048ad31
add esp, 0xc
test eax, eax
jne 0x47e3ee
lea eax, [ebp - 0x210]
push eax
call fcn.0047e32f
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047f7c9
leave
ret

Function at 0x47f7c9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4f2888]
jne 0x47f7d3
repz ret
jmp fcn.0048b218

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x481e1c
call fcn.004848ed
mov dword [eax], esi
call fcn.004848da
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0048bb02
add esp, 0x14
push 0x16
pop eax
jmp 0x481e71
test dword [ebp + 0xc], 0xfffffff9
jne 0x481df8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x481e49
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00484900
pop ecx
call fcn.004848da
mov eax, dword [eax]
jmp 0x481e71
test al, 0x10
jne 0x481e6f
test al, 1
je 0x481e6f
test byte [ebp + 0xc], 2
je 0x481e6f
call fcn.004848ed
mov dword [eax], 5
call fcn.004848da
mov dword [eax], 0xd
jmp 0x481e40
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4a68e4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0048b3aa
and dword [ebp - 4], 0
cmp dword [0x4f68b0], 0
mov ebx, eax
jne 0x4a6995
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4a6a46
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4cea10
push edi
call esi
test eax, eax
je 0x4a6a46
push eax
call fcn.0048b338
mov dword [esp], 0x4cea00
push edi
mov dword [0x4f68b0], eax
call esi
push eax
call fcn.0048b338
mov dword [esp], 0x4ce9ec
push edi
mov dword [0x4f68b4], eax
call esi
push eax
call fcn.0048b338
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4f68b8], eax
call esi
push eax
call fcn.0048b338
pop ecx
mov dword [0x4f68c0], eax
test eax, eax
je 0x4a6995
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0048b338
pop ecx
mov dword [0x4f68bc], eax
mov eax, dword [0x4f68bc]
cmp eax, ebx
je 0x4a69ed
cmp dword [0x4f68c0], ebx
je 0x4a69ed
push eax
call fcn.0048b3b3
push dword [0x4f68c0]
mov esi, eax
call fcn.0048b3b3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4a69ed
test edi, edi
je 0x4a69ed
call esi
test eax, eax
je 0x4a69e4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4a69e4
test byte [ebp - 0xc], 1
jne 0x4a69ed
or dword [ebp + 0x10], 0x200000
jmp 0x4a6a26
mov eax, dword [0x4f68b4]
cmp eax, ebx
je 0x4a6a26
push eax
call fcn.0048b3b3
pop ecx
test eax, eax
je 0x4a6a26
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4a6a26
mov eax, dword [0x4f68b8]
cmp eax, ebx
je 0x4a6a26
push eax
call fcn.0048b3b3
pop ecx
test eax, eax
je 0x4a6a26
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4f68b0]
call fcn.0048b3b3
pop ecx
test eax, eax
je 0x4a6a46
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4a6a48
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1004670
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001290
push 0x1005c18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x100e01c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x100e018], ecx
shl ecx, 8
add ecx, edx
mov dword [0x100e014], ecx
shr eax, 0x10
mov dword [0x100e010], eax
call fcn.01005ae0
test eax, eax
jne 0x10046da
push 0x1c
call fcn.010047d0
add esp, 4
call fcn.010059e0
test eax, eax
jne 0x10046ed
push 0x10
call fcn.010047d0
add esp, 4
mov dword [ebp - 4], 0
call fcn.010057d0
call fcn.010057c0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100f5d0], eax
call fcn.01005360
mov dword [0x100e000], eax
test eax, eax
je 0x1004720
mov eax, dword [0x100f5d0]
test eax, eax
jne 0x100472a
push 0xffffffffffffffff
call fcn.01004c30
add esp, 4
call fcn.010050b0
call fcn.01004fc0
call fcn.01004c00
mov eax, dword [0x100e02c]
mov dword [0x100e030], eax
push eax
mov eax, dword [0x100e024]
push eax
mov ecx, dword [0x100e020]
push ecx
call fcn.01001d00
add esp, 0xc
mov dword [ebp - 0x1c], eax
push eax
call fcn.01004c30
jmp 0x1004785
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10047d0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x100e008], 2
je 0x10047de
call fcn.01005cf0
mov eax, dword [esp + 4]
push eax
call fcn.01005d30
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1004c70
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.01004d30
mov eax, dword [0x100e04c]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x1004c94
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x100e048], 1
mov byte [0x100e044], bl
jne 0x1004cee
mov ecx, dword [0x100f5c8]
test ecx, ecx
je 0x1004cdc
mov esi, dword [0x100f5c4]
sub esi, 4
cmp esi, ecx
jb 0x1004cdc
mov eax, dword [esi]
test eax, eax
je 0x1004cd5
call eax
mov ecx, dword [0x100f5c8]
sub esi, 4
cmp esi, ecx
jae 0x1004cc7
push 0x100b01c
push 0x100b014
call fcn.01004d50
add esp, 8
push 0x100b024
push 0x100b020
call fcn.01004d50
add esp, 8
test ebx, ebx
je 0x1004d0d
call fcn.01004d40
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x100e04c], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1005360
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x100e158]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x10053a2
call edi
mov esi, eax
test esi, esi
je 0x100538c
mov eax, 1
jmp 0x100539d
call ebp
mov ebx, eax
test ebx, ebx
je 0x10054af
mov eax, 2
mov dword [0x100e158], eax
cmp eax, 1
jne 0x1005442
test esi, esi
jne 0x10053bb
call edi
mov esi, eax
test esi, esi
je 0x10054af
cmp word [esi], 0
mov eax, esi
je 0x10053d5
add eax, 2
cmp word [eax], 0
jne 0x10053c3
add eax, 2
cmp word [eax], 0
jne 0x10053c3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x1005434
push edi
call fcn.01004a20
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1005434
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1005426
push ebx
call fcn.01004af0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x10054af
test ebx, ebx
jne 0x1005453
call ebp
mov ebx, eax
test ebx, ebx
je 0x10054af
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x100546b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100545b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100545b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.01004a20
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100548d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x10059e0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.01005f10
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x100b1e4], eax
je 0x1005a38
push 0x74
push 1
call fcn.01007540
mov esi, eax
add esp, 8
test esi, esi
je 0x1005a38
mov eax, dword [0x100b1e4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1005a38
push esi
call fcn.01005a40
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x1005a60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x100b1e4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x1005ace
push 0x74
push 1
call fcn.01007540
mov esi, eax
add esp, 8
test esi, esi
je 0x1005ac4
mov ecx, dword [0x100b1e4]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1005ac4
push esi
call fcn.01005a40
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.010047a0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret