joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59f960
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x644588
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.0059fd60
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0xede004
call fcn.005beb88
mov ecx, dword [0xe478e4]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.0059d0d0
mov esi, 0xe4793c
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x59fa07
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x59f9fe
cmp al, 0xff
je 0x59f9fe
dec al
mov byte [ecx], al
jmp 0x59fa07
push ecx
call fcn.0062e8cf
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.00629330
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x59fa4d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x59fa44
cmp al, 0xff
je 0x59fa44
dec al
mov byte [ecx], al
jmp 0x59fa4d
push ecx
call fcn.0062e8cf
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.005bec0f
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x5a9300
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x5a934c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x5a934c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x5a9336
push eax
call ebp
test ax, ax
jl 0x5a9344
inc esi
add edi, 4
cmp esi, 6
jb 0x5a9328
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.005a9000
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x5abb10
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x5abb70
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x5abb70
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x5abb70
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x5abb70
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x5abb80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x5b1e50
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x644d80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.005b2220
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0
call fcn.005b2220
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x3c], 1
call fcn.005b2290
lea ecx, [esp + 0x10]
call fcn.00533e00
cmp eax, 1
jae 0x5b1ef8
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0
push 0
call ebx
mov edi, eax
test edi, edi
je 0x5b1f63
lea ecx, [edi + 1]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x5b1f63
push esi
push edi
call ebx
push esi
lea ecx, [esp + 0x14]
call fcn.005b2290
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x10]
call fcn.00533e00
cmp eax, 1
jb 0x5b1f63
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
call fcn.005b1cf0
test eax, eax
je 0x5b1f63
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.005b1fd0
mov edi, dword [esp + 0x44]
xor esi, esi
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.005b22f0
push edi
lea ecx, [esp + 0x24]
call fcn.005b2310
push esi
lea ecx, [esp + 0x24]
call fcn.005b23b0
push str..tmp
lea ecx, [esp + 0x24]
call fcn.005b2310
lea edx, [esp + 0x20]
mov ecx, ebp
push edx
call fcn.005b1cd0
test eax, eax
je 0x5b1f99
inc esi
cmp esi, 0x7a0a1f00
jb 0x5b1f1a
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 0
call fcn.005b2240
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.005b2240
xor eax, eax
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x20]
push eax
call fcn.005b22f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 0
call fcn.005b2240
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.005b2240
mov eax, 1
jmp 0x5b1f84
Function at 0x5b2720
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x644e38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.005b2220
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push eax
mov dword [esp + 0x28], 0
call fcn.005b2290
push 0
mov ecx, esi
call fcn.005b26a0
mov ebx, dword [esp + 0x2c]
cmp ebx, 1
jb 0x5b2858
lea ecx, [esp + 0xc]
call fcn.00533e00
cmp eax, 1
jae 0x5b27a7
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.005b2240
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
mov eax, dword [esp + 0x34]
lea edi, [esi + 0xc]
test eax, eax
jne 0x5b27f4
push 0
lea ecx, [esp + 0x10]
call fcn.00533df0
push eax
push edi
mov ecx, 0xeeb0c4
call fcn.005b1e50
test eax, eax
jne 0x5b27fc
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.005b2240
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
push eax
mov ecx, edi
call fcn.005b2290
push edi
mov ecx, 0xeeb0c4
call fcn.005b1db0
push 0
push 2
push 2
push 0
push 3
push 0xc0000000
mov ecx, edi
call fcn.00533de0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x5b2858
push 0
push ebx
push 0
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 4], eax
je 0x5b2858
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 8], eax
jne 0x5b2888
push 1
mov ecx, esi
call fcn.005b26a0
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.005b2240
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
lea ecx, [esp + 0xc]
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x24], 0xffffffff
call fcn.005b2240
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc

Function at 0x5b31b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x110]
call fcn.005b2290
pop edi
add esp, 0x104
ret 4
Function at 0x5cb000
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x5cb033
push esi
call fcn.005cff80
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x5cb02c
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x5cb0b9
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x5cb0a2
mov eax, dword [esi + 8]
test eax, eax
je 0x5cb057
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x5cb09e
cmp eax, 2
je 0x5cb0a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5cb04a
cmp eax, 3
je 0x5cb07d
cmp eax, 1
jne 0x5cb04a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x5cb04a
mov edx, dword [esi + 0x144]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x5cb04a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.005cb0f0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x5cb0d9
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.005cb0f0
add esp, 4
pop esi
ret

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

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x5fb80b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x5fb90e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0xe4dc30]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0xe4dc30]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0xe4dc30]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0xe4dc30]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0xe4dc30]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0xe4dc30]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0xe4dc30]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0xe4dc30]
xor eax, edx
inc ecx
dec edi
jne 0x5fb826
pop edi
test esi, esi
je 0x5fb930
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0xe4dc30]
xor eax, edx
inc ecx
dec esi
jne 0x5fb912
pop esi
pop ebx
not eax
ret
Function at 0x623940
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x646510
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.00618a1f
mov eax, dword [0xe62e70]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.00618951
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.00624480
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x6239e7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x6239de
cmp al, 0xff
je 0x6239de
dec al
mov byte [ecx], al
jmp 0x6239e7
push ecx
call fcn.0062e8cf
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x623a18
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x623a0f
cmp al, 0xff
je 0x623a0f
dec al
mov byte [ecx], al
jmp 0x623a18
push ecx
call fcn.0062e8cf
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x62fa5d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x62fa7f
cmp dword [edi + 0x3c], 0
jne 0x62fa7f
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0063950a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0062faac
pop edi
pop esi
pop ebx
ret 8

Function at 0x6310d1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x631109
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0062f00c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0062efe4
jmp 0x631115
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x6328cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x63290e
call fcn.0063950a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x63290e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x632905
xor eax, eax
jmp 0x632916
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0063291c
pop edi
pop esi
pop ebx
ret 4

Function at 0x639a3a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x639a68
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x639a86
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.006399a0
jmp 0x639a86
mov eax, dword [esi + 0x14]
test eax, eax
je 0x639a86
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.006399a0
test edi, edi
mov eax, edi
jne 0x639a70
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40195b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x214
mov eax, dword [0x42c040]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebp, 0x100
mov ecx, edi
mov eax, ecx
mov byte [esp + ecx + 0x18], cl
and eax, 0x1f
mov al, byte [eax + 0x470780]
mov byte [esp + ecx + 0x118], al
inc ecx
cmp ecx, ebp
jl 0x40197c
mov esi, edi
mov ebx, edi
mov dl, byte [esp + esi + 0x18]
movzx eax, byte [esp + esi + 0x118]
add ebx, eax
movzx ecx, dl
add ebx, ecx
and ebx, 0x800000ff
jns 0x4019be
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + ebx + 0x18], dl
cmp esi, ebp
jl 0x40199b
mov ebp, edi
mov dword [esp + 0x14], edi
inc edi
and edi, 0x800000ff
jns 0x4019e6
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [esp + edi + 0x18]
movzx esi, bl
add ebp, esi
and ebp, 0x800000ff
jns 0x4019ff
dec ebp
or ebp, 0xffffff00
inc ebp
push 0x79
call fcn.00401d56
push eax
call fcn.00403105
mov al, byte [esp + ebp + 0x1c]
mov byte [esp + edi + 0x1c], al
mov byte [esp + ebp + 0x1c], bl
movzx eax, byte [esp + edi + 0x1c]
add eax, esi
pop ecx
mov ecx, dword [esp + 0x14]
movzx eax, al
mov al, byte [esp + eax + 0x18]
xor byte [ecx + 0x42cad0], al
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, 0x43800
jl 0x4019d5
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405c6f
add esp, 0x214
ret

Function at 0x401c35
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x42c040]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
push edi
push str.006:107_4:_00007:277_0:_004:_04:_008:_08:_08:_8:_7:2_3:_9:193_4:_
lea ecx, [esp + 0x18]
call fcn.00401e95
push 0xc
call fcn.00405c82
pop ecx
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.00401a57
mov esi, eax
mov ecx, dword [esi + 4]
shl ecx, 2
push ecx
call fcn.00401d56
push eax
call fcn.00403105
mov esi, dword [esi + 4]
shl esi, 2
pop ecx
sub esi, 0x40
push esi
call dword [sym.imp.GDI32.dll_GetMapMode]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], esi
push eax
push 0x40
mov edi, 0x4ac
push edi
push 0x4702d0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov dword [esp + 0x10], esi
xor esi, esi
mov ecx, esi
mov al, byte [ecx + 0x4702d0]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
xor al, 0x2a
mov byte [ecx + 0x4702d0], al
inc ecx
cmp ecx, edi
jb 0x401cbe
push ecx
push ecx
call fcn.0040195b
pop ecx
pop ecx
lea eax, [esp + 0x10]
push eax
push esi
push 0x42cad0
push 0x470458
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
call fcn.004027a6
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00405c6f
mov esp, ebp
pop ebp
ret
Function at 0x404e10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x404e31
jl 0x404e28
test edi, edi
jne 0x404e31
xor eax, eax
xor edx, edx
jmp 0x404ef2
cmp dword [ebx + 0x38], 0
je 0x404e46
push eax
push edi
push dword [ebp + 8]
call fcn.00404ef8
jmp 0x404ef2
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x404e8d
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x404e8d
cmp eax, edi
jb 0x404e67
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00406ad0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x404e93
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x404ee7
mov ecx, ebx
call fcn.004046a7
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x404ed2
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040dc4a
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x404ee7
jmp 0x404ea5
test edx, edx
je 0x404ee7
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040dc4a
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x4068b2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4068f1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4068f1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4068f1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4068f1
cmp dword [ecx + 0x74], 0xe
jbe 0x4068f1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41537c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x426048
push 0x426040
push str.FlsAlloc
push 0x1e
call fcn.004151e9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4153b0
push dword [ebp + 8]
mov ecx, esi
call dword [0x422148]
call esi
jmp 0x4153b6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4153fa
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x426058
push 0x426050
push str.FlsGetValue
push 0x20
call fcn.004151e9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415431
push dword [ebp + 8]
mov ecx, esi
call dword [0x422148]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x416730
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004165a1

Function at 0x416b2a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00406a20
mov eax, dword [0x42c040]
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.00413ab4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x416b6c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x416cc8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421530
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 + 0x4715f8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00417b21
mov ecx, dword [esi*4 + 0x4715f8]
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 0x416cc1
cmp eax, dword [edi + ecx + 0x24]
jne 0x416cc1
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 0x416cc1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00417b21
add esp, 0x14
test edx, edx
jl 0x416cc1
jg 0x416c37
test eax, eax
jb 0x416cc1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x416cc1
jl 0x416c51
cmp dword [ebp - 0x1008], eax
ja 0x416cc1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x416c6f
test ebx, ebx
je 0x416ca8
cmp ecx, edi
jae 0x416ca8
mov al, byte [ecx]
cmp al, 0xd
jne 0x416c89
lea eax, [edi - 1]
cmp ecx, eax
jae 0x416c95
cmp byte [ecx + 1], 0xa
jne 0x416c95
inc ecx
jmp 0x416c95
movzx eax, al
movsx eax, byte [eax + 0x42c300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x416c6f
cmp edx, ebx
jne 0x416c6f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x416cc6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405c6f
leave
ret