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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
jmp loc.0041b1bd

Function at 0x4091f8
Capabilities:
Packed with generic packer

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov eax, esi
call fcn.00404044
mov ebx, eax
cmp ebx, 1
jl 0x40922f
jmp loc.00419d25
pop edi
pop esi
pop ebx
ret

Function at 0x409234
Capabilities:
Packed with generic packer

Disassembly:
push ebx
push esi
push edi
push ecx
mov dword [esp], edx
mov esi, eax
mov eax, esi
call fcn.00404044
mov edi, eax
mov ebx, edi
cmp ebx, 1
jl 0x409272
jmp loc.00419d04
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40924c
Capabilities:
Packed with generic packer

Disassembly:
push ebx
push esi
push edi
push ecx
mov dword [esp], edx
mov esi, eax
mov eax, esi
call fcn.00404044
mov edi, eax
mov ebx, edi
cmp ebx, 1
jl 0x409272
jmp loc.00419d04
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409278
Capabilities:
Packed with generic packer

Disassembly:
push ebx
push esi
push edi
push ecx
mov dword [esp], edx
mov esi, eax
mov eax, esi
call fcn.00404044
mov edi, eax
mov ebx, edi
cmp ebx, 1
jl 0x4092b2
jmp loc.0041cfe7
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4093c0
Capabilities:
Connect socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa88
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x578], ebx
mov dword [ebp - 0x568], ebx
mov dword [ebp - 0x56c], ebx
mov dword [ebp - 0x570], ebx
mov dword [ebp - 0x574], ebx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404234
lea edi, [ebp - 8]
xor eax, eax
push ebp
push 0x4096b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xde
jmp loc.00416899

Function at 0x40970c
Capabilities:
Initialize winsock library
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
xor edx, edx
mov dword [ebp - 0x194], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409781
jmp loc.00413c9c

Function at 0x4097a4
Capabilities:
Packed with generic packer

Disassembly:
push ebx
push ecx
mov ebx, eax
mov eax, dword [0x40b164]
mov dword [eax], 0xffffffff
call fcn.004027d4
test bx, bx
jbe 0x4097d9
push 0
jmp loc.0041fbcd
pop edx
pop ebx
ret

Function at 0x409884
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe68
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x198], edx
mov dword [ebp - 0x194], edx
mov edi, eax
xor eax, eax
push ebp
push 0x40999a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x190]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor edx, edx
push ebp
push 0x40996d
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.wsock32.dll_gethostbyname
test eax, eax
jmp loc.00413c44

Function at 0x4099e8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, edx
mov eax, ebx
jmp loc.00416b7e
Function at 0x409a14
Capabilities:
Packed with generic packer

Disassembly:
push ebx
add esp, 0xffffff6c
xor ebx, ebx
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
jmp loc.0041d54f

Function at 0x409c70
Capabilities:
Connect network resource
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], ecx
jmp loc.0041fdb9

Function at 0x40a23c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov ebx, eax
xor ebp, ebp
jmp loc.004178db

Function at 0x40a524
Capabilities:
Packed with generic packer

Disassembly:
push ebx
push ecx
mov ebx, eax
mov eax, dword [0x40b19c]
mov dword [eax], 0xffffffff
call fcn.004027d4
test bx, bx
jbe 0x40a559
push 0
push 0
lea eax, [esp + 8]
push eax
mov ecx, 0x40a510
xor edx, edx
xor eax, eax
jmp loc.004202a4
pop edx
pop ebx
ret

Function at 0x413a6a
Capabilities:
Packed with generic packer

Disassembly:
pushfd
pushal
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4050a0
push 0x401cd0
push eax
push ebx
push edi
xor edx, edx
mov dl, ah
mov ecx, eax
and ecx, 0xff
shl ecx, 8
add ecx, edx
shr eax, 0x10
pop ecx
test eax, eax
add esp, 0x14
leave
popal
popfd
call fcn.00404a10
jmp loc.00403834

Function at 0x415344
Capabilities:
Copy file
Delete file
Read file on windows
Write file on windows

Disassembly:
pushfd
pushal
push ebp
mov ebp, esp
push ebx
push edi
push 0x20
push 0x8001
push 8
push 0x2b4
push eax
push 0x40931c
push 0x409304
push 0x46adc0
push eax
mov edi, 0x4c30a0
push edi
mov eax, edi
add esp, 0x30
leave
popal
popfd
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
jmp loc.004074bc

Function at 0x415657
Capabilities:
Copy file
Delete file
Read file on windows
Write file on windows

Disassembly:
pushfd
pushal
push ebp
mov ebp, esp
dec eax
salc
add dh, dl
salc
pop edi
push ebx
dec edi
pop edi
dec edi
dec ecx
and al, 0
add al, 0
popal
popfd
call fcn.0040721c
jmp loc.0040747b

Function at 0x415677
Capabilities:
Copy file
Delete file
Read file on windows
Write file on windows

Disassembly:
pushfd
pushal
push ebp
mov ebp, esp
dec eax
salc
add dh, dl
salc
pop edi
push ebx
dec edi
pop edi
dec edi
dec ecx
and al, 0
add al, 0
popal
popfd
call sub.kernel32.dll_ReadFile_1
jmp loc.0040744c

Function at 0x4157eb
Capabilities:
Receive data
Receive data on socket

Disassembly:
pushfd
pushal
push ebp
mov ebp, esp
push 0x60
push 0x411058
push eax
mov edi, 0x94
push edi
push 0
mov ebx, dword [0x40f08c]
push eax
add esp, 0x18
leave
popal
popfd
jne loc.00406820
jmp loc.004053e4

Function at 0x419a53
Capabilities:
Receive data
Receive data on socket

Disassembly:
pushfd
pushal
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4369a8
push 0x41f054
push eax
push ebx
push edi
xor edx, edx
mov dl, ah
mov ecx, eax
and ecx, 0xff
shl ecx, 8
add ecx, edx
shr eax, 0x10
push 1
pop ecx
test eax, eax
add esp, 0x18
leave
popal
popfd
call fcn.00404104
jmp loc.004053b0
Function at 0x419d06
Capabilities:
Packed with generic packer

Disassembly:
pushfd
pushal
push ebp
mov ebp, esp
dec eax
salc
add dh, dl
salc
pop edi
push ebx
dec edi
pop edi
dec edi
dec ecx
and al, 0
add al, 0
popal
popfd
mov al, byte [esi + ebx - 1]
cmp al, 0x5c
jmp fcn.00409253

Function at 0x41b4be
Capabilities:
Packed with generic packer

Disassembly:
pushfd
pushal
push ebp
mov ebp, esp
dec eax
xor al, 0
pop edi
push ebx
dec edi
pop edi
dec edi
popal
popfd
call fcn.00404a10
jmp loc.0040387d

Function at 0x41c355
Capabilities:
Receive data
Receive data on socket

Disassembly:
pushfd
pushal
push ebp
mov ebp, esp
dec eax
nop
nop
pop edi
push ebx
dec edi
pop edi
dec edi
add dl, ah
sbb eax, 0xa000200
popal
popfd
call fcn.00404388
jmp loc.004052e6

Function at 0x42066d
Capabilities:
Copy file
Delete file
Read file on windows
Write file on windows

Disassembly:
pushfd
pushal
push ebp
mov ebp, esp
dec eax
aam 3
aam 3
xor al, 0
pop edi
push ebx
dec edi
pop edi
dec edi
add al, 0
popal
popfd
call fcn.00404090
jmp loc.004073bb
Function at 0x401210
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00410cdc
mov ebx, dword [esi + 0x64]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x80]
sub ebx, edx
sub ebx, 0x14
xor edi, edi
dec ecx
mov ebp, eax
js 0x401272
mov edx, dword [esi + 0x7c]
push 5
mov eax, dword [edx + edi*4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x7c]
push 0x100
push 0
push 0
mov edx, dword [ecx + edi*4]
push edx
call dword [sym.imp.USER32.dll_RedrawWindow]
mov eax, dword [esi + 0x80]
inc edi
dec eax
cmp edi, eax
jle 0x401241
mov edx, dword [esi + 0x40]
lea ecx, [esp + 0x10]
push ecx
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.00415c44
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add eax, ebx
mov dword [esp + 0x1c], eax
sub eax, ecx
push 1
push eax
mov eax, dword [esp + 0x18]
sub edx, eax
push edx
push ecx
mov ecx, dword [esi + 0x40]
push eax
call fcn.004133bc
mov eax, dword [esi + 0x94]
xor edi, edi
dec eax
js 0x401326
mov edx, dword [esi + 0x90]
lea ecx, [esp + 0x10]
push ecx
mov eax, dword [edx + edi*4]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.00415c44
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add eax, ebx
add ecx, ebx
mov dword [esp + 0x1c], eax
sub eax, ecx
push 1
push eax
mov eax, dword [esp + 0x18]
sub edx, eax
mov dword [esp + 0x1c], ecx
push edx
push ecx
push eax
mov eax, dword [esi + 0x90]
mov ecx, dword [eax + edi*4]
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [esi + 0x94]
inc edi
dec edx
cmp edi, edx
jle 0x4012c3
mov ecx, dword [ebp + 0x1c]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add eax, ebx
mov dword [esp + 0x1c], eax
sub eax, ecx
push 1
push eax
mov eax, dword [esp + 0x18]
sub edx, eax
push edx
push ecx
push eax
mov ecx, ebp
call fcn.004133bc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x401370
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00410cdc
mov ebx, dword [esi + 0x64]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x80]
sub ebx, edx
sub ebx, 0x14
xor edi, edi
dec ecx
mov ebp, eax
js 0x4013bc
mov edx, dword [esi + 0x7c]
push 0
mov eax, dword [edx + edi*4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x80]
inc edi
dec ecx
cmp edi, ecx
jle 0x4013a1
mov eax, dword [esi + 0x40]
lea edx, [esp + 0x10]
push edx
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
call fcn.00415c44
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub eax, ebx
mov dword [esp + 0x1c], eax
sub eax, ecx
push 1
push eax
mov eax, dword [esp + 0x18]
sub edx, eax
push edx
push ecx
mov ecx, dword [esi + 0x40]
push eax
call fcn.004133bc
mov eax, dword [esi + 0x94]
xor edi, edi
dec eax
js 0x401470
mov edx, dword [esi + 0x90]
lea ecx, [esp + 0x10]
push ecx
mov eax, dword [edx + edi*4]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.00415c44
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub eax, ebx
sub ecx, ebx
mov dword [esp + 0x1c], eax
sub eax, ecx
push 1
push eax
mov eax, dword [esp + 0x18]
sub edx, eax
mov dword [esp + 0x1c], ecx
push edx
push ecx
push eax
mov eax, dword [esi + 0x90]
mov ecx, dword [eax + edi*4]
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [esi + 0x94]
inc edi
dec edx
cmp edi, edx
jle 0x40140d
mov ecx, dword [ebp + 0x1c]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub eax, ebx
mov dword [esp + 0x1c], eax
sub eax, ecx
push 1
push eax
mov eax, dword [esp + 0x18]
sub edx, eax
push edx
push ecx
push eax
mov ecx, ebp
call fcn.004133bc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4021d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x1640c
call fcn.00403a20
push ebx
mov ebx, dword [esp + 0x1641c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1642c]
xor esi, esi
xor ecx, ecx
mov eax, ecx
mov byte [esp + ecx + 0x24], cl
cdq
idiv edi
inc ecx
cmp ecx, 0xb1fb
mov al, byte [edx + ebx]
mov byte [esp + ecx + 0xb21f], al
jl 0x4021f0
xor edi, edi
xor ecx, ecx
xor eax, eax
mov cl, byte [esp + edi + 0xb220]
mov al, byte [esp + edi + 0x24]
add esi, ecx
mov ecx, 0xb1fb
add eax, esi
cdq
idiv ecx
inc edi
cmp edi, ecx
mov esi, edx
mov dl, byte [esp + edi + 0x23]
mov al, byte [esp + esi + 0x24]
mov byte [esp + esi + 0x24], dl
mov byte [esp + edi + 0x23], al
jl 0x40220e
mov ecx, dword [esp + 0x16424]
xor ebp, ebp
test ecx, ecx
jle 0x402343
mov eax, dword [esp + 0x16430]
mov edx, dword [esp + 0x16420]
sub edx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
lea eax, [edi + 1]
mov ecx, 0xb1fb
cdq
idiv ecx
xor eax, eax
push str.QCGoHpigM2LfHvoRw0LkRgtHxBXdHQG5u9Mjoi1VU1AC
push 0x423d30
mov edi, edx
mov al, byte [esp + edi + 0x2c]
add eax, ebp
cdq
idiv ecx
mov ebp, edx
mov dl, byte [esp + edi + 0x2c]
mov al, byte [esp + ebp + 0x2c]
mov byte [esp + ebp + 0x2c], dl
mov byte [esp + 0x28], al
mov byte [esp + edi + 0x2c], al
mov ecx, dword [esp + 0x28]
xor eax, eax
mov al, byte [esp + ebp + 0x2c]
and ecx, 0xff
add eax, ecx
mov ecx, 0xb1fb
cdq
idiv ecx
mov dword [esp + 0x24], edx
call fcn.004029c0
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00402760
mov edx, dword [esi]
xor ebx, ebx
mov eax, dword [edx + 4]
add eax, esi
test byte [eax + 4], 6
jne 0x4022f9
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x4022f9
mov ebx, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
test ebx, ebx
je 0x40231a
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x28]
or eax, ebx
test edx, edx
jne 0x402312
or al, 4
push 0
push eax
call fcn.0040a082
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov dl, byte [ecx + eax]
mov ecx, dword [esp + 0x1c]
xor dl, byte [esp + ecx + 0x24]
mov byte [eax], dl
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x40226d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1640c
ret
Function at 0x406451
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x420d48
cmp edx, dword [eax]
je 0x406473
add eax, 8
inc ecx
cmp eax, 0x420dd8
jl 0x406464
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x420d48]
jne 0x4065a1
mov eax, dword [0x423900]
cmp eax, 1
je 0x40657b
test eax, eax
jne 0x4064a4
cmp dword [0x420774], 1
je 0x40657b
cmp edx, 0xfc
je 0x4065a1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4064db
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407200
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004072f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40651e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004072f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41bcd4
push edi
call fcn.00407b00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407200
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407210
lea eax, [ebp - 0xa0]
push 0x41bcb4
push eax
call fcn.00407210
push dword [esi + 0x420d4c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407210
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407cba
add esp, 0x2c
pop edi
jmp 0x4065a1
lea eax, [ebp + 8]
lea esi, [esi + 0x420d4c]
push 0
push eax
push dword [esi]
call fcn.004072f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40de90
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00403a20
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40df5b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40df5b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40df0e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40df19
or bh, 8
and edi, 0x8000000
je 0x40df34
mov eax, dword [0x42551c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x40df5b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40e35b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40e37f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x40e39a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x412b90
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 0x412bd2
call fcn.004177f3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x412bd2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x412bc9
xor eax, eax
jmp 0x412bda
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00412be0
pop edi
pop esi
pop ebx
ret 4

Function at 0x417d50
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 0x417d7e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x417d9c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00417cb6
jmp 0x417d9c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x417d9c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00417cb6
test edi, edi
mov eax, edi
jne 0x417d86
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40772f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x462154], 0
jne 0x40776d
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x407743
mov dword [ecx*4 + 0x462150], eax
inc ecx
cmp ecx, 0x100
jl 0x40773e
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40779a
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x462150]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40777b
not eax
pop ebp
ret 0xc

Function at 0x401000
Capabilities:
Allocate or change rwx memory
Check for foreground window switch
Check for time delay via gettickcount
Check for unmoving mouse cursor
Execute shellcode via indirect call

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x403008]
cmp eax, 0
jne 0x401021
mov eax, dword [0x40300c]
cmp eax, 0
jne 0x401021
jmp 0x4010b6
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 4], eax
push 0x1388
call sub.KERNEL32.dll_Sleep
call sub.USER32.dll_GetForegroundWindow
cmp eax, 0
je 0x401021
mov dword [ebp - 0x14], eax
call sub.KERNEL32.dll_GetTickCount
sub eax, dword [ebp - 4]
cmp eax, 0x1388
jl 0x401021
lea eax, [ebp - 8]
push eax
call sub.USER32.dll_GetCursorPos
cmp eax, 0
je 0x401021
mov eax, dword [0x403008]
cmp eax, 0
je 0x401093
push 0x3e8
call sub.KERNEL32.dll_Sleep
lea eax, [ebp - 0x10]
push eax
call sub.USER32.dll_GetCursorPos
cmp eax, 0
je 0x401067
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
cmp eax, ebx
je 0x401021
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
cmp eax, ebx
je 0x401067
mov eax, dword [0x40300c]
cmp eax, 0
je 0x4010b6
push 0x1388
call sub.KERNEL32.dll_Sleep
call sub.USER32.dll_GetForegroundWindow
cmp eax, 0
je 0x401093
cmp eax, dword [ebp - 0x14]
je 0x401093
push dword [section.data]
mov eax, 0x40301a
mov ebx, 0x40322a
sub ebx, eax
push ebx
push 0x40301a
call fcn.00402bce
lea eax, [ebp - 4]
push eax
push 0x40
mov eax, 0x40112a
mov ebx, fcn.00402bce
sub ebx, eax
push ebx
push 0x40112a
call sub.KERNEL32.dll_VirtualProtect
push dword [0x403004]
mov eax, 0x40112a
mov ebx, fcn.00402bce
sub ebx, eax
push ebx
push 0x40112a
call fcn.00402bce
lea eax, [ebp - 4]
push eax
push dword [eax]
mov eax, 0x40112a
mov ebx, fcn.00402bce
sub ebx, eax
push ebx
push 0x40112a
call sub.KERNEL32.dll_VirtualProtect
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
cmp al, 0x2d
int 0
add byte [esp + ecx - 0x43ffff30], bh
invalid