joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406689
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x415004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4066d4
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004068a6
test al, al
jne 0x4066ce
sub edx, 2
cmp edx, edi
jne 0x4066b4
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4066f6
lea eax, [edi + 2]
cmp edx, eax
je 0x4066f6
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004065d5
add esp, 0x10
jmp 0x4067f0
push esi
lea ecx, [ebp - 0x255]
call fcn.004068a6
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406739
push dword [ebp - 0x25c]
jmp 0x4066e6
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x406776
cmp word [ebp - 0x226], 0
je 0x406797
cmp word [ebp - 0x226], ax
jne 0x406776
cmp word [ebp - 0x224], 0
je 0x406797
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004065d5
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4067e3
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x406750
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4067cb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4067f0
push 0x406405
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004093c0
add esp, 0x10
jmp 0x4067c0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040140c
leave
ret

Function at 0x408323
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410034
push 0x41002c
push str.FlsAlloc
push 0x1f
call fcn.0040825e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408357
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e14c]
call esi
jmp 0x40835d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4083a1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410044
push 0x41003c
push str.FlsGetValue
push 0x21
call fcn.0040825e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4083d8
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e14c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4083e0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41004c
push 0x410044
push str.FlsSetValue
push 0x22
call fcn.0040825e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40841a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40e14c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x402e30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x268
mov eax, 0x72
push esi
mov word [esp + 0x14], ax
mov word [esp + 0x20], ax
mov word [esp + 0x42], ax
mov word [esp + 0x44], ax
mov word [esp + 0x50], ax
mov ecx, 0x6f
lea eax, [esp + 4]
push edi
mov word [esp + 0xe], cx
mov edx, 0x66
mov word [esp + 0x26], cx
mov word [esp + 0x2a], cx
mov word [esp + 0x3a], cx
mov word [esp + 0x5a], cx
push eax
push 3
lea ecx, [esp + 0x14]
mov word [esp + 0x18], dx
mov word [esp + 0x34], dx
push 0
mov esi, 0x5c
mov edi, 0x73
mov edx, 0x6e
push ecx
push 0x80000001
mov word [esp + 0x20], 0x53
mov word [esp + 0x26], 0x74
mov word [esp + 0x28], 0x77
mov word [esp + 0x2a], 0x61
mov word [esp + 0x2e], 0x65
mov word [esp + 0x30], si
mov word [esp + 0x32], 0x4d
mov word [esp + 0x34], 0x69
mov word [esp + 0x36], 0x63
mov word [esp + 0x3c], di
mov word [esp + 0x42], 0x74
mov word [esp + 0x44], si
mov word [esp + 0x46], 0x57
mov word [esp + 0x48], 0x69
mov word [esp + 0x4a], dx
mov word [esp + 0x4c], 0x64
mov word [esp + 0x50], 0x77
mov word [esp + 0x52], di
mov word [esp + 0x54], si
mov word [esp + 0x56], 0x43
mov word [esp + 0x58], 0x75
mov word [esp + 0x5e], 0x65
mov word [esp + 0x60], dx
mov word [esp + 0x62], 0x74
mov word [esp + 0x64], 0x76
mov word [esp + 0x66], 0x65
mov word [esp + 0x6a], di
mov word [esp + 0x6c], 0x69
mov word [esp + 0x70], dx
mov word [esp + 0x72], si
mov word [esp + 0x74], 0x52
mov word [esp + 0x76], 0x75
mov word [esp + 0x78], dx
mov word [esp + 0x7a], 0
call dword [0x426628]
mov edi, dword [esp + 0x274]
test eax, eax
jne 0x402fa5
mov edx, dword [esp + 8]
push edi
push edx
call dword [0x42663c]
mov eax, dword [esp + 8]
push eax
call dword [0x42661c]
mov esi, dword [esp + 0x278]
lea ecx, [esp + 0x68]
push esi
push ecx
call dword [0x41b348]
lea edx, [esp + 0x70]
push edi
push edx
call dword [0x41b38c]
push esi
call fcn.00408430
add esp, 0x14
push 0
call dword [0x41b300]
pop edi
pop esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x406650
Capabilities:
Hash data with md5

Disassembly:
mov eax, 0x10068
call fcn.0040ec10
mov ecx, dword [esp + 0x10070]
xor eax, eax
mov dword [esp], eax
push esi
mov dword [esp + 8], eax
push edi
xor edi, edi
mov dword [esp + 0x10], eax
push 0x41e504
push ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
mov dword [esp + 0x1c], eax
call dword [0x41b32c]
mov esi, eax
add esp, 8
cmp esi, edi
je 0x406740
push esi
mov ecx, 0x4000
xor eax, eax
lea edi, [esp + 0x74]
push 0x10000
lea edx, [esp + 0x78]
push 1
push edx
rep stosd dword es:[edi], eax
call dword [str.l_AD]
push eax
lea eax, [esp + 0x84]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00405af0
lea edx, [esp + 0x34]
lea eax, [esp + 0x24]
push edx
push eax
call fcn.00406590
push esi
call dword [0x41b338]
mov ecx, dword [esp + 0x3c]
mov esi, dword [0x41b414]
add esp, 0x28
push ecx
call esi
mov edx, dword [esp + 0x10]
push eax
push edx
call esi
push eax
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 0x10]
push eax
push ecx
call esi
mov edx, dword [esp + 0x10080]
push eax
push 0x41eadc
push edx
call dword [0x41b3a4]
add esp, 0x18
pop edi
mov eax, 1
pop esi
add esp, 0x10068
ret

Function at 0x406750
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x468
mov ecx, dword [esp + 0x470]
xor eax, eax
mov dword [esp], eax
push esi
mov dword [esp + 8], eax
push 0x41e504
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], 0x67452301
mov dword [esp + 0x20], 0xefcdab89
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x28], 0x10325476
mov dword [esp + 0x18], eax
call dword [0x41b32c]
mov esi, eax
add esp, 8
test esi, esi
je 0x40686f
push edi
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x70]
push esi
push 0x400
rep stosd dword es:[edi], eax
mov edi, dword [str.l_AD]
lea edx, [esp + 0x78]
push 1
push edx
call edi
add esp, 0x10
test eax, eax
je 0x40680c
push eax
lea eax, [esp + 0x74]
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00405af0
push esi
push 0x400
lea edx, [esp + 0x84]
push 1
push edx
call edi
add esp, 0x1c
test eax, eax
jne 0x4067e3
lea eax, [esp + 0x18]
lea ecx, [esp + 8]
push eax
push ecx
call fcn.00406590
push esi
call dword [0x41b338]
mov edx, dword [esp + 0x20]
mov esi, dword [0x41b414]
add esp, 0xc
push edx
call esi
push eax
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 0x10]
push eax
push ecx
call esi
mov edx, dword [esp + 0x10]
push eax
push edx
call esi
push eax
mov eax, dword [esp + 0x484]
push 0x41eadc
push eax
call dword [0x41b3a4]
add esp, 0x18
mov eax, 1
pop edi
pop esi
add esp, 0x468
ret
mov eax, 1
pop esi
add esp, 0x468
ret
Function at 0x406880
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov ecx, dword [esp + 0x70]
xor eax, eax
push ebx
mov dword [esp + 4], eax
push ebp
push esi
mov dword [esp + 0x10], eax
push edi
xor ebp, ebp
mov dword [esp + 0x18], eax
push 0x41e504
push ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x28], 0x67452301
mov dword [esp + 0x2c], 0xefcdab89
mov dword [esp + 0x30], 0x98badcfe
mov dword [esp + 0x34], 0x10325476
mov dword [esp + 0x24], eax
call dword [0x41b32c]
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x4069b1
mov edi, dword [0x41b330]
push 2
push ebp
push esi
call edi
push esi
call dword [0x41b30c]
push ebp
push ebp
push esi
mov ebx, eax
call edi
mov eax, dword [esp + 0xa0]
add esp, 0x1c
cmp ebx, eax
jg 0x406912
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x68
ret
mov ebp, dword [esp + 0x88]
cmp ebx, ebp
jge 0x40691f
mov ebp, ebx
push 0
push eax
push esi
sub ebp, eax
call edi
push ebp
call fcn.0040e9b6
mov ecx, ebp
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
push 1
rep stosb byte es:[edi], al
push ebx
call dword [str.l_AD]
push eax
lea eax, [esp + 0x44]
push ebx
push eax
call fcn.00405af0
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.00406590
push esi
call dword [0x41b338]
mov eax, dword [esp + 0x54]
mov esi, dword [0x41b414]
add esp, 0x38
push eax
call esi
mov ecx, dword [esp + 0x18]
push eax
push ecx
call esi
mov edx, dword [esp + 0x18]
push eax
push edx
call esi
push eax
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x88]
push eax
push 0x41eadc
push ecx
call dword [0x41b3a4]
add esp, 0x18
jmp 0x4069b8
mov ebx, dword [esp + 0x80]
test ebx, ebx
je 0x4069c5
push ebx
call fcn.0040e9b0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x68
ret

Function at 0x407360
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
test ebx, ebx
jle 0x4073c1
lea edx, [ebx + 8]
mov eax, 0x38e38e39
mul edx
mov ecx, dword [esp + 8]
push ebp
push esi
mov esi, 9
push edi
sub esi, ecx
mov edi, edx
mov ebp, ebx
mov dword [esp + 0x18], esi
shr edi, 1
jmp 0x407391
mov esi, dword [esp + 0x18]
add esi, ecx
cmp esi, ebx
mov esi, 9
jl 0x40739e
mov esi, ebp
xor eax, eax
test esi, esi
jle 0x4073b5
mov edx, dword [0x41eaf4]
mov dl, byte [edx + eax]
xor byte [ecx + eax], dl
inc eax
cmp eax, esi
jl 0x4073a4
sub ebp, 9
add ecx, 9
dec edi
jne 0x40738d
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x407950
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
xor esi, esi
test edi, edi
jle 0x4079d8
push ebp
mov ebp, dword [esp + 0x18]
jmp 0x407975
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
inc cl
and ecx, 0xff
mov edi, ecx
mov dword [esp + 0xc], edi
mov ecx, dword [eax + edi*4 + 8]
mov dword [esp + 0x18], ecx
add cl, dl
mov edx, dword [esp + 0x18]
and ecx, 0xff
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + ecx*4 + 8]
mov dword [eax + edi*4 + 8], ecx
mov edi, dword [esp + 0x14]
add cl, dl
and ecx, 0xff
mov dword [eax + edi*4 + 8], edx
mov dl, byte [esi + ebp]
mov cl, byte [eax + ecx*4 + 8]
xor dl, cl
mov ecx, dword [esp + 0x1c]
mov byte [esi + ebp], dl
inc esi
cmp esi, ecx
jl 0x40796d
mov edx, dword [esp + 0xc]
mov ecx, edi
pop ebp
pop edi
mov dword [eax], edx
mov dword [eax + 4], ecx
pop esi
pop ecx
ret
pop edi
mov dword [eax], ecx
mov dword [eax + 4], edx
pop esi
pop ecx
ret
Function at 0x4127a6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
push ebx
push esi
push edi
xor edi, edi
push 0x30c
lea eax, [ebp - 0x338]
push edi
push eax
call fcn.00416a0c
lea eax, [ebp - 0x338]
push 0x30b
push eax
push dword [ebp + 8]
call fcn.004088a0
or dword [ebp - 4], 0xffffffff
or dword [ebp - 8], 0xffffffff
push edi
xor ebx, ebx
push dword [ebp + 8]
call dword [0x41b2b8]
mov esi, dword [ebp + 0x10]
add esp, 0x20
test eax, eax
jne 0x412889
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [0x426588]
cmp eax, edi
mov dword [ebp + 0x10], eax
je 0x412889
cmp eax, 0xffffffff
je 0x412889
lea ecx, [ebp + 8]
mov dword [ebp + 8], edi
push ecx
push eax
call dword [0x41b054]
cmp dword [ebp + 8], edi
mov dword [ebp - 8], eax
jbe 0x41283b
or eax, 0x80000000
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x412844
mov dword [ebp - 4], edi
jmp 0x412880
cmp eax, 0x3c00000
jbe 0x412854
mov dword [ebp - 4], 1
jmp 0x412880
add eax, 0x400
mov dword [ebp - 4], 2
push eax
call fcn.0040e9b6
pop ecx
mov ebx, eax
lea eax, [ebp - 8]
push edi
push eax
push dword [ebp - 8]
push ebx
push dword [ebp + 0x10]
call dword [0x41b050]
mov eax, dword [ebp - 8]
add dword [esi], eax
push dword [ebp + 0x10]
call dword [0x41b024]
and byte [ebp - 0xa], 0
cmp dword [ebp - 4], 2
mov byte [ebp - 0x1c], 0x6d
mov byte [ebp - 0x1b], 0x6f
mov byte [ebp - 0x1a], 0x6e
mov byte [ebp - 0x19], 0x69
mov byte [ebp - 0x18], 0x74
mov byte [ebp - 0x17], 0x6f
mov byte [ebp - 0x16], 0x72
mov byte [ebp - 0x15], 0x76
mov byte [ebp - 0x14], 0x61
mov byte [ebp - 0x13], 0x6c
mov byte [ebp - 0x12], 0x75
mov byte [ebp - 0x11], 0x65
mov byte [ebp - 0x10], 0x3a
mov byte [ebp - 0xf], 0x20
mov byte [ebp - 0xe], 0x25
mov byte [ebp - 0xd], 0x73
mov byte [ebp - 0xc], 0xd
mov byte [ebp - 0xb], 0xa
je 0x412989
lea eax, [ebp - 0x2c]
push eax
call dword [0x41b008]
push 0x400
call fcn.0040e9b6
mov ebx, eax
pop ecx
lea eax, [ebp - 0x338]
mov dword [esi], edi
mov edi, dword [0x41b3a4]
push eax
push 0x41e8b4
push ebx
call edi
movzx ecx, word [ebp - 0x20]
add esp, 0xc
mov dword [esi], eax
add eax, ebx
push ecx
movzx ecx, word [ebp - 0x22]
push ecx
movzx ecx, word [ebp - 0x24]
push ecx
movzx ecx, word [ebp - 0x26]
push ecx
movzx ecx, word [ebp - 0x2a]
push ecx
movzx ecx, word [ebp - 0x2c]
push ecx
push 0x41e6e4
push eax
call edi
add dword [esi], eax
mov eax, dword [esi]
add esp, 0x20
add eax, ebx
push dword [ebp + 0x14]
push 0x41e884
push eax
call edi
add dword [esi], eax
mov eax, dword [esi]
add esp, 0xc
lea ecx, [ebp - 0x1c]
add eax, ebx
push dword [ebp + 0x18]
push ecx
push eax
call edi
add dword [esi], eax
mov eax, dword [esi]
add esp, 0xc
add eax, ebx
push 0
push 0x41e6cc
push eax
call edi
add dword [esi], eax
mov eax, dword [esi]
add esp, 0xc
add eax, ebx
push 0x41e86c
push eax
call edi
add dword [esi], eax
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov dword [eax], ebx
mov eax, dword [ebp - 4]
pop ebx
leave
ret
Function at 0x41661e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x240
push ebx
mov ebx, dword [esp + 0x248]
push esi
mov esi, ecx
test ebx, ebx
jne 0x416632
pop esi
xor eax, eax
pop ebx
add esp, 0x240
ret 4
push ebp
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14c]
push eax
push 0x104
call dword [0x41b064]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x48]
mov ebp, dword [0x41b3a4]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14c]
push ebx
push ecx
lea edx, [esp + 0x50]
push 0x41e9b0
push edx
call ebp
lea eax, [esp + 0x58]
push 0
push eax
call dword [0x41b3a0]
add esp, 0x18
test eax, eax
je 0x4166a1
lea ecx, [esp + 0x48]
push ecx
call dword [0x41b2d8]
add esp, 4
add esi, 4
mov ecx, 0x41
xor eax, eax
mov edi, esi
lea edx, [esp + 0x38]
rep stosd dword es:[edi], eax
push edx
call dword [0x41b008]
call dword [0x41b320]
mov edi, eax
mov al, 0x32
mov cl, 0x25
mov dl, 0x30
mov byte [esp + 0x19], al
mov byte [esp + 0x1d], al
mov byte [esp + 0x21], al
mov byte [esp + 0x25], al
mov byte [esp + 0x29], al
mov eax, dword [esp + 0x44]
mov byte [esp + 0x10], cl
mov byte [esp + 0x13], cl
mov byte [esp + 0x17], cl
mov byte [esp + 0x1b], cl
mov byte [esp + 0x1f], cl
mov byte [esp + 0x23], cl
mov byte [esp + 0x27], cl
mov byte [esp + 0x2c], cl
mov ecx, dword [esp + 0x42]
mov byte [esp + 0x14], dl
mov byte [esp + 0x18], dl
mov byte [esp + 0x1c], dl
mov byte [esp + 0x20], dl
mov byte [esp + 0x24], dl
mov byte [esp + 0x28], dl
mov byte [esp + 0x2d], dl
mov edx, dword [esp + 0x40]
and eax, 0xffff
push edi
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x46]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x46]
push edx
mov edx, dword [esp + 0x48]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
lea eax, [esp + 0x60]
push edx
lea ecx, [esp + 0x2c]
push eax
mov bl, 0x64
push ecx
push esi
mov byte [esp + 0x39], 0x73
mov byte [esp + 0x3a], 0x5c
mov byte [esp + 0x3d], 0x34
mov byte [esp + 0x3e], bl
mov byte [esp + 0x42], bl
mov byte [esp + 0x46], bl
mov byte [esp + 0x4a], bl
mov byte [esp + 0x4e], bl
mov byte [esp + 0x52], bl
mov byte [esp + 0x53], 0x5f
mov byte [esp + 0x56], 0x38
mov byte [esp + 0x57], 0x78
mov byte [esp + 0x58], 0x2e
mov byte [esp + 0x59], 0x74
mov byte [esp + 0x5a], 0x6d
mov byte [esp + 0x5b], 0x70
mov byte [esp + 0x5c], 0
call ebp
add esp, 0x28
mov eax, 1
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x240
ret 4
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
sub esp, 0x34
push ebp
lea eax, [esp + 8]
push esi
push eax
push 0x8002
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x30
call dword [sym.imp.USER32.dll_GetClassInfoExA]
test eax, eax
je 0x40115e
mov ebp, dword [esp + 0x40]
push 0x77
push ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], str.GPINSKOALClass
push ecx
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x40115e
mov edx, dword [esp + 0x34]
mov dword [0x40a838], 0
push edx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
mov dword [0x40a838], eax
jne 0x40109b
mov eax, dword [esp + 0x34]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x40a838], eax
jmp 0x4010b3
push 0x408120
push 0x408118
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x40115e
push 0x40a83c
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 8]
push ecx
call fcn.00401170
add esp, 4
test eax, eax
je 0x40115e
mov edx, dword [esp + 0x48]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push 0x408114
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [ecx + edx - 3]
push edx
call fcn.00406200
add esp, 8
test eax, eax
pop edi
jne 0x401113
push ebp
call fcn.00401ee0
add esp, 4
xor eax, eax
pop esi
pop ebp
add esp, 0x34
ret 0x10
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x44
push 0x408120
push 0x4080e8
push 0
call esi
cmp eax, 6
jne 0x40115e
push ebp
call fcn.00401ee0
add esp, 4
test eax, eax
push 0
push 0x408120
jne 0x401155
push 0x4080c0
push 0
call esi
pop esi
xor eax, eax
pop ebp
add esp, 0x34
ret 0x10
push 0x4080a4
push 0
call esi
pop esi
xor eax, eax
pop ebp
add esp, 0x34
ret 0x10
Function at 0x401470
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x44]
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x4081fc
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0x408204
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
pop edi
add esp, 0x3c
ret

Function at 0x4014e0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
push eax
xor esi, esi
push ecx
push ebx
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x40157f
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x40157f
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esp + 0x24]
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push edx
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401561
lea eax, [esp + 0x1c]
push 0
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x28]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov edi, 1
jne 0x401565
mov edi, dword [esp + 0x10]
test esi, esi
je 0x401570
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x401a70
Capabilities:
Delete registry key

Disassembly:
push ecx
lea eax, [esp]
push esi
xor esi, esi
push eax
push 1
push esi
push 0x408168
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401abb
mov ecx, dword [esp + 4]
push 0x40a940
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401abb
mov eax, dword [esp + 4]
test eax, eax
je 0x401ab3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
test eax, eax
je 0x401aca
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret

Function at 0x401ad0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp]
push eax
push 0x407168
push 1
push 0
push 0x407158
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x401b04
xor eax, eax
add esp, 0x210
ret
mov eax, dword [esp]
mov edx, dword [esp + 0x214]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp]
mov edx, dword [esp + 0x21c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esp]
lea edx, [esp + 4]
push edx
push 0x407178
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x401b48
xor eax, eax
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
lea eax, [esp + 8]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push 2
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
add esp, 0x210
ret