joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51c820
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
push esi
mov esi, dword [esp + 0x50]
mov bx, word [esp + 0x4c]
cmp bx, 4
mov word [esi], 0
jbe 0x51c843
sub al, al
pop esi
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x38]
push 0x10
push eax
call fcn.0051c480
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.0051c4e0
lea eax, [esp + 0x18]
push 0x10
push eax
call fcn.0051c5a0
lea eax, [esp + 0x18]
push eax
call fcn.0051be10
add bl, 0x31
and eax, 0xffff
mov byte [esp + eax + 0x18], bl
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0xc]
push 0x10
push eax
lea eax, [esp + 0x24]
push 0x51c810
push eax
lea eax, [esp + 0x3c]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
or eax, eax
je 0x51c8f4
lea eax, [esp + 8]
push 0x2c
push eax
call fcn.0051c7f0
or ax, ax
je 0x51c8bc
and eax, 0xffff
mov byte [esp + eax + 8], 0
cmp byte [esp + 8], 0x30
jne 0x51c8e0
mov al, byte [esp + 9]
and al, 0xdf
cmp al, 0x58
jne 0x51c8e0
lea eax, [esp + 0xa]
push esi
push eax
call fcn.0051bf20
or al, al
jne 0x51c8f4
jmp 0x51c8ef
lea eax, [esp + 8]
push esi
push eax
call fcn.0051be70
or al, al
jne 0x51c8f4
mov word [esi], 0
mov ax, word [esi]
or ax, ax
je 0x51c90c
cmp ax, 0xffff
je 0x51c90c
mov al, 1
pop esi
pop ebx
add esp, 0x40
ret 8
sub al, al
pop esi
pop ebx
add esp, 0x40
ret 8

Function at 0x51c930
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
push esi
mov esi, dword [esp + 0x50]
mov bx, word [esp + 0x4c]
cmp bx, 4
mov word [esi], 0
jbe 0x51c953
sub al, al
pop esi
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x38]
push 0x10
push eax
call fcn.0051c480
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.0051c4e0
lea eax, [esp + 0x18]
push 0x10
push eax
call fcn.0051c5a0
lea eax, [esp + 0x18]
push eax
call fcn.0051be10
add bl, 0x31
and eax, 0xffff
mov byte [esp + eax + 0x18], bl
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0xc]
push 0x10
push eax
lea eax, [esp + 0x24]
push 0x51c920
push eax
lea eax, [esp + 0x3c]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
or eax, eax
je 0x51ca04
lea eax, [esp + 8]
push 0x2c
push eax
call fcn.0051c7f0
or ax, ax
je 0x51ca04
and eax, 0xffff
mov cl, byte [esp + eax + 9]
and cl, 0xdf
cmp cl, 0x54
jne 0x51ca04
cmp byte [esp + eax + 0xa], 0x3a
jne 0x51ca04
push esi
lea eax, [esp + eax + 0xf]
push eax
call fcn.0051be70
or al, al
jne 0x51c9f0
jmp 0x51c9ff
mov ax, word [esi]
cmp ax, 1
jl 0x51c9ff
cmp ax, 4
jle 0x51ca04
mov word [esi], 0
cmp word [esi], 1
sbb al, al
inc al
pop esi
pop ebx
add esp, 0x40
ret 8
Function at 0x51ca30
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x50
push esi
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.0051c480
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.0051c4e0
lea eax, [esp + 0x34]
push 0x10
push eax
call fcn.0051c690
lea eax, [esp + 4]
push 0x10
push eax
call fcn.0051c640
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push 0x10
push eax
lea eax, [esp + 0x40]
push 0x51ca20
push eax
lea eax, [esp + 0x38]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov esi, eax
or esi, esi
je 0x51ca9f
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 8]
push eax
call fcn.0051bca0
mov ecx, dword [esp + 0x5c]
mov byte [ecx], al
cmp esi, 1
sbb al, al
inc al
pop esi
add esp, 0x50
ret 8

Function at 0x51cab0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x30
lea eax, [esp + 0x20]
push 0x10
push eax
call fcn.0051c480
lea eax, [esp]
push 0x10
push eax
call fcn.0051c4e0
lea eax, [esp + 0x10]
push 0x10
push eax
call fcn.0051c5f0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push 0
push eax
lea eax, [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetPrivateProfileIntA
mov ecx, dword [esp + 0x34]
cmp eax, 1
mov word [ecx], ax
sbb cl, cl
inc cl
mov al, cl
add esp, 0x30
ret 4

Function at 0x51cb20
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x70
push esi
mov esi, dword [esp + 0x78]
push 0x10
mov word [esi], 0
lea eax, [esp + 8]
push 0
push eax
call fcn.0051be30
lea eax, [esp + 0x64]
push 0x10
push eax
call fcn.0051c480
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.0051c4e0
lea eax, [esp + 0x54]
push 0x10
push eax
call fcn.0051c540
lea eax, [esp + 0x34]
push 0x10
push eax
call fcn.0051c6f0
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.0051c7a0
lea eax, [esp + 0x14]
push 0x10
push eax
call fcn.0051c750
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 8]
push 0x10
push eax
lea eax, [esp + 0x60]
push 0x51cb10
push eax
lea eax, [esp + 0x58]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
or eax, eax
je 0x51cbf3
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 8]
push eax
call fcn.0051bca0
or al, al
je 0x51cbc1
mov word [esi], 2
jmp 0x51cbf3
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 8]
push eax
call fcn.0051bca0
or al, al
je 0x51cbdb
mov word [esi], 3
jmp 0x51cbf3
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 8]
push eax
call fcn.0051bca0
or al, al
je 0x51cbf3
mov word [esi], 1
cmp word [esi], 1
sbb al, al
inc al
pop esi
add esp, 0x70
ret 4
Function at 0x51d250
Capabilities:
Check if file exists

Disassembly:
sub esp, 0xc
push esi
mov byte [esp + 4], 0x52
mov byte [esp + 5], 0x4e
mov byte [esp + 6], 0x42
mov byte [esp + 7], 0x4f
mov byte [esp + 8], 0x44
mov byte [esp + 9], 0x52
mov byte [esp + 0xa], 0x56
mov ax, word [esp + 0x18]
add al, 0x30
mov byte [esp + 0xb], al
mov esi, dword [esp + 0x14]
mov byte [esp + 0xc], 0
mov dword [esi], 0
push 0
push pe_nt_image_headers32
push 3
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x51d2e6
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jb 0x51d2c3
cmp eax, 3
jbe 0x51d2db
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x51d2d0
push eax
call sub.KERNEL32.dll_CloseHandle
mov ax, 0x80b
pop esi
add esp, 0xc
ret 8
mov ax, 0x80c
pop esi
add esp, 0xc
ret 8
mov ax, 0x800
pop esi
add esp, 0xc
ret 8

Function at 0x51d300
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 4
push ebx
push esi
push edi
mov esi, dword [esp + 0x18]
push esi
mov word [esi + 6], 0xffff
call fcn.0051d1f0
lea eax, [esp + 0xc]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
mov edi, dword [esp + 0x20]
push esi
mov eax, dword [edi]
push eax
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
or ebx, ebx
je 0x51d350
lea eax, [esp + 0xc]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
push esi
mov eax, dword [edi]
push eax
call sub.KERNEL32.dll_ReadFile
mov ebx, eax
push esi
call fcn.0051d1b0
or ebx, ebx
je 0x51d362
cmp word [esi + 6], 0xffff
jne 0x51d368
mov word [esi + 6], 0x83b
mov ax, word [esi + 6]
pop edi
pop esi
pop ebx
add esp, 4
ret 8

Function at 0x51d490
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x10
push esi
mov al, byte [esp + 0x1c]
push eax
lea eax, [esp + 8]
push eax
call fcn.0051d450
push 0
push pe_nt_image_headers32
push 3
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov esi, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x51d4fc
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jb 0x51d4d9
cmp eax, 3
jbe 0x51d4f1
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x51d4e6
push eax
call sub.KERNEL32.dll_CloseHandle
mov ax, 0x20b
pop esi
add esp, 0x10
ret 8
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
sub ax, ax
pop esi
add esp, 0x10
ret 8

Function at 0x51d520
Capabilities:
Read file on windows

Disassembly:
sub esp, 4
push esi
push edi
mov esi, dword [esp + 0x14]
push esi
mov word [esi + 6], 0xffff
call fcn.0051d1f0
lea eax, [esp + 8]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
mov eax, dword [esp + 0x1c]
push esi
mov eax, dword [eax]
push eax
call sub.KERNEL32.dll_ReadFile
mov edi, eax
push esi
call fcn.0051d1b0
cmp edi, 1
jne 0x51d565
cmp word [esi + 6], 0xffff
jne 0x51d56b
mov word [esi + 6], 0x23b
mov ax, word [esi + 6]
pop edi
pop esi
add esp, 4
ret 8
Function at 0x51d650
Capabilities:
Contain obfuscated stackstrings
Read .ini file

Disassembly:
sub esp, 0x24
mov byte [esp + 8], 0x53
mov byte [esp + 9], 0x59
mov byte [esp + 0xa], 0x53
mov byte [esp + 0xb], 0x54
mov byte [esp + 0xc], 0x45
mov byte [esp + 0xd], 0x4d
mov byte [esp + 0xe], 0x2e
mov byte [esp + 0xf], 0x49
mov byte [esp + 0x10], 0x4e
mov byte [esp + 0x11], 0x49
mov byte [esp + 0x12], 0
mov byte [esp + 0x14], 0x53
mov byte [esp + 0x15], 0x65
mov byte [esp + 0x16], 0x6e
mov byte [esp + 0x17], 0x74
mov byte [esp + 0x18], 0x69
mov byte [esp + 0x19], 0x6e
mov byte [esp + 0x1a], 0x65
mov byte [esp + 0x1b], 0x6c
mov byte [esp + 0x1c], 0x53
mov byte [esp + 0x1d], 0x65
mov byte [esp + 0x1e], 0x74
mov byte [esp + 0x1f], 0x75
mov byte [esp + 0x20], 0x70
mov byte [esp + 0x21], 0
mov byte [esp], 0x49
mov byte [esp + 1], 0x6f
lea eax, [esp + 8]
mov byte [esp + 2], 0x45
mov byte [esp + 3], 0x6e
mov byte [esp + 4], 0x74
mov byte [esp + 5], 0x72
mov byte [esp + 6], 0x79
mov byte [esp + 7], 0
push eax
lea eax, [esp + 4]
push 0
push eax
lea eax, [esp + 0x20]
push eax
call sub.KERNEL32.dll_GetPrivateProfileIntA
add esp, 0x24
ret
Function at 0x51d720
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
sub esp, 0x58
push esi
mov byte [esp + 0x24], 0x53
mov byte [esp + 0x25], 0x79
mov byte [esp + 0x26], 0x73
mov byte [esp + 0x27], 0x74
sub si, si
mov byte [esp + 0x28], 0x65
mov byte [esp + 0x29], 0x6d
mov byte [esp + 0x2a], 0x5c
mov byte [esp + 0x2b], 0x43
mov byte [esp + 0x2c], 0x75
mov byte [esp + 0x2d], 0x72
mov byte [esp + 0x2e], 0x72
mov byte [esp + 0x2f], 0x65
mov byte [esp + 0x30], 0x6e
mov byte [esp + 0x31], 0x74
mov byte [esp + 0x32], 0x43
mov byte [esp + 0x33], 0x6f
mov byte [esp + 0x34], 0x6e
mov byte [esp + 0x35], 0x74
mov byte [esp + 0x36], 0x72
mov byte [esp + 0x37], 0x6f
mov byte [esp + 0x38], 0x6c
mov byte [esp + 0x39], 0x53
mov byte [esp + 0x3a], 0x65
mov byte [esp + 0x3b], 0x74
mov byte [esp + 0x3c], 0x5c
mov byte [esp + 0x3d], 0x53
mov byte [esp + 0x3e], 0x65
mov byte [esp + 0x3f], 0x72
mov byte [esp + 0x40], 0x76
mov byte [esp + 0x41], 0x69
mov byte [esp + 0x42], 0x63
mov byte [esp + 0x43], 0x65
mov byte [esp + 0x44], 0x73
mov byte [esp + 0x45], 0x5c
mov byte [esp + 0x46], 0x56
mov byte [esp + 0x47], 0x78
mov byte [esp + 0x48], 0x44
mov byte [esp + 0x49], 0x5c
mov byte [esp + 0x4a], 0x53
mov byte [esp + 0x4b], 0x65
mov byte [esp + 0x4c], 0x6e
mov byte [esp + 0x4d], 0x74
mov byte [esp + 0x4e], 0x69
mov byte [esp + 0x4f], 0x6e
mov byte [esp + 0x50], 0x65
mov byte [esp + 0x51], 0x6c
mov byte [esp + 0x52], 0x5c
mov byte [esp + 0x53], 0x53
mov byte [esp + 0x54], 0x65
mov byte [esp + 0x55], 0x74
mov byte [esp + 0x56], 0x75
mov byte [esp + 0x57], 0x70
mov byte [esp + 0x58], 0
mov byte [esp + 0x10], 0x49
mov byte [esp + 0x11], 0x6f
mov byte [esp + 0x12], 0x45
mov byte [esp + 0x13], 0x6e
mov byte [esp + 0x14], 0x74
mov byte [esp + 0x15], 0x72
mov byte [esp + 0x16], 0x79
mov byte [esp + 0x17], 0
mov dword [esp + 0xc], 0xa
mov dword [esp + 4], 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x28]
push eax
push 0x80000002
call sub.ADVAPI32.dll_RegOpenKeyA
or eax, eax
jne 0x51d8bf
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.ADVAPI32.dll_RegQueryValueA
or eax, eax
jne 0x51d8b5
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0051c050
or al, al
je 0x51d8b5
mov si, word [esp + 8]
mov eax, dword [esp + 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
mov ax, si
pop esi
add esp, 0x58
ret
Function at 0x520170
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push esi
push edi
lea eax, [esp + 0xa]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
push eax
push esi
call fcn.0051e0d0
mov eax, dword [esp + 0xc]
push 0xd
mov ax, word [eax + 4]
push eax
call fcn.0051fcf0
or al, al
jne 0x5201f5
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.00520a80
or al, al
jne 0x5201f5
mov eax, dword [esp + 0xc]
mov ax, word [eax + 0xa]
push eax
mov eax, dword [esp + 0x10]
mov al, byte [eax + 8]
push eax
mov eax, dword [esp + 0x14]
mov ax, word [eax + 6]
push eax
mov eax, dword [esp + 0x18]
mov ax, word [eax + 4]
push eax
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.005208f0
mov di, ax
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.00520ae0
mov ax, di
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x520280
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push esi
push edi
lea eax, [esp + 0xa]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
mov edi, dword [esp + 0x24]
push eax
mov esi, dword [esp + 0x24]
push edi
push esi
call fcn.0051e0d0
lea eax, [esp + 0xa]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
push esi
call fcn.0051e0d0
mov eax, dword [esp + 0xc]
push 0xe
mov ax, word [eax + 4]
push eax
call fcn.0051fcf0
or al, al
jne 0x52032d
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.00520a80
or al, al
jne 0x52032d
mov eax, dword [esp + 0xc]
mov ax, word [eax + 0xe]
push eax
mov eax, dword [esp + 0x10]
mov ax, word [eax + 0xc]
push eax
mov eax, dword [esp + 0x14]
mov ax, word [eax + 0xa]
push eax
mov eax, dword [esp + 0x18]
mov al, byte [eax + 8]
push eax
mov eax, dword [esp + 0x1c]
mov ax, word [eax + 6]
push eax
mov eax, dword [esp + 0x20]
mov ax, word [eax + 4]
push eax
mov eax, dword [esp + 0x28]
push eax
push esi
call fcn.00520950
mov di, ax
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.00520ae0
mov ax, di
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40a340
Capabilities:
Write file on windows

Disassembly:
mov dh, 0x8b
in al, dx
xor al, 0x4d
or byte [edi - 0x7afbbe75], bl
jne 0x40a35f
adc dword [ebx - 0xaed71e], eax
adc eax, sym.imp.KERNEL32.dll_WriteFile
and edx, 0x28
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
leave
pop ebp
ret 4
cmp eax, 1
jne 0x40a370
mov eax, dword [ecx + 8]
push eax
cdq
adc eax, sym.imp.KERNEL32.dll_SetEvent
and cl, byte [edi]
xor dword [0x8b3cd102], 0x49
or byte [ecx - 0x22], dl
adc eax, sym.imp.KERNEL32.dll_ReleaseMutex
test dword [eax], ebx
jne 0x40a358
mov esi, dword [0x40c0f7]
mov dh, dl
loop 0x40a34d
je 0x40a358
call esi
lahf
cmp ah, 0xa
add byte [esi + 0x5d], bl
fild dword [edi*4 - 0x6f6f6f70]
nop
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 0x40b480
push eax
arpl word [eax], ax
push eax
call fcn.004056c0
pop ebp
ret 4

Function at 0x40b2d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ah, 0x56
mov esi, dword [ebp + 8]
jne 0x40b2e0
mov al, byte [esi + 0x2c]
test byte [ebx - 0x6f41b950], ah
nop
add byte [eax], al
mov ecx, dword [esi + 0x48]
xor ecx, dword [esi + 0x53]
cmp ecx, 1
push edi
xor byte [edi + 0x88189c5], bl
or al, 0x85
pushfd
lahf
add byte [eax], al
mov eax, dword [ebp + 0xff8853c]
test byte [ecx - 0x75000000], dl
pop esi
cmp byte [ebx + 0x576ff8a], al
jns 0x40b2d6
or dword [edx + 0x790576ff], 0xffffffc8
sub ebx, 2
mov esi, dword [edi]
mov edx, dword [esi + 4]
lea ecx, [ebp - 4]
push 0
push ecx
mov byte [0x15fff50a], al
or dh, ch
call dword [0xbfd4c014]
test eax, eax
je 0x40b358
mov eax, dword [ebp - 4]
xor byte [esi + 0x50], dl
mov ecx, dword [esi + 0x54]
add edx, eax
adc ecx, 0
sub edi, eax
loope 0x40b313
mov dword [esi + 0x50], edx
test edi, edi
mov dword [esi + 0x54], ecx
ja 0x40b307
mov eax, dword [ebp + 8]
pop edi
invalid
mov edi, dword [0x40c03a]
call edi
test eax, eax
jne 0x40b3d8
mov dword [ebp + 8], eax
jmp 0x40b373
mov esi, ebx
cld
mov eax, dword [ecx + 0x54f58bbb]
nop
nop
nop
nop
nop
test byte [eax - 0x5274aa70], dl
push ebp
mov ebp, dword [ebp - 0x7458ba75]
dec ebp
or al, 0x8b
sub byte [0x68523150], ch

Function at 0x40b590
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov bh, 0x8c
push 0x28
sub eax, 0x82cafe14
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x40288e
pop dword [ebp - 0x30]
mov eax, 0x3c2da53d
add eax, 0xc4128351
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0xfd5f3bb6
add dword [ebp - 0x40], 0x50f30995
mov dword [ebp - 0x3c], 0x3e2982e4
add dword [ebp - 0x3c], 0xf409c961
mov dword [ebp - 0x38], 0xe404b8df
sub dword [ebp - 0x38], 0x97b874b1
mov dword [ebp - 0x34], 0x266faa8f
sub dword [ebp - 0x34], 0x266faa8f
lea eax, [ebp - 0x40]
push eax
mov eax, 0x5666bcd6
add eax, 0xa9d9c3b6
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x5c857df1
add dword [ebp - 0x40], 0x17eceb65
mov dword [ebp - 0x3c], 0x5eab6dab
add dword [ebp - 0x3c], 0xe2c0f3ca
mov dword [ebp - 0x38], 0xf16a3d19
sub dword [ebp - 0x38], 0x8dfad0ad
mov dword [ebp - 0x34], 0x4112223b
sub dword [ebp - 0x34], 0x4112223b
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0xb292ec4d
sub eax, 0xb2526b79
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3a2f6
push 0
call eax
mov ecx, 0x8eb25789
sub ecx, 0x8eb2012e
mov edx, eax
mov esi, 0x411000
add esi, dword [ebp - 0x30]
mov ebx, 0xec1a2d4c
sub ebx, 0xd9882150
sub dword [ebp - 8], 0xb6bfe7c4
mov edi, dword [esi]
xor dword [ebp - 0x24], 0xebe2a128
sub edi, ebx
xor dword [ebp - 0xc], edx
mov dword [edx], edi
add edx, 4
add esi, 0x36dfc172
add esi, 0xc9203e92
loop 0x4029aa
add eax, 0x14c3f
mov ebx, eax
add eax, 0x58a81dc5
add eax, 0xa757e240
mov ecx, 0xeabe0d56
add ecx, 0x1581f2aa
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x4029fd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4275f0
cmp edx, dword [eax]
je 0x402a1f
add eax, 8
inc ecx
cmp eax, 0x427680
jl 0x402a10
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4275f0]
jne 0x402b4d
mov eax, dword [0x427ca0]
cmp eax, 1
je 0x402b27
test eax, eax
jne 0x402a50
cmp dword [0x427528], 1
je 0x402b27
cmp edx, 0xfc
je 0x402b4d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402a87
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403a30
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404000
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402aca
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404000
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4238cc
push edi
call fcn.004045b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403a30
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403a40
lea eax, [ebp - 0xa0]
push 0x4238ac
push eax
call fcn.00403a40
push dword [esi + 0x4275f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403a40
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040451a
add esp, 0x2c
pop edi
jmp 0x402b4d
lea eax, [ebp + 8]
lea esi, [esi + 0x4275f4]
push 0
push eax
push dword [esi]
call fcn.00404000
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x4021b0
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
jmp 0x4021c9
nop
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x4021e8
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x4021df
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x4021d7
mov eax, ebx
leave
ret

Function at 0x40222a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 4
mov esp, ebp
pop ebp
jmp 0x40224c
nop
pop edx
pop eax
pop ecx
push edx
pushal
mov ebx, eax
mov edi, ecx
xor al, al
scasb al, byte es:[edi]
jne 0x402258
dec edi
sub edi, ecx
xchg ecx, edi
mov eax, dword [ebx + 0x3c]
mov esi, dword [ebx + eax + 0x78]
lea esi, [esi + ebx + 0x18]
lodsd eax, dword [esi]
xchg edx, eax
lodsd eax, dword [esi]
push eax
lodsd eax, dword [esi]
xchg ebp, eax
lodsd eax, dword [esi]
xchg ebp, eax
add eax, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ecx
dec edx
je 0x4022a7
mov esi, dword [eax + edx*4]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x402293
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
jmp 0x40227d
shl edx, 1
add ebp, edx
movzx eax, word [ebp + ebx]
shl eax, 2
add eax, dword [esp]
mov eax, dword [ebx + eax]
add eax, ebx
pop ecx
mov dword [esp + 0x1c], eax
popal
ret