joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4047b0
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push ebx
mov edi, eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4047e1
mov eax, ebx
call fcn.004048c0
cmp eax, edi
jne 0x4047e1
lea eax, [esi + 1]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0x200000
call fcn.004134ee
mov ebp, eax
mov eax, dword [esp + 0x28]
add esp, 4
push ebp
push eax
lea edx, [esp + 0x1c]
mov ecx, edi
mov dword [esp + 0x1c], 0x200000
call fcn.00404920
add esp, 8
test eax, eax
je 0x4048ac
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0041323d
add esp, 4
call fcn.0041324f
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul qword [0x42dc60]
fmul qword [0x42dc88]
fadd qword [0x42dc80]
call fcn.00417400
mov esi, dword [esp + 0x14]
lea ebx, [esi + ebp]
mov edi, eax
call fcn.00403110
add edi, esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
call fcn.00404aa0
mov esi, eax
cmp esi, 0xffffffff
je 0x4048aa
push ebx
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [esp + 0x18]
cmp eax, edi
jne 0x404889
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 1
jne 0x4048aa
push ebp
mov esi, ebx
call fcn.00413411
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor esi, esi
push ebp
call fcn.00413411
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x4048c0
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 3
push closesocket
or edi, 0xffffffff
push eax
or ebx, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, edi
jne 0x4048f2
or eax, edi
or edx, edi
pop edi
pop esi
pop ebx
add esp, 0x10
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x40490b
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
add esp, 0x10
ret

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

Disassembly:
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call edi
cmp eax, 0xffffffff
je 0x404af3
push esi
call edi
cmp eax, 0xffffffff
je 0x404aee
test al, 1
je 0x404abe
xor eax, 1
test al, 4
je 0x404ac5
xor eax, 4
test al, 2
je 0x404acc
xor eax, 2
test al, 0x20
je 0x404ad3
xor eax, 0x20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x404af3
or eax, 0xffffffff
pop edi
ret
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
pop edi
ret
Function at 0x4068e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x4068e7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x4069c4
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42cf80]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x42cf80]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x42cf80]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42cf80]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42cf80]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42cf80]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42cf80]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42cf80]
inc ecx
sub edx, 8
sub esi, 1
jne 0x406900
pop edi
test edx, edx
je 0x4069eb
jmp 0x4069d0
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x42cf80]
inc ecx
sub edx, 1
jne 0x4069d0
not eax
pop esi
ret

Function at 0x4069f0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x42cf80]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x42cf80]
mov dword [edx + 8], ecx
ret

Function at 0x406a40
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x42cf80]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x42cf80]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x407150
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x407182
mov ecx, dword [edi + 2]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407178
mov byte [edi + 6], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x407195
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0xc]
push esi
add eax, ecx
push eax
push edx
call fcn.0041bc90
add dword [edi + 0x14], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x4071b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x4071e3
mov edx, dword [esi + 2]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4071dd
mov byte [esi + 6], 1
mov edi, dword [esp + 8]
jmp 0x40720f
mov eax, dword [esi + 0x10]
push ebx
mov ebx, dword [esi + 0x14]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x4071f5
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0xc]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.0041bc90
add esp, 0xc
add ebx, edi
mov dword [esi + 0x14], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x407226
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x407220
cmp byte [esi + 6], 0
je 0x407220
or eax, 0xffffffff
add esp, 8
ret
Function at 0x4072c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x407305
cmp byte [esi + 1], 0
je 0x40730d
mov eax, dword [esi + 2]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x407322
cmp byte [esi + 1], 0
je 0x407314
mov edx, dword [esi + 2]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 7]
mov dword [esp + 4], ebp
jmp 0x40732b
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x14], ecx
jmp 0x4072de
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x40732b
mov eax, dword [esi + 0x14]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x40733f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.004134ee
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40735d
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x407471
jmp 0x407380
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x407391
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x4073aa
mov ebp, 0x404
cmp byte [esi], 0
je 0x4073cf
cmp byte [esi + 1], 0
je 0x407471
mov ecx, dword [esi + 7]
mov edx, dword [esi + 2]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4073d2
mov dword [esi + 0x14], eax
cmp byte [esi], 0
mov edi, ebp
je 0x4073fa
mov ecx, dword [esi + 2]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4073f4
mov byte [esi + 6], 1
mov eax, dword [esp + 0x1c]
jmp 0x407420
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x40740b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0xc]
push edi
add ecx, eax
push ecx
push ebx
call fcn.0041bc90
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x407471
lea eax, [ebp - 3]
test eax, eax
jl 0x40745c
dec eax
cmp byte [eax + ebx], 0x50
jne 0x40744c
cmp byte [eax + ebx + 1], 0x4b
jne 0x40744c
cmp byte [eax + ebx + 2], 5
jne 0x40744c
cmp byte [eax + ebx + 3], 6
je 0x407452
test eax, eax
jge 0x407430
jmp 0x40745c
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x407471
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x407374
push ebx
call fcn.00413411
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x407e40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x407e5e
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x407e52
cmp dword [edi + 0x7c], ebx
je 0x407e6d
call fcn.00408220
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00407bb0
add esp, 0xc
test eax, eax
je 0x407e94
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x7e
call fcn.004134ee
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x407ed2
push 0x4000
call fcn.004134ee
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x407edf
push esi
call fcn.00413411
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x407f27
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00406d00
test eax, eax
jne 0x407f27
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x407f4e
mov cl, byte [edi + 0x39]
mov byte [esi + 0x7d], cl
jmp 0x407f54
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x7d], dl
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [esi + 0x6d]
mov dword [esi + 0x79], eax
mov dword [edx], 0x12345678
mov dword [esi + 0x71], 0x23456789
mov dword [esi + 0x75], 0x34567890
cmp ebp, ebx
je 0x407f91
lea ecx, [ecx]
mov cl, byte [ebp]
cmp cl, bl
je 0x407f91
call fcn.004069f0
add ebp, 1
jne 0x407f80
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x408380
Capabilities:
Get common file path

Disassembly:
cmp dword [esi], 0
push edi
jne 0x408433
cmp dword [esi + 4], 0xffffffff
jne 0x408433
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
jmp 0x4083b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4083b0
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x4083e9
cmp ax, 0x2f
je 0x4083e9
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4083d6
mov eax, dword [0x42d418]
mov dword [edi], eax
push 0x18
call fcn.00408ce4
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add esp, 4
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 0xb], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], 0
mov dword [eax + 7], 0
call fcn.00407490
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
ret 8
mov eax, 0x1000000
pop edi
ret 8

Function at 0x413142
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x432c20]
jne 0x41314c
repz ret
jmp fcn.00417bbb

Function at 0x421887
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.00417e90
and dword [ebp - 4], 0
cmp dword [0x436a9c], 0
mov ebx, eax
jne 0x421938
push 0x42a6f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4219e9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42a6e8
push edi
call esi
test eax, eax
je 0x4219e9
push eax
call fcn.00417e1e
mov dword [esp], 0x42a6d8
push edi
mov dword [0x436a9c], eax
call esi
push eax
call fcn.00417e1e
mov dword [esp], 0x42a6c4
push edi
mov dword [0x436aa0], eax
call esi
push eax
call fcn.00417e1e
mov dword [esp], 0x42a6a8
push edi
mov dword [0x436aa4], eax
call esi
push eax
call fcn.00417e1e
pop ecx
mov dword [0x436aac], eax
test eax, eax
je 0x421938
push 0x42a690
push edi
call esi
push eax
call fcn.00417e1e
pop ecx
mov dword [0x436aa8], eax
mov eax, dword [0x436aa8]
cmp eax, ebx
je 0x421990
cmp dword [0x436aac], ebx
je 0x421990
push eax
call fcn.00417e99
push dword [0x436aac]
mov esi, eax
call fcn.00417e99
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x421990
test edi, edi
je 0x421990
call esi
test eax, eax
je 0x421987
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x421987
test byte [ebp - 0xc], 1
jne 0x421990
or dword [ebp + 0x10], 0x200000
jmp 0x4219c9
mov eax, dword [0x436aa0]
cmp eax, ebx
je 0x4219c9
push eax
call fcn.00417e99
pop ecx
test eax, eax
je 0x4219c9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4219c9
mov eax, dword [0x436aa4]
cmp eax, ebx
je 0x4219c9
push eax
call fcn.00417e99
pop ecx
test eax, eax
je 0x4219c9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x436a9c]
call fcn.00417e99
pop ecx
test eax, eax
je 0x4219e9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4219eb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Log keystrokes via polling

Disassembly:
mov dword [str.mD_____ti], 0
mov eax, dword [str.mD_____ti]
mov ebx, 0xffffffff
push ebx
call dword [sym.imp.user32.dll_GetAsyncKeyState]
mov dword [0x43a70b], eax
mov ebx, 0
mov eax, ebx
push 0xffffffff
pop eax
push eax
call dword [sym.imp.user32.dll_GetAsyncKeyState]
mov dword [0x43b40e], eax
mov edx, 0x2ef3
mov eax, edx
mov ecx, 0
sub ecx, dword [0x43aac9]
add ecx, dword [0x43ac1c]
dec ecx
sub ecx, 0xca1
dec ecx
add ecx, dword [0x43b06f]
sub ecx, 0xeb6
shl ecx, 1
sub ecx, dword [0x43b133]
ror ecx, 1
add dword [0x43b3be], ecx
call fcn.004029d0
mov dword [0x43b37f], eax
mov ebp, ebx
rol ebp, 1
sub ebp, edi
add ebp, 0xd2b
rol ebp, 7
add ebp, dword [0x43ae00]
sub ebp, ecx
shr ebp, 1
add ebp, dword [0x43a9c1]
rol ebp, 2
add dword [0x43a18e], ebp
xor edx, edx
inc edx
sub edx, 0xbe1
dec edx
mov eax, edx
sub eax, ebx
add eax, dword [0x43b023]
add eax, 0xd04
rol eax, 2
mov ecx, eax
sub ecx, dword [0x43ada3]
sub dword [0x43b37f], ecx
mov ecx, 0xf1a
inc ecx
add dword [0x43b34c], ecx
shl ecx, 1
rol ecx, 2
add ecx, 0xe60
sub ecx, dword [0x43a5e4]
sub ecx, 0x447
je 0x4010f9
rol ecx, 1
mov edi, ecx
rol edi, 1
dec edi
sub dword [0x43b25f], edi
ret
Function at 0x401000
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x418d20
push 0x67
push esi
call edi
push 0x64
mov ebx, 0x418c58
push ebx
push 0x6d
push esi
call edi
mov eax, esi
call fcn.0040116d
xor edi, edi
push edi
push esi
push edi
push edi
push edi
mov eax, closesocket
push eax
push edi
push eax
push 0xcf0000
push 0x418d20
push ebx
push edi
mov dword [0x418de8], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x40108a
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00404586
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call ebx
call fcn.00402720
call fcn.00401ddc
test eax, eax
je 0x4010ba
call fcn.00402fd0
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0040124f
test eax, eax
je 0x401071
call fcn.004013af
mov eax, dword [0x419688]
cmp eax, edi
jbe 0x4010f2
cmp word [0x41968c], di
jbe 0x4010f2
push eax
mov esi, 0x41807c
call fcn.00403760
mov ax, word [0x41968c]
pop ecx
mov word [0x41808c], ax
xor eax, eax
movzx ecx, word [eax + 0x414c38]
mov word [eax + 0x419bc0], cx
inc eax
inc eax
cmp cx, di
jne 0x4010f4
call fcn.004037e0
xor eax, eax
push 0x206
mov word [esp + 0x14], ax
lea eax, [esp + 0x16]
push edi
push eax
call fcn.004080b0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x419bc0
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00404595
add esp, 0xc
push 0x1f4
call ebx
push 1
push edi
push 0x414c50
lea eax, [esp + 0x1c]
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4010b3
Function at 0x40124f
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1dc
mov eax, dword [0x41704c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x3e
mov word [ebp - 0x48], ax
xor ebx, ebx
lea eax, [ebp - 0x46]
push ebx
push eax
call fcn.004080b0
add esp, 0xc
lea edi, [ebp - 0x48]
call fcn.00403270
xor eax, eax
movzx ecx, word [ebp + eax - 0x48]
mov word [eax + 0x418df0], cx
inc eax
inc eax
cmp cx, bx
jne 0x401286
mov esi, 0x418df0
push esi
push ebx
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
cmp eax, ebx
je 0x4012bd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4013a0
push esi
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x4012b6
lea eax, [ebp - 0x1d8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x4197c0
call fcn.00401b02
pop ecx
mov esi, 0x414c8c
test eax, eax
jne 0x401377
movzx ecx, word [eax + 0x414c54]
mov word [eax + 0x419968], cx
inc eax
inc eax
cmp cx, bx
jne 0x4012f5
push 0x414c60
push 0x40
push 0x4197c4
call fcn.00404612
add esp, 0xc
push 0x414c80
push 0x10
push 0x419846
call fcn.00404612
add esp, 0xc
push esi
push 0x40
push 0x419866
call fcn.00404612
add esp, 0xc
push 0x51
pop eax
mov word [0x419844], ax
mov eax, 0x2b8e
mov word [0x4198e6], ax
xor eax, eax
movzx ecx, word [eax + 0x414cac]
mov word [eax + 0x419948], cx
inc eax
inc eax
cmp cx, bx
jne 0x401358
mov dword [0x419988], 5
call fcn.00403310
push esi
call fcn.004033c0
pop ecx
mov dword [0x419688], eax
call fcn.004017cd
push ebx
push ebx
push ebx
push 0x401608
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404586
leave
ret
Function at 0x4016a3
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x41704c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push dword [ebp + 8]
mov ecx, 0x414d64
call fcn.004039c0
pop ecx
mov dword [ebp - 0x420], eax
test eax, eax
jne 0x4017be
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.004080b0
add esp, 0xc
xor eax, eax
push esi
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.004080b0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, 0x418e30
mov ebx, edi
cmp word [ebx], 0
je 0x401754
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.00404612
add esp, 0xc
push ebx
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.00404595
add esp, 0xc
add ebx, 0x118
cmp ebx, 0x4193a8
jl 0x401726
cmp word [edi], 0
je 0x401779
push dword [ebp + 8]
push 0x414d64
push edi
call fcn.00404220
add esp, 0xc
add edi, 0x118
cmp edi, 0x4193a8
jl 0x401762
push 0x419bc0
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.00404595
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4017b8
mov dword [ebp - 0x420], 2
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404586
leave
ret
Function at 0x4018ea
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x41704c]
xor eax, ebp
mov dword [ebp + 0x394], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
xor edi, edi
push esi
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push edi
push eax
mov dword [ebp - 0x80], edi
call fcn.004080b0
xor eax, eax
push esi
mov word [ebp + 0x18c], ax
lea eax, [ebp + 0x18e]
push edi
push eax
call fcn.004080b0
add esp, 0x18
push 0x104
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov word [ebp - 0x78], ax
push 0x414d78
lea eax, [ebp - 0x7c]
push eax
mov ebx, 0x414dbc
lea eax, [ebp + 0x18c]
push ebx
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
lea eax, [ebp + 0x18c]
push eax
call edi
cmp eax, 0xffffffff
je 0x40198e
mov dword [ebp - 0x80], 1
push 0x414dc8
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x18c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp + 0x18c]
push eax
call edi
cmp eax, 0xffffffff
je 0x4019b6
or dword [ebp - 0x80], 2
push 0x414e10
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x18c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp + 0x18c]
push eax
call edi
cmp eax, 0xffffffff
je 0x4019de
or dword [ebp - 0x80], 4
push 0x414e60
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x18c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp + 0x18c]
push eax
call edi
cmp eax, 0xffffffff
je 0x401a09
or dword [ebp - 0x80], 0x100
push 0x414eb8
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x18c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp + 0x18c]
push eax
call edi
cmp eax, 0xffffffff
je 0x401a34
or dword [ebp - 0x80], 0x200
push 0x414f10
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x18c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp + 0x18c]
push eax
call edi
pop edi
pop esi
pop ebx
cmp eax, 0xffffffff
je 0x401a62
or dword [ebp - 0x80], 0x400
mov ecx, dword [ebp + 0x394]
mov eax, dword [ebp - 0x80]
xor ecx, ebp
or eax, 0x2000000
call fcn.00404586
add ebp, 0x398
leave
ret