joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409a81
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x4330ce
call fcn.0041c240
mov edi, ecx
cmp dword [edi + 0x3c], 0
mov dword [ebp - 0x38], edi
je 0x409b91
cmp byte [edi + 0x41], 0
je 0x409b91
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x409ab9
xor al, al
jmp 0x409b93
lea esi, [ebp - 0x30]
call fcn.00409786
and dword [ebp - 4], 0
lea eax, [edi + 0x44]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x30]
call fcn.00409802
mov esi, eax
call fcn.0040a027
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x30]
call fcn.00409802
mov esi, eax
call fcn.0040a027
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
lea esi, [ebp - 0x34]
push esi
mov esi, dword [ebp - 0x40]
add ebx, esi
push ebx
push eax
push dword [ebp - 0x3c]
call dword [edx + 0x18]
sub eax, 0
je 0x409b29
dec eax
je 0x409b2d
dec eax
dec eax
je 0x409b8d
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00401d7d
mov al, bl
jmp 0x409b93
mov byte [edi + 0x41], 0
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x30]
call fcn.00409802
mov esi, eax
call fcn.0040a027
mov ebx, dword [ebp - 0x34]
sub ebx, eax
je 0x409b6b
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x30]
call fcn.00409802
mov esi, eax
call fcn.0040a027
push dword [edi + 0x4c]
push ebx
push 1
push eax
call fcn.004193d8
add esp, 0x10
cmp ebx, eax
jne 0x409b17
cmp byte [edi + 0x41], 0
je 0x409b8d
test ebx, ebx
jne 0x409acb
push ebx
push 8
pop ebx
lea edi, [ebp - 0x30]
call fcn.004097be
mov edi, dword [ebp - 0x38]
jmp 0x409acb
mov bl, 1
jmp 0x409b19
mov al, 1
call fcn.0041c2c3
ret

Function at 0x40bb40
Capabilities:
Create thread
Resume thread

Disassembly:
push 4
mov eax, 0x433ca1
call fcn.0041c1d7
mov esi, ecx
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
jne 0x40bb5e
xor al, al
jmp 0x40bbf1
lea edi, [eax + 0x20]
cmp edi, ebx
mov dword [ebp - 0x10], edi
je 0x40bb6f
mov eax, edi
call fcn.0040aca3
mov dword [ebp - 4], ebx
mov eax, dword [esi + 8]
cmp dword [eax + 4], ebx
jne 0x40bb87
cmp edi, ebx
je 0x40bb57
mov eax, edi
call fcn.0040acb1
jmp 0x40bb57
mov eax, esi
call fcn.0040bb36
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x40b909
push ebx
push ebx
call fcn.00417fdf
mov ecx, dword [esi + 8]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
add esp, 0x18
cmp dword [eax + 0x10], ebx
jne 0x40bbc4
call fcn.0040bb3b
mov esi, dword [esi + 8]
call fcn.0040b9ef
jmp 0x40bb7a
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
add eax, 0x24
call fcn.0040d43d
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x40bbb5
cmp edi, ebx
je 0x40bbef
mov eax, edi
call fcn.0040acb1
mov al, 1
call fcn.0041c2af
ret
Function at 0x40c37e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40c3ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40c3ab
xor al, al
jmp 0x40c3c6
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00427e60
xor ecx, ecx
add eax, edi
adc edx, ecx
mov dword [esi], eax
mov dword [esi + 4], edx
mov al, 1
pop edi
leave
ret 4

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

Disassembly:
push 0x4c
mov eax, 0x434df4
call fcn.0041c240
push 0x439754
mov esi, ecx
call fcn.00417aa3
pop ecx
push eax
mov eax, esi
call fcn.0040c500
cmp eax, 0xffffffff
jne 0x40c481
cmp dword [esi + 0x18], 8
jb 0x40c46b
mov esi, dword [esi + 4]
jmp 0x40c46e
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x40c4a2
lea eax, [ebp - 0x58]
call fcn.0040d743
and dword [ebp - 4], 0
push eax
push esi
call fcn.0040d98b
pop ecx
mov bl, al
pop ecx
lea eax, [ebp - 0x58]
call fcn.0040d771
mov al, bl
call fcn.0041c2c3
ret

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

Disassembly:
push 0x20
mov eax, 0x433bef
call fcn.0041c240
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x2c]
call fcn.00401680
and dword [ebp - 4], 0
mov eax, esi
push 0x24
push eax
call fcn.0040c035
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x40c5f0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c612
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.00401108
mov al, bl
call fcn.0041c2c3
ret
xor bl, bl
jmp 0x40c5fe

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

Disassembly:
push 0x20
mov eax, 0x433bef
call fcn.0041c240
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x2c]
call fcn.00401680
and dword [ebp - 4], 0
mov eax, esi
push 0x24
push eax
call fcn.0040c035
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x40c649
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c66f
test al, 0x10
jne 0x40c66f
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.00401108
mov al, bl
call fcn.0041c2c3
ret
xor bl, bl
jmp 0x40c65b

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

Disassembly:
push 0x20
mov eax, 0x433bef
call fcn.0041c240
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x2c]
call fcn.00401680
and dword [ebp - 4], 0
mov eax, esi
push 0x24
push eax
call fcn.0040c035
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x40c6a6
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c6cc
test al, 0x10
je 0x40c6cc
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.00401108
mov al, bl
call fcn.0041c2c3
ret
xor bl, bl
jmp 0x40c6b8
Function at 0x40cde5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, 0x100000
cmp dword [ebp + 0xc], eax
push ebx
push esi
jbe 0x40cdfa
mov dword [ebp + 0xc], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x20], ebx
je 0x40cebe
jmp 0x40ceb6
mov ecx, dword [ebp + 0xc]
cmp dword [ebp - 4], ecx
jae 0x40cebe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea esi, [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040c37e
test al, al
jne 0x40ce5c
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push ebx
push dword [ebp - 0xc]
mov eax, edi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.0040c42c
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0xc], esp
call fcn.00401680
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, ebx
jne 0x40cebe
mov ecx, dword [ebp + 8]
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp - 4]
add eax, ecx
push eax
push dword [edi]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
add dword [ebp - 4], ecx
cmp eax, ebx
jne 0x40ce2e
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
pop esi
mov dword [ecx], edx
pop ebx
leave
ret 0xc

Function at 0x40d491
Capabilities:
Set file attributes

Disassembly:
cmp dword [esp + 4], 0xffffffff
jne 0x40d49b
xor al, al
ret
and dword [esp + 4], 0xffffb1af
cmp dword [eax + 0x18], 8
jb 0x40d4ae
mov eax, dword [eax + 4]
jmp 0x40d4b1
add eax, 4
push dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x40d58e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x4412c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [0x4425e8], ebx
push esi
mov esi, ecx
je 0x40d5c3
push 0xffffffffffffffff
push esi
mov eax, 0x4425d4
call fcn.004011e7
mov al, 1
jmp 0x40d65f
push 0x20a
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call fcn.004180a0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x40d65d
push edi
push 0x410
lea eax, [ebp - 0x622]
push ebx
push eax
mov word [ebp - 6], bx
mov word [ebp - 0x624], bx
call fcn.004180a0
add esp, 0xc
mov edi, 0x208
push edi
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, edi
pop edi
ja 0x40d64d
cmp eax, ebx
je 0x40d64d
mov word [ebp + eax*2 - 0x624], bx
lea eax, [ebp - 0x624]
jmp 0x40d653
lea eax, [ebp - 0x210]
call fcn.0040109a
jmp 0x40d5bc
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00417afe
leave
ret
Function at 0x40df41
Capabilities:
Get session user name

Disassembly:
push ebp
sub esp, 0x244
lea ebp, [esp - 4]
mov eax, dword [0x4412c4]
xor eax, ebp
mov dword [ebp + 0x244], eax
push 0xc
mov eax, 0x433b42
call fcn.0041c1d7
mov esi, ecx
lea ebx, [esi + 0x84]
xor edi, edi
mov dword [ebx + 0x18], 7
mov dword [ebx + 0x14], edi
mov dword [ebp - 0x10], esi
mov word [ebx + 4], di
mov dword [ebp - 4], edi
call fcn.0040e135
call fcn.0040ed58
cmp byte [eax + 0x134], 0
je 0x40e0af
call fcn.0040ed58
lea esi, [ebp + 0x1c]
call fcn.00401680
mov byte [ebp - 4], 1
call fcn.0040ed58
cmp dword [ebp + 0x30], edi
mov dword [ebp - 0x18], eax
jne 0x40dfc4
mov ecx, esi
call fcn.0040c435
cmp dword [ebp + 0x30], edi
je 0x40dfe6
mov edi, dword [ebp + 0x30]
dec edi
lea eax, [ebp + 0x1c]
call fcn.0040b36a
cmp word [eax], 0x5c
je 0x40dfe4
push 0x438a58
lea eax, [ebp + 0x1c]
push eax
call fcn.00401053
xor edi, edi
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], edi
mov word [ebp + 4], di
push 0x208
lea eax, [ebp + 0x3a]
push edi
mov byte [ebp - 4], 2
push eax
mov word [ebp + 0x38], di
call fcn.004180a0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x38]
push eax
mov dword [ebp - 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp + 0x38]
lea esi, [ebp]
mov word [ebp + 0x23e], di
call fcn.0040109a
mov eax, esi
push eax
call fcn.0040b0a3
pop ecx
push 0xffffffffffffffff
mov eax, esi
push edi
lea esi, [ebp + 0x1c]
call fcn.00401286
push 0x438a5c
mov eax, esi
push eax
call fcn.00401053
mov eax, dword [ebp - 0x18]
push 0xffffffffffffffff
push edi
add eax, 0x70
call fcn.00401286
push str..RCStat.data
mov eax, esi
push eax
call fcn.00401053
cmp byte [ebp + 0x250], 0
je 0x40e089
push str..pending
mov eax, esi
push eax
call fcn.00401053
push 0xffffffffffffffff
push ebx
xor ebx, ebx
lea eax, [ebp + 0x1c]
call fcn.004011e7
push ebx
push 1
lea esi, [ebp]
call fcn.00401108
push ebx
push 1
lea esi, [ebp + 0x1c]
call fcn.00401108
mov esi, dword [ebp - 0x10]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x244]
xor ecx, ebp
call fcn.00417afe
add ebp, 0x248
leave
ret 4
Function at 0x40f5d3
Capabilities:
Get session user name

Disassembly:
push ebp
sub esp, 0x228
lea ebp, [esp - 4]
mov eax, dword [0x4412c4]
xor eax, ebp
mov dword [ebp + 0x228], eax
push 0x24
mov eax, 0x4347d8
call fcn.0041c1d7
mov eax, dword [ebp + 0x234]
push 7
mov dword [ebp - 0x10], ecx
xor ecx, ecx
pop esi
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ecx
mov dword [ebp - 0x14], edi
mov word [edi + 4], cx
mov dword [ebp - 4], ecx
mov dword [edi + 0x34], esi
mov dword [edi + 0x30], ecx
mov word [edi + 0x20], cx
mov dword [edi + 0x50], esi
mov dword [edi + 0x4c], ecx
mov word [edi + 0x3c], cx
mov dword [edi + 0x74], esi
mov dword [edi + 0x70], ecx
mov word [edi + 0x60], cx
lea edx, [edi + 0x78]
mov dword [edx + 0x18], esi
mov dword [edx + 0x14], ecx
mov word [edx + 4], cx
lea edx, [edi + 0x94]
mov dword [edx + 0x18], esi
mov dword [edx + 0x14], ecx
mov word [edx + 4], cx
lea edx, [edi + 0xb0]
mov dword [edx + 0x18], esi
mov dword [edx + 0x14], ecx
mov word [edx + 4], cx
lea edx, [edi + 0xcc]
mov dword [edx + 0x18], esi
mov dword [edx + 0x14], ecx
mov word [edx + 4], cx
lea edx, [edi + 0xe8]
mov dword [edx + 0x18], esi
mov dword [edx + 0x14], ecx
mov word [edx + 4], cx
lea ebx, [edi + 0x104]
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x14], ecx
mov word [ebx + 4], cx
lea ebx, [edi + 0x120]
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x14], ecx
mov word [ebx + 4], cx
push 0xffffffffffffffff
push edx
xor ebx, ebx
mov byte [ebp - 4], 0xa
call fcn.004011e7
push 0xffffffffffffffff
lea eax, [edi + 0x104]
push eax
mov eax, dword [ebp - 0x10]
call fcn.004011e7
call fcn.0040ed58
push 0xffffffffffffffff
lea ecx, [edi + 0x120]
add eax, 0x70
push ecx
call fcn.004011e7
push str..tmp
lea eax, [edi + 0x120]
push eax
call fcn.00401053
push ebx
call fcn.00417d4c
push eax
call fcn.00417b0d
pop ecx
pop ecx
mov dword [edi + 0x54], ebx
mov dword [edi + 0x58], ebx
mov byte [edi + 0x13c], bl
call fcn.0040ed58
cmp byte [eax + 0x134], bl
je 0x40f7c2
lea ecx, [edi + 0xcc]
call fcn.0040c435
cmp dword [edi + 0xe0], ebx
je 0x40f7c2
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
mov word [ebp + 4], bx
push 0x208
lea eax, [ebp + 0x1e]
push ebx
mov byte [ebp - 4], 0xb
push eax
mov word [ebp + 0x1c], bx
call fcn.004180a0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x1c]
push eax
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp + 0x1c]
lea esi, [ebp]
mov word [ebp + 0x222], bx
call fcn.0040109a
mov eax, esi
push eax
call fcn.0040b0a3
pop ecx
push 0xffffffffffffffff
push ebx
lea eax, [edi + 0x120]
call fcn.00401286
mov eax, esi
push eax
lea esi, [edi + 0xcc]
push esi
lea ebx, [ebp - 0x30]
call fcn.0040c11b
pop ecx
pop ecx
push 0xffffffffffffffff
push esi
xor ebx, ebx
mov byte [ebp - 4], 0xc
call fcn.004011e7
push ebx
push 1
lea esi, [ebp - 0x30]
call fcn.00401108
push ebx
push 1
lea esi, [ebp]
call fcn.00401108
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x228]
xor ecx, ebp
call fcn.00417afe
add ebp, 0x22c
leave
ret 4
Function at 0x415910
Capabilities:
Connect to http server

Disassembly:
push ebx
push edi
xor edi, edi
cmp dword [esi], edi
mov ebx, eax
mov dword [esi + 8], edi
jne 0x415921
xor al, al
jmp 0x41595f
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebx + 0x18], 8
jb 0x415933
mov ebx, dword [ebx + 4]
jmp 0x415936
add ebx, 4
push edi
push edi
push 3
push edi
push edi
push 0x50
push ebx
push dword [esi]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x415957
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 8], eax
xor eax, eax
cmp dword [esi + 4], edi
setne al
pop edi
pop ebx
ret
Function at 0x416e3d
Capabilities:
Encode data using base64

Disassembly:
push 0x1c
mov eax, 0x4331c7
call fcn.0041c1d7
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], edi
call fcn.004089bc
xor ebx, ebx
inc ebx
cmp dword [ebp + 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x24], ebx
je 0x416f9b
mov eax, dword [ebp + 8]
dec dword [ebp + 0xc]
mov al, byte [eax]
inc edi
inc dword [ebp + 8]
cmp edi, 3
mov byte [ebp + edi - 0x11], al
mov dword [ebp - 0x18], edi
jne 0x416eea
mov al, byte [ebp - 0x10]
mov cl, byte [ebp - 0xf]
shr al, 2
mov byte [ebp - 0x14], al
mov al, byte [ebp - 0x10]
and al, 3
shl al, 4
shr cl, 4
add al, cl
mov cl, byte [ebp - 0xe]
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0xf]
and al, 0xf
shl al, 2
shr cl, 6
add al, cl
mov byte [ebp - 0x12], al
mov al, byte [ebp - 0xe]
and al, 0x3f
and dword [ebp - 0x18], 0
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 0x18]
movzx esi, byte [ebp + eax - 0x14]
call fcn.0040d166
mov al, byte [eax]
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 0x20], al
push dword [ebp - 0x20]
call fcn.004097be
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 4
jl 0x416ebd
and dword [ebp - 0x18], 0
mov edi, dword [ebp - 0x18]
cmp dword [ebp + 0xc], 0
jne 0x416e6a
test edi, edi
je 0x416f9b
cmp edi, 3
jge 0x416f16
push 3
pop ecx
sub ecx, edi
push ecx
lea eax, [ebp + edi - 0x10]
push 0
push eax
call fcn.004180a0
add esp, 0xc
mov cl, byte [ebp - 0x10]
mov al, cl
shr al, 2
mov byte [ebp - 0x14], al
mov al, byte [ebp - 0xf]
and cl, 3
mov dl, al
shl cl, 4
shr dl, 4
add cl, dl
mov byte [ebp - 0x13], cl
mov cl, byte [ebp - 0xe]
and dword [ebp - 0x10], 0
and al, 0xf
mov dl, cl
shl al, 2
shr dl, 6
add al, dl
mov byte [ebp - 0x12], al
lea eax, [edi + 1]
and cl, 0x3f
test eax, eax
mov byte [ebp - 0x11], cl
mov dword [ebp - 0x28], eax
jle 0x416f85
mov eax, dword [ebp - 0x10]
movzx esi, byte [ebp + eax - 0x14]
call fcn.0040d166
mov al, byte [eax]
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 0x20], al
push dword [ebp - 0x20]
call fcn.004097be
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x28]
jl 0x416f5a
mov edi, dword [ebp - 0x18]
push 3
pop esi
cmp edi, esi
jge 0x416f9b
sub esi, edi
mov edi, dword [ebp - 0x1c]
push 0x3d
call fcn.004097be
dec esi
jne 0x416f8e
mov eax, dword [ebp - 0x1c]
call fcn.0041c2af
ret

Function at 0x417afe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4412c4]
jne 0x417b08
repz ret
jmp fcn.0041f4b1
Function at 0x41ff16
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4412e0]
je 0x41ff31
inc edi
cmp edi, 0x17
jb 0x41ff22
cmp edi, 0x17
jae 0x4200b1
push ebp
push 3
call fcn.004278ea
cmp eax, 1
pop ecx
je 0x42007d
push 3
call fcn.004278ea
test eax, eax
pop ecx
jne 0x41ff65
cmp dword [0x441110], 1
je 0x42007d
cmp ebx, 0xfc
je 0x4200b0
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x443378
push ebp
call fcn.0041f29e
add esp, 0xc
test eax, eax
je 0x41ff9b
push esi
push esi
push esi
push esi
push esi
call fcn.00417ba1
add esp, 0x14
push 0x104
mov esi, 0x443391
push esi
push 0
mov byte [0x443495], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41ffdf
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041f29e
add esp, 0xc
test eax, eax
je 0x41ffdf
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00417ba1
add esp, 0x14
push esi
call fcn.00417e30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x420024
push esi
call fcn.00417e30
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x44368c
push 0x437504
sub ecx, eax
push ecx
push eax
call fcn.00425f26
add esp, 0x14
test eax, eax
je 0x420024
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00417ba1
add esp, 0x14
jmp 0x420026
xor esi, esi
push 0x437500
push ebx
push ebp
call fcn.00425e60
add esp, 0xc
test eax, eax
je 0x420046
push esi
push esi
push esi
push esi
push esi
call fcn.00417ba1
add esp, 0x14
push dword [edi*8 + 0x4412e4]
push ebx
push ebp
call fcn.00425e60
add esp, 0xc
test eax, eax
je 0x420068
push esi
push esi
push esi
push esi
push esi
call fcn.00417ba1
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042772d
add esp, 0xc
jmp 0x4200b0
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4200b0
cmp ebp, 0xffffffff
je 0x4200b0
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4412e4]
push dword [esi]
call fcn.00417e30
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x42772d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041f68f
xor ebx, ebx
cmp dword [0x443ab4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x427803
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4278e3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4278e3
push eax
call fcn.0041f621
mov dword [esp], 0x438650
push edi
mov dword [0x443ab4], eax
call esi
push eax
call fcn.0041f621
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x443ab8], eax
call esi
push eax
call fcn.0041f621
mov dword [0x443abc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041ef1a
test eax, eax
pop ecx
pop ecx
je 0x4277d1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00417ba1
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x427803
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041f621
cmp eax, ebx
pop ecx
mov dword [0x443ac4], eax
je 0x427803
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041f621
pop ecx
mov dword [0x443ac0], eax
mov eax, dword [0x443ac0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x427888
cmp dword [0x443ac4], ecx
je 0x427888
push eax
call fcn.0041f698
push dword [0x443ac4]
mov esi, eax
call fcn.0041f698
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x427888
cmp edi, ebx
je 0x427888
call esi
cmp eax, ebx
je 0x427855
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x427855
test byte [ebp - 0x18], 1
jne 0x427888
lea eax, [ebp - 0x10]
push eax
call fcn.0041ef51
test eax, eax
pop ecx
je 0x427870
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00417ba1
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x42787f
or dword [ebp + 0x10], 0x200000
jmp 0x4278c3
or dword [ebp + 0x10], 0x40000
jmp 0x4278c3
mov eax, dword [0x443ab8]
cmp eax, dword [ebp - 8]
je 0x4278c3
push eax
call fcn.0041f698
cmp eax, ebx
pop ecx
je 0x4278c3
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4278c3
mov eax, dword [0x443abc]
cmp eax, dword [ebp - 8]
je 0x4278c3
push eax
call fcn.0041f698
cmp eax, ebx
pop ecx
je 0x4278c3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x443ab4]
call fcn.0041f698
cmp eax, ebx
pop ecx
je 0x4278e3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4278e5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42cb2c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4412c4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042cac1
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004180a0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x42cb7b
cmp dword [ebp - 0x1c], 5
jb 0x42cb93
jmp 0x42cb8f
cmp dword [ebp - 0x10], 1
jne 0x42cb93
cmp dword [ebp - 0x1c], 4
ja 0x42cb8f
jne 0x42cb93
cmp dword [ebp - 0x18], 0
jbe 0x42cb93
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4387a8
call fcn.0042c995
test eax, eax
jge 0x42cbb4
mov byte [0x443c24], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00417afe
add ebp, 0x78
leave
ret

Function at 0x42cd66
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x443c0c], 0
push esi
jne 0x42ccd9
call fcn.0042cc04
test eax, eax
je 0x42cd1c
mov eax, dword [0x443c0c]
cmp eax, 1
jne 0x42ccfa
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42cd1c
pop esi
ret
push eax
call dword [0x443c14]
test eax, eax
jne 0x42cd64
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x42cd20
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x443c0c]
call dword [0x443c14]
mov edi, eax
test edi, edi
je 0x42cd47
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x42cd63
lea edi, [esi + 0xff0]
push esi
push dword [0x443c0c]
call dword [0x443c10]
add esi, 0x10
cmp esi, edi
jb 0x42cd4d
mov eax, esi
pop edi
pop esi
ret
jmp 0x42ccc6