joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410461
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8ac
push esi
push 0x40
lea esi, [ebp - 0x8c]
pop eax
call fcn.00413de7
lea eax, [ebp - 0x49c]
push eax
push 0
call fcn.00422bab
test al, al
je 0x4105e4
mov eax, esi
push eax
lea eax, [ebp - 0x49c]
push eax
push eax
call fcn.00422ccf
test eax, eax
je 0x4105e4
push 0x42
lea esi, [ebp - 0x6c]
pop eax
call fcn.00413de7
mov eax, esi
push eax
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x6a4]
push eax
call fcn.00422ccf
test eax, eax
je 0x4105e4
lea eax, [ebp - 0x6a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4105e4
push 0x43
lea esi, [ebp - 0x38]
pop eax
call fcn.00413de7
push 0x44
lea esi, [ebp - 0x50]
pop eax
call fcn.00413de7
push 0x45
lea esi, [ebp - 0x10]
pop eax
call fcn.00413de7
push ebx
mov byte [ebp - 1], 0
push edi
movzx eax, byte [ebp - 1]
push eax
lea eax, [ebp - 0x38]
push eax
push 0xa
pop ebx
lea edi, [ebp - 0x24]
call fcn.0041bb91
pop ecx
pop ecx
cmp eax, 1
jl 0x4105e2
lea eax, [ebp - 0x6a4]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x50]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4105e2
lea eax, [ebp - 0x6a4]
push eax
push 0x104
lea eax, [ebp - 0x294]
push eax
xor esi, esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4105d5
lea eax, [ebp - 0x294]
cmp word [ebp - 0x294], si
je 0x410598
cmp word [eax], 0x2f
jne 0x410590
push 0x5c
pop ecx
mov word [eax], cx
add eax, 2
cmp word [eax], si
jne 0x410584
cmp edi, 1
jne 0x4105c3
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x8ac]
push eax
call fcn.00422ccf
test eax, eax
je 0x4105d5
lea ecx, [ebp - 0x8ac]
jmp 0x4105c9
lea ecx, [ebp - 0x294]
mov edx, dword [ebp + 8]
call fcn.004105e9
test al, al
je 0x4105e2
inc byte [ebp - 1]
cmp byte [ebp - 1], 0xfa
jb 0x41050d
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x4105e9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x36c
push esi
push edi
push 0x41
lea esi, [ebp - 0x1c]
pop eax
mov dword [ebp - 0xc], edx
mov edi, ecx
call fcn.00413de7
mov eax, esi
push eax
push edi
lea eax, [ebp - 0x36c]
push eax
call fcn.00422ccf
test eax, eax
je 0x4106d0
xor esi, esi
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
lea eax, [ebp - 0x36c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x4106d0
push ebx
push 0x46
lea edi, [ebp - 0x164]
pop eax
xor bl, bl
call fcn.00413db1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 8]
push eax
mov edi, 0x146
push edi
lea eax, [ebp - 0x164]
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x4106ad
cmp dword [ebp - 8], edi
jne 0x4106ad
cmp dword [ebp - 0xc], 0
je 0x4106a7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
mov edi, eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 0xc]
push dword [ebp - 4]
call esi
test eax, eax
je 0x4106ab
cmp dword [ebp - 8], edi
jne 0x4106ab
mov bl, 1
jmp 0x4106ad
xor bl, bl
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
pop ebx
jne 0x4106d0
lea eax, [ebp - 0x36c]
push eax
call fcn.0042ec57
pop edi
mov al, 1
pop esi
leave
ret
Function at 0x410fb3
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
mov esi, dword [ebp + 0xc]
cmp byte [esi + 0xc], 0
push edi
jne 0x4110bc
mov esi, dword [esi + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x16
push esi
call fcn.0041ffd2
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
jne 0x410fec
xor al, al
jmp 0x41117e
push 0x31
lea edi, [ebp - 0x2c]
pop eax
call fcn.00413db1
push 0x2f
lea edi, [ebp - 0x40]
pop eax
call fcn.00413db1
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
push ebx
call fcn.0040e750
mov ecx, edi
push ecx
push eax
push ebx
call fcn.0040e750
push ebx
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.00410db6
cmp byte [ebx], 0
jne 0x411032
push ebx
call fcn.00421ce7
jmp 0x410fe5
push 0x3f
lea edi, [ebp - 0x1c]
pop eax
call fcn.00413db1
push 0x30
lea edi, [ebp - 0x10]
pop eax
call fcn.00413db1
mov eax, edi
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x23
pop edi
lea esi, [ebp - 0x64]
call fcn.0041bbdc
add esp, 0xc
test eax, eax
je 0x41102a
mov ecx, esi
mov ebx, eax
push ecx
lea edi, [ebp - 4]
lea eax, [ebp - 8]
call fcn.00421d7d
test eax, eax
je 0x4110b4
push 0x407780
push 4
pop ebx
lea eax, [ebp - 8]
call fcn.00421d7d
test eax, eax
je 0x4110b4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
xor ebx, ebx
mov byte [ecx + edx], bl
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], edx
mov dword [eax + 0x78], ebx
mov word [eax + 0x7c], bx
mov eax, dword [ebp + 0xc]
mov byte [eax + 0xc], 1
jmp 0x41117c
mov ebx, dword [ebp - 8]
jmp 0x41102a
push 0x1008
call fcn.00421cc7
mov ebx, eax
test ebx, ebx
je 0x410fe5
lea ecx, [ebp + 0xc]
push ecx
push 0x1000
lea eax, [ebx + 6]
push eax
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
jne 0x41102a
cmp dword [ebp + 0xc], 0
jne 0x411114
push 5
pop eax
push eax
push 0x407788
push ebx
call fcn.00421d23
mov dword [ebp + 0xc], eax
call fcn.0041035d
mov eax, dword [ebp + 8]
inc dword [eax + 4]
jmp 0x411169
push dword [ebp + 0xc]
mov esi, ebx
push 0x407790
push 5
pop edi
call fcn.0041bbdc
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x41102a
mov word [eax + ebx], 0xa0d
add eax, 2
cmp eax, 6
je 0x41114f
push dword [ebp + 0xc]
lea ecx, [ebx + 6]
push ecx
lea ecx, [eax + ebx]
push ecx
call fcn.00421d23
add dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov byte [eax + ebx], 0xd
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov byte [eax + ebx], 0xa
inc dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
and dword [eax + 0x78], 0
mov dword [eax + 0x70], ebx
mov dword [eax + 0x74], ecx
mov word [eax + 0x7c], 0
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x411f54
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebx
lea ecx, [eax - 0xd]
push esi
push edi
cmp ecx, 6
ja 0x411fad
xor esi, esi
xor bl, bl
lea ecx, [eax - 1]
jmp 0x411f96
mov eax, dword [esp + 0x10]
mov al, byte [ecx + eax]
sub al, 0x30
cmp al, 9
ja 0x411fad
test bl, bl
je 0x411f8d
add al, al
cmp al, 9
jle 0x411f8b
movsx eax, al
cdq
push 0xa
pop edi
idiv edi
lea eax, [edx + 1]
test bl, bl
movsx eax, al
sete bl
add esi, eax
dec ecx
cmp ecx, 0xffffffff
jg 0x411f68
xor edx, edx
push 0xa
mov eax, esi
pop ecx
div ecx
mov eax, edx
neg eax
sbb eax, eax
inc eax
jmp 0x411faf
xor al, al
pop edi
pop esi
pop ebx
ret 4

Function at 0x41229c
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call dword [ebp + 8]
test eax, eax
je 0x412309
push edi
push dword [ebp + 0xc]
call fcn.0040ba54
mov edi, eax
test edi, edi
je 0x4122ff
push dword [ebp + 0x10]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4122f9
push esi
push dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 8]
push 0x408c58
push eax
call fcn.0041bc18
add esp, 0xc
test eax, eax
jle 0x4122f8
push dword [ebp + 8]
push esi
call fcn.0041ee1c
push dword [ebp + 8]
call fcn.00421ce7
pop esi
push edi
call fcn.00421ce7
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
ret 0x10
Function at 0x412896
Capabilities:
Delete registry key
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf84
push ebx
push esi
push edi
lea esi, [ebp - 0x2e0]
call fcn.00422702
lea ecx, [ebp - 0x14e]
call fcn.0042f596
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ebx, ebx
cmp eax, ebx
jl 0x41290c
push 0x14
lea ecx, [ebp - 0x78]
push ecx
push eax
lea eax, [ebp - 0x14e]
push eax
push ebx
push ebx
call esi
cmp eax, ebx
jle 0x41290c
lea ecx, [ebp + eax*2 - 0x78]
cmp word [ecx - 2], bx
je 0x4128ee
cmp eax, 0x14
jge 0x41290c
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x78]
push eax
push 0x43ed38
lea eax, [ebp - 0x900]
push eax
call fcn.00422ccf
test eax, eax
setne al
cmp al, bl
jne 0x412915
xor eax, eax
mov word [ebp - 0x900], ax
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x900]
push eax
call edi
lea ecx, [ebp - 0x12e]
call fcn.0042f596
cmp eax, ebx
jl 0x41297b
push 0x14
lea ecx, [ebp - 0x28]
push ecx
push eax
lea eax, [ebp - 0x12e]
push eax
push ebx
push ebx
call esi
cmp eax, ebx
jle 0x41297b
lea ecx, [ebp + eax*2 - 0x28]
cmp word [ecx - 2], bx
je 0x41295d
cmp eax, 0x14
jge 0x41297b
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x28]
push eax
push 0x43ef40
lea eax, [ebp - 0x5f0]
push eax
call fcn.00422ccf
test eax, eax
setne al
cmp al, bl
jne 0x412984
xor eax, eax
mov word [ebp - 0x5f0], ax
lea eax, [ebp - 0x5f0]
push eax
call edi
push dword [0x43f3b4]
or dword [0x43ecd8], 2
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x43f3b8]
cmp eax, 0xffffffff
je 0x4129b3
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.00420f9f
lea ecx, [ebp - 0x900]
call fcn.0040bd98
lea ecx, [ebp - 0x5f0]
call fcn.0040bd98
lea ecx, [ebp - 0x10e]
call fcn.0042f596
cmp eax, ebx
jl 0x412a33
push 0x14
lea ecx, [ebp - 0x50]
push ecx
push eax
lea eax, [ebp - 0x10e]
push eax
push ebx
push ebx
call esi
cmp eax, ebx
jle 0x412a33
lea ecx, [ebp + eax*2 - 0x50]
cmp word [ecx - 2], bx
je 0x412a07
cmp eax, 0x14
jge 0x412a33
xor eax, eax
mov word [ecx], ax
lea esi, [ebp - 0xa0]
mov eax, 0xc6
call fcn.00413de7
lea eax, [ebp - 0x50]
push eax
mov eax, esi
push eax
lea eax, [ebp - 0xb08]
push eax
call fcn.00422ccf
test eax, eax
setne al
cmp al, bl
jne 0x412a3c
xor eax, eax
mov word [ebp - 0xb08], ax
lea eax, [ebp - 0xb08]
push eax
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov esi, dword [sym.imp.USER32.dll_CharToOemW]
lea eax, [ebp - 0x6f8]
push eax
lea eax, [ebp - 0x900]
push eax
call esi
lea eax, [ebp - 0x3e8]
push eax
lea eax, [ebp - 0x5f0]
push eax
call esi
lea edi, [ebp - 0xf0]
mov eax, 0xaa
call fcn.00413db1
lea eax, [ebp - 0x3e8]
push eax
lea eax, [ebp - 0x6f8]
push eax
lea eax, [ebp - 0x3e8]
push eax
lea eax, [ebp - 0x6f8]
push eax
mov eax, edi
push eax
mov edi, 0x474
lea esi, [ebp - 0xf80]
call fcn.0041bbdc
add esp, 0x14
test eax, eax
jle 0x412ac2
mov eax, esi
push eax
call fcn.0041efba
cmp dword [0x43f3b8], 0xffffffff
jne 0x412ad2
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, 0x1ee
lea eax, [ebp - 0x2e0]
mov byte [eax], bl
inc eax
dec ecx
jne 0x412add
pop edi
pop esi
mov al, 1
pop ebx
leave
ret
Function at 0x412aea
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [edi + 0x3c]
push ebx
push esi
mov esi, dword [eax + edi + 0x78]
add esi, edi
xor ebx, ebx
cmp dword [esi + 0x18], ebx
jbe 0x412b20
lea eax, [edi + ebx*4]
add eax, dword [esi + 0x20]
je 0x412b1a
mov ecx, dword [eax]
push 0xffffffffffffffff
push dword [esp + 0x10]
add ecx, edi
or eax, 0xffffffff
call fcn.0041ba12
test eax, eax
je 0x412b27
inc ebx
cmp ebx, dword [esi + 0x18]
jb 0x412afc
xor eax, eax
pop esi
pop ebx
ret 4
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x1c]
lea eax, [eax + ebx*2]
movzx eax, word [eax + edi]
lea eax, [ecx + eax*4]
mov eax, dword [eax + edi]
add eax, edi
jmp 0x412b22

Function at 0x412b9d
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push esi
push edi
cld
mov edx, dword fs:[0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
mov ecx, 0x18
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x412bc0
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x412bb7
cmp edi, 0x6a4abc5b
mov eax, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x412bad
pop edi
pop esi
ret

Function at 0x412e1a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x498
test byte [ebp + 8], 1
push ebx
push esi
push edi
je 0x412eb6
cmp byte [0x43f148], 1
jbe 0x412ec9
xor ebx, ebx
xor edi, edi
mov ax, word [edi + 0x406238]
lea esi, [ebp - 0x498]
call fcn.00413de7
lea eax, [ebp - 0x208]
push eax
xor eax, eax
push eax
push eax
push dword [edi + 0x406240]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x412e9a
mov eax, esi
push eax
lea eax, [ebp - 0x208]
push eax
push eax
call fcn.00422ccf
test eax, eax
je 0x412e9a
push dword [0x43ed34]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x412ea5
add edi, 0xc
inc ebx
cmp edi, 0x54
jb 0x412e41
jmp 0x412ec9
imul ebx, ebx, 0xc
mov eax, dword [ebx + 0x40623c]
or dword [0x43ecd8], eax
jmp 0x412ec9
test byte [0x43ecd8], 1
je 0x412ec9
or dword [0x43ecd8], 0xfe0
pop edi
pop esi
mov al, 1
pop ebx
leave
ret 4
Function at 0x412ed2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x614
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x43f7d4
call edi
xor ebx, ebx
push 0x20
xor eax, eax
push ebx
mov esi, 0x44035c
push esi
mov dword [0x43f7c8], ebx
mov word [0x43f7d0], ax
mov word [0x43f7cc], ax
mov dword [0x43f3c4], ebx
call dword [sym.imp.msvcrt.dll_memset]
add esp, 0xc
push esi
call edi
lea esi, [ebp - 0x614]
call fcn.00422702
mov eax, dword [eax + 0x7c]
mov dword [0x44037c], eax
mov ecx, 0x1ee
mov eax, esi
mov byte [eax], bl
inc eax
dec ecx
jne 0x412f36
lea esi, [ebp - 0x426]
call fcn.00422702
lea esi, [eax + 0x1b2]
mov ecx, esi
call fcn.0042f596
cmp eax, ebx
jl 0x412f9e
push 0x14
lea ecx, [ebp - 0x30]
push ecx
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jle 0x412f9e
lea ecx, [ebp + eax*2 - 0x30]
cmp word [ecx - 2], bx
je 0x412f80
cmp eax, 0x14
jge 0x412f9e
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x30]
push eax
push 0x43ef40
lea eax, [ebp - 0x238]
push eax
call fcn.00422ccf
test eax, eax
setne al
cmp al, bl
jne 0x412fa7
xor eax, eax
mov word [ebp - 0x238], ax
mov ecx, 0x1ee
lea eax, [ebp - 0x426]
mov byte [eax], bl
inc eax
dec ecx
jne 0x412fb2
push 0x40788c
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
or dword [ebp - 8], 0xffffffff
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 4], 0x1fe
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41301c
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x238]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413015
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
je 0x413028
test al, 1
je 0x41302a
xor eax, eax
shr eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x238], cx
lea eax, [ebp - 0x238]
call fcn.0042392c
lea eax, [ebp - 0x238]
call fcn.004106d6
push 0x43eb94
mov dword [0x43eb90], ebx
mov dword [0x43ebac], ebx
call edi
call fcn.0042e0c1
push 0x40776c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x41307c
mov edi, eax
call fcn.00428978
jmp 0x41307e
xor al, al
cmp al, bl
je 0x413089
or dword [0x44039c], 1
call fcn.00428708
pop edi
pop esi
mov al, 1
pop ebx
leave
ret
Function at 0x413095
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x76c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
and edi, 1
mov dword [0x43f3bc], ebx
jne 0x4130ba
mov dword [0x43ecd8], ebx
push dword [ebp + 8]
call fcn.00412bd7
test al, al
jne 0x4130cd
xor al, al
jmp 0x41320b
push ebx
push 0x80000
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x4401c8], eax
cmp eax, ebx
jne 0x4130f6
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x4401c8], eax
mov byte [0x43ec8b], bl
jmp 0x4130fd
mov byte [0x43ec8b], 1
push 0xd
mov eax, 0x43eb10
pop ecx
mov byte [eax], bl
add eax, 8
dec ecx
jne 0x413105
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x43eb78
call esi
push 0x440384
call esi
lea eax, [esp + 0x10]
push eax
push 0x202
mov dword [0x44039c], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, dword [ebp + 8]
call fcn.00412d01
test al, al
je 0x4130c6
cmp edi, ebx
jne 0x41316a
push ebx
push ebx
push 1
push 0x43ed10
call dword [sym.imp.KERNEL32.dll_CreateEventW]
or dword [0x43f3b8], 0xffffffff
mov dword [0x43f3b4], eax
cmp eax, ebx
je 0x4130c6
call fcn.00412d7a
test al, al
je 0x4130c6
push dword [ebp + 8]
call fcn.00412db9
test al, al
je 0x4130c6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x43f14c], eax
cmp edi, ebx
jne 0x4131e7
mov edx, dword [0x43ecec]
call fcn.0040b32a
cmp eax, ebx
je 0x4130c6
sub eax, dword [0x43ecec]
mov dword [0x43f3b0], eax
cmp edi, ebx
jne 0x4131e7
lea edi, [esp + 0x1a0]
call fcn.004135aa
push ebx
lea eax, [esp + 0x61c]
push eax
push dword [0x43ece4]
mov ecx, 0x43f360
push 0x43f150
mov eax, 0x84939312
call fcn.004308f0
push dword [ebp + 8]
call fcn.00412e1a
test al, al
je 0x4130c6
test byte [ebp + 8], 2
je 0x413204
call fcn.00412ed2
jmp 0x413206
mov al, 1
cmp al, bl
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x413214
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
push esi
push edi
lea edi, [ebp - 0x830]
call fcn.004135aa
lea esi, [ebp - 0x256]
call fcn.00422702
mov eax, dword [eax + 0x1e6]
push 2
lea ecx, [ebp - 0x3b8]
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x68]
push 0x43f150
call fcn.004308f0
mov ecx, 0x1ee
mov eax, esi
mov byte [eax], 0
inc eax
dec ecx
jne 0x41325b
lea eax, [ebp - 0x68]
push eax
push 1
push 0x43ed10
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x41328f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41328f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
pop edi
mov eax, esi
pop esi
leave
ret 4
Function at 0x4132d1
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 8]
call fcn.00413297
lea eax, [ebp - 0x68]
push eax
push 0
push 0x43ed10
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x413319
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x413320
cmp eax, 0x80
je 0x413320
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
leave
ret 8
mov eax, esi
jmp 0x41331b

Function at 0x413425
Capabilities:
Get hostname

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x204
push esi
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp + 0x64], 0x28
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x413457
lea esi, [ebp - 0x18]
mov eax, 0xc5
call fcn.00413de7
mov esi, dword [sym.imp.msvcrt.dll_memset]
push ebx
push edi
mov ebx, 0x11c
push ebx
xor edi, edi
lea eax, [ebp - 0x190]
push edi
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x190]
push eax
mov dword [ebp - 0x190], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x413494
push ebx
lea eax, [ebp - 0x190]
jmp 0x41349f
push pe_nt_image_headers32
lea eax, [ebp - 0x17c]
push edi
push eax
call esi
add esp, 0xc
lea esi, [ebp - 0x74]
mov eax, 0xc0
call fcn.00413de7
lea esi, [ebp + 0x40]
mov eax, 0xc1
call fcn.00413de7
mov eax, esi
push eax
lea eax, [ebp - 0x74]
push eax
mov edi, 0x80000002
mov eax, edi
call fcn.0041796f
mov dword [ebp + 0x5c], eax
lea esi, [ebp + 0x38]
mov eax, 0xc2
call fcn.00413de7
lea eax, [ebp + 0x70]
push eax
push 1
xor esi, esi
push esi
lea eax, [ebp - 0x74]
push eax
push edi
mov dword [ebp + 0x6c], esi
mov dword [ebp + 0x70], edi
mov dword [ebp + 0x68], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413517
lea eax, [ebp + 0x68]
push eax
push esi
lea eax, [ebp + 0x38]
push eax
lea edi, [ebp + 0x70]
call fcn.00417a49
jmp 0x41351a
or eax, 0xffffffff
cmp eax, 0xffffffff
je 0x41353a
cmp eax, esi
jbe 0x41353a
push eax
push dword [ebp + 0x68]
lea edi, [ebp + 0x6c]
push 2
pop eax
call fcn.00417de4
push dword [ebp + 0x68]
call fcn.00421ce7
mov eax, dword [ebp + 0x6c]
mov dword [ebp + 0x60], eax
lea esi, [ebp + 0x40]
mov eax, 0xc3
call fcn.00413de7
push ebx
lea eax, [ebp - 0x190]
push eax
push 2
lea edi, [ebp + 0x70]
pop eax
call fcn.00417de4
push 8
lea eax, [ebp + 0x5c]
push eax
push 2
lea edi, [ebp + 0x6c]
pop eax
call fcn.00417de4
push dword [ebp + 0x6c]
lea eax, [ebp - 0x18]
push dword [ebp + 0x70]
push eax
mov eax, esi
mov esi, dword [ebp + 0x7c]
push eax
push 0x3c
pop ebx
mov edi, esi
call fcn.0041bb91
add esp, 0x10
pop edi
mov dword [ebp + 0x64], eax
pop ebx
cmp eax, 1
jge 0x4135a2
mov eax, 0xc4
call fcn.00413de7
pop esi
add ebp, 0x74
leave
ret 4
Function at 0x4135aa
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, 0x5d4
push esi
push 0x4054c0
push edi
call dword [sym.imp.msvcrt.dll_memcpy]
mov ecx, dword [0x43f3b0]
add ecx, dword [0x43ecec]
add esp, 0xc
mov eax, edi
sub ecx, edi
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x4135d0
pop esi
ret
Function at 0x413cab
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push esi
xor bl, bl
call fcn.00413095
test al, al
je 0x413da2
push edi
push 0x8007
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [ebp - 4]
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
cmp edi, esi
je 0x413d42
cmp dword [ebp - 4], ebx
jle 0x413d3b
mov eax, dword [edi + esi*4]
test eax, eax
je 0x413d35
cmp word [eax], 0x2d
jne 0x413d35
movzx ecx, word [eax + 2]
sub ecx, 0x66
je 0x413d32
sub ecx, 8
je 0x413d2d
sub ecx, 7
je 0x413d15
dec ecx
jne 0x413d35
or ebx, 2
jmp 0x413d35
add eax, 4
cmp word [eax], 0
je 0x413d35
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov dword [0x43f3bc], eax
jmp 0x413d35
or ebx, 0x10
jmp 0x413d35
or ebx, 8
inc esi
cmp esi, dword [ebp - 4]
jl 0x413ced
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
test bl, 2
je 0x413d6b
call fcn.0042e0c1
call fcn.0040ff34
test byte [0x43ecd8], 4
mov bl, al
je 0x413d89
push 0
mov eax, 0x4403a0
call fcn.0042df3a
jmp 0x413d89
mov eax, ebx
shr eax, 4
not al
and al, 1
movzx eax, al
shr ebx, 3
push eax
and bl, 1
movzx eax, bl
push eax
call fcn.00413996
mov bl, al
test bl, bl
je 0x413da2
test byte [0x43ecd8], 2
je 0x413da2
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
pop ebx
leave
ret
xor eax, eax
test bl, bl
sete al
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x413db1
Capabilities:
Encode data using xor

Disassembly:
movzx eax, ax
lea eax, [eax*8 + 0x405a98]
xor edx, edx
xor ecx, ecx
cmp dx, word [eax + 2]
jae 0x413dde
push esi
mov edx, dword [eax + 4]
movzx esi, cx
mov dl, byte [edx + esi]
xor dl, byte [eax]
xor dl, cl
inc ecx
mov byte [esi + edi], dl
cmp cx, word [eax + 2]
jb 0x413dc6
pop esi
movzx eax, word [eax + 2]
mov byte [eax + edi], 0
ret

Function at 0x413de7
Capabilities:
Encode data using xor

Disassembly:
movzx eax, ax
lea eax, [eax*8 + 0x405a98]
xor ecx, ecx
xor edx, edx
cmp cx, word [eax + 2]
jae 0x413e26
push ebx
push edi
mov edi, dword [eax + 4]
movzx ebx, byte [eax]
movzx ecx, dx
movsx di, byte [edi + ecx]
xor di, bx
xor di, dx
mov ebx, 0xff
and di, bx
inc edx
mov word [esi + ecx*2], di
cmp dx, word [eax + 2]
jb 0x413dfd
pop edi
pop ebx
movzx eax, word [eax + 2]
xor ecx, ecx
mov word [esi + eax*2], cx
ret