joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54b940
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x10]
cmp ecx, dword [ebx + 4]
push esi
push edi
jge 0x54b959
mov esi, ebx
mov ebx, eax
jmp 0x54b95b
mov esi, eax
mov eax, dword [esi + 4]
mov edi, dword [esp + 0x10]
cmp eax, dword [edi + 8]
jg 0x54b96b
mov eax, edi
jmp 0x54b975
push eax
push edi
call fcn.004c9860
add esp, 8
test eax, eax
jne 0x54b97d
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [ebx + 4], eax
jle 0x54b999
mov edx, dword [esi]
mov ecx, dword [ebx]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [edi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 4]
jl 0x54b984
cmp eax, dword [esi + 4]
jge 0x54b9b0
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [edi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x54b9a0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
test eax, eax
jle 0x54b9d1
mov ecx, dword [edi]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x54b9ce
dec eax
test eax, eax
jg 0x54b9c0
mov dword [edi + 4], eax
cmp dword [edi + 4], 0
jne 0x54b9de
mov dword [edi + 0xc], 0
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x570f00
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.004c3410
push ebp
push esi
mov esi, dword [esp + 0x54]
push edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
xor ebp, ebp
push ebp
xor edi, edi
call fcn.0055dbc0
add esp, 0xc
test eax, eax
je 0x570f5c
lea esp, [esp]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
shl edx, 0xa
test eax, edx
je 0x570f40
inc edi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
inc ebp
push ebp
call fcn.0055dbc0
add esp, 0xc
test eax, eax
jne 0x570f30
test edi, edi
jne 0x570f80
push 0x109
push str.._ssl_t1_enc.c
push 0x44
push 0x11c
push 0x14
call fcn.004c7820
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
mov eax, dword [esp + 0x4c]
cdq
idiv edi
push ebx
mov ebx, eax
cmp edi, 1
jne 0x570f97
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x4c]
push esi
push 0
push eax
call fcn.004add60
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
mov dword [esp + 0x30], 0
call fcn.0055dbc0
add esp, 0x18
test eax, eax
je 0x57107f
lea esp, [esp]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
shl eax, 0xa
test ecx, eax
je 0x57105b
mov eax, dword [esp + 0x14]
test eax, eax
je 0x57108c
mov ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push esi
push ebp
push edx
mov edx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x5c]
and edx, 1
add edx, ebx
push edx
mov edx, dword [esp + 0x68]
push edi
push eax
call fcn.00570b00
add esp, 0x34
test eax, eax
je 0x5710aa
add edi, ebx
test esi, esi
jle 0x57105b
mov eax, dword [esp + 0x54]
mov ecx, ebp
sub ecx, eax
mov ebp, esi
lea esp, [esp]
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
sub ebp, 1
jne 0x571050
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
inc eax
push edx
push eax
mov dword [esp + 0x24], eax
call fcn.0055dbc0
add esp, 0xc
test eax, eax
jne 0x570fd0
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0xc
ret
push 0x114
push str.._ssl_t1_enc.c
push 0x146
push 0x11c
push 0x14
call fcn.004c7820
add esp, 0x14
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
Function at 0x573260
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.004c3410
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x64]
inc ebp
test byte [ecx + 0x38], 1
je 0x5732a8
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 4]
lea edx, [ecx + ebp]
cmp edx, eax
jbe 0x57329b
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
add dword [esi + 0xc], ecx
add dword [esi + 0x10], ecx
sub eax, ecx
mov dword [esi + 4], eax
jmp 0x5732b3
mov eax, dword [esp + 0x18]
cmp ebp, dword [eax + 4]
ja 0x573294
mov esi, eax
test dword [edi + 0x100], 0x200
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push ebx
movzx ebx, byte [ecx + edx - 1]
je 0x573306
cmp dword [edi + 0x88], 0
jne 0x573306
mov eax, dword [edi + 0x58]
push 8
add eax, 8
push 0x5c394c
push eax
call fcn.004c66b0
add esp, 0xc
test eax, eax
jne 0x5732f9
test bl, 1
jne 0x5732f9
mov eax, dword [edi + 0x58]
or dword [eax], 8
mov ecx, dword [edi + 0x58]
test byte [ecx], 8
je 0x573306
test ebx, ebx
jbe 0x573306
dec ebx
mov edx, dword [edi + 0x80]
mov eax, dword [edx]
push eax
call fcn.00555ce0
add esp, 4
test eax, 0x200000
je 0x573331
or ecx, 0xffffffff
sub ecx, ebx
add dword [esi + 4], ecx
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret
mov edi, dword [esi + 4]
lea eax, [ebx + ebp]
mov esi, edi
sub esi, eax
xor esi, eax
mov edx, edi
xor edx, eax
or esi, edx
xor esi, edi
shr esi, 0x1f
mov ecx, 0xff
lea eax, [edi - 1]
dec esi
mov dword [esp + 0x18], ecx
cmp eax, ecx
jae 0x57335f
mov ecx, eax
mov dword [esp + 0x18], eax
xor ebp, ebp
test ecx, ecx
jbe 0x5733b7
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0xc]
mov ecx, ebx
shr ecx, 0x1f
lea eax, [edi + edx - 1]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
lea ecx, [ecx]
mov edx, ebx
sub edx, ebp
shr edx, 0x1f
mov eax, ebp
shr eax, 0x1f
xor dl, al
xor cl, al
or dl, cl
mov ecx, dword [esp + 0x10]
xor dl, cl
dec dl
movzx eax, dl
mov edx, dword [esp + 0x24]
movzx edx, byte [edx]
dec dword [esp + 0x24]
xor edx, ebx
and eax, edx
not eax
inc ebp
and esi, eax
cmp ebp, dword [esp + 0x18]
jb 0x573380
mov edx, dword [esp + 0x1c]
not esi
and esi, 0xff
lea ecx, [esi - 1]
shr ecx, 0x1f
not esi
shr esi, 0x1f
and ecx, esi
neg ecx
lea eax, [ebx + 1]
and eax, ecx
sub edi, eax
shl eax, 8
or dword [edx], eax
pop ebx
mov dword [edx + 4], edi
mov eax, ecx
pop edi
and eax, 1
not ecx
pop esi
or eax, ecx
pop ebp
pop ecx
ret
Function at 0x5733f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa4
call fcn.004c3410
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
push ebx
mov ebx, dword [esp + 0xb8]
push ebp
push esi
mov esi, dword [ecx + 4]
push edi
mov edi, dword [esp + 0xc0]
mov dword [esp + 0x18], esi
sub esi, edi
xor ebp, ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebp
cmp ebx, edi
jae 0x57345a
push str.orig_len___md_size
push 0xf8
push str.._ssl_s3_cbc.c
call fcn.004c6680
add esp, 0xc
cmp edi, 0x40
jbe 0x573476
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.._ssl_s3_cbc.c
call fcn.004c6680
add esp, 0xc
lea ecx, [esp + 0x30]
neg ecx
and ecx, 0x3f
lea edx, [edi + 0x100]
lea ecx, [esp + ecx + 0x30]
mov dword [esp + 0x1c], ecx
cmp ebx, edx
jbe 0x5734a0
mov eax, ebx
sub eax, edi
sub eax, 0x100
mov dword [esp + 0x10], eax
mov ebp, eax
mov eax, edi
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebp
add eax, esi
xor edx, edx
div edi
push edi
push 0
push ecx
mov ebx, edx
mov dword [esp + 0x30], ebx
call fcn.004add60
mov edx, dword [esp + 0x1c]
add esp, 0xc
xor esi, esi
cmp edx, dword [esp + 0xc4]
jae 0x57357f
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
sub edx, ecx
mov ebx, ecx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xbc]
mov edx, dword [edx + 0xc]
shr eax, 0x1f
shr ebx, 0x1f
sub ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
jmp 0x573518
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
add ecx, ebx
shr ecx, 0x1f
xor cl, al
mov edx, ebp
shr edx, 0x1f
xor al, dl
or cl, al
mov eax, ebx
mov bl, byte [esp + 0x2c]
shr eax, 0x1f
xor al, bl
xor bl, dl
or al, bl
xor al, dl
dec al
xor cl, dl
mov edx, dword [esp + 0x14]
mov dl, byte [edx + ebp]
not al
inc dword [esp + 0x10]
and al, dl
dec cl
and al, cl
mov ecx, dword [esp + 0x1c]
or byte [esi + ecx], al
inc esi
mov eax, esi
sub eax, edi
xor eax, edi
mov ecx, esi
xor ecx, edi
or eax, ecx
xor eax, esi
shr eax, 0x1f
neg eax
inc ebp
and esi, eax
cmp ebp, dword [esp + 0xc4]
jb 0x573510
mov ebx, dword [esp + 0x24]
xor eax, eax
test edi, edi
jbe 0x5735b6
mov esi, dword [esp + 0x1c]
mov edx, ebx
xor edx, 0x20
mov cl, byte [edx + esi]
mov dl, byte [ebx + esi]
mov ecx, dword [esp + 0x28]
mov byte [ecx + eax], dl
inc ebx
mov edx, ebx
sub edx, edi
xor edx, edi
mov ecx, ebx
xor ecx, edi
or edx, ecx
xor edx, ebx
shr edx, 0x1f
neg edx
inc eax
and ebx, edx
cmp eax, edi
jb 0x573585
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a314d
add esp, 0xa4
ret
Function at 0x57f460
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [edi + 0x1c]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.004c7e00
add esp, 8
test esi, esi
jg 0x57f4be
je 0x57f49c
cmp esi, 0xffffffff
jne 0x57f4be
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 4
je 0x57f4b3
cmp eax, 0xb
je 0x57f4b3
cmp eax, 0x2733
jne 0x57f4be
push 0xa
push edi
call fcn.004c7e20
add esp, 8
pop edi
mov eax, esi
pop esi
ret
Function at 0x401210
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor ecx, ecx
test esi, esi
jbe 0x40124c
mov edx, dword [esp + 8]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x18]
mov eax, dword [edx]
movzx ebx, byte [ecx + edi]
mov ebp, eax
and ebp, 0xff
xor ebx, ebp
mov ebp, dword [ebx*4 + 0x4240f8]
shr eax, 8
xor eax, ebp
inc ecx
cmp ecx, esi
mov dword [edx], eax
jb 0x401226
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0x401560
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 8]
push ebx
push edi
mov edi, dword [eax + 4]
xor ebx, ebx
cmp edi, ecx
je 0x4015f6
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov edi, edi
mov eax, dword [edi]
cmp eax, 1
jne 0x401593
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x401593
add ebx, dword [edi + 8]
jmp 0x4015e6
cmp eax, 2
jne 0x4015a1
mov eax, dword [edi + 8]
lea ebx, [ebx + eax + 4]
jmp 0x4015e6
cmp eax, 3
jne 0x4015e6
mov eax, dword [edi + 4]
test eax, eax
je 0x4015e6
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call ebp
mov esi, eax
test esi, esi
je 0x4015e6
cmp esi, 0xffffffff
je 0x4015e6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x4015df
add ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 8]
add edi, 0xc
cmp edi, eax
jne 0x401580
pop esi
pop ebp
pop edi
mov eax, ebx
pop ebx
ret 4
Function at 0x402f30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x42482c]
xor eax, ebp
push ebx
mov dword [esp + 0x124], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x1c], eax
xor eax, eax
xor ebx, ebx
mov byte [esp + 0x20], bl
mov ecx, 0x40
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.WININET.DLL
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
mov dword [esp + 0x10], ebx
je 0x402ff1
push 0x104
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x402ff1
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
jbe 0x402ff1
push edi
call fcn.00414579
mov ecx, dword [esp + 0x14]
add esp, 4
mov esi, eax
push esi
push edi
push ecx
lea edx, [esp + 0x2c]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x402fe8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x41f424
push esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x403008
push esi
call fcn.0041404d
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, ebp
call fcn.004145af
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
mov ecx, dword [esp + 0x1c]
push edx
push eax
push str.MSIE__d._d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push esi
call fcn.0041404d
mov ecx, dword [esp + 0x140]
add esp, 0x14
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004145af
mov esp, ebp
pop ebp
ret
Function at 0x403050
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa8
mov eax, dword [0x42482c]
xor eax, ebp
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0xac], eax
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x9c
call edi
test eax, eax
jne 0x4030be
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x94
call edi
test eax, eax
jne 0x4030be
mov byte [esi], al
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, ebp
call fcn.004145af
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
sub eax, 0
je 0x40313d
dec eax
je 0x4030e8
dec eax
jne 0x40314c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
push eax
push str.Windows_NT__d._d
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40314c
cmp dword [esp + 0xc], 4
jne 0x40314c
mov eax, dword [esp + 0x10]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
jne 0x403111
push str.Windows_95
push esi
call edi
mov eax, dword [esp + 0x14]
add esp, 8
cmp eax, 4
jne 0x40314c
cmp dword [esp + 0x10], 0xa
jne 0x40312c
push str.Windows_98
push esi
call edi
mov eax, dword [esp + 0x14]
add esp, 8
cmp eax, 4
jne 0x40314c
cmp dword [esp + 0x10], 0x5a
jne 0x40314c
push str.Windows_Me
push esi
call edi
jmp 0x403149
push str.Windows
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
mov ecx, dword [esp + 0xac]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004145af
mov esp, ebp
pop ebp
ret
Function at 0x403170
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x42482c]
xor eax, ebp
mov dword [esp + 0x110], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
xor eax, eax
test esi, esi
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, 1
stosb byte es:[edi], al
je 0x4031d3
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
test eax, eax
jle 0x4031d3
push esi
call edi
cmp eax, 0x104
jbe 0x4031ea
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, ebp
call fcn.004145af
mov esp, ebp
pop ebp
ret
push 0x103
push esi
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp + 8]
test eax, eax
je 0x40320d
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathSkipRootA]
mov esi, eax
push esi
call edi
test eax, eax
jne 0x40323b
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, ebp
call fcn.004145af
mov esp, ebp
pop ebp
ret
push 0x5c
push esi
call fcn.00414b7c
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
add esp, 8
test esi, esi
je 0x40328c
mov ecx, dword [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
mov byte [esi], 0
call edi
and ebx, eax
jne 0x403277
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403277
mov ebx, 1
mov byte [esi], 0x5c
push 0x5c
inc esi
push esi
call fcn.00414b7c
mov esi, eax
add esp, 8
test esi, esi
jne 0x403252
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
call edi
and ebx, eax
jne 0x4032ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4032ae
mov ebx, 1
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004145af
mov esp, ebp
pop ebp
ret

Function at 0x403400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403419
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40342d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40344e
cmp esi, eax
jae 0x403427
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403440
cmp esi, eax
jae 0x403427
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x406b3c
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
cmp eax, 0x2711
push esi
mov esi, ecx
jne 0x406c9b
mov eax, dword [esi + 0x11c]
push ebp
xor ebp, ebp
cmp eax, ebp
jne 0x406c9a
push edi
lea ecx, [esi + 0x48]
call fcn.0040d890
test eax, eax
je 0x406bd3
mov eax, dword [esi + 0x44]
push ebp
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, eax
mov eax, dword [esp + 0x20]
cmp eax, 0x205
je 0x406b86
cmp eax, 0x202
jne 0x406c99
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ebp
push eax
push ebp
push ecx
push edx
push ebp
push edi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov eax, dword [esi + 4]
push ebp
push ebp
push ebp
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 8
ret 0x10
mov ecx, dword [esi + 0x40]
push ebx
push ebp
push ecx
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edx, dword [0x4259c0]
mov ecx, 0x4259c0
mov edi, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
cmp dword [esi + 0x118], ebp
lea ecx, [esp + 0x20]
je 0x406c09
push 0x87
jmp 0x406c0e
push 0x84
call fcn.004044e0
mov ebx, dword [esp + 0x20]
push ebx
push 0x8009
push ebp
push 0x8009
push edi
call dword [sym.imp.USER32.dll_ModifyMenuA]
mov eax, dword [esp + 0x24]
cmp eax, 0x205
je 0x406c3c
cmp eax, 0x202
jne 0x406c7e
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push ebp
push edx
push ebp
push eax
push ecx
push ebp
push edi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov edx, dword [esi + 4]
push ebp
push ebp
push ebp
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop ebx
jg 0x406c99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 8
ret 0x10
Function at 0x407ab0
Capabilities:
Accept command line arguments
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1bc
mov eax, dword [0x42482c]
xor eax, ebp
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x1bc], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov dword [esp + 0x14], eax
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0x9c
call esi
test eax, eax
jne 0x407b14
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], 0x94
call esi
test eax, eax
je 0x407c3f
cmp dword [esp + 0x28], 2
jne 0x407c3f
cmp dword [esp + 0x1c], 4
jbe 0x407c3f
call fcn.0040fcc0
test eax, eax
je 0x407b8d
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0
call fcn.0040fd30
add esp, 4
test eax, eax
jl 0x407c3f
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x407b8d
push 0x104
lea ecx, [esp + 0xbc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0
push eax
lea edx, [esp + 0xc0]
push edx
push 0
call fcn.0040fdc0
add esp, 0x10
jmp 0x407c3f
push str.GlobalDB37DF94_6157_42e3_8324_3FF035409B59
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x407c31
cmp eax, 0xb7
je 0x407c31
cmp eax, 5
je 0x407c31
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcA]
push 4
call fcn.004076d0
add esp, 4
push 0
push ebx
push 0
mov ecx, 0x424584
call fcn.004077a0
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.00407a10
add esp, 8
mov ecx, 0x424584
mov edi, eax
call fcn.004079b0
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, ebp
call fcn.004145af
mov esp, ebp
pop ebp
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004145af
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40b280
Capabilities:
Encode data using xor

Disassembly:
sub eax, 0x2492729d
rol byte [edx + 0x7d], 1
fldenv [ebx - 0x7c20929f]
xchg eax, ecx
inc ecx
in eax, 0xb7
sahf
mov al, 0x87
salc
lds edi, [ebx]
cmp eax, 0x4a565b9d
xor dword [eax + 0x51c0e422], ecx
rcl byte [ecx + 0x28], 0x85
sub esp, edi
cmp bh, bl
rcl byte [ecx + 0x28], 0x85
sub esp, edi
cmp bh, bl
xchg dh, cl
in eax, dx
pop ss
push es
wait
jecxz 0x40b25c
ror byte [ebp + 5], 1
mov ch, 0xd
adc dword [edx + 0x45], edx
push ss
dec eax
das
mov esp, 0x1821598f
push ebx
adc dword [edi], esp
push edi
dec edi
ljmp 0x1a55

Function at 0x40b560
Capabilities:
Encode data using xor

Disassembly:
adc ecx, edi
adc byte [ebx + 0x4109773e], cl
rcr dword [eax - 0x29], cl
xor al, 0xcf
not dword [edx]
cmp al, byte [ecx]
push cs
pushal
dec ebx
rol dword [edx + 0x1fe5da16], 0x33
jbe 0x40b51c
add eax, 0x4b7233da

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

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ebx, ebx
push eax
mov esi, ecx
mov dword [esp + 0x10], ebx
call edi
cmp eax, 0xffffffff
je 0x40c4b1
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40c421
mov esi, 1
jmp 0x40c45d
push eax
push 0x41f424
add esi, 0x84
lea ecx, [esp + 0x20]
push esi
push ecx
mov ebx, 3
call fcn.0040bf50
add esp, 0xc
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.0040bf50
mov eax, dword [eax]
add esp, 0xc
push eax
call edi
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
test bl, 2
je 0x40c485
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
and ebx, 0xfffffffd
lea edx, [eax + 0xc]
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c485
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, 1
je 0x40c4a8
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c4a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 8