joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49e6c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0x11
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.0049bde0
add esp, 0xc
jne 0x49e6dc
je 0x49e6dc
call 0x76fb4d90
mov al, 0x66
mov cl, 0x76
mov byte [ebp - 0x14], 0x53
mov byte [ebp - 0x13], al
mov byte [ebp - 0x12], 0x68
mov byte [ebp - 0x11], 0x52
mov byte [ebp - 0x10], cl
mov byte [ebp - 0xf], al
mov byte [ebp - 0xe], 0x73
mov byte [ebp - 0xd], 0x7a
mov byte [ebp - 0xc], 0x57
mov byte [ebp - 0xb], 0x62
mov byte [ebp - 0xa], 0x6d
mov byte [ebp - 9], cl
mov byte [ebp - 8], al
mov byte [ebp - 7], 0x46
mov byte [ebp - 6], 0x79
mov byte [ebp - 5], 0x42
mov byte [ebp - 4], 0
jne 0x49e724
je 0x49e724
call 0x8b363cb2
dec ebp
int1
mov dl, byte [ebp - 0x14]
mov cl, byte [ebp - 0xf]
mov al, byte [ebp - 0xa]
dec dl
mov byte [ebp - 0x14], dl
mov dl, byte [ebp - 5]
dec cl
dec al
mov byte [ebp - 0xf], cl
mov cl, byte [ebp - 0x13]
dec dl
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xe]
mov byte [ebp - 5], dl
mov dl, byte [ebp - 9]
dec cl
dec al
mov byte [ebp - 0x13], cl
mov cl, byte [ebp - 0x12]
dec dl
mov byte [ebp - 0xe], al
mov al, byte [ebp - 0xd]
mov byte [ebp - 9], dl
mov dl, byte [ebp - 8]
dec cl
dec al
mov byte [ebp - 0x12], cl
mov cl, byte [ebp - 0x11]
dec dl
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xc]
mov byte [ebp - 8], dl
mov dl, byte [ebp - 7]
dec cl
dec al
mov byte [ebp - 0x11], cl
mov cl, byte [ebp - 0x10]
dec dl
mov byte [ebp - 0xc], al
mov al, byte [ebp - 0xb]
mov byte [ebp - 7], dl
mov dl, byte [ebp - 6]
dec cl
dec al
dec dl
mov byte [ebp - 0x10], cl
mov byte [ebp - 0xb], al
mov byte [ebp - 6], dl
jne 0x49e7a9
je 0x49e7a9
jmp 0x49e792
call fcn.004a3ea0
test eax, eax
jne 0x49e7be
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x18
jns 0x49e7c3
js 0x49e7c3
call 0x52363554
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.004a1a60
push 0x11
lea edx, [ebp - 0x14]
push 0
push edx
mov esi, eax
call fcn.0049bde0
add esp, 0xc
test esi, esi
jne 0x49e7ef
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x18
jb 0x49e7f4
jae 0x49e7f4
jmp 0x49e84b
push esi
call fcn.0049ea60
add esp, 4
jb 0x49e802
jae 0x49e802
or dword [ebx + 0x4d8b1c45], ecx
sbb byte [ebx - 0x74afebab], cl
inc ebp
adc byte [ecx - 0x75], dl
dec ebp
or al, 0x52
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call esi
pop esi
mov esp, ebp
pop ebp
ret 0x18
adc al, 0x89
or eax, 0x492308
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp], edx
mov edx, dword [eax + 8]
mov dword [esp + 4], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 8], edx
mov edx, dword [eax + 0x10]
lea eax, [esp]
push eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.004a11f0
add esp, 0x14
ret
Function at 0x40188f
Capabilities:
Execute vbscript javascript or jscript in memory

Disassembly:
push 0xffffffffffffffff
push 0x4284c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x435290]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], esi
call fcn.00419a05
lea edi, [esi + 0x20]
mov dword [esi], method.COleControlSite.virtual_0
mov dword [esi + 0x1c], 0x42992c
mov dword [esp + 0x38], 0
mov dword [edi], 0
lea ebx, [esi + 0x24]
mov dword [ebx], 0
lea ebp, [esi + 0x28]
mov dword [ebp], 0
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x3c], 3
mov dword [esi + 0x2c], ecx
call fcn.00401840
test ebp, ebp
mov eax, dword [eax]
mov dword [esp + 0x40], eax
je 0x401913
test eax, eax
je 0x4018ff
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [esp + 0x40]
mov ecx, dword [ebp]
test ecx, ecx
je 0x401910
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, dword [esp + 0x40]
mov dword [ebp], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401921
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, esi
call fcn.00427566
lea edx, [esp + 0x1c]
push edx
push str.JavaScript
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
test eax, eax
jl 0x401951
push edi
push 0x42991c
push 0x17
push 0
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [edi]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x401970
mov edx, dword [ecx]
lea eax, [esp + 0x10]
push eax
push 0x4299c4
push ecx
call dword [edx]
mov eax, dword [esp + 0x10]
test ebx, ebx
mov byte [esp + 0x38], 4
mov ebp, eax
je 0x401993
test eax, eax
je 0x401985
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebx]
test eax, eax
je 0x401991
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [ebx], ebp
mov eax, dword [edi]
mov edx, dword [eax]
lea ecx, [esi + 0x1c]
push ecx
push eax
call dword [edx + 0xc]
mov eax, dword [edi]
mov ecx, dword [eax]
push 2
push str.host
push eax
call dword [ecx + 0x20]
mov eax, dword [edi]
mov edx, dword [eax]
push 2
push 0x4299a8
push eax
call dword [edx + 0x20]
mov eax, dword [ebx]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov edi, dword [edi]
mov edx, dword [edi]
push 2
push edi
call dword [edx + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
mov byte [esp + 0x38], 3
je 0x4019e2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x30]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x20]
pop ebx
call fcn.0040c82d
add esp, 0x2c
ret 4
Function at 0x401f3a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401f4f
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401f61
xor eax, eax
jmp 0x401f93
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401f85
cmp esi, eax
jae 0x401f5d
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401f77
cmp esi, eax
jae 0x401f5d
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x40262d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x402680
call fcn.00424f08
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x402680
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x402676
xor eax, eax
jmp 0x402799
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x4026b0
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x4026b0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x402796
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x4026dd
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00404209
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x402796
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x402726
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x402726
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x402720
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00404209
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x402786
and dword [ebp + 0xc], 0
jmp 0x402786
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x402786
push 0xc
call fcn.0041a86f
mov esi, eax
test esi, esi
pop ecx
je 0x402768
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x40276a
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x402781
push dword [ebp - 8]
call fcn.00418cdb
jmp 0x402786
call fcn.00418cb2
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x4026eb
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40c997
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040cb90
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40ca32
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4381b4]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40ca32
cmp eax, 1
je 0x40ca53
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40ca32
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40c9ff
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40ca2e
xor eax, eax
inc eax
jmp 0x40ca72
cmp edi, eax
jae 0x40ca36
xor eax, eax
jmp 0x40ca72
cmp eax, esi
jae 0x40ca3d
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4381b4]
jmp 0x40ca56
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40cf77
Capabilities:
Terminate process

Disassembly:
push 8
push 0x42c870
call fcn.0040d9cc
push 8
call fcn.0040ff88
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4381f4], esi
jne 0x40cfab
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4381f0], esi
mov al, byte [ebp + 0x10]
mov byte [0x4381ec], al
cmp dword [ebp + 0xc], edi
jne 0x40cff5
cmp dword [0x439a88], edi
je 0x40cfe5
mov eax, dword [0x439a84]
sub eax, 4
mov dword [0x439a84], eax
cmp eax, dword [0x439a88]
jb 0x40cfe5
mov eax, dword [eax]
cmp eax, edi
je 0x40cfc6
call eax
jmp 0x40cfc6
push 0x434094
mov eax, 0x43408c
call fcn.0040cef5
pop ecx
push 0x4340a0
mov eax, 0x434098
call fcn.0040cef5
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40d026
cmp dword [ebp + 0x10], edi
jne 0x40d034
mov dword [0x4381f4], esi
push dword [ebp + 8]
call fcn.0040ceb3
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40d033
push 8
call fcn.0040fed3
pop ecx
ret
call fcn.0040da07
ret
Function at 0x410af7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x410b25
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x410b2c
cmp ebx, dword [eax + 4]
jae 0x410b2c
xor eax, eax
jmp 0x410d1c
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x410b3d
xor eax, eax
inc eax
jmp 0x410d1b
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x410b53
cmp ecx, edx
jae 0x410c98
cmp dword [eax + 4], 0
je 0x410b5c
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x410b44
cmp dword [ebp + 8], 0
je 0x410b7e
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x410c98
cmp eax, esi
jae 0x410c98
mov eax, dword [0x438378]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x410ba3
cmp dword [esi*4 + 0x438380], edi
je 0x410c9c
inc esi
cmp esi, eax
jl 0x410b91
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x410d18
cmp dword [ebp - 8], 0x1000000
jne 0x410d18
test byte [ebp - 0xc], 0xcc
je 0x410c21
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x410d18
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x410d18
cmp word [eax + 0x18], 0x10b
jne 0x410d18
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x410d18
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x410c21
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x410c21
test byte [ecx + 0x27], 0x80
jne 0x410c98
push 1
push 0x4383c0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x410b35
mov ecx, dword [0x438378]
test ecx, ecx
mov edx, ecx
jle 0x410c55
lea eax, [ecx*4 + 0x43837c]
cmp dword [eax], edi
je 0x410c55
dec edx
sub eax, 4
test edx, edx
jg 0x410c49
test edx, edx
jne 0x410c86
push 0xf
pop ebx
cmp ecx, ebx
jg 0x410c62
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x410c7a
lea eax, [edx*4 + 0x438380]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x410c68
cmp ecx, 0x10
jge 0x410c86
inc ecx
mov dword [0x438378], ecx
push 0
push 0x4383c0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x410b35
xor eax, eax
jmp 0x410d1b
test esi, esi
jle 0x410b35
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4383c0
call ebx
test eax, eax
jne 0x410b35
cmp dword [esi*4 + 0x438380], edi
je 0x410cf2
mov eax, dword [0x438378]
lea esi, [eax - 1]
test esi, esi
jl 0x410ce0
cmp dword [esi*4 + 0x438380], edi
je 0x410cdc
dec esi
jns 0x410cd0
test esi, esi
jge 0x410cf0
cmp eax, 0x10
jge 0x410ceb
inc eax
mov dword [0x438378], eax
lea esi, [eax - 1]
jmp 0x410cf2
je 0x410d0a
xor ecx, ecx
test esi, esi
jl 0x410d0a
lea eax, [ecx*4 + 0x438380]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x410cf8
push 0
push 0x4383c0
call ebx
jmp 0x410b35
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410d20
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x435290]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x435678]
je 0x410d55
inc eax
cmp eax, 0x13
jb 0x410d46
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x435678]
jne 0x410e7b
mov eax, dword [0x4381ac]
cmp eax, 1
je 0x410e53
cmp eax, edx
jne 0x410d85
cmp dword [0x4352a4], 1
je 0x410e53
cmp ecx, 0xfc
je 0x410e7b
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x410dbb
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00412ee0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040d420
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x410def
mov eax, edi
push eax
call fcn.0040d420
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x42ca04
push edi
call fcn.00414b20
add esp, 0x10
push edi
call fcn.0040d420
push dword [esi + 0x43567c]
mov ebx, eax
call fcn.0040d420
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040cb90
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00412ee0
push edi
push ebx
call fcn.00412ef0
push 0x42ca00
push ebx
call fcn.00412ef0
push dword [esi + 0x43567c]
push ebx
call fcn.00412ef0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00414a18
add esp, 0x2c
jmp 0x410e7b
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x43567c]
push dword [esi]
call fcn.0040d420
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040c82d
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x414a18
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4385e8], ebx
push esi
push edi
jne 0x414a98
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x414ad3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42d814
push edi
call esi
test eax, eax
mov dword [0x4385e8], eax
je 0x414ad3
push 0x42d804
push edi
call esi
push 0x42d7f0
push edi
mov dword [0x4385ec], eax
call esi
cmp dword [0x4381b4], 2
mov dword [0x4385f0], eax
jne 0x414a98
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4385f8], eax
je 0x414a98
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4385f4], eax
mov eax, dword [0x4385f4]
test eax, eax
je 0x414add
call eax
test eax, eax
je 0x414ac4
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4385f8]
test eax, eax
je 0x414ac4
test byte [ebp - 8], 1
jne 0x414add
cmp dword [0x4381c0], 4
jb 0x414ad7
or byte [ebp + 0x12], 0x20
jmp 0x414afc
xor eax, eax
jmp 0x414b0c
or byte [ebp + 0x12], 4
jmp 0x414afc
mov eax, dword [0x4385ec]
test eax, eax
je 0x414afc
call eax
mov ebx, eax
test ebx, ebx
je 0x414afc
mov eax, dword [0x4385f0]
test eax, eax
je 0x414afc
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4385e8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414e42
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x435290]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x414e73
xor eax, eax
jmp 0x414ffc
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x439720]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x414eaf
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00416c98
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x414f8a
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x414fc8
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x414f13
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x414f04
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x414ee4
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x414f53
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x414f5c
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x414ed5
jmp 0x414f5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x414ff7
cmp dword [ebp - 0x6c], edi
je 0x414fc8
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x414fbd
call fcn.0040ea4a
mov dword [eax], 9
call fcn.0040ea53
mov dword [eax], esi
jmp 0x414ff2
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x414fb2
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x414f5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x414f5e
push dword [ebp - 0x6c]
call fcn.0040ea5c
pop ecx
jmp 0x414ff2
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x414fe0
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x414fe0
xor eax, eax
jmp 0x414ffa
call fcn.0040ea4a
mov dword [eax], 0x1c
call fcn.0040ea53
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x414ffa
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0040c82d
add ebp, 0x3a0
leave
ret
Function at 0x416f1f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4170f3
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x439720]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4170f3
test cl, 0x48
je 0x416f8a
cmp byte [eax + 5], 0xa
je 0x416f8a
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x416fdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x416fc4
call fcn.0040ea4a
mov dword [eax], 9
call fcn.0040ea53
mov dword [eax], esi
jmp 0x416fd4
cmp eax, 0x6d
je 0x4170f3
push eax
call fcn.0040ea5c
pop ecx
or eax, 0xffffffff
jmp 0x4170f5
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4170ee
test eax, eax
je 0x417003
cmp byte [ebx], 0xa
jne 0x417003
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41700c
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4170e8
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4170d8
cmp al, 0xd
je 0x41703e
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4170ca
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x417058
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x417053
add dword [ebp + 0x10], 2
jmp 0x4170ac
mov dword [ebp + 0x10], eax
jmp 0x4170c6
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x417080
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4170c6
cmp dword [ebp - 0xc], 0
je 0x4170c6
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4170a1
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4170ac
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4170c9
cmp ebx, dword [ebp + 0xc]
jne 0x4170b1
cmp byte [ebp - 1], 0xa
jne 0x4170b1
mov byte [ebx], 0xa
jmp 0x4170c9
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00414d23
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4170ca
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x417022
jmp 0x4170e8
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4170e8
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4170f5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret