joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101d835
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x102c22c]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0xfffa
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0xc]
mov esi, 0x106f8a0
push esi
xor edi, edi
push eax
push 0x106e400
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x42c], edi
call fcn.01015121
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push esi
push edi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call edi
push ebx
lea eax, [ebp - 0x414]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x424]
push 0
push 0
call edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, 0x80
push ebx
push esi
call edi
push esi
push dword [ebp - 0x420]
call fcn.0100d6a3
lea eax, [ebp - 0x20c]
push eax
call fcn.01016f00
test eax, eax
je 0x101d91d
cmp eax, 0x800b0100
je 0x101d8f8
push eax
push esi
push 0x1007bb8
jmp 0x101d949
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x2584
push 0x1007ba0
push 0x1007b50
call fcn.01015c5a
add esp, 0x14
push 0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01016f71
test eax, eax
jne 0x101d942
mov dword [ebp - 0x418], 1
jmp 0x101d951
push eax
push esi
push 0x1007b08
call fcn.01015c5a
add esp, 0xc
push ebx
push esi
call edi
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.01015d97
test eax, eax
je 0x101d97f
push dword [ebp - 0x41c]
push esi
call fcn.0101d565
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
pop edi
pop esi
pop ebx
call fcn.0101439a
leave
ret 8
Function at 0x101ef4c
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x102c22c]
push ebx
push esi
push edi
mov edi, 0xfffa
push edi
mov esi, 0x107f8a0
push esi
push 0x1008418
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call fcn.01015121
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x102dda0], eax
je 0x101f0fd
push 3
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x101f0fd
push 0
call eax
test eax, eax
mov dword [0x102dda8], eax
je 0x101f0fd
cmp dword [0x103e7e4], 0
jne 0x101f0c8
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.0101d5df
test eax, eax
je 0x101f0b5
cmp dword [ebp - 0xc], 0x8740001
mov eax, 0x50000
jne 0x101efe0
cmp dword [ebp - 8], eax
je 0x101f00f
cmp dword [ebp - 0xc], 0x8930652
jne 0x101efee
cmp dword [ebp - 8], eax
je 0x101f00f
cmp dword [ebp - 8], eax
jb 0x101f005
ja 0x101effe
cmp dword [ebp - 0xc], 0x8740960
jb 0x101f005
push 1
jmp 0x101f095
push 0x10083d0
jmp 0x101f0ae
push edi
push esi
mov ebx, 0x10083c0
push ebx
push dword [ebp + 8]
call fcn.01015121
push edi
mov edi, 0x106f8a0
push edi
push ebx
push dword [ebp + 0xc]
call fcn.01015121
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call ebx
cmp eax, 0xffffffff
je 0x101f07c
cmp dword [ebp + 0x10], 0
je 0x101f07c
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x101f070
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1008390
call fcn.01015c5a
pop ecx
pop ecx
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call ebx
cmp eax, 0xffffffff
jne 0x101f093
push edi
call ebx
cmp eax, 0xffffffff
jne 0x101f093
push 0x1008350
jmp 0x101f0ae
push 0
push dword [0x102dda0]
call fcn.01019d3d
test eax, eax
mov dword [0x102ddac], eax
jne 0x101f0d1
push 0x1008338
jmp 0x109e968
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100830c
call fcn.01015c5a
pop ecx
pop ecx
cmp dword [0x102ddac], 0
je 0x101f0dd
push 0x10082e0
call fcn.01015c5a
jmp 0x101f10f
push 0x10082b8
call fcn.01015c5a
pop ecx
push 5
push dword [0x102dda0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x102dda4], eax
jmp 0x101f110
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1008288
call fcn.01015c5a
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101439a
leave
ret 0xc
Function at 0x101f39d
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, 0x102d940
cmp eax, esi
push edi
je 0x101f3c1
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x101f3b7
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101f3c6
sub eax, edx
lea edi, [eax + 0x102d940]
mov byte [edi], 0x5c
inc edi
and dword [ebp + 8], 0
mov ebx, 0x102cec8
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 8], eax
mov word [edi], 0x2a
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x101f472
test byte [0x102cec8], 0x10
jne 0x101f44f
mov eax, 0x102cef4
mov edx, edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x101f40f
push 0x1008474
push edi
call sub.ntdll.dll_strstr
test eax, eax
pop ecx
pop ecx
je 0x101f43f
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x101f44f
push dword [ebp + 0xc]
push esi
call fcn.0101d565
test eax, eax
je 0x101f44f
inc dword [ebp + 8]
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x101f3fd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 8]
cmp dword [ebp + 8], eax
jne 0x101f3e2
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x101f5cb
Capabilities:
Delete directory
Get common file path
Move file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x102c22c]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x104
lea ecx, [ebp - 0x108]
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x10019ec
push eax
mov dword [ebp - 0x314], eax
mov dword [ebp - 0x318], esi
call fcn.01015121
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.0101f39d
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, 0x80
push ebx
lea eax, [ebp - 0x108]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [ebp - 0x108]
push eax
call edi
test eax, eax
jne 0x101f64f
push 4
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push dword [ebp - 0x318]
push dword [ebp - 0x314]
call fcn.0101f39d
push ebx
push dword [ebp - 0x314]
call esi
push dword [ebp - 0x314]
call edi
test eax, eax
jne 0x101f684
jmp 0x109cbb8
cmp dword [ebp + 0x10], 0
jne 0x101f6c8
mov esi, 0x104
push esi
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x101f6c8
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1006f28
lea eax, [ebp - 0x310]
push eax
call fcn.01015121
push 1
lea eax, [ebp - 0x20c]
push eax
call fcn.01017837
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101439a
leave
ret 0xc
Function at 0x101f6dc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x102c22c]
and dword [ebp - 0x218], 0
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x220], eax
mov esi, 0x209
je 0x101f778
cmp byte [edi], 0
je 0x101f778
push edi
mov dword [ebp - 0x218], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x101f751
test al, 0x10
je 0x101f751
push esi
lea eax, [ebp - 0x210]
push eax
push ebx
push edi
mov byte [ebp - 0x210], 0
call fcn.01015121
jmp 0x101f75f
push edi
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.0100b4e5
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
call fcn.0101f124
test eax, eax
mov dword [ebp - 0x214], eax
jne 0x101f7c2
push esi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 0x21c]
mov byte [ebp - 0x210], 0
call fcn.01015121
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
call fcn.0101f124
test eax, eax
mov dword [ebp - 0x214], eax
je 0x101f7d7
jmp 0x109f840
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0x1c]
push dword [ebp - 0x220]
call fcn.0100d9cc
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
pop ebx
call fcn.0101439a
leave
ret 0x18
Function at 0x1020fff
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0x27
jae 0x102100f
push 0x7a
pop eax
jmp 0x1021068
mov eax, dword [ebp + 0xc]
mov byte [eax], 0x7b
push esi
mov esi, dword [ebp + 8]
inc eax
xor ecx, ecx
cmp byte [ecx + 0x1008b28], 0x2d
jne 0x102102a
mov byte [eax], 0x2d
jmp 0x1021057
movzx edx, byte [ecx + 0x1008b28]
movzx edx, byte [edx + esi]
shr edx, 4
mov dl, byte [edx + 0x1008b3c]
jmp 0x10a0c90
inc eax
inc ecx
cmp ecx, 0x14
jb 0x102101c
mov byte [eax], 0x7d
mov byte [eax + 1], 0
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x102219b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x102c22c]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push edi
push 0x104
lea edx, [ebp - 0x20c]
push edx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
push edi
call dword [sym.imp.UPDSPAPI.dll_UpdSpGetLineTextW]
test eax, eax
lea eax, [ebp - 0x20c]
je 0x102220a
push edi
push edi
push eax
call sub.msvcrt.dll_wcstoul
push eax
push 0x1008ef8
push esi
push 0x1008ee4
lea eax, [ebp - 0x20c]
push 0x103
push eax
call sub.ntdll.dll__snwprintf
add esp, 0x24
jmp 0x1022226
jmp loc.0109e198
push edi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101439a
leave
ret 0x14

Function at 0x1022260
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1014
call sub.ntdll.dll__chkstk
mov eax, dword [0x102c22c]
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1008], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x100c], eax
xor eax, eax
mov ecx, 0x200
lea edi, [ebp - 0x804]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1010]
push eax
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x1004]
push eax
push ebx
push dword [ebp - 0x1008]
xor edi, edi
push edx
push edi
call dword [sym.imp.UPDSPAPI.dll_UpdSpGetLineTextW]
cmp eax, edi
mov dword [ebp - 0x1008], eax
jne 0x102230d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10222f4
push dword [ebp - 0x1010]
push ebx
push 0x1008f30
call fcn.01015c5a
add esp, 0xc
jmp 0x1022377
push 0x400
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 0x14]
push edi
call fcn.0100ce22
test eax, eax
je 0x1022377
lea eax, [ebp - 0x1004]
push eax
push 0x1008ef8
push ebx
push 0x1008f1c
lea eax, [ebp - 0x804]
push esi
push eax
call sub.ntdll.dll__snwprintf
add esp, 0x18
push edi
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x100c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x102236d
push ebx
push 0x1008efc
call fcn.01015c5a
pop ecx
pop ecx
jmp 0x1022377
mov dword [ebp - 0x1008], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1008]
pop edi
pop esi
pop ebx
call fcn.0101439a
leave
ret 0x14
Function at 0x10223f6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x1022454
cmp dword [ebp + 0xc], 0x104
jb 0x1022454
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push 0x1008f64
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1022454
push edi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push esi
push esi
push 0x1008f5c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp loc.0109ff48
mov eax, esi
pop esi
leave
ret 8

Function at 0x1022460
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x102c22c]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 4], eax
je 0x10224f8
mov eax, 0x104
cmp dword [ebp + 0xc], eax
jb 0x10224f8
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x10224a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1008fd8
jmp 0x10224ec
lea eax, [ebp - 0x20c]
push eax
push 0x1008fc8
lea eax, [ebp - 0x414]
push 0x103
push eax
call sub.ntdll.dll__snwprintf
add esp, 0x10
push esi
push edi
push 0x1008fc0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x10224f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1008f9c
call fcn.01015c5a
pop ecx
pop ecx
jmp 0x10224f8
xor edi, edi
inc edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
call fcn.0101439a
leave
ret 8

Function at 0x102250d
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x102c22c]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 4], eax
je 0x10225a5
mov eax, 0x104
cmp dword [ebp + 0xc], eax
jb 0x10225a5
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x1022555
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1008fd8
jmp 0x1022599
lea eax, [ebp - 0x108]
push eax
push 0x1009000
lea eax, [ebp - 0x20c]
push 0x103
push eax
call sub.ntdll.dll__snprintf
add esp, 0x10
push esi
push edi
push 0x1008ffc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x10225a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1008f9c
call fcn.01015c5a
pop ecx
pop ecx
jmp 0x10225a5
xor edi, edi
inc edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
call fcn.0101439a
leave
ret 8
Function at 0x10225ba
Capabilities:
Copy file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x102c22c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
xor eax, eax
cmp esi, 0x400
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x418], eax
jb 0x1022702
cmp edi, eax
je 0x1022702
mov dword [edi], eax
cmp byte [0x106f780], al
je 0x1022702
push ebx
push 0x104
lea ecx, [ebp - 0x414]
push ecx
push 0xffffffffffffffff
mov ebx, 0x106f780
push ebx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x102264a
and dword [ebp - 0x418], eax
push ebx
push 0x1009028
call fcn.01015c5a
pop ecx
pop ecx
jmp 0x1022701
jmp loc.0109c960
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
pop edi
pop esi
call fcn.0101439a
leave
ret 0x10
Function at 0x1027c65
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x100b010
call fcn.010145b0
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x1000000], 0x5a4d
jne 0x1027cb8
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x1027cb8
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x1027cd0
cmp ecx, 0x20b
je 0x1027cbd
mov dword [ebp - 0x1c], ebx
jmp 0x1027ce4
cmp dword [eax + 0x84], 0xe
jbe 0x1027cb8
xor ecx, ecx
cmp dword [eax + 0xf8], ebx
jmp 0x1027cde
cmp dword [eax + 0x74], 0xe
jbe 0x1027cb8
xor ecx, ecx
cmp dword [eax + 0xe8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x108f9c0], edi
mov dword [0x108f9c4], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x102deb8]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x102deb4]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x108f9c8], eax
call fcn.01028098
cmp dword [0x102c6c0], ebx
jne 0x1027d41
push fcn.01028098
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01028081
push 0x1001594
push 0x1001590
call sub.msvcrt.dll__initterm
mov eax, dword [0x102deb0]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x102deac]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x100158c
push 0x1001584
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x1027dcc
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x1027dac
cmp cl, 0x22
jne 0x1027d9d
cmp byte [eax], 0x22
jne 0x1027db5
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x1027dc0
cmp cl, 0x20
jbe 0x1027db1
test byte [ebp - 0x54], 1
je 0x1027dd7
movzx ecx, word [ebp - 0x50]
jmp 0x1027dda
cmp byte [eax], 0x20
jbe 0x1027db5
inc eax
mov dword [ebp - 0x20], eax
jmp 0x1027dcc
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call fcn.010136b4
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1027df8
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x1027e34
mov eax, esi
jmp 0x1027e48
call fcn.010145eb
ret

Function at 0x1028451
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x102845f
sub eax, ecx
mov ecx, eax
not eax
je 0x102847a
movsx edx, byte [esi]
rol eax, 3
xor eax, edx
inc esi
dec ecx
jne 0x102846e
pop esi
pop ebp
ret 4
Function at 0x40159c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1048
call fcn.00407d90
mov eax, dword [ebp + 0x18]
mov byte [ebp - 9], al
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.getStringFromRegistry___n_tkeyName:__s_n_tvalueName:__s
call fcn.00401f2e
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], eax
cmp byte [ebp - 9], 0
je 0x4015e9
mov dword [ebp - 0x1020], 0x20119
jmp 0x4015f3
mov dword [ebp - 0x1020], 0x20019
mov eax, dword [ebp - 0x1020]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x401713
mov dword [ebp - 0x14], 0x1000
mov dword [ebp - 0x18], 0
movzx eax, byte [0x40f164]
mov byte [ebp - 0x1018], al
lea edx, [ebp - 0x1017]
mov eax, 0xfff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x14]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x1018]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x4016e7
cmp dword [ebp - 0x18], 1
jne 0x4016e7
lea eax, [ebp - 0x1018]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], str._s:__s
call fcn.00401f2e
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
lea eax, [ebp - 0x1018]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call fcn.0040c664
mov dword [ebp - 0x101c], 1
jmp 0x401739
mov dword [esp + 8], str.RegQueryValueEx___failed.
mov dword [esp + 4], 0
mov dword [esp], 1
call fcn.00401ef2
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
jmp 0x40172f
mov dword [esp + 8], str.RegOpenKeyEx___failed.
mov dword [esp + 4], 0
mov dword [esp], 1
call fcn.00401ef2
mov dword [ebp - 0x101c], 0
mov eax, dword [ebp - 0x101c]
leave
ret

Function at 0x407230
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x425100]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x407270
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call fcn.004084f0
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x407620
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x425100]
mov edi, dword [ebp + 8]
test eax, eax
je 0x4076fc
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x407711
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x4076d0
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x407668
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x407678
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x4076c3
test edx, edx
jne 0x4076b6
test ecx, ecx
je 0x407660
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call ecx
cmp eax, 6
je 0x407720
cmp eax, 8
je 0x407660
mov eax, 3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x407652
call fcn.00407e70
mov eax, dword [0x425100]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x407644
call fcn.00407290
mov eax, dword [0x425100]
jmp 0x407644
mov dword [edi + 0xc], 0
mov eax, dword [ebp - 0x14]
mov edx, ebx
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.00407590
cmp eax, 7
jne 0x4076bb
mov eax, dword [0x425100]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x407773
mov edi, dword [eax + 0x30]
test edi, edi
js 0x40779e
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x40777f
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.00407e70
mov eax, dword [0x425100]
jmp 0x407751
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x407762
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x407762
call fcn.00407290
mov eax, dword [0x425100]
jmp 0x407758