joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dca0
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0x12]
push edi
push eax
mov word [esp + 0x18], di
call fcn.00405a30
add esp, 0xc
cmp esi, edi
mov dword [esp + 4], edi
je 0x40dd6d
mov eax, 0x41ec70
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40dce3
sub eax, edx
sar eax, 1
je 0x40dd6d
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41ec70
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.0040117b
push 0x41ec68
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004013c8
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x40dd6d
push eax
push 1
push 0x200
push esi
call fcn.00401a99
mov edx, dword [esp + 0x14]
push edx
call fcn.00401b27
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040113c
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0040113c
add esp, 0x214
ret

Function at 0x40dd90
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0x12]
push edi
push eax
mov word [esp + 0x18], di
call fcn.00405a30
add esp, 0xc
cmp esi, edi
mov dword [esp + 4], edi
je 0x40de93
mov eax, 0x41ec8c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40ddd3
sub eax, edx
sar eax, 1
je 0x40de93
cmp dword [0x4260b0], 3
jne 0x40de1a
push 0x104
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41ec5c
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.0040117b
add esp, 0xc
jmp 0x40de2a
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41ec8c
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.0040117b
push 0x41ec60
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.004013c8
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x40de93
push eax
push 1
push 0x200
push esi
call fcn.00401a99
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00401b27
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040113c
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0040113c
add esp, 0x214
ret
Function at 0x40deb0
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
xor esi, esi
push 0x206
lea eax, [esp + 0x12]
push esi
push eax
mov word [esp + 0x18], si
call fcn.00405a30
add esp, 0xc
cmp edi, esi
je 0x40df96
mov eax, 0x41ed10
mov dword [esp + 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40def3
sub eax, edx
sar eax, 1
je 0x40df1d
push 0x41ec30
lea ecx, [esp + 8]
push 0x41ed10
push ecx
call fcn.004013c8
add esp, 0xc
jmp 0x40df58
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41ec38
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0040117b
push 0x41ec54
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004013c8
add esp, 0x18
mov eax, dword [esp + 4]
cmp eax, esi
je 0x40df7b
push eax
push 1
push 0x200
push edi
call fcn.00401cbd
mov eax, dword [esp + 0x14]
push eax
call fcn.00401b27
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040113c
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040113c
add esp, 0x214
ret

Function at 0x40dfb0
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 0x40e003
push esi
call edi
cmp eax, 0xffffffff
je 0x40dffe
test al, 1
je 0x40dfce
xor eax, 1
test al, 4
je 0x40dfd5
xor eax, 4
test al, 2
je 0x40dfdc
xor eax, 2
test al, 0x20
je 0x40dfe3
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 0x40e003
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 0x40e230
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x40e23f
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x40e327
push ebp
mov ebp, edi
shr ebp, 3
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x41f2f8]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41f2f8]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x41f2f8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41f2f8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41f2f8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41f2f8]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41f2f8]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41f2f8]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x40e250
pop ebp
test edi, edi
je 0x40e34c
jmp 0x40e330
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x41f2f8]
add ecx, 1
sub edi, 1
jne 0x40e330
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x40e610
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x420]
push edi
mov edi, dword [esp + 0x420]
test edi, edi
je 0x40e64d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40e64d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x40e72a
mov ecx, ebx
mov edx, ebx
movzx eax, ax
cmp ax, 0x2f
je 0x40e66c
cmp ax, 0x5c
jne 0x40e66e
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x40e660
cmp ecx, ebx
push esi
je 0x40e6b1
sub ecx, ebx
sar ecx, 1
add ecx, ecx
mov esi, ecx
push esi
lea eax, [esp + 0x218]
push ebx
push eax
call fcn.00406be0
lea ecx, [esp + 0x220]
push ecx
push edi
mov word [esp + esi + 0x228], 0
call fcn.0040e610
add esp, 0x14
test edi, edi
mov word [esp + 0xc], 0
je 0x40e6d3
lea edx, [esp + 0xc]
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40e6c4
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e6d7
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40e6f0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40e6f0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
pop esi
jne 0x40e72a
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x418]
pop edi
pop ebx
xor ecx, esp
call fcn.0040113c
add esp, 0x414
ret
Function at 0x40e830
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x40e862
mov ecx, dword [edi + 4]
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 0x40e858
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x40e875
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.00406be0
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret

Function at 0x40eb70
Capabilities:
Hash data with crc32

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

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

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x40ebcf
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x40ecb7
push ebp
mov ebp, edi
shr ebp, 3
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x4210b8]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4210b8]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x4210b8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4210b8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4210b8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4210b8]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4210b8]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4210b8]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x40ebe0
pop ebp
test edi, edi
je 0x40ecdc
jmp 0x40ecc0
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x4210b8]
add ecx, 1
sub edi, 1
jne 0x40ecc0
mov eax, esi
pop edi
not eax
pop esi
ret
Function at 0x40f6a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x40f6e5
cmp byte [esi + 1], 0
je 0x40f6ed
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x40f702
cmp byte [esi + 1], 0
je 0x40f6f4
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x40f70b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x40f6be
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x40f70b
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
cmp ebp, edi
mov dword [esp + 0xc], edi
jae 0x40f71f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.00401779
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40f73d
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
cmp edi, eax
mov dword [esp + 0x18], 0xffffffff
jbe 0x40f853
jmp 0x40f760
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
cmp eax, edi
mov dword [esp + 0x14], edi
ja 0x40f771
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
cmp ebp, 0x404
mov dword [esp + 0x20], eax
jbe 0x40f78a
mov ebp, 0x404
cmp byte [esi], 0
je 0x40f7af
cmp byte [esi + 1], 0
je 0x40f853
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40f7b2
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x40f7da
mov ecx, dword [esi + 4]
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 0x40f7d4
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x40f800
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x40f7eb
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.00406be0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x40f853
lea eax, [ebp - 3]
test eax, eax
jl 0x40f83e
sub eax, 1
cmp byte [eax + ebx], 0x50
jne 0x40f82e
cmp byte [eax + ebx + 1], 0x4b
jne 0x40f82e
cmp byte [eax + ebx + 2], 5
jne 0x40f82e
cmp byte [eax + ebx + 3], 6
je 0x40f834
test eax, eax
jge 0x40f810
jmp 0x40f83e
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x40f853
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x40f754
push ebx
call fcn.00401d4a
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x40f870
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x40f8a3
mov edx, dword [esi + 4]
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 0x40f89d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x40f8cf
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x40f8b5
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.00406be0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x40f8e6
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 0x40f8e0
cmp byte [esi + 8], 0
je 0x40f8e0
or eax, 0xffffffff
add esp, 8
ret

Function at 0x40f900
Capabilities:
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
xor al, bl
movzx ebx, al
xor ebx, edx
shr edx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x4210b8]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
add edx, 1
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x4210b8]
pop ebx
mov dword [esi + 8], ecx
ret

Function at 0x4127c0
Capabilities:
Get common file path

Disassembly:
cmp dword [esi], 0
push edi
jne 0x412873
cmp dword [esi + 4], 0xffffffff
jne 0x412873
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
jmp 0x4127f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4127f0
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x412829
cmp ax, 0x2f
je 0x412829
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x412816
mov eax, dword [0x421550]
mov dword [edi], eax
push 0x20
call fcn.00401fd3
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 + 0x10], 0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], 0
mov dword [eax + 0xc], 0
call fcn.00411e80
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 0x412880
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 0x41289e
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x412892
cmp dword [edi + 0x7c], ebx
je 0x4128ad
call fcn.00411a80
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00410fa0
add esp, 0xc
test eax, eax
je 0x4128d4
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x84
call fcn.00401779
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x412915
push 0x4000
call fcn.00401779
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
jne 0x412922
push esi
call fcn.00401d4a
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 0x41296a
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00412110
test eax, eax
jne 0x41296a
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 0x412994
mov cl, byte [edi + 0x39]
mov byte [esi + 0x80], cl
jmp 0x41299d
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x80], dl
mov al, byte [esi + 0x6c]
neg al
lea edx, [esi + 0x70]
mov dword [edx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
sbb eax, eax
and eax, 0xc
cmp ebp, ebx
mov dword [esi + 0x7c], eax
je 0x4129d6
mov cl, byte [ebp]
cmp cl, bl
je 0x4129d6
call fcn.0040eb70
add ebp, 1
jne 0x4129c5
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 0x412d40
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:
mov eax, 0x100c
call fcn.0040cfc0
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x1008], eax
mov edx, dword [ebx]
mov eax, dword [esp + 0x1010]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_recv]
push edi
xor edi, edi
push edi
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x1c], eax
call ebp
cmp eax, 4
je 0x412d98
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.0040113c
add esp, 0x100c
ret
cmp dword [esp + 8], edi
jbe 0x412ddd
push esi
nop
mov ecx, dword [ebx]
push 0
push 0x1000
lea eax, [esp + 0x1c]
push eax
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x412ddc
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
push esi
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.00401cbd
add edi, esi
add esp, 0x10
cmp edi, dword [esp + 0xc]
mov dword [0x427784], edi
jb 0x412da0
pop esi
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push eax
call fcn.00401b27
mov ecx, dword [esp + 0x1014]
add esp, 4
cmp edi, dword [esp + 8]
pop edi
sbb eax, eax
pop ebp
xor ecx, esp
add eax, 1
call fcn.0040113c
add esp, 0x100c
ret
Function at 0x4130a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebx
xor eax, eax
cmp dword [ecx], eax
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov dword [esp + 0xc], eax
je 0x413124
cmp edi, eax
jle 0x4130cf
lea ebx, [ebx]
mov dl, byte [eax + ebp]
not dl
mov byte [eax + ebp], dl
add eax, 1
cmp eax, edi
jl 0x4130c0
lea ebx, [edi + 7]
push ebx
call fcn.00401fd3
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [str.AS101]
push edi
mov dword [esi + 2], ecx
mov dl, byte [0x426134]
lea eax, [esi + 7]
push ebp
push eax
mov byte [esi + 6], dl
call fcn.00406be0
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
add esp, 0x10
push 0
push ebx
push esi
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x413128
cmp eax, ebx
jne 0x413128
mov dword [esp + 0xc], 1
jmp 0x413128
mov esi, dword [esp + 0x14]
test esi, esi
je 0x413135
push esi
call fcn.00401dd8
add esp, 4
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x413160
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x9b0
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x9a8], eax
push ebp
mov ebp, dword [esp + 0x9b8]
push esi
push edi
push 0x7fe
lea eax, [esp + 0x1b6]
push 0
push eax
mov edi, ecx
mov word [esp + 0x1bc], 0
call fcn.00405a30
add esp, 0xc
test edi, edi
lea esi, [esp + 0x1b0]
je 0x4131ae
mov esi, edi
lea ecx, [esp + 0x20]
push ecx
push 0x101
mov word [esi], 0
mov dword [esp + 0x14], 0
xor edi, edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x41321e
push 0x421d64
push 0x3ff
push esi
call fcn.00401224
push 0x421d84
push 0x3ff
push esi
call fcn.0040117b
push 0x421d88
push 0x3ff
push esi
call fcn.0040117b
add esp, 0x24
xor eax, eax
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.0040113c
add esp, 0x9b0
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebx], eax
jne 0x413258
push 0x421dc8
push 0x3ff
push esi
call fcn.00401224
push 0x421de8
push 0x3ff
push esi
call fcn.0040117b
push 0x421dec
jmp 0x4131f6
push ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4132dd
push ebp
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
push 4
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
jne 0x4132dd
push 0x421e2c
push 0x3ff
push esi
call fcn.00401224
push 0x421e4c
push 0x3ff
push esi
call fcn.0040117b
push 0x421e50
push 0x3ff
push esi
call fcn.0040117b
mov eax, dword [ebx]
add esp, 0x24
test eax, eax
je 0x4132c3
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx], edi
mov ecx, dword [esp + 0x9b4]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040113c
add esp, 0x9b0
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [esp + 0x9c4]
push eax
mov dword [esp + 0x18], edx
mov word [esp + 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebx]
push 0x10
lea ecx, [esp + 0x14]
push ecx
push edx
mov word [esp + 0x1e], ax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x413340
push 0x421e90
push 0x3ff
push esi
call fcn.00401224
push 0x421eb0
push 0x3ff
push esi
call fcn.0040117b
push 0x421eb4
jmp 0x4132a6
mov edi, 1
jmp 0x4132c3
Function at 0x4147f0
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
mov eax, 0x1068
call fcn.0040cfc0
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x1064], eax
mov eax, dword [esp + 0x106c]
push ebx
push ebp
push 0x422158
push eax
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov dword [esp + 0x14], ebx
xor ebp, ebp
call fcn.004013c8
mov eax, dword [esp + 0x14]
add esp, 0xc
cmp eax, ebx
jne 0x41485b
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
pop ebp
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
pop ebx
mov ecx, dword [esp + 0x1064]
xor ecx, esp
call fcn.0040113c
add esp, 0x1068
ret
push esi
push 2
push ebx
push eax
call fcn.0040149f
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004016bc
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push edx
mov dword [esp + 0x2c], eax
call fcn.0040149f
mov eax, dword [esp + 0x28]
push eax
push 0x1000
lea ecx, [esp + 0x94]
push 1
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], 0x67452301
mov dword [esp + 0x4c], 0xefcdab89
mov dword [esp + 0x50], 0x98badcfe
mov dword [esp + 0x54], 0x10325476
mov dword [esp + 0x58], 0xc3d2e1f0
call fcn.00401a99
mov esi, eax
add esp, 0x2c
cmp esi, ebx
jbe 0x414906
lea edx, [esp + 0x70]
push esi
push edx
lea ebx, [esp + 0x1c]
call fcn.00414740
mov eax, dword [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x80]
push 1
push ecx
add ebp, esi
call fcn.00401a99
mov esi, eax
add esp, 0x18
test esi, esi
ja 0x4148d1
xor ebx, ebx
push edi
lea esi, [esp + 0x18]
call fcn.00414650
mov edx, dword [esp + 0x10]
push edx
call fcn.00401b27
add esp, 8
cmp ebp, dword [esp + 0x10]
pop esi
jb 0x414834
mov ecx, dword [esp + 0x106c]
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0040113c
add esp, 0x1068
ret