joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4638b0
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464f68
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x51481c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x463a97
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4638f3
sub eax, edx
sar eax, 1
je 0x463a97
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x463a97
push 0x409
push 0x65
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x463a89
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x463a97
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, ebx
je 0x463a97
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
cmp eax, ebx
je 0x463a97
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x2c]
push ecx
push edi
push eax
mov byte [ebp - 4], 1
call fcn.00430e90
add esp, 0xc
cmp eax, ebx
je 0x463a70
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x28]
je 0x463a70
mov edi, dword [ebp + 8]
push 0x4019a8
lea eax, [ebp - 0x18]
push edi
push eax
mov dword [ebp - 0x18], ebx
call fcn.004567f8
add esp, 0xc
test eax, eax
jne 0x463a70
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x463a70
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x28]
push ecx
sub esi, eax
push esi
push 1
push eax
call fcn.004566c0
mov edx, dword [ebp - 0x18]
xor ecx, ecx
cmp esi, eax
sete cl
push edx
mov esi, ecx
call fcn.00456116
add esp, 0x14
cmp esi, ebx
je 0x463a70
mov eax, dword [0x515720]
mov edx, dword [eax + 0xc]
mov ecx, 0x515720
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 0x6b
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004292d0
cmp eax, ebx
je 0x463a68
mov esi, dword [ebp - 0x1c]
cmp dword [esi - 0xc], ebx
je 0x463a68
push edi
lea ecx, [ebp + 8]
call fcn.00429b00
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.0044f480
push esi
lea ecx, [ebp + 8]
call fcn.0044eb40
cmp eax, ebx
je 0x463a60
mov eax, dword [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
je 0x463a60
mov ecx, dword [ebp + 8]
push 1
push ebx
push ebx
push ecx
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x14], 1
lea ecx, [ebp + 8]
call fcn.0044dc10
lea ecx, [ebp - 0x1c]
call fcn.004264f0
lea ecx, [ebp - 0x2c]
call fcn.0042e5e0
jmp 0x463a97
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463f90
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464fe0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x51481c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x464155
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x463fd3
sub eax, edx
sar eax, 1
je 0x464155
push esi
lea ecx, [ebp - 0x1c]
call fcn.00429b00
mov eax, dword [0x515720]
mov edx, dword [eax + 0xc]
mov ecx, 0x515720
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], edi
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [0x515720]
mov edx, dword [eax + 0xc]
mov ecx, 0x515720
mov byte [ebp - 4], 2
call edx
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x20]
push eax
push 0x401a40
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00450f60
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0044f810
mov edi, dword [ebp - 0x18]
cmp dword [edi - 0xc], 0
mov eax, dword [ebp - 0x24]
setne bl
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x464079
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4640f2
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], 1
call fcn.00427080
push 1
push 0x401a40
lea ecx, [ebp + 8]
call fcn.00427080
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x46402a
push 0x401a2c
push 0x401698
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x4640da
push 0
push esi
call eax
test eax, eax
jne 0x46416a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x46416a
mov dword [ebp - 0x14], 0
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x464112
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x464132
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x464155
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
je 0x46402a
push 2
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
jmp 0x46402a
Function at 0x4021f0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x148
mov eax, dword [0x40e3e0]
xor eax, esp
mov dword [esp + 0x144], eax
push ebp
mov ebp, dword [esp + 0x154]
push esi
push edi
push 0x104
lea eax, [esp + 0x50]
push 0
push eax
call fcn.00404c50
mov eax, dword [esp + 0x164]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
sub eax, 1
je 0x4022b0
sub eax, 1
je 0x40229e
sub eax, 1
jne 0x402300
lea ecx, [esp + 0x4c]
push ecx
push eax
push eax
push 0x23
push eax
call fcn.00403140
add esp, 0x14
lea edx, [esp + 0x4c]
push edx
call edi
cmp byte [esp + eax + 0x4b], 0x5c
je 0x40226c
mov byte [esp + eax + 0x4c], 0x5c
mov byte [esp + eax + 0x4d], 0
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402300
mov byte [ebp], 0
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.00404c23
add esp, 0x148
ret
lea ecx, [esp + 0x4c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x402254
push 0x104
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x4c]
push edx
call edi
cmp byte [esp + eax + 0x4b], 0x5c
je 0x4022d4
mov byte [esp + eax + 0x4c], 0x5c
inc eax
lea esi, [esp + eax + 0x4c]
push str.Temp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402280
push 0x40b28c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.2311052148054033292831804
call edi
dec eax
cmp eax, 8
jl 0x402284
mov al, byte [eax + str.2311052148054033292831804]
cmp al, 0x30
jl 0x402284
cmp al, 0x39
jg 0x402284
movsx esi, al
sub esi, 0x30
and esi, reloc.WS2_32.dll_closesocket
jns 0x40233a
dec esi
or esi, 0xfffffffc
inc esi
push str.2311052148054033292831804
add esi, 4
call edi
sub eax, esi
dec eax
xor ecx, ecx
lea eax, [eax + str.2311052148054033292831804]
nop
mov dl, byte [eax]
test dl, dl
je 0x4023b5
test esi, esi
jle 0x4023b5
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xc], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023aa
test esi, esi
jle 0x4023aa
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xd], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023ad
test esi, esi
jle 0x4023ad
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xe], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023b2
test esi, esi
jle 0x4023b2
add dl, dl
inc dl
mov byte [esp + ecx + 0xf], dl
add ecx, 4
dec esi
inc eax
cmp ecx, 0x40
jb 0x402350
jmp 0x4023b5
inc ecx
jmp 0x4023b5
add ecx, 2
jmp 0x4023b5
add ecx, 3
mov byte [esp + ecx + 0xc], 0x2e
push 0x40b288
lea ecx, [esp + ecx + 0x11]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x4c]
push edx
call edi
mov ecx, 0x104
sub ecx, eax
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x54]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + eax + 0x54]
push ecx
call esi
push 0x103
lea edx, [esp + 0x50]
push edx
push ebp
call esi
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00404c23
add esp, 0x148
ret
Function at 0x844b40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2e9000]
push edi
or ebp, 0xffffffff
jmp 0x844b62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x844b69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x844b58
mov eax, 1
add ebx, ebx
jne 0x844b7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x844b8c
jne 0x844bab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x844bab
dec eax
add ebx, ebx
jne 0x844b98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x844b70
add ebx, ebx
jne 0x844ba7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x844bfd
xor ecx, ecx
sub eax, 3
jb 0x844bc3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x844c32
sar eax, 1
mov ebp, eax
jmp 0x844bce
add ebx, ebx
jne 0x844bce
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x844b9c
inc ecx
add ebx, ebx
jne 0x844bdc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x844b9c
add ebx, ebx
jne 0x844be9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x844bde
jne 0x844bfa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x844bde
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x844c1c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x844c0e
jmp 0x844b5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x844c1c
add edi, ecx
jmp 0x844b5e
pop esi
mov edi, esi
mov ecx, 0xfdae
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x844c3a
cmp byte [edi], 0x86
jne 0x844c3a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x844c3f
lea edi, [esi + 0x42c000]
mov eax, dword [edi]
or eax, eax
je 0x844cb7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x448a04]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x448aec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x844c6c
mov ecx, edi
jns 0x844c9b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x448af4]
or eax, eax
je 0x844cb1
mov dword [ebx], eax
add ebx, 4
jmp 0x844c89
call dword [esi + 0x448af0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x844ce8
cmp al, 0xef
ja 0x844cdb
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x844cbd
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x844cca
mov ebp, dword [esi + 0x448af8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x844d1c
sub esp, 0xffffff80
jmp 0x5d4cc0
Function at 0x40ed63
Capabilities:
Encode data using xor

Disassembly:
push 0x40eae0
mov edi, dword [esp]
add esp, 4
sub esi, esi
call fcn.0040ed8b
add eax, 0x23fc4dbe
xor dword [ebx], edi
inc ebx
cmp ebx, edx
jne fcn.0040ed63
ret
Function at 0x401830
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [0x4092ac]
push ebx
push ebp
push esi
mov esi, dword [0x4092a8]
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
cmp esi, eax
jbe 0x401857
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [0x4092ac]
mov edi, dword [0x40929c]
lea ecx, [ecx]
mov ebx, eax
cmp dword [0x4092a8], eax
jbe 0x401870
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test edi, edi
je 0x40187c
cmp edi, dword [0x40929c]
je 0x401882
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp esi, ebx
je 0x4018f2
push 0x406270
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test edi, edi
jne 0x4018e6
call ebx
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4018a8
call ebx
mov eax, dword [esp + 0x1c]
cmp dword [esi], eax
jne 0x4018ca
mov dword [esp + 0x10], 1
test edi, edi
jne 0x4018ea
call ebx
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4018c7
call ebx
mov ebp, dword [esi + 4]
test edi, edi
jne 0x4018ee
call ebx
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4018d9
call ebx
mov eax, dword [0x4092ac]
add esi, 8
jmp 0x401860
mov eax, dword [edi]
jmp 0x4018a1
mov eax, dword [edi]
jmp 0x4018c0
mov eax, dword [edi]
jmp 0x4018d2
mov ebx, dword [esp + 0x1c]
mov edi, dword [ebx + 4]
mov esi, dword [ebx]
xor edi, 0x9c
xor esi, 0x9c
add edi, 2
cmp dword [esp + 0x10], 0
jne 0x40191f
lea ecx, [esi + 1]
push ecx
call fcn.00404583
add esp, 4
mov ebp, eax
xor eax, eax
test esi, esi
jbe 0x401938
lea ecx, [ebx + edi*4]
mov dl, byte [ecx]
xor dl, 0x9c
mov byte [eax + ebp], dl
inc eax
add ecx, 4
cmp eax, esi
jb 0x401928
cmp dword [esp + 0x10], 0
mov byte [eax + ebp], 0
jne 0x401967
push 0x406270
push 0
mov dword [esp + 0x18], ebx
call dword [sym.imp.USER32.dll_FindWindowA]
lea eax, [esp + 0x10]
push eax
mov ecx, 0x40929c
mov dword [esp + 0x18], ebp
call fcn.004017b0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4021c0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [0x40909c]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x114]
push ebx
mov ebx, dword [esp + 0x124]
push ebp
mov ebp, dword [esp + 0x118]
push esi
mov esi, dword [esp + 0x128]
push edi
mov edi, dword [esp + 0x128]
push eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x406270
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test edi, edi
je 0x402245
push 0x40656c
call fcn.00401830
add esp, 4
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4022e7
test esi, esi
je 0x4022c0
mov edi, dword [esp + 0x134]
cmp edi, 3
jne 0x4022a1
mov edx, dword [esp + 0x138]
push edx
push esi
push edi
push eax
mov eax, dword [esp + 0x20]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x406270
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_FindWindowA]
jmp 0x4022bc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x10]
inc eax
push eax
push esi
push edi
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
jne 0x4022d4
mov edx, dword [esp + 0x10]
push edx
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4022eb
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4022eb
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004045f8
add esp, 0x10c
ret
Function at 0x4045f8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40909c]
jne 0x404602
repz ret
jmp fcn.00404ae4
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
mov dx, word [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
xor ecx, ecx
mov cl, dh
test edi, edi
mov byte [esp + 0x10], cl
je 0x401042
push esi
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
xor eax, eax
mov al, byte [esi]
and ecx, 0xff
xor eax, ecx
inc esi
mov cl, byte [eax + 0x420040]
xor cl, dl
mov dl, byte [eax + 0x420140]
dec edi
mov byte [esp + 0x14], cl
jne 0x40101b
pop esi
xor eax, eax
pop edi
mov ah, cl
mov al, dl
ret

Function at 0x4010b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push edi
lea eax, [ebp - 4]
and eax, 7
mov dword [ebx], eax
jne 0x40115a
mov edx, dword [esp + 0x10]
xor al, al
xor ecx, ecx
add al, byte [ecx + edx]
inc ecx
cmp ecx, 0x10
jl 0x4010d1
mov edi, dword [esp + 0x14]
xor ecx, ecx
not al
mov cl, byte [edi + ebp - 2]
and eax, 0xff
xor ecx, eax
mov dword [ebx], ecx
jne 0x40115a
lea eax, [ebp - 2]
or cl, 0xff
or dl, 0xff
push esi
test eax, eax
lea esi, [edi + 1]
mov byte [esp + 0x1c], cl
je 0x401132
mov ebx, eax
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov al, byte [esi]
and ecx, 0xff
xor eax, ecx
inc esi
mov cl, byte [eax + 0x420040]
xor cl, dl
mov dl, byte [eax + 0x420140]
dec ebx
mov byte [esp + 0x1c], cl
jne 0x401108
mov ebx, dword [esp + 0x20]
xor eax, eax
pop esi
mov ah, cl
xor ecx, ecx
mov cl, byte [edi + ebp - 1]
mov al, dl
xor edx, edx
mov dl, ah
and eax, 0xff
and edx, 0xff
xor edx, ecx
xor ecx, ecx
mov cl, byte [edi]
xor ecx, eax
or edx, ecx
mov dword [ebx], edx
pop edi
pop ebp
pop ebx
ret
Function at 0x4011c0
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x18]
lea eax, [esp + 8]
push esi
mov esi, dword [esp + 0x18]
push eax
push ebp
push esi
push ebx
mov dword [esp + 0x1c], 0
call fcn.004010b0
mov eax, dword [esp + 0x1c]
add esp, 0x10
test eax, eax
je 0x4011f7
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x20]
lea ecx, [ebp - 4]
mov eax, ecx
push edi
add esi, 2
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 4]
and ecx, 3
shr eax, 3
rep movsb byte es:[edi], byte [esi]
je 0x40129e
lea esi, [edx + 4]
mov dword [esp + 0x24], eax
mov edx, dword [esi]
mov ecx, 0xc6ef3720
mov dword [esp + 0x18], 0x20
mov eax, dword [esi - 4]
mov edi, eax
mov ebp, eax
shr edi, 5
shl ebp, 4
xor edi, ebp
sub edx, edi
mov edi, ecx
shr edi, 0xb
and edi, 3
mov ebp, dword [ebx + edi*4]
mov edi, eax
sub edx, ebp
xor edi, ecx
sub edx, edi
add ecx, 0x61c88647
mov edi, edx
mov ebp, edx
shr edi, 5
shl ebp, 4
xor edi, ebp
mov dword [esi], edx
sub eax, edi
mov edi, ecx
and edi, 3
mov ebp, dword [ebx + edi*4]
mov edi, edx
sub eax, ebp
xor edi, ecx
sub eax, edi
mov dword [esi - 4], eax
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x401234
mov eax, dword [esp + 0x24]
add esi, 8
dec eax
mov dword [esp + 0x24], eax
jne 0x401225
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov eax, ebp
pop edi
mov cl, byte [edx + 1]
pop esi
sub eax, ecx
pop ebp
sub eax, 4
pop ebx
pop ecx
ret
Function at 0x401370
Capabilities:
Check mutex on windows
Create directory
Initialize winsock library
Set current directory

Disassembly:
mov eax, dword [0x423e88]
sub esp, 0x3a0
lea edx, [esp + 0x10c]
mov ecx, dword [eax]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x401384
push ebx
push esi
push edi
lea ecx, [esp + 0x118]
push 0x5c
push ecx
call fcn.004153f0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4013bd
lea edx, [esp + 0x118]
mov byte [ebx], 0
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
inc ebx
jmp 0x4013c4
lea ebx, [esp + 0x118]
cmp dword [0x423e84], 1
jle 0x4013d5
mov eax, dword [0x423e88]
mov ebx, dword [eax + 4]
push 0x2e
push ebx
call fcn.00415230
add esp, 8
test eax, eax
je 0x4013e7
mov byte [eax], 0
mov ecx, dword [str.CXVS_]
mov dx, word [0x420264]
mov dword [esp + 0x14], ecx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], dx
push ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x18]
and ecx, 3
push eax
push 0
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x4237d0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
pop ebp
jne 0x401466
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x3a0
ret
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
add esi, 9
push esi
call fcn.004150af
push ebx
push str.ini_s.ini
push eax
mov dword [0x4237c8], eax
call fcn.004151c1
push esi
call fcn.004150af
push ebx
push str.ini_s.dat
push eax
mov dword [0x4237cc], eax
call fcn.004151c1
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0x20
push 0
push 0x420244
call esi
push 0
push 0x420240
call esi
push 0
call fcn.004150e5
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
push esi
call fcn.004150bd
add esp, 4
lea ecx, [esp + 0x21c]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x401500
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x3a0
ret
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 8
push edx
mov dword [esp + 0x14], 0x900
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x3a0
ret

Function at 0x401990
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
xor esi, esi
mov dl, byte [ecx]
mov bl, 0x93
test dl, dl
je 0x4019c4
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, ebp
sub edi, ecx
xor dl, bl
inc esi
mov byte [edi + ecx], dl
mov dl, byte [ecx + 1]
inc ecx
inc bl
test dl, dl
jne 0x4019aa
mov byte [esi + ebp], dl
pop edi
pop ebp
mov eax, esi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x10]
mov byte [esi + eax], 0
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4019e0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
xor esi, esi
mov dl, byte [ecx]
mov bl, 0xa9
test dl, dl
je 0x401a14
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, ebp
sub edi, ecx
xor dl, bl
inc esi
mov byte [edi + ecx], dl
mov dl, byte [ecx + 1]
inc ecx
inc bl
test dl, dl
jne 0x4019fa
mov byte [esi + ebp], dl
pop edi
pop ebp
mov eax, esi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x10]
mov byte [esi + eax], 0
mov eax, esi
pop esi
pop ebx
ret