joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4070e0
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x4346e8]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
sub ebx, ebx
xor esi, esi
cmp eax, ebx
push 2
pop ebp
jne 0x407129
call edi
mov esi, eax
cmp esi, ebx
je 0x407110
mov dword [0x4346e8], 1
jmp 0x407132
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x407124
mov eax, ebp
mov dword [0x4346e8], eax
jmp 0x407129
mov eax, dword [0x4346e8]
cmp eax, 1
jne 0x4071b6
cmp esi, ebx
jne 0x407145
call edi
push eax
pop esi
cmp esi, ebx
jne 0x407145
sub eax, eax
jmp 0x40720e
cmp word [esi], bx
push esi
pop eax
je 0x40715a
add eax, ebp
cmp word [eax], bx
jne 0x40714c
add eax, ebp
cmp word [eax], bx
jne 0x40714c
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, esi
push ebx
sar eax, 1
inc eax
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
push eax
pop ebp
cmp ebp, ebx
je 0x4071ab
push ebp
call fcn.0040513d
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x4071ab
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
or eax, eax
jne 0x4071a7
push dword [esp + 0x10]
call fcn.0040504a
pop ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x40720e
cmp eax, ebp
je 0x4071be
cmp eax, ebx
jne 0x40713e
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push eax
pop esi
cmp esi, ebx
je 0x40713e
cmp byte [esi], bl
je 0x4071dc
inc eax
cmp byte [eax], bl
jne 0x4071d2
inc eax
cmp byte [eax], bl
jne 0x4071d2
sub eax, esi
inc eax
push eax
pop ebp
push ebp
call fcn.0040513d
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x4071fa
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x40713e
push ebp
push esi
push edi
call fcn.00405260
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push edi
pop eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x40b0f0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
sub edx, edx
or esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x40b12c
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x40b122
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x40b12e
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40b112
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
sub ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
pop edi
cmp edi, ebx
jne 0x40b525
sub eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
or eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
test eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
test eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401044
Capabilities:
Accept command line arguments

Disassembly:
enter 0x2c, 0
lea ebx, [eax - 0x164]
xor ecx, eax
call sub.KERNEL32.dll_GetConsoleCP
push ebx
push eax
push eax
push ecx
call fcn.00401808
pop ebx
call sub.KERNEL32.dll_GetCommandLineA
add esp, 0x2c
pop ebp
ret 0xc

Function at 0x40106c
Capabilities:
Log keystrokes via polling

Disassembly:
pushal
lea esi, str.msdxm.ocx
inc ebx
push 2
push 0
push esi
call sub.KERNEL32.dll_LoadLibraryExA
cmp eax, 3
jg 0x401468
popal
ret 0
enter 0x38, 0
lea ebx, [0x4c100c]
sbb esi, dword [ebp - 0x34]
push ebx
push dword [ebx + 0x1bc]
push dword [ebx + 0x1d0]
push edx
push edi
call fcn.004019b4
pop ebx
push 0
call sub.USER32.dll_GetKeyState
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push dword [ebx + 0xa4]
pop ecx
call ecx
add esp, 0x38
pop ebp
ret

Function at 0x4010c4
Capabilities:
Get keyboard layout

Disassembly:
enter 0x38, 0
lea ebx, [eax - 0xc0]
sub edx, 0xffffffe7
push ebx
push esi
push dword [ebx + 0x3c]
push dword [ebx + 0x3c]
call fcn.00401308
pop ebx
push 0
call sub.USER32.dll_GetKeyboardLayout
call sub.KERNEL32.dll_GetConsoleCP
add esp, 0x38
pop ebp
ret 8

Function at 0x401170
Capabilities:
Get keyboard layout

Disassembly:
enter 0x5c, 0
lea edx, [eax - 0x134]
adc edi, dword [edx - 0x48]
push edx
push edi
push dword [edx + 0x94]
push dword [edx + 0x118]
call fcn.004011b0
pop edx
push edx
mov esi, 0
push esi
call sub.KERNEL32.dll_CloseHandle
pop edx
push edx
push 0
call sub.USER32.dll_GetKeyboardLayout
pop edx
add esp, 0x5c
pop ebp
ret 8

Function at 0x4011fc
Capabilities:
Get keyboard layout

Disassembly:
enter 0x58, 0
lea ebx, [0x4c1044]
adc dword [ebx + 0x10c], edi
mov edx, 0
push edx
call sub.USER32.dll_GetKeyboardLayout
push ebx
push edi
push eax
push dword [ebx + 0x94]
call fcn.00401848
pop ebx
mov edx, 0
push edx
call sub.KERNEL32.dll_GlobalUnlock
add esp, 0x58
pop ebp
ret 8

Function at 0x401238
Capabilities:
Encode data using xor
Log keystrokes via polling

Disassembly:
push ebp
sub ebp, ebp
add ebp, esp
sub esp, 0x5c
mov edi, 0x4c1170
adc dword [edi - 0x154], 0xe9e247fa
push ecx
mov edx, esp
push edx
mov edx, 9
push edx
xor dword [esp], 0x73
push 0x57a
add dword [esp], 0x3ee
push 0x9e6f5c2a
sub dword [esp], 0x9e234a12
mov ecx, 0xc21345e3
push ecx
push 0x3e2cda61
pop ecx
xadd dword [esp], ecx
mov ecx, dword [esp]
add esp, 4
mov ecx, dword [ecx]
call ecx
sub esp, 0xfffffffc
mov eax, dword [esp - 4]
xor esi, esi
sbb esi, 0x4c1218
neg esi
mov dword [edi - 0xc0], esi
mov ecx, esi
sub ecx, 0xc5
sub esi, esi
add esi, 0x402579
push 0x568
pop ebx
mov eax, dword [esi]
add esi, 3
inc esi
push eax
pop dword [ecx + 0xc5]
add ecx, 4
xor dword [edi - 0x70], 0x82543cb7
xor dword [ecx + 0xc1], 0x9e1374a7
sub dword [ecx + 0xc1], 0x4eac6723
sub ebx, 4
cmp ebx, 0
jne 0x4012bc
push 0
call sub.USER32.dll_GetKeyState
add esp, 0x5c
pop ebp
ret 0xc
Function at 0x401340
Capabilities:
Log keystrokes via polling

Disassembly:
enter 0x38, 0
lea edx, [ecx - 0xe8]
or ecx, dword [edx + 0x158]
push edx
push edi
push ebx
push ecx
call fcn.00401008
pop edx
push edx
mov ebx, 0
push ebx
call sub.USER32.dll_GetKeyState
pop edx
push edx
push 0
call sub.KERNEL32.dll_CloseHandle
pop edx
add esp, 0x38
pop ebp
ret 0xc

Function at 0x4013c8
Capabilities:
Accept command line arguments
Get keyboard layout

Disassembly:
enter 0x60, 0
lea ecx, [edi + 0x90]
adc dword [ebp - 0x10], 0x57859132
push ecx
call sub.KERNEL32.dll_GetCommandLineA
pop ecx
push ecx
push edi
push eax
call fcn.00401a60
pop ecx
push ecx
push 0
call sub.USER32.dll_GetKeyboardLayout
pop ecx
add esp, 0x60
pop ebp
ret 0xc

Function at 0x4014ec
Capabilities:
Suspend thread

Disassembly:
enter 0x30, 0
lea edi, [esi - 0x110]
add dword [ebp - 0x14], edx
push 0
call sub.KERNEL32.dll_SuspendThread
push edi
push eax
push edx
push esi
push edx
call fcn.0040174c
pop edi
lea esi, [edi - 8]
inc edx
add al, byte [eax]
add byte [edi - 0x73], bl
ja 0x401506
push esi
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
jne 0x40150c
add esp, 0x30
pop ebp
ret 0x10

Function at 0x401528
Capabilities:
Suspend thread

Disassembly:
enter 0x20, 0
lea eax, [edi - 0x34]
sbb dword [ebp - 0xc], esi
push eax
call sub.KERNEL32.dll_GetSystemDefaultLangID
pop eax
push eax
push edx
push esi
call fcn.004015e8
pop eax
push eax
mov eax, 0
push eax
call sub.KERNEL32.dll_SuspendThread
pop eax
add esp, 0x20
pop ebp
ret 8

Function at 0x401558
Capabilities:
Suspend thread

Disassembly:
enter 0x5c, 0
lea edx, [0x4c11f0]
adc eax, 0xb422a5c4
push edx
mov eax, 0
push eax
call sub.KERNEL32.dll_SuspendThread
pop edx
push edx
push dword [edx + 0xe4]
push esi
push dword [edx + 0x144]
push dword [edx + 0x68]
call fcn.00401378
pop edx
push edx
call sub.KERNEL32.dll_GetSystemDefaultLangID
pop edx
add esp, 0x5c
pop ebp
ret 0x10

Function at 0x4015b4
Capabilities:
Accept command line arguments

Disassembly:
enter 0x20, 0
lea edi, [0x4c116c]
and dword [ebp - 0x14], 0xbf6a8f98
push edi
push dword [edi + 0x64]
push edx
push eax
call fcn.004010f4
pop edi
mov eax, 0
push eax
call sub.KERNEL32.dll_lstrlenA
call sub.KERNEL32.dll_GetCommandLineA
add esp, 0x20
pop ebp
ret 8

Function at 0x401694
Capabilities:
Log keystrokes via polling

Disassembly:
enter 0x44, 0
mov ecx, 0x4c10d0
mov edi, 0xffffffa1
push ecx
push ebx
push edx
push dword [ecx + 0xf4]
push dword [ecx + 0x50]
call fcn.00401884
pop ecx
push ecx
push 0
call sub.USER32.dll_GetKeyState
pop ecx
push ecx
call sub.KERNEL32.dll_GetTickCount
pop ecx
add esp, 0x44
pop ebp
ret 8

Function at 0x4017c8
Capabilities:
Suspend thread

Disassembly:
enter 0x24, 0
lea eax, [0x4c11a8]
cmp eax, 0xdc0a
add byte [ebp + 0x4c11a805], cl
add byte [0xdc0a], bh
jbe 0x4017cb
push eax
push edx
push dword [eax + 0x98]
call fcn.00401170
pop eax
push eax
mov edi, 0
push edi
call sub.KERNEL32.dll_SuspendThread
pop eax
push eax
mov ecx, 0
push ecx
call sub.KERNEL32.dll_SuspendThread
pop eax
add esp, 0x24
pop ebp
ret 0xc
Function at 0x401808
Capabilities:
Log keystrokes via polling

Disassembly:
enter 0x4c, 0
lea ecx, [0x4c11c0]
or dword [ebp - 0x10], ebx
push ecx
push dword [ecx + 0x68]
push dword [ecx + 0x1a8]
push dword [ecx + 0xd4]
call fcn.004018e4
pop ecx
push ecx
mov esi, 0
push esi
call sub.USER32.dll_GetKeyState
pop ecx
push ecx
push 0
call sub.USER32.dll_GetKeyState
pop ecx
add esp, 0x4c
pop ebp
ret 0xc

Function at 0x4018e4
Capabilities:
Accept command line arguments
Suspend thread

Disassembly:
enter 0x2c, 0
mov eax, 0x4c10e4
add byte [eax + 0x4c10e4], bh
cmp eax, 0x9bc7
je 0x4018e7
push eax
call sub.KERNEL32.dll_GetCommandLineA
pop eax
push eax
push dword [eax + 0x1d0]
push ecx
push ecx
call fcn.00401788
pop eax
push eax
push 0
call sub.KERNEL32.dll_SuspendThread
pop eax
add esp, 0x2c
pop ebp
ret 0xc

Function at 0x4019e0
Capabilities:
Get keyboard layout

Disassembly:
enter 0x30, 0
lea esi, [0x4c10a4]
or edx, 0x8b4a69a7
push esi
push ecx
push ecx
call fcn.0040112c
pop esi
push 0
call sub.KERNEL32.dll_lstrlenA
push 0
call sub.USER32.dll_GetKeyboardLayout
add esp, 0x30
pop ebp
ret 8

Function at 0x401aac
Capabilities:
Accept command line arguments

Disassembly:
enter 0x1c, 0
lea eax, [0x4c1030]
adc esi, dword [eax + 0xd4]
push eax
call sub.KERNEL32.dll_GetSystemDefaultLangID
pop eax
push eax
push dword [eax + 0x144]
push edi
call fcn.004015b4
pop eax
push eax
call sub.KERNEL32.dll_GetCommandLineA
pop eax
add esp, 0x1c
pop ebp
ret 0xc
Function at 0x10063ea
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x109935c
sub esi, edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp + 0xc]
push eax
push 0x40
push esi
push edi
call ebx
cmp byte [ebp + 0x18], 0
je 0x100641e
mov eax, dword [ebp + 0x14]
sub dword [edi], eax
mov eax, edi
sub eax, dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push esi
push edi
call fcn.01006459
add esp, 0x10
cmp byte [ebp + 0x18], 0
je 0x100643c
mov eax, dword [ebp + 0x14]
add dword [edi], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push esi
push edi
call ebx
push 0x109935c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x10066fa
Capabilities:
Allocate thread local storage
Resolve function by parsing pe exports
Terminate process

Disassembly:
pushal
pushfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01008d34
push eax
lea edx, [0xfefa5a6]
lea ecx, [0x19904a1a]
sub esp, 0x10
mov dword [esp], edx
push ecx
sub dword [esp + 4], 0xeef3e64
pop ebx
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 0xc
jmp fcn.01006766
Function at 0x1008a5a
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [0x1099510]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp + 8]
push dword [edi + 0x64]
mov esi, eax
push dword [0x1099510]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp esi, 0x32
jae 0x1008aa9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0x60]
cmp eax, 0x2710
jae 0x1008aa1
mov dword [esi*8 + 0x1099380], 1
jmp 0x1008aaf
and dword [esi*8 + 0x1099380], 0
push edi
call fcn.010091de
pop edi
pop esi
pop ebp
ret 4
Function at 0x1008b2a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x20]
push ebx
movzx ebx, word [eax]
push esi
mov esi, dword [ebp + 0x10]
inc esi
and esi, 0xfffffffe
push edi
mov dword [ebp + 0x10], esi
jmp 0x1008b64
push dword [ebp + 0x14]
movzx edi, ax
push edi
call fcn.01008d2e
push eax
push edi
push dword [ebp + 8]
call fcn.01008d1f
push eax
call fcn.01008d10
inc esi
and esi, 0xfffffffe
movzx eax, word [esi]
inc esi
xor eax, ebx
inc esi
cmp ax, 0xffff
jne 0x1008b44
inc esi
and esi, 0xfffffffe
movzx ecx, word [esi]
inc esi
inc esi
xor ecx, ebx
cmp byte [ebp + 0x28], 0
jne 0x1008ba0
cmp byte [ebp + 0x24], 0
jne 0x1008ba0
cmp cx, ax
je 0x1008bd5
inc esi
and esi, 0xfffffffe
movzx eax, word [esi]
inc esi
xor eax, ebx
inc esi
cmp ax, 0xffff
jne 0x1008b8d
jmp 0x1008bd5
xor edi, edi
jmp 0x1008bcf
mov eax, dword [ebp + 0x20]
movzx eax, word [eax + edi*2]
mov edx, dword [ebp + 0x18]
and eax, 0xfffffff0
add eax, edx
push eax
movzx eax, cx
add eax, dword [ebp + 8]
inc edi
push eax
and edi, 3
call fcn.01008d01
inc esi
and esi, 0xfffffffe
movzx ecx, word [esi]
inc esi
inc esi
xor ecx, ebx
cmp cx, 0xffff
jne 0x1008ba4
mov ecx, dword [ebp + 0x1c]
push dword [ebp + 0x20]
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [esi + 7]
and eax, 0xfffffff8
mov edx, dword [eax]
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
add ecx, eax
push ecx
push eax
lea eax, [ebp - 8]
push eax
call fcn.01008cab
cmp byte [ebp + 0x24], 0
jne 0x1008c12
cmp dword [ebp + 0x14], 0
jne 0x1008c1c
cmp byte [ebp + 0x28], 0
je 0x1008c9e
mov esi, dword [ebp + 0x10]
movzx eax, word [esi]
inc esi
xor eax, ebx
inc esi
cmp ax, 0xffff
je 0x1008c61
mov ecx, dword [ebp + 0x14]
neg ecx
mov dword [ebp + 0x24], ecx
push dword [ebp + 0x24]
movzx edi, ax
push edi
call fcn.01008d2e
push eax
push edi
push dword [ebp + 8]
call fcn.01008d1f
push eax
call fcn.01008d10
inc esi
and esi, 0xfffffffe
movzx eax, word [esi]
inc esi
xor eax, ebx
inc esi
cmp ax, 0xffff
jne 0x1008c34
cmp byte [ebp + 0x28], 0
je 0x1008c9e
xor edi, edi
jmp 0x1008c8d
mov eax, dword [ebp + 0x20]
movzx eax, word [eax + edi*2]
mov edx, dword [ebp + 0x18]
and eax, 0xfffffff0
add eax, edx
neg eax
push eax
movzx eax, cx
add eax, dword [ebp + 8]
inc edi
push eax
and edi, 3
call fcn.01008d01
inc esi
and esi, 0xfffffffe
movzx ecx, word [esi]
inc esi
xor ecx, ebx
inc esi
cmp cx, 0xffff
jne 0x1008c6b
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x24
Function at 0x10090d0
Capabilities:
Check for time delay via gettickcount
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov ebx, 0x1099380
push edi
mov esi, ebx
push 2
xor eax, eax
pop ecx
inc eax
lock cmpxchg dword [esi], ecx
cmp eax, 1
jne 0x100910d
mov edi, dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0x60]
cmp eax, 0x2710
jb 0x100915d
and dword [esi], 0
push edi
call fcn.010091de
inc dword [ebp - 4]
add esi, 8
cmp dword [ebp - 4], 0x32
jl 0x10090e2
call fcn.010091ad
mov esi, eax
xor edi, edi
mov ecx, ebx
push 2
pop edx
xor eax, eax
lock cmpxchg dword [ecx], edx
test eax, eax
je 0x100917f
inc edi
add ecx, 8
cmp edi, 0x32
jl 0x1009124
push dword [0x1099510]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov dword [esi + 0x64], eax
push dword [0x1099510]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
push dword [0x1099510]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [ebp - 4]
mov dword [edi + 0x64], eax
push dword [0x1099510]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, edi
jmp 0x1009158
push dword [0x1099510]
mov dword [edi*8 + 0x1099384], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
mov dword [esi + 0x64], eax
push dword [0x1099510]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x60], eax
jmp 0x1009156

Function at 0x10091ad
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x3000
push 0x4000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x10091ce
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp fcn.010091ad
ret
Function at 0x10300d2
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x5c
push edi
xor ebx, ebx
call dword [sym.imp.msvcrt.dll_strrchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1030146
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1030141
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
dec eax
je 0x103012c
dec eax
jne 0x1030141
push edi
call fcn.010300d2
test eax, eax
je 0x1030128
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x1030128
xor ebx, ebx
inc ebx
jmp 0x103013b
xor ebx, ebx
jmp 0x1030141
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, eax
test ebx, ebx
je 0x1030141
push edi
call fcn.01044a00
mov byte [esi], 0x5c
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x1099a38]
push 0x104
mov dword [ebp - 4], eax
lea eax, [ebp - 0x108]
push eax
push 0x1009cd0
push 0x10c64c0
call fcn.01070fc9
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1030ae7
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0107c2b8
test eax, eax
je 0x1030ae7
cmp dword [ebp - 0x10c], 0x50032
jb 0x1030ae7
ja 0x1030ae2
cmp dword [ebp - 0x110], 0
jb 0x1030ae7
xor eax, eax
inc eax
jmp 0x1030ae9
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.0106bc50
leave
ret
Function at 0x1030af3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x1099a38]
push 0x10
pop ecx
mov esi, 0x1009d60
lea edi, [ebp - 0x94]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0xf
pop ecx
mov esi, 0x1009d24
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x1009d1c
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x98]
push eax
push 0x20019
mov esi, 0x1009d14
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
push 0
lea eax, [ebp - 0x94]
push eax
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, SysStringLen
push ebx
call edi
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x1030bfe
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xa4]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x98]
mov dword [ebp - 0x9c], 4
call esi
test eax, eax
je 0x1030ba5
push eax
lea eax, [ebp - 0xc]
jmp 0x1030be4
cmp dword [ebp - 0xa8], 0x20000
jb 0x1030c93
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xa4]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x98]
call esi
test eax, eax
je 0x1030c82
push eax
lea eax, [ebp - 0x14]
push eax
push 0x1009cdc
call fcn.01071ac0
add esp, 0xc
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x98]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x50]
push eax
push ebx
call edi
test eax, eax
je 0x1030c1e
xor eax, eax
jmp 0x1030ca3
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xa4]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x98]
mov dword [ebp - 0x9c], 4
call esi
test eax, eax
jne 0x1030c93
cmp dword [ebp - 0xa8], 0x20000
jb 0x1030c93
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xa4]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x98]
call esi
test eax, eax
jne 0x1030c93
xor esi, esi
cmp dword [ebp - 0xa0], 0x214
jb 0x1030c95
inc esi
jmp 0x1030c95
xor esi, esi
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret