joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a8cd
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5a674c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.00428778
pop ecx
cmp eax, esi
je 0x43a9b7
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x43a9b7
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.00525ee0
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x43a9b7
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x43a9b7
cmp esi, 0x14
jge 0x43a9b7
push 0x10
push 0
push edi
call fcn.0052c970
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x43a9a6
call fcn.0052a9ed
cmp dword [eax], 0x22
je 0x43a9a6
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.0052c04b
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x43a97c
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x5a9ff0], 0
jne 0x43aa42
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x43aa6b
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.0043a7dd
pop ecx
pop ecx
test eax, eax
jne 0x43aa6d
inc edi
cmp edi, esi
jl 0x43aa48
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00525092
leave
ret 8
Function at 0x43b73f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x43b787
call fcn.004309a6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x43b787
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x43b7ca
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x43b7b3
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x43b7b3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x43b7c7
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x448b5c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5a674c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x448b91
xor eax, eax
jmp 0x448be4
lea eax, [ebp - 0x210]
push eax
call fcn.0052c04b
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x448bc2
push 0x55e0e8
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0052d27a
add esp, 0xc
test eax, eax
jne 0x448b8d
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0052d27a
add esp, 0xc
test eax, eax
jne 0x448b8d
lea eax, [ebp - 0x210]
push eax
call fcn.004287fe
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00525092
leave
ret

Function at 0x454879
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0048c293
call fcn.004303c3
cmp dword [eax + 0x14], 0
jne 0x454896
mov ecx, esi
pop esi
jmp fcn.00454360
pop esi
ret

Function at 0x45805e
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00456780
call fcn.004303c3
cmp dword [eax + 0x14], 0
jne 0x45807b
mov ecx, esi
pop esi
jmp fcn.00457a31
pop esi
ret

Function at 0x48fbf6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x48fc10
call fcn.004309a6
mov esi, dword [eax + 0xc]
push dword [0x5abd10]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x48fc2e
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x48fc26
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x48fc5b
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x48fc28
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0048fb24
mov esi, eax
jmp 0x48fc4d
Function at 0x50b479
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x50b491
mov edi, dword [esi + 0xc]
jmp 0x50b4d1
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x50b4aa
call fcn.00430da6
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x50b4bf
call fcn.00430da6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x50b4d1
call fcn.00430da6
call fcn.004309a6
cmp dword [eax + 0x3c], 0
je 0x50b4e6
push edi
mov ecx, ebx
call fcn.0050a337
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0050b393
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x50b504
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x50b510
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x525092
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5a674c]
jne 0x52509c
repz ret
jmp fcn.0053050c
Function at 0x53f01f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5a674c]
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.0052ff0c
and dword [ebp - 0x14], 0
cmp dword [0x5ae78c], 0
mov dword [ebp - 0x18], eax
jne 0x53f0d2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x53f17a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x53f17a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5817f4
push ebx
mov dword [0x5ae78c], eax
call edi
push eax
call esi
push 0x5817e0
push ebx
mov dword [0x5ae790], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5ae794], eax
call edi
push eax
call esi
mov dword [0x5ae79c], eax
test eax, eax
je 0x53f0d2
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5ae798], eax
mov eax, dword [0x5ae798]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x53f12b
cmp dword [0x5ae79c], ecx
je 0x53f12b
push eax
call esi
push dword [0x5ae79c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x53f12b
test ebx, ebx
je 0x53f12b
call edi
test eax, eax
je 0x53f122
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x53f122
test byte [ebp - 8], 1
jne 0x53f12b
or dword [ebp + 0x10], 0x200000
jmp 0x53f15e
mov eax, dword [0x5ae790]
cmp eax, dword [ebp - 0x18]
je 0x53f15e
push eax
call esi
test eax, eax
je 0x53f15e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x53f15e
mov eax, dword [0x5ae794]
cmp eax, dword [ebp - 0x18]
je 0x53f15e
push eax
call esi
test eax, eax
je 0x53f15e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5ae78c]
call esi
test eax, eax
je 0x53f17a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x53f17c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00525092
leave
ret
Function at 0x404330
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0x13c4
call fcn.00408bc0
mov eax, dword [0x434010]
xor eax, esp
mov dword [esp + 0x13bc], eax
push ebx
push ebp
push esi
push edi
push 0x3e
mov esi, ecx
mov dword [esp + 0x3c], 0
xorps xmm0, xmm0
mov dword [esp + 0x40], 0
push 0x43149c
lea ecx, [esp + 0x30]
movups xmmword [esp + 0x30], xmm0
call fcn.00404f90
call fcn.00407895
mov edx, eax
mov dword [esp + 0x13c4], 0xffffffff
mov dword [esp + 0x44], edx
mov ecx, 1
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [esp + ecx*4 + 0x44], edx
inc ecx
cmp ecx, 0x270
jb 0x404391
mov ebp, dword [esp + 0x38]
lea eax, [esp + 0x40]
mov ebx, dword [esp + 0x28]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
dec ebp
mov dword [esi + 0x14], 0xf
mov edi, 0xa
mov dword [esp + 0x40], 0x270
mov byte [esi], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x20
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x18]
cmp ebp, 0xffffffff
jne 0x404402
call fcn.00405b00
jmp 0x40440b
lea eax, [ebp + 1]
push eax
call fcn.00405cc0
cmp dword [esp + 0x3c], 0x10
mov ecx, eax
mov edx, dword [esi + 0x14]
lea eax, [esp + 0x28]
cmovae eax, ebx
mov bl, byte [ecx + eax]
mov ecx, dword [esi + 0x10]
mov byte [esp + 0x24], bl
cmp ecx, edx
jae 0x404443
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x404439
mov eax, dword [esi]
mov byte [eax + ecx], bl
mov byte [eax + ecx + 1], 0
jmp 0x404459
push dword [esp + 0x24]
mov byte [esp + 0x18], 0
mov ecx, esi
push dword [esp + 0x18]
push 1
call fcn.00405020
mov ebx, dword [esp + 0x28]
sub edi, 1
jne 0x4043f2
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x404494
lea ecx, [eax + 1]
mov edx, ebx
mov eax, edx
cmp ecx, 0x1000
jb 0x40448a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4044af
push ecx
push edx
call fcn.0040805e
add esp, 8
mov ecx, dword [esp + 0x13cc]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00408020
add esp, 0x13c4
ret
call fcn.0040eb84
int3
Function at 0x405b00
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov eax, ecx
xor edx, edx
push esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
push edi
mov ecx, dword [eax + 4]
dec ecx
shl edx, cl
add edx, edx
mov dword [esp + 0x18], edx
nop
mov edi, dword [eax]
mov eax, dword [edi]
cmp eax, 0x270
jne 0x405b73
lea eax, [edi + 8]
mov esi, 0x270
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
sub esi, 1
jne 0x405b33
mov eax, dword [edi]
jmp 0x405c55
cmp eax, 0x4e0
jb 0x405c55
mov eax, dword [edi + 0x9c4]
lea ebx, [edi + 0x9c4]
mov ebp, 0xe3
nop
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub ebp, 1
jne 0x405b90
mov eax, dword [edi + 0xd50]
lea ebx, [edi + 0xd50]
mov ebp, 0x18c
nop word [eax + eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub ebp, 1
jne 0x405be0
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, dword [esp + 0x14]
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
cmp ecx, dword [eax + 8]
ja 0x405b20
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add ebx, dword [eax + 4]
or edx, ecx
mov dword [esp + 0x10], ebx
cmp ebx, 0x20
jb 0x405b13
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
add esp, 0xc
ret
Function at 0x405cc0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
mov ebx, ecx
mov dword [esp + 0x14], ebx
dec edi
xor eax, eax
xor ebp, ebp
mov dword [esp + 0x10], eax
test edi, edi
je 0x405e92
mov ecx, dword [ebx + 4]
dec ecx
shl ebp, cl
add ebp, ebp
mov dword [esp + 0x18], ebp
nop
mov edi, dword [ebx]
mov eax, dword [edi]
cmp eax, 0x270
jne 0x405d43
lea eax, [edi + 8]
mov esi, 0x270
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
sub esi, 1
jne 0x405d03
mov eax, dword [edi]
jmp 0x405e29
cmp eax, 0x4e0
jb 0x405e29
mov eax, dword [edi + 0x9c4]
lea ebx, [edi + 0x9c4]
mov ebp, 0xe3
nop
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub ebp, 1
jne 0x405d60
mov eax, dword [edi + 0xd50]
lea ebx, [edi + 0xd50]
mov ebp, 0x18c
nop word [eax + eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub ebp, 1
jne 0x405db0
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
mov ebx, dword [esp + 0x14]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
mov edx, dword [ebx + 8]
cmp eax, edx
ja 0x405cf0
mov ebp, dword [esp + 0x18]
mov ecx, dword [ebx + 4]
or ebp, eax
mov eax, dword [esp + 0x10]
dec ecx
shl eax, cl
mov ecx, dword [esp + 0x20]
add eax, eax
or eax, edx
mov dword [esp + 0x10], eax
lea edi, [ecx - 1]
cmp eax, edi
jb 0x405ce2
jmp 0x405e96
mov ecx, dword [esp + 0x20]
xor edx, edx
div ecx
mov ecx, eax
mov esi, edx
xor edx, edx
mov eax, ebp
div dword [esp + 0x20]
cmp eax, ecx
jb 0x405eb2
cmp esi, edi
jne 0x405cd2
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
add esp, 0xc
ret 4
Function at 0x408821
Capabilities:
Parse pe header

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

Function at 0x418cef
Capabilities:
Read file on windows

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

Function at 0x418cfa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418b20
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 0x40894b
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
and ecx, edi
call fcn.0040896c
add ecx, ecx
mov edi, edi
xor dword [edx], ebx
inc edx
add ecx, 0x2bc83523
cmp edx, esi
jne fcn.0040894b
sub edi, edi
ret
Function at 0x401e02
Capabilities:
Initialize winsock library

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push ebx
sub esp, 0x194
mov eax, dword [0x423040]
mov ebx, dword [ebp + 8]
inc eax
mov dword [0x423040], eax
dec eax
jne 0x401ead
mov dword [sub.msvcrt.dll_malloc], 0x41da50
mov dword [sub.msvcrt.dll_free], 0x41dad0
mov dword [sub.msvcrt.dll_realloc], 0x41dae0
mov dword [sub.msvcrt.dll__strdup], 0x41d2f0
mov dword [0x41e018], 0x41daf0
test bl, 2
je 0x401e96
push eax
push eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call sub.WS2_32.DLL_WSAStartup
pop edx
test eax, eax
pop ecx
mov edx, 2
jne 0x401ead
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x401e8a
shr ax, 8
cmp al, 2
je 0x401e96
call sub.WS2_32.DLL_WSACleanup
mov edx, 2
jmp 0x401ead
test bl, 4
je 0x401ea5
mov dword [0x423060], 1
mov dword [0x423050], ebx
xor edx, edx
mov eax, edx
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x4020fc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov ebx, eax
mov eax, dword [eax]
mov dword [ebp - 0x10], edx
mov edi, ecx
cmp dword [eax + 4], 2
jne 0x40212a
mov edx, dword [ebx + 0xc]
xor esi, esi
test edx, edx
je 0x402183
push dword [eax + 8]
push ecx
push 1
push dword [ebp - 0x10]
call edx
jmp 0x40215a
cmp dword [ebx + 8], 0
jne 0x40214c
push edx
push edx
push 0x41f1c4
or esi, 0xffffffff
push dword [eax + 8]
call sub.msvcrt.dll_fopen
add esp, 0x10
mov dword [ebx + 8], eax
test eax, eax
je 0x402183
push dword [ebx + 8]
push edi
push 1
push dword [ebp - 0x10]
call sub.msvcrt.dll_fread
add esp, 0x10
mov esi, eax
test eax, eax
jne 0x402183
mov eax, dword [ebx + 8]
test eax, eax
je 0x40217d
sub esp, 0xc
push eax
call sub.msvcrt.dll_fclose
mov dword [ebx + 8], 0
add esp, 0x10
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebx], eax
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret