joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b462
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x423448]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040ef10
and dword [ebp - 0x14], 0
cmp dword [0x4f6294], 0
mov dword [ebp - 0x18], eax
jne 0x41b515
push 0x404290
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41b5bd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x404284
push ebx
call edi
test eax, eax
je 0x41b5bd
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x404274
push ebx
mov dword [0x4f6294], eax
call edi
push eax
call esi
push 0x404260
push ebx
mov dword [0x4f6298], eax
call edi
push eax
call esi
push 0x404244
push ebx
mov dword [0x4f629c], eax
call edi
push eax
call esi
mov dword [0x4f62a4], eax
test eax, eax
je 0x41b515
push 0x40422c
push ebx
call edi
push eax
call esi
mov dword [0x4f62a0], eax
mov eax, dword [0x4f62a0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41b56e
cmp dword [0x4f62a4], ecx
je 0x41b56e
push eax
call esi
push dword [0x4f62a4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41b56e
test ebx, ebx
je 0x41b56e
call edi
test eax, eax
je 0x41b565
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41b565
test byte [ebp - 8], 1
jne 0x41b56e
or dword [ebp + 0x10], 0x200000
jmp 0x41b5a1
mov eax, dword [0x4f6298]
cmp eax, dword [ebp - 0x18]
je 0x41b5a1
push eax
call esi
test eax, eax
je 0x41b5a1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41b5a1
mov eax, dword [0x4f629c]
cmp eax, dword [ebp - 0x18]
je 0x41b5a1
push eax
call esi
test eax, eax
je 0x41b5a1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4f6294]
call esi
test eax, eax
je 0x41b5bd
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41b5bf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a360
leave
ret
Function at 0x41eb10
Capabilities:
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x1798
call fcn.0041c300
cmp dword [0x9a0704], 0x37
push esi
jne 0x41ec2d
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualLock]
push 0
lea ecx, [esp + 0x39c]
push ecx
push 0x4043c4
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 0x28]
push edx
push 0
push 0
push 0
call esi
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFileScatter]
push 0
lea ecx, [esp + 0x79c]
push ecx
push 0x4043d0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
lea edx, [esp + 0xf9c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x178]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
call esi
push 0x404418
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
lea edx, [esp + 0x1c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push 0x30
lea ecx, [esp + 0x34]
push 0
push ecx
mov dword [esp + 0x38], 0
call fcn.00411b50
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogW]
mov eax, dword [0x9a2e68]
mov dword [esp + 4], eax
mov eax, 0x5d1
add dword [esp + 4], eax
mov ecx, dword [esp + 4]
mov dl, byte [ecx + ebx]
mov eax, dword [0x99eef0]
mov byte [eax + ebx], dl
pop esi
add esp, 0x1798
ret
Function at 0x403480
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x46a020]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
push edi
mov eax, dword [ebx + 0x3c]
xor esi, esi
mov dword [esp + 0x10], 0
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov dword [esp + 0x1c], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, ebx
mov dword [esp + 0x18], eax
test eax, eax
je 0x403569
mov ebp, dword [esp + 0x44]
mov edx, dword [edi]
xorps xmm0, xmm0
add edx, ebx
mov dword [esp + 0x30], 0
mov eax, edx
mov dword [esp + 0x34], 0
movups xmmword [esp + 0x20], xmm0
lea ecx, [eax + 1]
mov dword [esp + 0x14], ecx
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4034f0
sub eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push edx
call fcn.00401550
test ebx, ebx
je 0x403529
cmp ebp, 3
jbe 0x403529
lea eax, [esp + 0x20]
push 0x14d
push eax
call fcn.004036a0
add esp, 8
test eax, eax
je 0x403529
cmp eax, ebp
je 0x403582
mov ecx, dword [esp + 0x34]
add edi, 4
cmp ecx, 0x10
jb 0x40355e
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403554
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035d1
push ecx
push edx
call fcn.00407b2c
add esp, 8
inc esi
cmp esi, dword [esp + 0x18]
jb 0x4034c5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407b3a
add esp, 0x2c
ret
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + ebx]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
jb 0x403569
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4035c5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035d1
push ecx
push edx
call fcn.00407b2c
add esp, 8
jmp 0x403569
call fcn.0040c8af
int3
Function at 0x4060de
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4060ff
jl 0x4060f6
test edi, edi
jne 0x4060ff
xor eax, eax
xor edx, edx
jmp 0x4061c0
cmp dword [ebx + 0x38], 0
je 0x406114
push eax
push edi
push dword [ebp + 8]
call fcn.004061c6
jmp 0x4061c0
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40615b
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40615b
cmp eax, edi
jb 0x406135
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.004090d0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x406161
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4061b5
mov ecx, ebx
call fcn.004057f5
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4061a0
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040fda1
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4061b5
jmp 0x406173
test edx, edx
je 0x4061b5
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040fda1
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x408a63
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408aa2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408aa2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408aa2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x408aa2
cmp dword [ecx + 0x74], 0xe
jbe 0x408aa2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x415e59
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42936c
push 0x429364
push str.FlsAlloc
push 0x1e
call fcn.00415ce3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415e8d
push dword [ebp + 8]
mov ecx, esi
call dword [0x425160]
call esi
jmp 0x415e93
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x415ed7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42937c
push 0x429374
push str.FlsGetValue
push 0x20
call fcn.00415ce3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415f0e
push dword [ebp + 8]
mov ecx, esi
call dword [0x425160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x419826
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004194c8

Function at 0x419831
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00419657

Function at 0x419c2b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408bd0
mov eax, dword [0x46a020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00417457
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x419c6d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x419dc9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00407b50
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x46bd90]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041adfb
mov ecx, dword [esi*4 + 0x46bd90]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x419dc2
cmp eax, dword [edi + ecx + 0x24]
jne 0x419dc2
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419dc2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041adfb
add esp, 0x14
test edx, edx
jl 0x419dc2
jg 0x419d38
test eax, eax
jb 0x419dc2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x419dc2
jl 0x419d52
cmp dword [ebp - 0x1008], eax
ja 0x419dc2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x419d70
test ebx, ebx
je 0x419da9
cmp ecx, edi
jae 0x419da9
mov al, byte [ecx]
cmp al, 0xd
jne 0x419d8a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x419d96
cmp byte [ecx + 1], 0xa
jne 0x419d96
inc ecx
jmp 0x419d96
movzx eax, al
movsx eax, byte [eax + 0x46a2a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x419d70
cmp edx, ebx
jne 0x419d70
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x419dc7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407b3a
leave
ret
Function at 0x41a299
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x46bd90]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41a2d9
cmp byte [ebx], 0xa
jne 0x41a2d9
or byte [eax + edi + 0x28], 4
jmp 0x41a2de
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41a3dc
mov al, byte [edx]
cmp al, 0x1a
je 0x41a3be
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41a30d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41a332
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41a33c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41a2ef
jmp 0x41a3dc
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a3b9
cmp dword [ebp - 0xc], 0
je 0x41a3b9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x46bd90]
test byte [eax + edi + 0x28], 0x48
je 0x41a393
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41a37e
mov byte [esi], dl
jmp 0x41a38f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46bd90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41a3dc
cmp byte [ebp - 1], 0xa
jne 0x41a3a2
cmp esi, ebx
jne 0x41a3a2
mov byte [esi], 0xa
jmp 0x41a3db
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041ae19
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41a3dc
mov byte [esi], 0xd
jmp 0x41a3db
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x46bd90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41a3d8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41a3dc
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41a3e5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x46bd90]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41a428
cmp word [esi], dx
jne 0x41a428
or byte [edi + eax + 0x28], 4
jmp 0x41a42d
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41a580
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41a560
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41a46f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41a4a5
cmp eax, edx
jae 0x41a4b1
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41a447
jmp 0x41a580
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a55c
cmp dword [ebp - 0x14], 0
je 0x41a55c
mov eax, dword [ebx*4 + 0x46bd90]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41a534
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41a4fd
mov word [esi], cx
jmp 0x41a530
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x46bd90]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x46bd90]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x46bd90]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41a580
pop ebx
cmp word [ebp - 4], bx
jne 0x41a545
cmp esi, dword [ebp + 0xc]
jne 0x41a545
mov word [esi], bx
jmp 0x41a57d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041ae19
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41a580
push 0xd
jmp 0x41a579
mov ecx, dword [ebx*4 + 0x46bd90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41a577
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41a580
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41da46
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41dae3
push ebx
push esi
call fcn.0041da0f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041c67b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41da90
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41dae2
push edi
push eax
call fcn.004164f5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41dab0
call fcn.004159ab
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41dae1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041c67b
add esp, 0x20
test eax, eax
jne 0x41dacf
push edi
call fcn.004159ab
jmp 0x41dad7
push ebx
call fcn.004159ab
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4240b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4240dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4240dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x431002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x10002c90
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
lea eax, [esp + 0x14]
push ebx
push esi
push edi
push eax
push 0x202
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 6
xor ebx, ebx
inc ebx
push ebx
push 2
pop edi
push edi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x10002d09
push dword [ebp + 0x20]
mov word [esp + 0x14], di
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [esp + 0x14]
mov word [esp + 0x12], ax
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push eax
push edi
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0x10
lea eax, [esp + 0x14]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10002d0b
xor bl, bl
lea ecx, [ebp + 8]
call fcn.10005583
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x10002d1e
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebp, ecx
test edi, edi
je 0x10002d47
push 0
push edi
push ebx
push dword [ebp + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10002d51
add ebx, eax
sub edi, eax
jne 0x10002d2f
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop ebx
ret 8
or eax, 0xffffffff
jmp 0x10002d4b

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

Disassembly:
mov eax, 0x2014
call fcn.1000a970
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
call fcn.1000cd71
mov edi, dword [esp + 0x2028]
push 0
cdq
pop ebp
mov esi, dword [edi + 4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ebp
sub esi, dword [edi]
je 0x10002e39
mov eax, 0x1ff0
mov ecx, dword [esp + 0x10]
cmp esi, eax
mov ebx, esi
cmovg ebx, eax
mov ecx, dword [ecx + 8]
call fcn.100016dc
mov ecx, dword [edi]
mov eax, dword [edi + 4]
sub eax, ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
lea eax, [ecx + ebp]
push ebx
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.1000b010
lea eax, [ebx + 0x10]
add esp, 0xc
mov dword [esp + 0x20], eax
mov edi, eax
lea ebp, [esp + 0x24]
test eax, eax
je 0x10002e05
mov eax, dword [esp + 0x10]
push 0
push edi
push ebp
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10002e48
add ebp, eax
sub edi, eax
jne 0x10002de9
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push dword [eax + 8]
call fcn.10009432
pop ecx
cmp edi, 0xffffffff
je 0x10002e4d
mov ebp, dword [esp + 0x14]
mov eax, 0x1ff0
mov edi, dword [esp + 0x2028]
add ebp, ebx
mov dword [esp + 0x14], ebp
sub esi, ebx
jne 0x10002d94
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2014
ret 4
or edi, 0xffffffff
jmp 0x10002e09
xor al, al
jmp 0x10002e3b