joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a4b0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ad788
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.00454db0
test eax, eax
je 0x45a5b8
lea ecx, [esp + 0xc]
call fcn.00428630
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.00454db0
mov ecx, eax
call fcn.00452730
test eax, eax
je 0x45a59f
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x45a59f
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x45a59f
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00428830
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x45a581
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x45a59f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x4eb0a0]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x4bed90
call fcn.00428830
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x45a600
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.00454db0
test eax, eax
je 0x45a6ef
mov ecx, edi
call fcn.00454db0
mov ecx, eax
call fcn.004525e0
test eax, eax
jne 0x45a6ef
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x45a6ef
mov eax, dword [0x4eb0a0]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x45a662
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.00454db0
mov ecx, eax
call fcn.00452810
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x45a6ef
cmp ebx, eax
jne 0x45a6ef
cmp dword [esp + 0x10], eax
jne 0x45a6d5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x45d3d0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ad788
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x45d409
inc eax
mov dword [esi + 0x10], eax
jmp 0x45d51c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x45d41d
mov eax, 0xffffffc7
jmp 0x45d51e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x45d42e
cmp dword [esi + 8], eax
jne 0x45d41d
cmp dword [esi + 8], eax
jne 0x45d447
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x45d447
mov eax, 0xffffffc7
jmp 0x45d51e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x45d45b
push eax
mov ecx, ebx
call fcn.0045cc00
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00428630
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x45d48c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00428650
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0045c370
test eax, eax
mov dword [esp + 0x38], eax
je 0x45d4bf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4bed90
call fcn.00428830
mov eax, dword [esp + 0x38]
jmp 0x45d51e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0045d230
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x45d503
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0045d250
mov esi, eax
test esi, esi
jne 0x45d533
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0045d230
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x45d4d5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4bed90
call fcn.00428830
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4bed90
call fcn.00428830
mov eax, esi
jmp 0x45d51e

Function at 0x461e60
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x461ec0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x461ec0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x461ec0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x461ec0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x461f00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x46d890
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ae048
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004a74f9
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0046d290
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004a7427
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004a3ceb
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004a3ceb
push 1
push 0
push 0
mov ecx, esi
call fcn.004a3c93
push 1
push 0
push 1
mov ecx, esi
call fcn.004a3c93
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a756b
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x46da10
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ae048
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004a74f9
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0046d290
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004a7427
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x46dad4
cmp dword [esp + 0x40], 1
jne 0x46dad2
cmp ecx, eax
jge 0x46dad4
mov eax, ecx
cmp eax, 0xc8
jge 0x46dae0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0046d890
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a756b
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x46e250
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4aeb03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004a2108
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004a77a1
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004a8dfa
test eax, eax
je 0x46e36c
mov ecx, dword [esp + 0x3c]
call fcn.004a77ce
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x46e330
push edi
mov ecx, esi
call fcn.004a4e39
mov ecx, esi
call fcn.0046e510
cmp dword [esp + 0x38], 1
jne 0x46e365
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004a4f74
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x470460
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x470493
push esi
call fcn.0047e7d0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x47048c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x470519
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x470502
mov eax, dword [esi + 8]
test eax, eax
je 0x4704b7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4704fe
cmp eax, 2
je 0x470502
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4704aa
cmp eax, 3
je 0x4704dd
cmp eax, 1
jne 0x4704aa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4704aa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4704aa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00470540
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x470528
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00470540
add esp, 4
pop esi
ret

Function at 0x470da0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x470dc1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x470dc1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x470dc1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x48cee0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x48cf83
test eax, eax
jbe 0x48cf83
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x48cf83
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x48cf2e
xor esi, esi
jmp 0x48cf34
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x48cf5f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00428fe0
add esi, eax
push esi
mov ebx, esi
call fcn.00428fe0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x48cf40
pop ebp
test edi, edi
pop edi
jne 0x48cf83
test ebx, ebx
je 0x48cf83
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00491380
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x48d0a5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x48d1bd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x48d1bd
mov eax, dword [esi + 0x3c]
push eax
call fcn.004a255a
mov esi, eax
test esi, esi
je 0x48d1bd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x48d1bd
mov ecx, esi
call fcn.0048d030
cmp edi, eax
jge 0x48d1bd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x48d143
mov dword [esp + 0x34], 1
jmp 0x48d19e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x48d1bd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0048b8f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4a2efe
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a2f36
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a0fb5
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a0f8d
jmp 0x4a2f42
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a45f3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a4635
call fcn.004aa7aa
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a4635
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a462c
xor eax, eax
jmp 0x4a463d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a4643
pop edi
pop esi
pop ebx
ret 4
Function at 0x4aacda
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4aad08
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4aad26
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004aac40
jmp 0x4aad26
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4aad26
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004aac40
test edi, edi
mov eax, edi
jne 0x4aad10
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1001bc0
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x10024a0
call fcn.01001d64
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1003418
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100197c
cmp eax, esi
jne 0x100196f
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100197f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001956
xor esi, esi
inc esi
mov eax, dword [0x1003414]
cmp eax, esi
jne 0x1001992
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10019c1
mov eax, dword [0x1003414]
test eax, eax
jne 0x10019bb
mov dword [0x1003414], esi
push 0x10010d0
push 0x10010c4
call fcn.010018b8
pop ecx
pop ecx
test eax, eax
je 0x10019c1
jmp 0x1001ae4
mov dword [0x1003034], esi
mov eax, dword [0x1003414]
cmp eax, esi
jne 0x10019e5
push 0x10010c0
push 0x10010b8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1003414], 2
cmp dword [ebp - 0x20], ebx
jne 0x10019f2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100341c], ebx
je 0x1001a13
push 0x100341c
call fcn.01001cd9
pop ecx
test eax, eax
je 0x1001a13
push ebx
push 2
push ebx
call dword [0x100341c]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1001ae4
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp ecx, 0x20
ja 0x1001a7c
cmp cx, bx
je 0x1001a37
cmp dword [ebp - 0x1c], ebx
jne 0x1001a7c
movzx ecx, word [eax]
cmp cx, bx
je 0x1001a4c
cmp ecx, 0x20
ja 0x1001a4c
add eax, 2
mov dword [ebp - 0x24], eax
jmp 0x1001a37
test byte [ebp - 0x40], 1
je 0x1001a58
movzx ecx, word [ebp - 0x3c]
jmp 0x1001a5b
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1003030], eax
cmp dword [0x1003024], ebx
jne 0x1001ac1
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp ecx, 0x22
jne 0x1001a8c
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
add eax, 2
jmp 0x1001a22
cmp dword [0x1003034], ebx
jne 0x1001acf
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1003030]
jmp 0x1001af0
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01001da9
ret
call fcn.01001eac
jmp 0x1001919

Function at 0x4eb095
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa82554
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x4eb115
arpl word [edx + esi], si
push edx
int3
xor dword [esi], ecx
push cs
mov ebx, 0x11a9b92f
in al, 0xd0
mov ebx, 0x4fbaa28e
mov dword [0x13fef353], ebx
xor eax, 0x40164cf2
cmpsb byte [esi], byte es:[edi]
clc
sub dword [esp + ebp*4 - 0x4f], ebp
bnd jns 0x4eb116
sbb byte [edi + 0x3d], 0xcd
insb byte es:[edi], dx
xchg esi, eax
or byte [edi + 0x56b57646], cl
dec edi
scasb al, byte es:[edi]
pop edx
or eax, 0xc286d84c
or cl, dh
daa
xchg al, dh
retf
Function at 0x403f8f
Capabilities:
Parse pe header

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

Function at 0x410121
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f530
push 0x41f528
push str.FlsAlloc
push 0x1f
call fcn.0041003d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410155
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d134]
call esi
jmp 0x41015b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41019f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f540
push 0x41f538
push str.FlsGetValue
push 0x21
call fcn.0041003d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4101d6
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4101de
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f548
push 0x41f540
push str.FlsSetValue
push 0x22
call fcn.0041003d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410218
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41d134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4138fb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x425fb0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41393b
cmp byte [ebx], 0xa
jne 0x41393b
or byte [edi + eax + 0x28], 4
jmp 0x413940
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x413a3f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x413a22
inc eax
cmp dl, 0xd
je 0x41396c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x413992
cmp eax, ecx
jae 0x4139a0
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x413954
jmp 0x413a3f
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413a1d
cmp dword [ebp - 0x10], 0
je 0x413a1d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x425fb0]
test byte [eax + edi + 0x28], 0x48
je 0x4139f7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4139e2
mov byte [esi], dl
jmp 0x4139f3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x425fb0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x413a3f
cmp byte [ebp - 1], 0xa
jne 0x413a06
cmp esi, ebx
jne 0x413a06
mov byte [esi], 0xa
jmp 0x413a3e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041938b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x413a3f
mov byte [esi], 0xd
jmp 0x413a3e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x425fb0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x413a3c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x413a3f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret