joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b9b57
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4b9d2b
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x576d80]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4b9d2b
test cl, 0x48
je 0x4b9bc2
cmp byte [eax + 5], 0xa
je 0x4b9bc2
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4b9c14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4b9bfc
call fcn.004af5fa
mov dword [eax], 9
call fcn.004af603
mov dword [eax], esi
jmp 0x4b9c0c
cmp eax, 0x6d
je 0x4b9d2b
push eax
call fcn.004af60c
pop ecx
or eax, 0xffffffff
jmp 0x4b9d2d
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4b9d26
test eax, eax
je 0x4b9c3b
cmp byte [ebx], 0xa
jne 0x4b9c3b
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4b9c44
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4b9d20
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4b9d10
cmp al, 0xd
je 0x4b9c76
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4b9d02
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4b9c90
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4b9c8b
add dword [ebp + 0x10], 2
jmp 0x4b9ce4
mov dword [ebp + 0x10], eax
jmp 0x4b9cfe
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4b9cb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4b9cfe
cmp dword [ebp - 0xc], 0
je 0x4b9cfe
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4b9cd9
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4b9ce4
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4b9d01
cmp ebx, dword [ebp + 0xc]
jne 0x4b9ce9
cmp byte [ebp - 1], 0xa
jne 0x4b9ce9
mov byte [ebx], 0xa
jmp 0x4b9d01
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004b811c
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4b9d02
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4b9c5a
jmp 0x4b9d20
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4b9d20
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4b9d2d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4bb0f8
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4bb111
or eax, 0xffffffff
jmp 0x4bb172
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4bb16e
push 0x3d
push esi
call fcn.004bb6f9
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4bb16e
cmp esi, eax
je 0x4bb16e
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x508ac0]
sete cl
cmp eax, dword [0x508ac4]
mov dword [ebp - 8], ecx
jne 0x4bb154
mov edi, eax
call fcn.004bb097
mov dword [0x508ac0], eax
cmp eax, ebx
jne 0x4bb1ad
cmp dword [ebp + 0xc], ebx
je 0x4bb176
cmp dword [0x508ac8], ebx
je 0x4bb176
call fcn.004ba1e6
test eax, eax
je 0x4bb1ad
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4bb17f
xor eax, eax
jmp 0x4bb171
push 4
call fcn.004acc4b
cmp eax, ebx
pop ecx
mov dword [0x508ac0], eax
je 0x4bb16e
mov dword [eax], ebx
cmp dword [0x508ac8], ebx
jne 0x4bb1ad
push 4
call fcn.004acc4b
cmp eax, ebx
pop ecx
mov dword [0x508ac8], eax
je 0x4bb16e
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x508ac0]
call fcn.004bb04a
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4bb20e
cmp dword [esi], ebx
je 0x4bb20e
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004acb33
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4bb1f1
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4bb24f
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4bb1e8
mov eax, edi
shl eax, 2
push eax
push dword [0x508ac0]
call fcn.004ac40b
cmp eax, ebx
pop ecx
pop ecx
je 0x4bb24f
jmp 0x4bb24a
cmp dword [ebp - 8], ebx
jne 0x4bb2ba
cmp edi, ebx
jge 0x4bb21d
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x508ac0]
call fcn.004ac40b
cmp eax, ebx
pop ecx
pop ecx
je 0x4bb16e
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x508ac0], eax
cmp dword [ebp + 0xc], ebx
je 0x4bb2a4
push dword [ebp - 4]
call fcn.004ae3a0
inc eax
inc eax
push eax
call fcn.004acc4b
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4bb2a4
push dword [ebp - 4]
push esi
call fcn.004b4940
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4bb29d
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.004acb33
pop ecx
cmp dword [ebp - 8], ebx
je 0x4bb2b2
push dword [ebp - 4]
call fcn.004acb33
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4bb171
push dword [ebp - 4]
call fcn.004acb33
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4bb17b
Function at 0x4bf63b
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x1c
xor ebx, ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
mov esi, ecx
call fcn.004ae920
add esp, 0xc
call fcn.004c8438
mov edi, dword [0x5065f8]
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
call edi
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
je 0x4bf70b
cmp dword [ebp - 8], ebx
je 0x4bf706
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x4bf50d
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.004aedc9
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x4bf715
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call edi
test byte [ebp + 8], 4
je 0x4bf6de
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x4bf6f8
push 0xffffffffffffffff
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x28]
call edi
mov dword [esi + 0x28], ebx
jmp 0x4bf710
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x4bf717
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x4bf715
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4bf71e
Capabilities:
Resume thread

Disassembly:
mov eax, 0x4cbe4c
call fcn.004ae8f8
push ecx
push esi
push 0x40
call fcn.004be8d8
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor esi, esi
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x4bf74d
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004c8025
mov esi, eax
push dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x14]
or dword [ebp - 4], 0xffffffff
or eax, 4
push eax
mov ecx, esi
call fcn.004bf63b
test eax, eax
jne 0x4bf774
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
xor eax, eax
jmp 0x4bf791
push dword [ebp + 0x10]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test byte [ebp + 0x18], 4
jne 0x4bf78f
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x4c0352
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x4c0389
call fcn.004c8448
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [0x50661c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4c039a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x4c03d3
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x4c03b8
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x4c03c0
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x4c03d1
test ax, ax
jne 0x4c03d1
test si, si
je 0x4c03d3
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x4c03e2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4c0634
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4cbf45
call fcn.004ae8f8
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.004c8448
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x4c0682
call fcn.004c8448
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [0x50661c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4c0693
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4c069f
or eax, 0xffffffff
jmp 0x4c07a2
mov ecx, esi
call fcn.004c0174
mov dword [ebp - 0x14], eax
call fcn.004c1e6e
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x4c06e2
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4c06e2
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4c06e2
push 0
push dword [ebp - 0x14]
call dword [0x50671c]
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
push esi
call fcn.004c30a6
push dword [ebp - 0x14]
call fcn.004c1dc6
push edi
push eax
push ebx
mov ecx, esi
call fcn.004c0427
xor ebx, ebx
cmp eax, ebx
je 0x4c0756
test byte [esi + 0x38], 0x10
je 0x4c0724
push 4
pop edi
mov ecx, esi
call fcn.004c3d47
test ah, 1
je 0x4c071c
push 5
pop edi
push edi
mov ecx, esi
call fcn.004c186a
cmp dword [esi + 0x1c], ebx
je 0x4c0756
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.004c3f6b
jmp 0x4c0756
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x4c076a
push 1
push dword [ebp - 0x14]
call dword [0x50671c]
cmp dword [ebp - 0x14], ebx
je 0x4c0783
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4c0783
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.004c01ae
cmp dword [esi + 0x54], ebx
je 0x4c079f
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4c3a12
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4c3a55
call fcn.004c8448
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [0x50661c]
test eax, eax
je 0x4c3a55
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4c3a70
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004c2b8a
test ebx, ebx
mov esi, eax
je 0x4c3a6e
test edi, edi
je 0x4c3a6e
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4c444c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x22c
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.004ae920
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [0x5066bc]
mov eax, dword [edi + 4]
cmp eax, dword [0x4d54f4]
je 0x4c4553
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4c44bc
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x4c44c3
cmp ebx, ebx
jne 0x4c44c3
xor eax, eax
jmp 0x4c4556
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x4c44d0
mov byte [esi + 0x20], bl
jmp 0x4c44e4
push edi
call dword [0x506638]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.004a3d4e
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.004a3d4e
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.004a3d4e
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x4c453f
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x4c4553
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4c9bba
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x4c9bef
cmp edi, dword [esi + 0xc]
jge 0x4c9bef
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c9bef
cmp edi, dword [eax + 8]
jge 0x4c9bef
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x4c9bf1
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c9cf5
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4c9d29
jmp fcn.004bca8f
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x4c9d9a
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x4c9e93
cmp eax, dword [edi + 0xc]
jge 0x4c9e93
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x4c9deb
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x4c9e7c
cmp dword [ebp + 0xc], ebx
je 0x4c9e7c
jmp 0x4c9e15
push 0x10
call fcn.004c9a86
cmp eax, ebx
je 0x4c9e01
mov ecx, eax
call fcn.004c9cec
mov esi, eax
jmp 0x4c9e03
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x4c9e2c
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4c9e3c
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x4c9e4e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004bca8f
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.004ae920
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x4c9e8e
cmp ecx, dword [esi + 8]
jge 0x4c9e8e
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x4c9e94
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, 0x10003028
xor esi, esi
push edi
cmp ebx, 0x10002034
jne 0x1000116a
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x10002038]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x10001172
push 1
push esi
push esi
push ebx
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x1000203c]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x1000119d
push 0x40
mov eax, 0x1000
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x100011cb
push 5
pop ecx
mov esi, str.sktop.ini
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
cmp eax, 0xffffffff
je 0x10001222
push esi
push 0x10003020
push 0x1000
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x92fdcc
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x92fdd2
pop ebp
sub ebp, 6
sub ebp, 0x52fdcc
jmp 0x92fe30
jmp 0x92fe39
mov eax, 0x52fdcc
add eax, ebp
add eax, 0x93
mov ecx, 0x639
mov edx, 0x867e8f87
xor byte [eax], dl
inc eax
dec ecx
jne 0x92fe50
jmp 0x92fe63
in eax, dx
invalid

Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x69695ac5
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x65495005
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40a88c
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
mov dword [esp], 7
push 0
lea eax, [esp + 4]
push eax
call sub.wininet.dll_InternetGetConnectedState
cmp eax, 1
sbb eax, eax
inc eax
pop edx
ret

Function at 0x40aa18
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x40a978
call fcn.00404e44
call fcn.0040a208
call fcn.0040a88c
test al, al
jne 0x40aa40
push 0x493e0
call sub.kernel32.dll_Sleep
call fcn.0040a5a8
call fcn.0040a448
push 0x3e8
call sub.kernel32.dll_Sleep
mov edx, 0x40aaa0
mov eax, 0x40c8ac
call fcn.00402ac0
mov eax, 0x40c8ac
call fcn.00402850
mov eax, 0x40c8ac
call fcn.00402c30
push 0x40c8a8
push 0
push 0
push 0x40a8f4
push 0
push 0
call sub.kernel32.dll_CreateThread
call fcn.0040a8a8
call fcn.00403d88

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219