joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b8b70
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f910d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x53ba20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 2
push 0xffffffffffffffff
push 0x100c
push dword [ebx + 0x88]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 0x98]
mov eax, dword [ecx + eax*8]
mov esi, dword [eax + 0x24]
push esi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
mov dword [ebp - 4], 0
call fcn.0042dbe0
mov ecx, eax
test ecx, ecx
je 0x4b8c82
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x10]
push esi
test edi, edi
jne 0x4b8c1a
push 0x516be4
push eax
call fcn.0042da10
mov esi, dword [ebp - 0x10]
add esp, 0xc
push 0x10
push 0x4fc6f4
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4b8c54
push 0x516c18
push eax
call fcn.0042da10
mov esi, dword [ebp - 0x10]
add esp, 0xc
push 0x134
push 0x4fc6f4
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x4b8c4d
push 1
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4b8c6c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.0042d2e0
int3
Function at 0x4c4726
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4c4765
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4c4765
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4c4765
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4c4765
cmp dword [ecx + 0x74], 0xe
jbe 0x4c4765
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4e0172
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x51c258
push 0x51c250
push 0x5195f8
push 0x1f
call fcn.004dff9d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4e01a6
push dword [ebp + 8]
mov ecx, esi
call dword [0x4fbae8]
call esi
jmp 0x4e01ac
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4e01f0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x51c268
push 0x51c260
push 0x51961c
push 0x21
call fcn.004dff9d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4e0227
push dword [ebp + 8]
mov ecx, esi
call dword [0x4fbae8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4e022f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x51c270
push 0x51c268
push 0x519630
push 0x22
call fcn.004dff9d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4e0269
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4fbae8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4e7378
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x53ba20]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4e73c3
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004e7513
test al, al
jne 0x4e73bd
sub edx, 2
cmp edx, edi
jne 0x4e73a3
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4e73e5
lea eax, [edi + 2]
cmp edx, eax
je 0x4e73e5
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004e72c4
add esp, 0x10
jmp 0x4e74df
push esi
lea ecx, [ebp - 0x255]
call fcn.004e7513
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4e7428
push dword [ebp - 0x25c]
jmp 0x4e73d5
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4e7465
cmp word [ebp - 0x226], 0
je 0x4e7486
cmp word [ebp - 0x226], ax
jne 0x4e7465
cmp word [ebp - 0x224], 0
je 0x4e7486
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004e72c4
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4e74d2
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4e743f
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4e74ba
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4e74df
push 0x4e70f4
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004d9110
add esp, 0x10
jmp 0x4e74af
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c3287
leave
ret

Function at 0x4e7df5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4e7e06
pop esi
ret
push ebx
push edi
push esi
call fcn.004e7dbe
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004df94b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4e7e2e
push ebx
push esi
push edi
call fcn.004c4d40
add esp, 0xc
push 0
call fcn.004df911
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4e81fe
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e7e43
Function at 0x401120
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push edi
lea eax, [ebp - 0x18]
push 1
mov ecx, eax
push ecx
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
mov edx, dword [ebp - 0x20]
push 0
push 0
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
push 1
push 0x400
push 0x80
push 1
push 6
push 0x40000003
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x40118e
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x20], eax
test eax, eax
jne 0x4011c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi + 0xc]
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], 0xffffffff
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x4012a0
Capabilities:
Connect pipe

Disassembly:
push ecx
cmp byte [edi + 0x2c], 0
push ebx
push esi
jne 0x401368
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [edi + 0xc]
lea esi, [edi + 0x10]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x4012cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4012f0
mov eax, dword [esi]
test eax, eax
je 0x401347
cmp eax, 0x217
je 0x401347
cmp eax, 0x102
jne 0x401343
mov ecx, dword [edi + 0x24]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
jmp 0x40135e
cmp eax, 0x3e5
jne 0x4012d1
push 0xffffffffffffffff
push 0
push edi
push 3
call ebx
cmp eax, 2
ja 0x40131f
je 0x4012cf
sub eax, 0
je 0x401318
sub eax, 1
jne 0x40132b
mov eax, 0x2a4
jmp 0x4012dc
mov eax, 0x42b
jmp 0x4012dc
cmp eax, 0x102
je 0x40133c
cmp eax, 0xffffffff
je 0x401332
mov eax, 0x2c9
jmp 0x4012dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jmp 0x4012da
mov eax, 0x102
jmp 0x4012dc
test eax, eax
jne 0x40136a
mov eax, edi
call fcn.00401380
mov ecx, dword [edi + 0xc]
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test esi, esi
jne 0x40136e
cmp byte [edi + 0x2c], 0
je 0x4012b3
xor eax, eax
pop esi
pop ebx
pop ecx
ret
mov eax, esi
pop esi
pop ebx
pop ecx
ret
Function at 0x401380
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, eax
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0x10]
push eax
xor edi, edi
push edi
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x28]
push 0x10040
push eax
push ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4013b6
xor eax, eax
jmp 0x4013bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [ebp - 4]
lea edi, [ebp - 8]
call fcn.004011d0
test eax, eax
jne 0x40143f
cmp dword [ebp - 8], eax
je 0x4013d7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x28]
test ecx, ecx
jne 0x4013e6
lea eax, [ecx + 0x57]
jmp 0x4013fd
movzx edx, byte [eax]
sub edx, 1
je 0x4013f5
mov eax, 0x57
jmp 0x4013fd
dec ecx
inc eax
push esi
call fcn.00401480
mov edx, dword [ebp - 0xc]
mov ecx, dword [esi + 0xc]
push edx
push 0
mov dword [ebp - 0x10], eax
push 4
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40142e
xor eax, eax
lea ebx, [ebp - 4]
lea edi, [ebp - 8]
call fcn.004011d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [ebp - 4]
lea edi, [ebp - 8]
call fcn.004011d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4016b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
lea eax, [ebp - 0xc]
push eax
xor edi, edi
push ecx
mov dword [ebp - 0xc], edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, edi
jne 0x4016da
lea eax, [edi + 0xb]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], edi
jge 0x4016fa
push esi
mov dword [ebp - 8], 0xc
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
push 0xa
lea edx, [ebp - 0x10]
push edx
push eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.MSVCR90.dll_wcstoul]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [ecx], eax
cmp word [edx], di
jne 0x401844
cmp eax, 0xffffffff
ja 0x401844
jne 0x40173a
call dword [sym.imp.MSVCR90.dll__errno]
cmp dword [eax], 0x22
je 0x401844
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401743
mov edi, dword [ebp + 0xc]
sub eax, edx
push 0x32
sar eax, 1
mov esi, eax
push str..pipeXLFileAssistant_
push edi
mov dword [ebp - 0x18], esi
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x14], 0xea
lea eax, [ebp - 0x14]
cmp esi, 0xea
ja 0x40177f
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 4]
push ebx
mov ebx, dword [eax]
lea eax, [ebx + ebx]
push eax
push ecx
lea edx, [edi + 0x32]
push edx
call sub.MSVCR90.dll_memcpy
xor eax, eax
push 0x40
mov word [edi + ebx*2 + 0x32], ax
add edi, 0x208
push str.LocalXLFileAssistantReadyEvent_
push edi
mov dword [ebp - 0x14], esi
call sub.MSVCR90.dll_memcpy
add esp, 0x18
mov dword [ebp - 0x18], 0xe3
lea eax, [ebp - 0x18]
cmp esi, 0xe3
ja 0x4017c8
lea eax, [ebp - 0x14]
mov ebx, dword [eax]
mov edx, dword [ebp - 4]
lea ecx, [ebx + ebx]
push ecx
push edx
lea eax, [edi + 0x40]
push eax
call sub.MSVCR90.dll_memcpy
xor ecx, ecx
mov word [edi + ebx*2 + 0x40], cx
mov edi, dword [ebp + 0xc]
push 0x4a
add edi, 0x410
push str.LocalXLFileAssistantClientExitEvent_
push edi
mov dword [ebp - 0x14], esi
call sub.MSVCR90.dll_memcpy
add esp, 0x18
mov dword [ebp - 0x18], 0xde
pop ebx
lea eax, [ebp - 0x18]
cmp esi, 0xde
ja 0x401814
lea eax, [ebp - 0x14]
mov esi, dword [eax]
mov eax, dword [ebp - 4]
lea edx, [esi + esi]
push edx
push eax
lea ecx, [edi + 0x4a]
push ecx
call sub.MSVCR90.dll_memcpy
xor edx, edx
mov word [edi + esi*2 + 0x4a], dx
mov esi, dword [ebp - 0x1c]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
mov dword [ebp - 8], 0xd
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401c20
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
push 0
push eax
push 0
push 2
push 0x40000000
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401c57
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0
push 0
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x401c86
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x401c86
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileValidData]
test eax, eax
jne 0x401c8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404be3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
mov eax, dword [0x42d068]
xor eax, esp
mov dword [esp + 0xd8], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [esp + 8], eax
xor ebx, ebx
push edi
xor eax, eax
mov dword [esp + 0xac], ebx
push 0x208
mov dword [esp + 0xb4], 7
mov word [esp + 0xa0], ax
call fcn.00408c5d
mov esi, eax
mov dword [esp], 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push esi
call fcn.0040a3fd
pop ecx
pop ecx
test eax, eax
jne 0x404c59
mov edi, ebx
jmp 0x404c65
add eax, 2
push eax
call fcn.0040ef8b
pop ecx
mov edi, eax
push esi
call fcn.00408c66
pop ecx
push edi
lea ecx, [esp + 0xa0]
call fcn.00404e15
lea ecx, [esp + 0x84]
call fcn.004047a3
push ecx
lea edx, [esp + 0x88]
lea ecx, [esp + 0xd0]
call fcn.00405f9e
pop ecx
lea ecx, [esp + 0x9c]
push ecx
mov ecx, eax
call fcn.00405b90
push eax
lea ecx, [esp + 0xb8]
call fcn.00407368
lea ecx, [esp + 0xcc]
call fcn.0040768b
push 0x44
pop esi
push esi
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.0040aa90
xor eax, eax
mov dword [esp + 0x2c], esi
lea edi, [esp + 0x1c]
mov dword [esp + 0x88], ebx
stosd dword es:[edi], eax
lea ecx, [esp + 0x78]
add esp, 0xc
mov dword [esp + 0x80], 7
stosd dword es:[edi], eax
push 0x429618
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ax, word [ebp + 0x14]
xor edi, edi
mov word [esp + 0x54], ax
inc edi
xor eax, eax
mov dword [esp + 0x50], edi
mov word [esp + 0x70], ax
call fcn.00404e15
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x70]
call fcn.00405b90
push 2
push 0x42961c
lea ecx, [esp + 0x74]
call fcn.00405cd4
mov edx, dword [esp + 0xc]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x404d43
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x74]
call fcn.00405cd4
cmp dword [esp + 0x80], 8
lea eax, [esp + 0x6c]
cmovae eax, dword [esp + 0x6c]
push eax
call fcn.0040ef8b
cmp dword [esp + 0x9c], 8
mov esi, eax
pop ecx
lea ecx, [esp + 0x84]
cmovae ecx, dword [esp + 0x84]
push ecx
call fcn.0040ef8b
pop ecx
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
push ecx
push eax
push ebx
push ebx
push edi
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x404db6
or ebx, 0xffffffff
jmp 0x404dcf
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push 0x1388
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
lea ecx, [esp + 0x6c]
call fcn.0040768b
lea ecx, [esp + 0xb4]
call fcn.0040768b
lea ecx, [esp + 0x84]
call fcn.0040768b
lea ecx, [esp + 0x9c]
call fcn.0040768b
mov ecx, dword [esp + 0xe4]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040886b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40dbef
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x4213f4
push 0x4213ec
push str.FlsAlloc
push 0
call fcn.0040db68
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40dc21
push dword [ebp + 8]
mov ecx, esi
call fcn.00408ea4
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x40dc63
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x421404
push 0x4213fc
push str.FlsGetValue
push 2
call fcn.0040db68
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x40dc94
mov ecx, esi
call fcn.00408ea4
call esi
jmp 0x40dc9a
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x40dc9d
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x42140c
push 0x421404
push str.FlsSetValue
push 3
call fcn.0040db68
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x40dcd1
mov ecx, esi
call fcn.00408ea4
call esi
jmp 0x40dcd7
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x4030be
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x4305a6
call fcn.0042e77a
mov edi, 0x200
push edi
call main
pop ecx
mov dword [ebp - 0x18], eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
mov ebx, str.SoftwareAdobeAdobe_Acrobat11.0LanguageNext
push ebx
push SysReAllocString
call esi
test eax, eax
je 0x403151
lea eax, [ebp - 0x10]
push eax
push ebx
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push ebx
call esi
test eax, eax
je 0x403151
lea eax, [ebp - 0x10]
push eax
push str.SoftwareAdobeAcrobat_Reader11.0LanguageNext
push SysReAllocString
call esi
test eax, eax
je 0x403151
lea eax, [ebp - 0x10]
push eax
push str.SoftwareAdobeAcrobat_Reader11.0LanguageNext
push ebx
call esi
test eax, eax
je 0x403151
lea eax, [ebp - 0x10]
push eax
push str.SoftwareAdobeAcrobat_Reader11.0LanguageCurrent
push ebx
call esi
test eax, eax
je 0x403151
or esi, 0xffffffff
push dword [ebp - 0x18]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
call fcn.0042e852
ret
mov esi, dword [ebp - 0x18]
push edi
xor ebx, ebx
push ebx
push esi
mov dword [ebp - 0x14], edi
call sub.MSVCR100.dll_memset
sub dword [ebp - 0x14], 2
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
shr eax, 1
cmp edi, ebx
jne 0x40313d
cmp dword [ebp - 0x1c], 1
jne 0x40313d
cmp eax, 4
jb 0x40313d
mov edi, dword [sym.imp.MSVCR100.dll__wcsicmp]
lea esi, [esi + eax*2 - 8]
push 0x432af4
push esi
call edi
pop ecx
pop ecx
test eax, eax
je 0x40321b
push 0x432aec
push esi
call edi
pop ecx
pop ecx
test eax, eax
je 0x40321b
movzx eax, word [esi]
mov edi, dword [sym.imp.MSVCR100.dll_iswalpha]
push eax
call edi
pop ecx
test eax, eax
je 0x40313d
movzx eax, word [esi + 2]
push eax
call edi
pop ecx
test eax, eax
je 0x40313d
movzx eax, word [esi + 4]
push eax
call edi
pop ecx
test eax, eax
je 0x40313d
cmp word [esi + 6], bx
jne 0x40313d
push esi
push 4
push dword [ebp + 8]
call main
test eax, eax
js 0x40313d
xor esi, esi
inc esi
jmp 0x403140
xor esi, esi
jmp 0x403140
Function at 0x404f96
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x43076e
call fcn.0042e819
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call fcn.004034ad
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x404fee
call fcn.0040210b
mov esi, eax
jmp 0x4050c4
push ebx
push edi
push eax
call dword [sym.imp.kernel32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x405007
call fcn.0040210b
jmp 0x4050b6
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x404ffd
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.kernel32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x405041
mov esi, 0x8007000e
jmp 0x4050b8
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call main
mov dword [ebp - 4], 1
jmp 0x40506f
cmp dword [ebp - 0x418], esi
je 0x40503a
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x404ffd
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call main
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4050dd
lea ecx, [ebp - 0x418]
call fcn.00402ceb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.00402c6d
mov eax, esi
call fcn.0042e875
ret 0x10

Function at 0x405615
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call main
pop ecx
pop ecx
test eax, eax
jne 0x405635
mov eax, 0x80004005
leave
ret 0x18
push esi
push dword [ebp + 0x14]
call main
pop ecx
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.0040c202
push dword [ebp + 0x18]
lea ecx, [ebp - 0x18]
push esi
call main
test al, al
jne 0x405669
xor esi, esi
inc esi
lea ecx, [ebp - 0x18]
call fcn.0040bd78
mov eax, esi
pop esi
jmp 0x405631
lea eax, [ebp + 0x10]
push eax
push 0xf003f
push 0
push dword [ebp + 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405697
push dword [ebp + 0x1c]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x40565c