joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40333c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x40e2c8]
je 0x403357
inc edi
cmp edi, 0x17
jb 0x403348
cmp edi, 0x17
jae 0x4034d7
push ebp
push 3
call fcn.00406350
cmp eax, 1
pop ecx
je 0x4034a3
push 3
call fcn.00406350
test eax, eax
pop ecx
jne 0x40338b
cmp dword [0x40e020], 1
je 0x4034a3
cmp ebx, 0xfc
je 0x4034d6
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x40f130
push ebp
call fcn.004062eb
add esp, 0xc
test eax, eax
je 0x4033c1
push esi
push esi
push esi
push esi
push esi
call fcn.00404240
add esp, 0x14
push 0x104
mov esi, 0x40f149
push esi
push 0
mov byte [0x40f24d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403405
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004062eb
add esp, 0xc
test eax, eax
je 0x403405
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00404240
add esp, 0x14
push esi
call fcn.00406260
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40344a
push esi
call fcn.00406260
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x40f444
push 0x40c75c
sub ecx, eax
push ecx
push eax
call fcn.004061a3
add esp, 0x14
test eax, eax
je 0x40344a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00404240
add esp, 0x14
jmp 0x40344c
xor esi, esi
push 0x40c758
push ebx
push ebp
call fcn.00406132
add esp, 0xc
test eax, eax
je 0x40346c
push esi
push esi
push esi
push esi
push esi
call fcn.00404240
add esp, 0x14
push dword [edi*8 + 0x40e2cc]
push ebx
push ebp
call fcn.00406132
add esp, 0xc
test eax, eax
je 0x40348e
push esi
push esi
push esi
push esi
push esi
call fcn.00404240
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00405f75
add esp, 0xc
jmp 0x4034d6
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4034d6
cmp ebp, 0xffffffff
je 0x4034d6
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40e2cc]
push dword [esi]
call fcn.00406260
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x405f75
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00404dd1
xor ebx, ebx
cmp dword [0x40f8c4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40604b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40612b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40612b
push eax
call fcn.00404d63
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40f8c4], eax
call esi
push eax
call fcn.00404d63
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40f8c8], eax
call esi
push eax
call fcn.00404d63
mov dword [0x40f8cc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004030c9
test eax, eax
pop ecx
pop ecx
je 0x406019
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404240
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40604b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404d63
cmp eax, ebx
pop ecx
mov dword [0x40f8d4], eax
je 0x40604b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404d63
pop ecx
mov dword [0x40f8d0], eax
mov eax, dword [0x40f8d0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4060d0
cmp dword [0x40f8d4], ecx
je 0x4060d0
push eax
call fcn.00404dda
push dword [0x40f8d4]
mov esi, eax
call fcn.00404dda
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4060d0
cmp edi, ebx
je 0x4060d0
call esi
cmp eax, ebx
je 0x40609d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40609d
test byte [ebp - 0x18], 1
jne 0x4060d0
lea eax, [ebp - 0x10]
push eax
call fcn.00403100
test eax, eax
pop ecx
je 0x4060b8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404240
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4060c7
or dword [ebp + 0x10], 0x200000
jmp 0x40610b
or dword [ebp + 0x10], 0x40000
jmp 0x40610b
mov eax, dword [0x40f8c8]
cmp eax, dword [ebp - 8]
je 0x40610b
push eax
call fcn.00404dda
cmp eax, ebx
pop ecx
je 0x40610b
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40610b
mov eax, dword [0x40f8cc]
cmp eax, dword [ebp - 8]
je 0x40610b
push eax
call fcn.00404dda
cmp eax, ebx
pop ecx
je 0x40610b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40f8c4]
call fcn.00404dda
cmp eax, ebx
pop ecx
je 0x40612b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40612d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002380
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
call fcn.10002440
cmp dword [0x10014870], 1
mov esi, dword [esp + 0x10]
jne 0x100023a3
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x1001486c], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x10014868], bl
jne 0x100023fd
cmp dword [0x1001925c], 0
je 0x100023eb
mov edi, dword [0x10019258]
sub edi, 4
cmp dword [0x1001925c], edi
ja 0x100023eb
mov eax, dword [edi]
test eax, eax
je 0x100023e0
call eax
sub edi, 4
cmp dword [0x1001925c], edi
jbe 0x100023d8
push 0x100140e0
push 0x100140d8
call fcn.10002460
add esp, 8
push 0x100140e8
push 0x100140e4
call fcn.10002460
add esp, 8
test ebx, ebx
je 0x1000241c
call fcn.10002450
pop edi
pop esi
pop ebx
ret
mov dword [0x10014870], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

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

Disassembly:
push esi
call fcn.10004670
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x10014d10], eax
cmp eax, 0xffffffff
jne 0x10003aaa
xor eax, eax
pop esi
ret
push 0x74
push 1
call fcn.10004880
add esp, 8
mov esi, eax
test esi, esi
je 0x10003aec
push esi
mov eax, dword [0x10014d10]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x10003aec
push esi
call fcn.10003b20
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov eax, 1
mov dword [esi + 4], 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x10003b40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x10014d10]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x10003ba3
push 0x74
push 1
call fcn.10004880
add esp, 8
mov edi, eax
test edi, edi
je 0x10003b99
push edi
mov eax, dword [0x10014d10]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x10003b99
push edi
call fcn.10003b20
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi], eax
mov dword [edi + 4], 0xffffffff
jmp 0x10003ba3
push 0x10
call fcn.10002270
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret
Function at 0x10004290
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x10014d40], 0
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push ebp
jne 0x100042e0
call esi
mov edi, eax
test edi, edi
je 0x100042be
mov dword [0x10014d40], 1
mov ebx, dword [esp + 0x10]
jmp 0x100042e8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x100042d6
mov dword [0x10014d40], 2
jmp 0x100042e8
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x10]
cmp dword [0x10014d40], 1
jne 0x10004397
test edi, edi
jne 0x1000430b
call esi
mov edi, eax
test edi, edi
jne 0x1000430b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x10004325
add esi, 2
cmp word [esi], 0
jne 0x10004313
add esi, 2
cmp word [esi], 0
jne 0x10004313
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x10004386
push ebp
call fcn.100024e0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x10004386
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x10004375
push ebx
call fcn.10002560
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x10014d40], 2
jne 0x1000441b
test ebx, ebx
jne 0x100043ba
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x100043ba
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x100043cf
inc ebp
cmp byte [ebp], 0
jne 0x100043c1
inc ebp
cmp byte [ebp], 0
jne 0x100043c1
sub ebp, ebx
inc ebp
push ebp
call fcn.100024e0
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x100043f4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x10004480
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x10014d48
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x100044a7
add eax, 8
inc ecx
cmp eax, 0x10014dd0
jb 0x10004498
cmp dword [ecx*8 + 0x10014d48], edx
lea ebx, [ecx*8]
jne 0x10004662
cmp dword [0x10014810], 1
je 0x10004627
cmp dword [0x10014810], 0
jne 0x100044de
cmp dword [0x10014814], 1
je 0x10004627
cmp edx, 0xfc
je 0x10004662
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x1000451b
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x1000455f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x10011158
push ebp
call fcn.10005080
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10011138
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x10014d4c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.10004fe0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x10019150]
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x1000463e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x10014d4c]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x10006dd0
Capabilities:
Get geographical location

Disassembly:
push ebx
mov eax, dword [0x10015f40]
push esi
test eax, eax
push edi
push ebp
jne 0x10006e18
push 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 1
push 0
call esi
test eax, eax
je 0x10006df8
mov eax, 2
jmp 0x10006e1e
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10006e11
mov eax, 1
jmp 0x10006e1e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [0x10015f40], eax
cmp eax, 2
jne 0x10006e43
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov ebx, dword [esp + 0x18]
push ecx
push edx
push ebx
call esi
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0x10015f40], eax
cmp eax, 1
jne 0x10006edf
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x10006e5f
mov edi, dword [0x10015168]
mov eax, dword [esp + 0x18]
push 0
mov ebx, dword [esp + 0x18]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebp, eax
test ebp, ebp
jne 0x10006e80
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
lea eax, [ebp*2]
push eax
call fcn.100024e0
add esp, 4
mov esi, eax
test esi, esi
jne 0x10006e9d
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
push ebp
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10006ed4
mov eax, dword [esp + 0x20]
push 0
push 0
test eax, eax
jne 0x10006ee4
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x10006eff
push esi
call fcn.10002560
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push eax
mov eax, dword [esp + 0x28]
push eax
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x10006ed4
push esi
call fcn.10002560
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x10007f2f
Capabilities:
Enumerate pe sections

Disassembly:
dec esp
and al, 8
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x10007f69
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x10007f50
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x10007f61
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x10007f6b
inc edi
add eax, 0x28
cmp edi, esi
jb 0x10007f46
xor eax, eax
pop edi
pop esi
ret
Function at 0x100098a1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
out 0xff, eax
call [ecx + 0x50]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10007eb3
add esp, 0xc
mov dword [ebp - 0x704], eax
and byte [ebp - 0x6f4], 0
inc dword [eax]
and byte [ebp - 0x6f3], 0
mov byte [ebp - 0x6f2], 0x16
and byte [ebp - 0x6f1], 0
inc dword [eax]
mov byte [ebp - 0x6f0], 0xbe
mov byte [ebp - 0x6ef], 0x9b
mov byte [ebp - 0x6ee], pe_nt_image_headers32
mov byte [ebp - 0x6ed], 0x9d
mov byte [ebp - 0x6ec], 0x8c
mov byte [ebp - 0x6eb], 0xaf
mov byte [ebp - 0x6ea], pe_nt_image_headers32
mov byte [ebp - 0x6e9], 0x85
mov byte [ebp - 0x6e8], 0x8c
mov byte [ebp - 0x6e7], 0xe9
lea eax, [ebp - 0x6f4]
push eax
call fcn.10007efe
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10007eb3
add esp, 0xc
mov dword [ebp - 0x730], eax
and dword [ebp - 0x6fc], 0
push 1
pop eax
test eax, eax
je 0x10009f8e
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne 0x10009a5a
mov ch, 1
add byte [eax], al
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 0xd2
and byte [ebp - 0x779], 0
mov byte [ebp - 0x778], 0x6e
invalid
invalid
invalid

Function at 0x1000d044
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
cmp dword [ecx + 0x74], 0
mov esi, ecx
je 0x1000d08c
push dword [ebp + 8]
call fcn.1000eab6
mov esi, eax
test esi, esi
jne 0x1000d066
xor eax, eax
jmp 0x1000d0b7
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [0x1001a408]
mov edi, eax
push esi
call dword [0x1001a40c]
cmp edi, 1
sbb eax, eax
neg eax
jmp 0x1000d0b7
push dword [ebp + 0x10]
push 0x1001048c
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x10]
push dword [esi + 0x88]
push edx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1000d6bf
Capabilities:
Allocate thread local storage

Disassembly:
push esi
xor eax, eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 4], eax
cmp dword [esp + 8], eax
mov dword [ecx + 0x1c], 4
mov dword [ecx + 0xc], 1
mov esi, ecx
je 0x1000d6fb
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x1000d701
call fcn.10007918
jmp 0x1000d701
mov dword [esi], 0xffffffff
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret 4
Function at 0x1000d8a9
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov eax, dword [ecx]
mov esi, ecx
cmp eax, 0xffffffff
jne 0x1000d8c3
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 4]
jmp 0x1000d8ca
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1000d8df
mov ecx, dword [esp + 0xc]
cmp dword [eax + 8], ecx
jle 0x1000d8df
mov eax, dword [eax + 0xc]
mov edi, dword [eax + ecx*4]
jmp 0x1000d8e1
xor edi, edi
cmp dword [esi], 0xffffffff
jne 0x1000d8f0
add esi, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x1000d8f7
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, 0x1000d9cf
call fcn.10002300
sub esp, 4
push ebx
push esi
mov eax, dword [ecx]
push edi
mov esi, ecx
cmp eax, 0xffffffff
jne 0x1000d91f
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esi + 4]
jmp 0x1000d928
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x1000d938
mov edx, dword [ebp + 8]
cmp dword [ebx + 8], edx
jg 0x1000da43
cmp dword [ebp + 0xc], 0
je 0x1000da4f
test ebx, ebx
jne 0x1000d9b5
push 0x10
call fcn.1000d68f
mov dword [ebp - 0x10], eax
mov edi, eax
mov dword [ebp - 4], 0
test edi, edi
je 0x1000d97d
mov ebx, edi
mov dword [edi], vtable.CNoTrackObject.0
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
mov dword [edi], vtable.CThreadData.0
jmp 0x1000d97f
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
cmp dword [esi], 0xffffffff
jne 0x1000d99d
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
lea ecx, [esi + 0x18]
call fcn.1000d62f
cmp dword [esi], 0xffffffff
jne 0x1000d9b5
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 0xc]
lea edi, [esi + 0x10]
test eax, eax
jne 0x1000d9e2
mov eax, dword [edi]
shl eax, 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x1000d9f1
push 2
mov ecx, dword [edi]
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [ebx + 0xc], eax
cmp dword [ebx + 0xc], 0
jne 0x1000da0e
cmp dword [esi], 0xffffffff
jne 0x1000da09
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.10007918
mov eax, dword [ebx + 8]
mov ecx, dword [edi]
sub ecx, eax
shl ecx, 2
shl eax, 2
push ecx
push 0
add eax, dword [ebx + 0xc]
push eax
call fcn.10002480
add esp, 0xc
mov ecx, dword [edi]
mov dword [ebx + 8], ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1000da40
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x1000da43
mov dword [esi + 4], ebx
mov edx, dword [ebp + 8]
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebp + 0xc]
mov dword [ecx + edx*4], eax
cmp dword [esi], 0xffffffff
jne 0x1000da5e
add esi, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0xc]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000db0a
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ecx + 0x20]
push edi
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1000db31
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
jmp 0x1000db34
mov edi, dword [esi + 4]
test edi, edi
je 0x1000dbec
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
cmp dword [edi + 8], 1
jle 0x1000dbaf
mov dword [ebp - 0xc], 8
mov ebx, 4
cmp dword [ebp + 8], 0
je 0x1000db83
mov ecx, dword [ebp - 0xc]
mov edx, dword [esi + 0x14]
mov eax, dword [ebp + 8]
cmp dword [edx + ecx + 4], eax
je 0x1000db83
mov eax, dword [edi + 0xc]
cmp dword [eax + ebx], 0
je 0x1000db9d
mov dword [ebp - 4], 0
jmp 0x1000db9d
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + ebx]
test ecx, ecx
je 0x1000db93
push 1
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [edi + 0xc]
mov dword [eax + ebx], 0
add ebx, 4
inc dword [ebp - 8]
add dword [ebp - 0xc], 8
mov eax, dword [ebp - 8]
cmp dword [edi + 8], eax
jg 0x1000db5c
cmp dword [ebp - 4], 0
je 0x1000dbec
push edi
lea ecx, [esi + 0x18]
call fcn.1000d642
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x1000dbd3
push 1
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1000dbe5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x1000dbec
mov dword [esi + 4], 0
add esi, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1000dbff
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
cmp dword [ecx], 0
mov esi, ecx
jne 0x1000dc3f
cmp dword [0x10016038], 0
jne 0x1000dc32
mov ecx, 0x10016040
test ecx, ecx
je 0x1000dc28
push 1
call fcn.1000d6bf
mov dword [0x10016038], eax
jmp 0x1000dc32
mov dword [0x10016038], 0
mov ecx, dword [0x10016038]
call fcn.1000d74e
mov dword [esi], eax
mov edi, dword [esi]
mov eax, dword [0x10016038]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1000dc5f
cmp dword [eax + 8], edi
jle 0x1000dc5f
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x1000dc61
xor edi, edi
test edi, edi
jne 0x1000dc79
call dword [esp + 0xc]
push eax
mov edi, eax
push dword [esi]
mov ecx, dword [0x10016038]
call fcn.1000d8f7
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x4f16492
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x4b4a5bcb
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219