joyce8/EMBER2024-capa huggingface dataset:
Function at 0x619100
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [esp + 0xe]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
mov edi, dword [esp + 0x28]
push eax
mov esi, dword [esp + 0x28]
push edi
push esi
call fcn.00616ef0
lea eax, [esp + 0xe]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
push esi
call fcn.00616ef0
mov eax, dword [esp + 0x10]
push 0xe
mov ax, word [eax + 4]
push eax
call fcn.00618b00
or al, al
jne 0x6191e3
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.006198f0
mov bx, ax
or bl, bl
jne 0x6191b2
mov eax, dword [esp + 0x10]
mov ax, word [eax + 0xe]
push eax
mov eax, dword [esp + 0x14]
mov ax, word [eax + 0xc]
push eax
mov eax, dword [esp + 0x18]
mov ax, word [eax + 0xa]
push eax
mov eax, dword [esp + 0x1c]
mov al, byte [eax + 8]
push eax
mov eax, dword [esp + 0x20]
mov ax, word [eax + 6]
push eax
mov eax, dword [esp + 0x24]
mov ax, word [eax + 4]
push eax
mov eax, dword [esp + 0x2c]
push eax
push esi
call fcn.00619800
mov bx, ax
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.00619940
push esi
call fcn.00617000
cmp ax, 0xd
jne 0x6191c2
mov bx, 0xd
cmp bl, 0xd
je 0x6191cd
cmp bx, 3
jne 0x6191e0
mov ax, word [esp + 0xe]
dec word [esp + 0xe]
or ax, ax
jne 0x619152
mov ax, bx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8

Function at 0x61ae40
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 0x61aed6
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jb 0x61aeb3
cmp eax, 3
jbe 0x61aecb
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x61aec0
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 0x61aef0
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.0061ade0
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 0x61af40
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.0061ada0
or ebx, ebx
je 0x61af52
cmp word [esi + 6], 0xffff
jne 0x61af58
mov word [esi + 6], 0x83b
mov ax, word [esi + 6]
pop edi
pop esi
pop ebx
add esp, 4
ret 8
Function at 0x61b080
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.0061b040
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 0x61b0f0
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jb 0x61b0c9
cmp eax, 3
jbe 0x61b0e1
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x61b0d6
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
mov ax, 0x200
pop esi
add esp, 0x10
ret 8

Function at 0x61b110
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.0061ade0
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.0061ada0
cmp edi, 1
jne 0x61b155
cmp word [esi + 6], 0xffff
jne 0x61b15b
mov word [esi + 6], 0x23b
mov ax, word [esi + 6]
pop edi
pop esi
add esp, 4
ret 8

Function at 0x61b240
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 0x61c1a0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov eax, dword [esp + 8]
or eax, eax
jne 0x61c1b1
mov ax, 2
pop esi
ret 0x1c
push eax
call fcn.00615d40
mov esi, eax
cmp word [esi], 0x7242
je 0x61c1c8
mov ax, 2
pop esi
ret 0x1c
test byte [esi + 0x12], 4
jne 0x61c1e0
mov word [esi + 6], 0xb39
mov ax, 0x39
pop esi
ret 0x1c
mov word [esi + 0x30], 0xe
mov ax, word [esp + 0x18]
mov word [esi + 0x34], ax
mov ax, word [esp + 0x1c]
mov word [esi + 0x36], ax
mov ax, word [esp + 0xc]
mov word [esi + 0x3a], ax
mov ax, word [esp + 0x10]
mov word [esi + 0x3c], ax
mov ax, word [esp + 0x14]
mov word [esi + 0x3e], ax
mov al, byte [esp + 0x20]
mov byte [esi + 0x38], al
push esi
call fcn.0061a8b0
mov ax, word [esi + 6]
push eax
call fcn.0061b5c0
cmp ax, 0xc
jne 0x61c238
mov ax, 3
pop esi
ret 0x1c
mov ax, word [esi + 6]
push eax
call fcn.0061b5c0
pop esi
ret 0x1c

Function at 0x61caf8
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xdc
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebp
call sub.KERNEL32.dll_GetCommandLineA
mov dword [esp + 0x44], eax
mov ecx, 1
mov dword [esp + 0x88], ecx
mov edx, dword [esp + 0x44]
mov edi, edx
lea esi, [esp + 0x90]
lea ebx, [esp + 0x88]
mov eax, 0xffffffff
mov ebp, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov ecx, 1
mov dword [esp + 0xc], ecx
mov edx, 0x28
mov dword [esp + 0x10], edx
call fcn.0061c648
test eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x88], eax
je 0x61cb7e
inc ebp
mov eax, dword [esp + 0x40]
and eax, eax
setne cl
and ecx, 1
and ecx, ecx
jne 0x61cb48
mov eax, ebp
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
add esp, 0xdc
ret

Function at 0x61cba8
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xbc
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebp
call sub.KERNEL32.dll_GetCommandLineA
mov dword [esp + 0x40], eax
mov ecx, 1
mov dword [esp + 0x88], ecx
mov edx, dword [esp + 0xc0]
mov eax, dword [edx]
inc eax
mov dword [esp + 0x44], eax
jle 0x61cc6c
mov ecx, dword [esp + 0x40]
mov edx, ecx
mov dword [esp + 0x60], edx
mov edi, dword [esp + 0xc4]
mov esi, 1
mov ebx, dword [esp + 0xc8]
mov eax, dword [esp + 0x44]
mov ebp, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x60]
mov dword [esp], ecx
mov dword [esp + 4], edi
lea edx, [esp + 0x88]
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
call fcn.0061c648
test eax, eax
mov dword [esp + 0x88], eax
jne 0x61cc69
mov dword [esp], edi
lea eax, str.__t_
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
call fcn.006450f0
jmp 0x61cc6c
dec ebp
jg 0x61cc18
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
add esp, 0xbc
ret
Function at 0x61cd00
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x8dc
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebp
mov ebp, dword [esp + 0x8e4]
mov dword [esp], ebp
lea ecx, [0x6bfb40]
mov dword [esp + 4], ecx
mov esi, dword [esp + 0x8ec]
mov dword [esp + 8], esi
mov ebx, 1
mov dword [esp + 0xc], ebx
call fcn.006450f0
mov edx, dword [esp + 0x8e0]
mov dword [esp], edx
lea edx, [esp + 0xa0]
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x8e8]
mov dword [esp + 8], ecx
mov ecx, 0x400
mov dword [esp + 0xc], ecx
mov dword [esp + 0x50], edx
call fcn.006447b0
mov dword [esp + 0xc], eax
movzx edx, byte [0x6bfb44]
mov byte [esp + 0x4a0], dl
mov ecx, dword [esp + 0x50]
mov dword [esp], ecx
lea edx, [esp + 0x4a0]
mov dword [esp + 4], edx
lea edx, [esp + 0x4a4]
mov dword [esp + 8], edx
mov dword [esp + 0x10], ebx
mov ecx, 0x401
mov dword [esp + 0x14], ecx
mov dword [esp + 0x50], edx
call fcn.00644c98
mov edx, dword [esp + 0x50]
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
call sub.KERNEL32.dll_GetEnvironmentVariableA
sub esp, 0xc
mov edi, eax
cmp esi, edi
jle 0x61cdec
mov eax, edi
inc eax
movzx ecx, byte [0x6bfb40]
mov byte [ebp + eax - 1], cl
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
add esp, 0x8dc
ret

Function at 0x636730
Capabilities:
Terminate process

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x1c], ebp
mov eax, dword [0x6d35e0]
mov ebp, dword [esp + 0x60]
mov dword [esp], ebp
call eax
mov dword [esp], ebp
call fcn.00615015
mov ebp, dword [esp + 0x1c]
add esp, 0x5c
ret

Function at 0x636760
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x29c
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebp
lea ebp, [esp + 0x60]
mov dword [esp + 4], ebp
mov ecx, 0x105
mov dword [esp], ecx
call sub.KERNEL32.dll_GetTempPathA
sub esp, 8
and eax, eax
jne 0x6367ab
mov edx, 0x2e
mov byte [esp + 0x60], dl
mov ebx, 0
mov byte [esp + 0x61], bl
mov dword [esp], ebp
lea ecx, [0x6d5b98]
mov dword [esp + 4], ecx
lea esi, [esp + 0x180]
mov dword [esp + 0xc], esi
mov edx, 0
mov dword [esp + 8], edx
call sub.KERNEL32.dll_GetTempFileNameA
sub esp, 0x10
and eax, eax
jne 0x6367e9
call sub.KERNEL32.dll_GetLastError
jmp 0x6367f7
mov dword [esp], esi
call sub.KERNEL32.dll_DeleteFileA
sub esp, 4
mov ebp, 0
mov dword [esp + 0x40], ebp
movsx ebx, byte [esp + ebp + 0x180]
and ebx, ebx
je 0x63683c
mov edi, dword [esp + 0x2a0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
movsx eax, byte [esp + ebp + 0x180]
mov byte [edi + ebp], al
inc ebp
movsx ecx, byte [esp + ebp + 0x180]
and ecx, ecx
jne 0x636820
mov dword [esp + 0x40], ebp
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
add esp, 0x29c
ret
Function at 0x636860
Capabilities:
Get file size

Disassembly:
sub esp, 0xbc
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebp
mov edi, 0
mov dword [esp + 0x80], edi
mov ebp, dword [esp + 0xc0]
mov dword [ebp + 0x18], edi
mov ebx, 3
mov dword [esp + 0x84], ebx
mov esi, dword [esp + 0xc8]
cmp esi, 1
jne 0x6368b9
mov eax, 0x80000000
mov dword [esp + 0x88], eax
jmp 0x6368eb
cmp esi, 2
jne 0x6368df
mov ecx, dword [ebp + 0x14]
and ecx, 0x40
jne 0x6368df
mov edx, 0x40000000
mov dword [esp + 0x88], edx
jmp 0x6368eb
mov eax, 0xc0000000
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0xc4]
cmp ecx, 0x20000
jne 0x63690a
mov edx, 2
mov dword [esp + 0x84], edx
mov ecx, dword [ebp + 0x2c]
mov dword [esp], ecx
mov edx, dword [esp + 0x88]
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edi
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
mov edx, eax
mov dword [esp + 0x8c], edx
cmp edx, 0xffffffff
jne 0x636960
call sub.KERNEL32.dll_GetLastError
mov dword [ebp + 0x18], eax
jmp 0x636a26
mov edi, dword [esp + 0x8c]
mov dword [ebp + 0x28], edi
mov ecx, 0
mov dword [ebp + 0x18], ecx
call fcn.00637290
mov dword [ebp + 0x1c], eax
mov dword [esp], edi
call sub.KERNEL32.dll_GetFileType
sub esp, 4
mov edx, eax
cmp edx, 1
jne 0x6369d4
mov eax, dword [ebp + 0x28]
mov dword [esp], eax
lea ecx, [esp + 0x80]
mov dword [esp + 4], ecx
call sub.KERNEL32.dll_GetFileSize
sub esp, 8
mov edx, dword [esp + 0x80]
and edx, edx
je 0x6369cb
mov eax, 5
mov dword [ebp + 0x18], eax
jmp 0x636a26
mov ecx, dword [ebp + 0x64]
or ecx, 4
mov dword [ebp + 0x64], ecx
mov edx, dword [esp + 0xcc]
and edx, edx
mov edi, 0
je 0x636a23
mov ecx, dword [ebp + 0x28]
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], edi
mov edx, 2
mov dword [esp + 0xc], edx
call sub.KERNEL32.dll_SetFilePointer
sub esp, 0x10
mov dword [ebp + 0x38], eax
cmp eax, 0xffffffff
jne 0x636a26
call sub.KERNEL32.dll_GetLastError
mov dword [ebp + 0x18], eax
jmp 0x636a26
mov dword [ebp + 0x38], edi
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
add esp, 0xbc
ret
Function at 0x636a40
Capabilities:
Delete file

Disassembly:
sub esp, 0x7c
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x80]
mov eax, dword [ebp + 0x28]
cmp eax, 0xffffffff
jne 0x636a78
mov ecx, dword [0x6d35ec]
mov dword [esp], ebp
lea edx, [esp + 0x84]
mov dword [esp + 4], edx
call ecx
mov dword [ebp + 0x18], eax
jmp 0x636b0d
mov ecx, dword [ebp + 0x28]
mov dword [esp], ecx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
and eax, eax
sete dl
and edx, 1
and edx, edx
je 0x636aa7
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 0x40], eax
jmp 0x636ab0
mov eax, 0
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x40]
mov dword [ebp + 0x18], ecx
and ecx, ecx
jne 0x636b0d
mov edx, dword [esp + 0x84]
and edx, edx
je 0x636b0d
mov ecx, dword [ebp + 0x2c]
mov dword [esp], ecx
call sub.KERNEL32.dll_DeleteFileA
sub esp, 4
and eax, eax
sete dl
and edx, 1
and edx, edx
je 0x636afd
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 0x44], eax
jmp 0x636b06
mov eax, 0
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x44]
mov dword [ebp + 0x18], ecx
mov ebp, dword [esp + 0x1c]
add esp, 0x7c
ret

Function at 0x636b20
Capabilities:
Get file size

Disassembly:
sub esp, 0xbc
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebp
mov ebx, 0x80000000
mov esi, 3
mov edi, 0
mov ebp, dword [esp + 0xc0]
mov eax, dword [ebp + 0x28]
and eax, eax
jne 0x636c0e
mov ecx, dword [ebp + 0x2c]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
mov edx, eax
mov dword [esp + 0x80], edx
cmp edx, 0xffffffff
jne 0x636b9c
mov eax, 0xffffffff
jmp 0x636c55
mov ecx, dword [esp + 0x80]
mov dword [esp], ecx
call sub.KERNEL32.dll_GetFileType
sub esp, 4
mov edx, eax
cmp edx, 1
jne 0x636be8
mov ecx, dword [esp + 0x80]
mov dword [esp], ecx
lea edx, [esp + 0x84]
mov dword [esp + 4], edx
call sub.KERNEL32.dll_GetFileSize
sub esp, 8
mov dword [esp + 0x88], eax
jmp 0x636bf4
mov eax, 0
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0x80]
mov dword [esp], ecx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
jmp 0x636c4e
mov edx, dword [ebp + 0x64]
and edx, 4
je 0x636c42
mov ecx, dword [ebp + 0x28]
mov dword [esp], ecx
lea edx, [esp + 0x84]
mov dword [esp + 4], edx
call sub.KERNEL32.dll_GetFileSize
sub esp, 8
mov dword [esp + 0x88], eax
jmp 0x636c4e
mov eax, 0
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x88]
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
add esp, 0xbc
ret
Function at 0x636e00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xbc
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebp
mov ebp, dword [esp + 0xc0]
mov edi, dword [ebp + 0x28]
cmp edi, 0xfffffff6
je 0x636e2a
cmp edi, 0xffffffff
jne 0x636e5b
mov ecx, dword [0x6d35d8]
mov edx, dword [ebp + 0x10]
mov dword [esp], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
call ecx
mov dword [esp + 0x80], eax
mov ecx, 1
mov dword [esp + 0x84], ecx
jmp 0x636e95
mov edx, dword [ebp + 0x28]
mov dword [esp], edx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], ecx
mov edx, dword [ebp + 0xc]
mov dword [esp + 8], edx
lea ecx, [esp + 0x80]
mov dword [esp + 0xc], ecx
mov edx, 0
mov dword [esp + 0x10], edx
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x84]
and eax, eax
jne 0x636eb1
call sub.KERNEL32.dll_GetLastError
mov dword [ebp + 0x18], eax
jmp 0x636ec6
mov ecx, dword [esp + 0x80]
mov dword [ebp + 4], ecx
mov edx, 0
mov dword [ebp + 8], edx
mov dword [ebp + 0x18], edx
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
add esp, 0xbc
ret

Function at 0x636ee0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xbc
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebp
mov ebp, dword [esp + 0xc0]
mov edi, dword [ebp + 0x28]
cmp edi, 0xfffffff5
je 0x636f17
cmp edi, 0xfffffff4
je 0x636f17
cmp edi, 0xffffffff
jne 0x636f67
mov ecx, dword [0x6d35dc]
mov edx, dword [ebp + 0x10]
mov dword [esp], edx
mov dword [esp + 8], edi
mov edx, ebp
add edx, 4
mov dword [esp + 4], edx
mov dword [esp + 0xc], ebp
call ecx
test eax, eax
mov dword [esp + 0x80], eax
je 0x636f56
mov eax, 1
mov dword [esp + 0x84], eax
jmp 0x636fa8
mov ecx, 0
mov dword [esp + 0x84], ecx
jmp 0x636fa8
mov edx, dword [esp + 0xc0]
mov ecx, dword [edx + 0x28]
mov dword [esp], ecx
mov ebx, dword [edx + 0x10]
mov dword [esp + 4], ebx
mov ecx, dword [edx + 4]
mov dword [esp + 8], ecx
lea edx, [esp + 0x80]
mov dword [esp + 0xc], edx
mov ecx, 0
mov dword [esp + 0x10], ecx
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
mov dword [esp + 0x84], eax
mov edx, dword [esp + 0x84]
and edx, edx
mov ebp, dword [esp + 0xc0]
jne 0x636fcb
call sub.KERNEL32.dll_GetLastError
mov dword [ebp + 0x18], eax
jmp 0x637007
mov eax, dword [ebp + 0x14]
and eax, 0x8000
mov edi, 0
je 0x636ffe
mov dword [esp], ebp
call fcn.00637020
cmp eax, 0xffffffff
je 0x637007
mov dword [ebp + 8], edi
mov dword [ebp + 4], edi
mov dword [ebp + 0x18], edi
jmp 0x637007
mov dword [ebp + 8], edi
mov dword [ebp + 4], edi
mov dword [ebp + 0x18], edi
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
add esp, 0xbc
ret
Function at 0x637020
Capabilities:
Clear file content

Disassembly:
sub esp, 0x7c
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x80]
mov eax, dword [ebp + 0x14]
and eax, 0xffff7fff
mov dword [ebp + 0x14], eax
and eax, 0x4240
je 0x637054
mov eax, 0
jmp 0x6370ba
mov dword [esp], ebp
call fcn.00636b20
mov ecx, eax
mov edx, dword [ebp + 0x24]
imul edx, dword [ebp + 0xc]
add edx, dword [ebp + 4]
mov edi, edx
add edi, dword [ebp + 0x38]
cmp ecx, edi
jle 0x6370b5
mov dword [esp], ebp
mov dword [esp + 4], edi
mov ecx, 0
mov dword [esp + 8], ecx
call fcn.00636c70
mov edx, dword [ebp + 0x28]
mov dword [esp], edx
call sub.KERNEL32.dll_SetEndOfFile
sub esp, 4
and eax, eax
jne 0x6370b5
call sub.KERNEL32.dll_GetLastError
mov dword [ebp + 0x18], eax
mov eax, 0xffffffff
jmp 0x6370ba
mov eax, 0
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
add esp, 0x7c
ret

Function at 0x637290
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebp
mov eax, dword [0x6d5bb8]
cmp eax, 0xffffffff
jne 0x637313
lea ecx, str.TABSIZE
mov dword [esp], ecx
lea ebp, [esp + 0x40]
mov dword [esp + 4], ebp
mov edx, 0x14
mov dword [esp + 8], edx
call sub.KERNEL32.dll_GetEnvironmentVariableA
sub esp, 0xc
mov edi, eax
test edi, edi
je 0x637308
cmp edi, 0x14
jg 0x637308
mov dword [esp], ebp
call fcn.00627608
test eax, eax
mov dword [0x6d5bb8], eax
jge 0x637313
mov eax, 8
mov dword [0x6d5bb8], eax
jmp 0x637313
mov ecx, 8
mov dword [0x6d5bb8], ecx
mov eax, dword [0x6d5bb8]
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
add esp, 0x5c
ret
Function at 0x6381b0
Capabilities:
Get file size

Disassembly:
sub esp, 0x7c
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x80]
mov eax, dword [ebp + 0x64]
and eax, 4
je 0x6381ec
mov ecx, dword [ebp + 0x28]
mov dword [esp], ecx
lea edx, [esp + 0x40]
mov dword [esp + 4], edx
call sub.KERNEL32.dll_GetFileSize
sub esp, 8
mov dword [esp + 0x44], eax
jmp 0x6381f5
mov eax, 0
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x1c]
add esp, 0x7c
ret
Function at 0x401070
Capabilities:
Hash data using rshash

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0x5c6b7
mov dword [ebp - 4], 0xf8c9
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4010e8
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
cmp eax, 0x41
jl 0x4010c1
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
cmp edx, 0x5a
jg 0x4010c1
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
lea eax, [eax + edx + 0x20]
mov dword [ebp - 0xc], eax
jmp 0x4010d3
mov ecx, dword [ebp - 0xc]
imul ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
add ecx, eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 4]
imul ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
jmp 0x40108b
mov eax, dword [ebp - 0xc]
and eax, 0x7fffffff
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], 1
jmp 0x401136
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x401194
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x20]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add edx, dword [eax + ecx*4]
push edx
call fcn.00401070
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
jne 0x401192
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov eax, dword [ebp - 0x10]
mov cx, word [edx + eax*2]
mov word [ebp - 0x18], cx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
movzx ecx, word [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, dword [eax + ecx*4]
mov eax, edx
jmp 0x401196
jmp 0x40112d
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4011a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov byte [ebp - 0x10], 0x6b
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xe], 0x72
mov byte [ebp - 0xd], 0x6e
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 0xb], 0x6c
mov byte [ebp - 0xa], 0x33
mov byte [ebp - 9], 0x32
mov byte [ebp - 8], 0x2e
mov byte [ebp - 7], 0x64
mov byte [ebp - 6], 0x6c
mov byte [ebp - 5], 0x6c
mov byte [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call dword [0x408004]
mov esp, ebp
pop ebp
ret