joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403984
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x5c]
push ebx
sub esp, 0xac
call fcn.00403adc
mov ebx, eax
mov eax, dword [0x407064]
mov eax, dword [eax]
mov dword [esp + 4], ebx
mov dword [esp], str._s__s_Z
mov dword [esp + 8], eax
call fcn.00403588
mov ecx, 0x11
xor edx, edx
mov esi, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [esp], 0xffffffff
mov ecx, ebx
call fcn.00405510
mov edi, eax
test eax, eax
jne 0x4039e0
xor ebx, ebx
or edx, 0xffffffff
jmp 0x403a64
mov dword [esp], 0xffffffff
mov ecx, esi
xor edx, edx
xor eax, eax
call fcn.00405510
mov ebx, eax
test eax, eax
je 0x4039d6
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x5c], 0x44
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x5c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
or edx, 0xffffffff
sub esp, 0x28
test eax, eax
je 0x403a64
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
mov edx, dword [ebp - 0x6c]
mov eax, dword [0x407058]
mov dword [ebp - 0x7c], edx
mov dword [esp + 8], edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 4], 0
mov dword [esp], eax
call edi
mov eax, dword [0x407058]
sub esp, 0xc
mov dword [esp + 8], ebx
or ebx, 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], eax
call edi
mov edx, dword [ebp - 0x7c]
sub esp, 0xc
cmp edx, 0xffffffff
je 0x403ab6
mov dword [esp], edx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov eax, dword [0x407058]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call edi
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403adc
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x407064]
mov ebx, dword [eax + 0xc]
test ebx, ebx
jne 0x403c0c
mov dword [esp], 0xffffffff
mov ecx, str._TMP__adguard_setup.exe
xor edx, edx
xor eax, eax
call fcn.00405510
mov edi, eax
test eax, eax
je 0x403c04
mov ecx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [ebp - 0x24], ecx
mov dword [esp], eax
call ecx
sub esp, 0xc
mov edx, eax
lea eax, [eax + eax]
mov dword [esp + 8], eax
mov eax, dword [0x407058]
mov dword [ebp - 0x1c], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 4], 0
mov dword [ebp - 0x20], eax
call eax
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x403bc8
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 8], edx
call ecx
mov edx, dword [ebp - 0x1c]
mov ecx, esi
sub esp, 0xc
lea eax, [edx + 1]
xor edx, edx
mov dword [esp], eax
mov dword [ebp - 0x1c], eax
xor eax, eax
call fcn.004043a4
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [ebp - 0x24], eax
mov eax, dword [0x407058]
mov dword [esp], eax
mov eax, dword [ebp - 0x20]
call eax
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x403bc8
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov ecx, esi
mov dword [esp], eax
mov eax, ebx
call fcn.004043a4
mov eax, dword [0x407058]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp], eax
call edi
sub esp, 0xc
test esi, esi
je 0x403c04
mov eax, dword [0x407058]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call edi
sub esp, 0xc
mov eax, dword [0x407064]
mov dword [eax + 0xc], ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x404440
Capabilities:
Create directory

Disassembly:
push ebp
mov ecx, eax
mov ebp, esp
push edi
push esi
lea edx, [ebp - 0x21c]
push ebx
mov ebx, eax
lea eax, [ebp - 0x218]
sub esp, 0x22c
mov dword [ebp - 0x21c], 0x100
mov dword [esp], 0xffffffff
call fcn.00405510
test eax, eax
je 0x404569
mov esi, eax
movsx ax, byte [ebx]
mov edx, eax
cmp ax, 0x2f
je 0x4044cb
cmp ax, 0x5c
sete al
je 0x4044cb
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
xor edi, edi
not ecx
dec ecx
cmp ecx, 1
jbe 0x4044d4
or edx, 0x20
sub edx, 0x61
cmp dl, 0x19
ja 0x4044d4
cmp byte [ebx + 1], 0x3a
jne 0x4044d4
cmp ecx, 2
je 0x4044cf
movsx ax, byte [ebx + 2]
cmp ax, 0x2f
je 0x4044cf
cmp ax, 0x5c
jne 0x4044d4
jmp 0x4044cf
xor edi, edi
jmp 0x4044d4
mov edi, 2
add edi, edi
lea ebx, [esi + edi]
mov ax, word [ebx]
cmp ax, 0x2f
je 0x4044e8
cmp ax, 0x5c
jne 0x4044eb
add ebx, 2
mov di, word [ebx]
cmp di, 0x2f
sete dl
cmp di, 0x5c
sete al
or dl, al
jne 0x404505
test di, di
jne 0x4044e8
mov word [ebx], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edx
push edx
mov word [ebx], di
test eax, eax
je 0x40452e
cmp word [ebx], 0
jne 0x4044e8
xor ebx, ebx
jmp 0x404540
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x404524
mov ebx, 1
lea eax, [ebp - 0x218]
cmp esi, eax
je 0x40456c
mov eax, dword [0x407058]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
sub esp, 0xc
jmp 0x40456c
or ebx, 0xffffffff
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4047f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x4c
mov dword [ebp - 0x2c], edx
mov edx, 0x44
call fcn.0040462c
cmp eax, 0xffffffff
je 0x404864
mov ecx, dword [ebp - 0x2c]
mov edi, eax
lea eax, [ebp - 0x1c]
mov ebx, dword [ecx]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov eax, dword [ecx + 4]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
or edx, 0xffffffff
sub esp, 0x14
test eax, eax
je 0x404844
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
mov dword [esp], edi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
test eax, eax
je 0x40485d
xor eax, eax
test bl, bl
je 0x404869
mov eax, esi
call fcn.00404774
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40590c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ecx, eax
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x218]
lea edx, [ebp - 0x21c]
push ebx
mov eax, esi
sub esp, 0x23c
mov dword [ebp - 0x21c], 0x100
mov dword [esp], 0xffffffff
call fcn.00405510
test eax, eax
je 0x4059a7
mov ebx, eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], str.open
mov dword [esp], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
sub esp, 0x18
mov edi, eax
cmp ebx, esi
je 0x40599b
mov eax, dword [0x407058]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
sub esp, 0xc
xor eax, eax
cmp edi, 0x20
setle al
neg eax
jmp 0x4059aa
or eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x41e7e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x41e805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x41e878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x41e83a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x41e86d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x41e86b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x41e831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x41e7fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x1001f811
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1001f89d
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x1001f872
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x1001f870
push 0
push 0xf05
push 0
push 0
push 0x21de
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x1001f89b
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov esi, dword [eax]
push 0
mov ecx, dword [ebp - 0x28]
call fcn.1000da50
mov dword [eax], esi
jmp 0x1001f8b1
push 0
push 0x77a1
push 0x17ab
call fcn.1001fea7
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10031768
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movzx eax, byte [ebp + 0x30]
test eax, eax
je 0x100317bd
lea eax, [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10031793
push 0x449
call dword [sym.imp.USER32.dll_GetKeyState]
jmp 0x100317bb
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x100317bb
push 0
push 0x475
push 0x10c6
push 0x1069
push 0xd2a
call dword [sym.imp.USER32.dll_SetScrollRange]
jmp 0x1003181d
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
push 0x636a
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.10033666
add esp, 0x2c
mov esp, ebp
pop ebp
ret

Function at 0x100336ed
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x10033792
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x10033774
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jl 0x10033766
mov dword [ebp - 8], 1
jmp 0x1003376a
and dword [ebp - 8], 0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
jmp 0x10033790
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x10033790
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
jmp 0x100337ab
push 0x7ce0
push 0x3629
push 0x769e
push 0
call fcn.1001ffa1
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x10038a48
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10038aea
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x10038ade
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
push 4
push 0x2000
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
mov eax, dword [ebp - 4]
push dword [eax + 0x34]
push 0x9bc7
push 0x929f
call fcn.1004b060
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x10038adc
push 4
push 0x2000
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push 0
push 0x9bc7
push 0x929f
call fcn.1004b060
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x10038ae8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
jmp 0x10038b45
lea eax, [ebp + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x10038b35
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
lea eax, [eax*4 + 4]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push dword [eax + 8]
call fcn.1005474e
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx]
mov dword [ecx + 8], eax
jmp 0x10038b45
push 0x166f
push 0x216a
call dword [sym.imp.USER32.dll_SetParent]
mov esp, ebp
pop ebp
ret
Function at 0x1003e87d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1003e89e
push 1
push 0x34a2
call fcn.1003e923
pop ecx
pop ecx
jmp 0x1003e91f
lea eax, [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1003e8d4
push 0
push 0xf05
push 0
push 0
push 0x21de
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x1003e91f
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1003e902
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x1003e91f
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x1c]
call fcn.1000da50
mov dword [eax], 1
jmp 0x1003e8f7
mov esp, ebp
pop ebp
ret

Function at 0x1003e93d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1003ea34
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x1003e975
push 0x449
call dword [sym.imp.USER32.dll_GetKeyState]
jmp 0x1003ea32
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0x16
jmp 0x1003e997
mov eax, dword [ebp - 4]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 4
jge 0x1003ea32
mov dword [ebp - 8], 0x31e42a43
mov dword [ebp - 0x20], 0x74c7
mov dword [ebp - 8], 0
jmp 0x1003e9c1
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xfffffffb
jg 0x1003ea2d
mov dword [ebp - 0x24], 0
mov dword [ebp - 0xc], 0
jmp 0x1003e9de
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jge 0x1003e9f1
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x10], 0xfffffff9
jmp 0x1003e9d7
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x10], 0xffffffe5
jmp 0x1003ea16
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x10]
inc eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x10], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x10], 0x12
jl 0x1003ea2b
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
jmp 0x1003ea01
jmp 0x1003e9ba
jmp 0x1003e98c
jmp 0x1003ea65
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
push 0x1e25
push 1
push 0x4ba9
push dword [ebp - 0x28]
push 0x768b
push 0x4a05
push 0x3c40
push 0x74af
call fcn.10031deb
add esp, 0x20
mov esp, ebp
pop ebp
ret
Function at 0x10066875
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10071750]
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.10057db8
mov dword [ebp - 0x14], eax
cmp dword [0x1065e260], esi
jne 0x10066968
push 0x800
push esi
push 0x10007690
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x100668f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10066a48
push esi
push esi
push 0x10007690
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10066a48
push 0x100076a8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10066a48
push eax
call ebx
push 0x100076b4
push edi
mov dword [0x1065e260], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100076c4
push edi
mov dword [0x1065e264], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100076d8
push edi
mov dword [0x1065e268], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1065e270], eax
test eax, eax
je 0x10066965
push 0x100076f4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1065e26c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1006698d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10066980
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x100669a2
push 4
pop eax
jmp 0x10066a4a
cmp dword [ebp - 0x14], esi
je 0x100669a2
push dword [0x1065e260]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10066987
mov eax, dword [0x1065e26c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10066a00
cmp dword [0x1065e270], edi
je 0x10066a00
push eax
call ebx
push dword [0x1065e270]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10066a00
test eax, eax
je 0x10066a00
call ecx
test eax, eax
je 0x100669f5
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 0x100669f5
test byte [ebp - 8], 1
jne 0x10066a00
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10066a30
mov eax, dword [0x1065e264]
cmp eax, edi
je 0x10066a2d
push eax
call ebx
test eax, eax
je 0x10066a2d
call eax
mov esi, eax
test esi, esi
je 0x10066a2d
mov eax, dword [0x1065e268]
cmp eax, edi
je 0x10066a2d
push eax
call ebx
test eax, eax
je 0x10066a2d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1065e260]
call ebx
test eax, eax
je 0x10066a48
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10066a4a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10055592
mov esp, ebp
pop ebp
ret
Function at 0x111b8
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
mov dword [ebp - 4], 0xa
lea eax, [ebp - 0x48]
push eax
call sub.KERNEL32.DLL_TlsGetValue
test byte [ebp - 0x1c], 1
je 0x111db
movzx eax, word [ebp - 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x11bac
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor eax, eax
push ebp
push 0x11c7e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x20420
call sub.KERNEL32.DLL_GetLogicalDrives
cmp byte [0x20031], 0
je 0x11bdd
push 0x20420
call sub.KERNEL32.DLL_GetSystemDirectoryA
mov eax, 0x20440
call fcn.000112b0
mov eax, 0x20450
call fcn.000112b0
mov eax, 0x2047c
call fcn.000112b0
push 0xff8
push 0
call sub.KERNEL32.DLL_FindFirstFileA
mov dword [0x20478], eax
cmp dword [0x20478], 0
je 0x11c5d
mov dword [ebp - 8], 3
mov eax, dword [0x20478]
mov edx, dword [ebp - 8]
xor ecx, ecx
mov dword [eax + edx*4 - 0xc], ecx
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x401
jne 0x11c1c
mov dword [ebp - 0xc], 0x20460
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
mov dword [0x2046c], eax
mov byte [0x20418], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x11c85
cmp byte [0x20031], 0
je 0x11c7d
push 0x20420
call sub.KERNEL32.DLL_GetTempPathA
ret

Function at 0x11c94
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
cmp byte [0x20418], 0
je 0x11d8f
xor eax, eax
push ebp
push 0x11d88
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x20031], 0
je 0x11cc8
push 0x20420
call sub.KERNEL32.DLL_GetSystemDirectoryA
mov byte [0x20418], 0
mov eax, dword [0x20478]
push eax
call sub.KERNEL32.DLL_GetCommandLineA
xor eax, eax
mov dword [0x20478], eax
mov eax, dword [0x20440]
mov dword [ebp - 8], eax
jmp 0x11d06
push 0x8000
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
push eax
call sub.KERNEL32.DLL_GetLocalTime
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, 0x20440
cmp eax, dword [ebp - 8]
jne 0x11ceb
mov eax, 0x20440
call fcn.000112b0
mov eax, 0x20450
call fcn.000112b0
mov eax, 0x2047c
call fcn.000112b0
mov eax, dword [0x20438]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x11d5d
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [0x20438], eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetCommandLineA
mov eax, dword [0x20438]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x11d3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x11d8f
cmp byte [0x20031], 0
je 0x11d7d
push 0x20420
call sub.KERNEL32.DLL_GetTempPathA
push 0x20420
call sub.KERNEL32.DLL_GetVersion
ret
pop ecx
pop ecx
pop ebp
ret