joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4067c1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4067e6
mov eax, dword [0x40a914]
cmp eax, 0xffffffff
je 0x4067dd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a914], 0xffffffff
jmp 0x406859
cmp dword [0x442aa0], ebx
je 0x406859
cmp byte [0x4426a0], bl
je 0x406825
cmp dword [0x40a914], 0xffffffff
jne 0x40682e
push 4
push 0x40000000
push 0x4426a0
call fcn.00406183
cmp eax, 0xffffffff
mov dword [0x40a914], eax
je 0x406859
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a914], 0xffffffff
je 0x406859
push esi
mov esi, 0x446ae0
push 0x40aae8
push esi
call fcn.004064d7
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.004064ca
push eax
push esi
push dword [0x40a914]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
push esi
xor esi, esi
cmp dword [0x44228c], esi
push edi
jne 0x406a3b
mov ecx, 0x442288
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x406a17
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x442688
jl 0x406a12
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406a70
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x442288]
xor eax, esi
inc ecx
dec edx
jne 0x406a53
pop edi
pop esi
not eax
ret 0xc
Function at 0x10001000
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x25c
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x100010d8
mov eax, dword [esp + 0x274]
test eax, eax
je 0x100010d8
lea eax, [esp + 0x78]
push eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x100010c2
mov al, byte [esp + 0x78]
test al, al
je 0x100010c2
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ebx, dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
lea esi, [esp + 0x78]
push 0x100120a8
push esi
call ebp
test eax, eax
je 0x100010b8
push 0x100120a4
push esi
call ebp
test eax, eax
je 0x100010b8
mov cl, byte [esi]
mov dl, byte [esi + 1]
mov byte [esp + 0x10], cl
lea eax, [esp + 0x14]
push 0x64
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x1d], dl
mov byte [esp + 0x1e], 0
call ebx
test eax, eax
je 0x100010d8
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x270]
mov edi, eax
lea eax, [esp + 0x14]
push edi
push eax
push ecx
call fcn.10001a90
add esp, 0xc
test eax, eax
je 0x100010e5
mov al, byte [esi + 4]
add esi, 4
test al, al
jne 0x10001055
mov ecx, dword [esp + 0x270]
mov edx, dword [esp + 0x274]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x25c
ret
mov esi, dword [esp + 0x274]
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x270]
add edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x25c
ret
Function at 0x10001120
Capabilities:
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x1000d03b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30c
mov eax, dword [0x100120c8]
push esi
push edi
mov dword [esp + 8], eax
lea ecx, [esp + 0x210]
push 0x104
push ecx
push 0
mov dword [esp + 0x328], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x210]
lea ecx, [esp + 8]
push edx
call fcn.10007d32
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
lea eax, [esp + 0x10]
push 0x37
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0xc]
push 0x100120c4
push ecx
call esi
lea edx, [esp + 0xc]
push str.install.ini
push edx
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x110]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x110]
push eax
push 0x100
push ecx
push 0
push 0x100120b4
push str.NEWNAME
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x110]
push edx
push 0x100120a0
call sub.dll1.dll_Ordinal_1
add esp, 8
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x1000123b
push 1
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10001234
lea ecx, [esp + 0x110]
push ecx
push 0x100120a0
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [esp + 0x210]
push 0x100120a0
push edx
call section..text
add esp, 8
lea ecx, [esp + 8]
mov dword [esp + 0x31c], 0xffffffff
call fcn.10007cdb
mov ecx, dword [esp + 0x314]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x318
ret
Function at 0x402c86
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x432180]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, dword [0x48a074]
xor ebx, ebx
push edi
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x402ced
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.004033f7
lea ecx, [esp + 0x1c]
call fcn.00402a16
cmp eax, dword [esp + 0x14]
je 0x402d05
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00403e30
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x402cbd
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409180
add esp, 0x2c
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00403e30
jmp 0x402cef

Function at 0x402d88
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x48a074], eax
push 0x27
mov esi, 0x487c60
mov edx, 0x547
push 0x432c30
mov ecx, esi
call fcn.00402805
push 1
push 0x42dd9c
call fcn.004011cb
add esp, 0x10
mov edx, 0x8aafdc01
call fcn.00402c86
lea ecx, [esp + 0xc]
push ecx
push 0x40
push 0x4e4
push esi
call eax
test eax, eax
je 0x402e20
lea ecx, [esp + 0x10]
call fcn.004047f3
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], ecx
mov byte [esp + 0x14], 1
test ecx, ecx
je 0x402e2a
cmp byte [ecx + 0x6c], 0
jne 0x402e2a
mov eax, dword [ecx]
push 1
call dword [eax + 8]
lea ecx, [esp + 0x10]
call fcn.00402f73
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 4
pop ecx
call fcn.0040277a
int3
Function at 0x41a818
Capabilities:
Read file on windows

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

Function at 0x41ac12
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a250
mov eax, dword [0x432180]
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.00418734
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41ac54
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41adb0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00424b50
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 + 0x489d38]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041bc09
mov ecx, dword [esi*4 + 0x489d38]
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 0x41ada9
cmp eax, dword [edi + ecx + 0x24]
jne 0x41ada9
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 0x41ada9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041bc09
add esp, 0x14
test edx, edx
jl 0x41ada9
jg 0x41ad1f
test eax, eax
jb 0x41ada9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41ada9
jl 0x41ad39
cmp dword [ebp - 0x1008], eax
ja 0x41ada9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41ad57
test ebx, ebx
je 0x41ad90
cmp ecx, edi
jae 0x41ad90
mov al, byte [ecx]
cmp al, 0xd
jne 0x41ad71
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41ad7d
cmp byte [ecx + 1], 0xa
jne 0x41ad7d
inc ecx
jmp 0x41ad7d
movzx eax, al
movsx eax, byte [eax + 0x432460]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41ad57
cmp edx, ebx
jne 0x41ad57
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41adae
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409180
leave
ret
Function at 0x41b0a7
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 + 0x489d38]
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 0x41b0e7
cmp byte [ebx], 0xa
jne 0x41b0e7
or byte [eax + edi + 0x28], 4
jmp 0x41b0ec
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41b1ea
mov al, byte [edx]
cmp al, 0x1a
je 0x41b1cc
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41b11b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41b140
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41b14a
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 0x41b0fd
jmp 0x41b1ea
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 0x41b1c7
cmp dword [ebp - 0xc], 0
je 0x41b1c7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x489d38]
test byte [eax + edi + 0x28], 0x48
je 0x41b1a1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41b18c
mov byte [esi], dl
jmp 0x41b19d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x489d38]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41b1ea
cmp byte [ebp - 1], 0xa
jne 0x41b1b0
cmp esi, ebx
jne 0x41b1b0
mov byte [esi], 0xa
jmp 0x41b1e9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041bc27
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41b1ea
mov byte [esi], 0xd
jmp 0x41b1e9
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x489d38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b1e6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b1ea
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b1f3
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 + 0x489d38]
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 0x41b236
cmp word [esi], dx
jne 0x41b236
or byte [edi + eax + 0x28], 4
jmp 0x41b23b
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 0x41b38e
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 0x41b36e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41b27d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41b2b3
cmp eax, edx
jae 0x41b2bf
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 0x41b255
jmp 0x41b38e
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 0x41b36a
cmp dword [ebp - 0x14], 0
je 0x41b36a
mov eax, dword [ebx*4 + 0x489d38]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41b342
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41b30b
mov word [esi], cx
jmp 0x41b33e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x489d38]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x489d38]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x489d38]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41b38e
pop ebx
cmp word [ebp - 4], bx
jne 0x41b353
cmp esi, dword [ebp + 0xc]
jne 0x41b353
mov word [esi], bx
jmp 0x41b38b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041bc27
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41b38e
push 0xd
jmp 0x41b387
mov ecx, dword [ebx*4 + 0x489d38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b385
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b38e
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 0x4971b6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c6b10]
jne 0x4971c0
repz ret
jmp fcn.0049bc1d

Function at 0x499f00
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c6b10]
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.00494532
and dword [ebp - 0x14], 0
cmp dword [0x4c9cbc], 0
mov dword [ebp - 0x18], eax
jne 0x499fb3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x49a05b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a4030
push ebx
call edi
test eax, eax
je 0x49a05b
mov esi, dword [fcn.00490bb0]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4c9cbc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4c9cc0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4c9cc4], eax
call edi
push eax
call esi
mov dword [0x4c9ccc], eax
test eax, eax
je 0x499fb3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4c9cc8], eax
mov eax, dword [0x4c9cc8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00490bb4]
cmp eax, ecx
je 0x49a00c
cmp dword [0x4c9ccc], ecx
je 0x49a00c
push eax
call esi
push dword [0x4c9ccc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x49a00c
test ebx, ebx
je 0x49a00c
call edi
test eax, eax
je 0x49a003
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x49a003
test byte [ebp - 8], 1
jne 0x49a00c
or dword [ebp + 0x10], 0x200000
jmp 0x49a03f
mov eax, dword [0x4c9cc0]
cmp eax, dword [ebp - 0x18]
je 0x49a03f
push eax
call esi
test eax, eax
je 0x49a03f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x49a03f
mov eax, dword [0x4c9cc4]
cmp eax, dword [ebp - 0x18]
je 0x49a03f
push eax
call esi
test eax, eax
je 0x49a03f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4c9cbc]
call esi
test eax, eax
je 0x49a05b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x49a05d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004971b6
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x6cbf7e92
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x26f376e0
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Create process on windows
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d598
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc4c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x4021c4
push 0x82
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4011ce
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4011ce
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push ebx
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
call 0x40d4b0
add esp, 4
lea ecx, [ebp - 0x20]
mov ebx, eax
call 0x407850
mov eax, dword [ebp + 8]
push ebx
push esi
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call 0x4078a0
test al, al
je 0x4011bf
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebx]
mov byte [ebp + 8], 0x50
mov byte [ebp + 9], 0x4b
mov byte [ebp + 0xa], 3
mov byte [ebp + 0xb], 4
mov edx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x458]
mov dword [ebx], edx
push 0x104
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x458]
push eax
push 0x4021b8
call fcn.004011f0
push 0
push esi
push ebx
call 0x40d170
mov ebx, eax
push 0x4021b4
push ebx
call 0x40d250
lea ecx, [ebp - 0x250]
push ecx
push 0xffffffffffffffff
push ebx
call 0x40d190
mov edx, dword [ebp - 0x250]
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0xc56]
mov word [ebp - 0xc58], 0
add esp, 0x2c
rep stosd dword es:[edi], eax
xor esi, esi
mov dword [ebp + 8], edx
test edx, edx
stosw word es:[edi], ax
jle 0x4011aa
lea edx, [ebp - 0x250]
push edx
push esi
push ebx
call 0x40d190
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0xc58]
lea edx, [ebp - 0xc58]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24c]
lea ecx, [ebp - 0x458]
push eax
push ecx
push 0x4021a8
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0xc58]
push eax
push esi
push ebx
call 0x40d230
add esp, 0x28
mov edi, edi
nop
nop
mov edi, edi
nop
nop
mov eax, eax
nop
nop
mov eax, eax
push 5
push 0
lea ecx, [ebp - 0xc58]
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp + 8]
inc esi
cmp esi, eax
jl 0x40112c
push ebx
call 0x40d290
mov al, byte [ebp - 0x10]
add esp, 4
cmp al, 1
jne 0x4011bf
call fcn.00401210
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call 0x407890
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4011f0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
ret
Function at 0x401210
Capabilities:
Create process on windows
Query environment variable
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push esi
push edi
mov dword [ebp - 4], 0
mov edi, edi
nop
nop
mov edi, edi
nop
nop
mov eax, eax
nop
nop
mov eax, eax
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x108]
rep stosd dword es:[edi], eax
mov edi, edi
nop
nop
mov edi, edi
nop
nop
mov eax, eax
nop
nop
mov eax, eax
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x141
xor eax, eax
lea edi, [ebp - 0x814]
rep stosd dword es:[edi], eax
mov edi, edi
nop
nop
mov edi, edi
nop
nop
mov eax, eax
nop
nop
mov eax, eax
lea ecx, [ebp - 0x108]
lea edx, [ebp - 0x108]
push ecx
push edx
lea eax, [ebp - 0x814]
push str._echo_off_r_n:repeat_r_ndel__f__q___s__r_nif_exist___s__goto_repeat_r_ndel__f__q___0
push eax
call dword [sym.imp.MSVCRT.dll._sprintf]
add esp, 0x10
lea ecx, [ebp - 0x310]
push 0x104
push ecx
push str.SYSTEMROOT
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, edi
nop
nop
mov edi, edi
nop
nop
mov eax, eax
nop
nop
mov eax, eax
lea edx, [ebp - 0x310]
push str._system32hfblddel.bat
push edx
call dword [sym.imp.MSVCRT.dll._wcscat]
add esp, 8
lea eax, [ebp - 0x310]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 4]
push 0
mov esi, eax
push ecx
lea edi, [ebp - 0x814]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x814]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, edi
nop
nop
mov edi, edi
nop
nop
push 0
push 0
lea eax, [ebp - 0x310]
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5f63a2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
js 0x69c6cd
movzx dx, byte [esi]
mov cl, byte [esi + 2]
push 0xcb8c0031
jmp 0x899447
dec ebx
lea esp, [esp + 4]
jne 0x68e866
add esi, 2
not dl
not cl
call fcn.008987ab
adc al, 0x4b
pop es
dec eax
and esp, dword [edi + 0x32]
je 0x8994a3
movd dword [eax], mm0
or ecx, dword [edi + 6]
dec eax
pop ds
push ebx
add dl, byte [eax + 0x5a]
out 0x21, al
sub bh, ch
popfd
shr esp, 0xc8
daa
popal
cmpsb byte ss:[esi], byte es:[edi]
or al, 0x79
xchg ebp, eax
ljmp 0xc84
ret 0x4dca

Function at 0x5fdb41
Capabilities:
Encode data using base64

Disassembly:
push 0xdf2d7e2d
call 0x608c04

Function at 0x61109f
Capabilities:
Encode data using base64

Disassembly:
movzx ax, byte [esi + 2]
push 0x450eb632
add esi, 2
mov byte [esp], 0x1e
and word [esp + 2], 0x6e12
call fcn.0087ef23
mov edx, 0x519df53b
mov edx, dword [edx + ebp - 0x519df53b]
mov esi, 0xd023188c
inc esi
mov esi, dword [ebp + 4]
jl 0x871efe
btc dx, sp
sal dl, 0x20
call fcn.00710eec
push 0x298296aa
dec eax
lea esp, [esp + 0x18]
jmp fcn.0063246b