joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40eaba
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 0x40eacf
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 0x40eb93
jmp 0x40eb8b
mov ecx, dword [ebp + 0xc]
cmp dword [ebp - 4], ecx
jae 0x40eb93
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.0040ddf5
test al, al
jne 0x40eb31
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.0040dea3
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0xc], esp
call fcn.00401a93
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, ebx
jne 0x40eb93
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 0x40eb03
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
pop esi
mov dword [ecx], edx
pop ebx
leave
ret 0xc

Function at 0x40ef0b
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
mov esi, ecx
mov edi, eax
call fcn.0040ef77
cmp dword [edi + 0x14], 0
je 0x40ef2c
cmp dword [edi + 0x18], 8
jb 0x40ef27
mov edi, dword [edi + 4]
jmp 0x40ef2e
add edi, 4
jmp 0x40ef2e
xor edi, edi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [esi + 4], eax
je 0x40ef58
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
and eax, 0xfffffffe
inc eax
inc eax
mov dword [esi], eax
jmp 0x40ef5e
mov dword [esi], 1
pop edi
mov eax, esi
pop esi
jmp 0x40ef67
cmp dword [eax + 4], 0
setne al
ret

Function at 0x40f27b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4432c4]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x210], 0
push esi
push 0x20a
lea eax, [ebp - 0x20e]
push 0
push eax
mov esi, ecx
call fcn.0041a5f0
add esp, 0xc
push 0x105
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x40f2dd
and word [ebp - 6], 0
lea eax, [ebp - 0x210]
call fcn.004010b5
mov al, 1
jmp 0x40f2df
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00419c60
leave
ret

Function at 0x40f2ec
Capabilities:
Set file attributes

Disassembly:
cmp dword [esp + 4], 0xffffffff
jne 0x40f2f6
xor al, al
ret
and dword [esp + 4], 0xffffb1af
cmp dword [eax + 0x18], 8
jb 0x40f309
mov eax, dword [eax + 4]
jmp 0x40f30c
add eax, 4
push dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret
Function at 0x40f31d
Capabilities:
Move file

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x40f328
mov eax, dword [eax + 4]
jmp 0x40f32b
add eax, 4
cmp dword [ecx + 0x18], 8
jb 0x40f336
mov ecx, dword [ecx + 4]
jmp 0x40f339
add ecx, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret

Function at 0x40f3f6
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
push edi
lea edi, [esi + 4]
jb 0x40f40e
mov eax, dword [edi]
jmp 0x40f410
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40f422
mov al, 1
jmp 0x40f4be
cmp dword [esi + 0x18], 8
jb 0x40f42c
mov eax, dword [edi]
jmp 0x40f42e
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40f4bc
cmp dword [esi + 0x18], 8
jb 0x40f447
mov eax, dword [edi]
jmp 0x40f449
mov eax, edi
push ebx
lea ecx, [ebp - 0x20]
call fcn.0040102d
push 0
lea eax, [ebp - 0x20]
call fcn.0040f2ec
pop ecx
mov bl, al
neg bl
push 0
sbb bl, bl
push 1
lea esi, [ebp - 0x20]
inc bl
call fcn.00401197
test bl, bl
pop ebx
jne 0x40f4bc
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
jb 0x40f483
mov eax, dword [edi]
jmp 0x40f485
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f41b
cmp dword [esi + 0x18], 8
jb 0x40f49a
mov eax, dword [edi]
jmp 0x40f49c
mov eax, edi
lea ecx, [ebp - 0x20]
call fcn.0040102d
push dword [ebp - 4]
lea eax, [ebp - 0x20]
call fcn.0040f2ec
pop ecx
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401197
xor al, al
pop edi
pop esi
leave
ret

Function at 0x40f4c2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x4432c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [0x4445fc], ebx
push esi
mov esi, ecx
je 0x40f4f7
push 0xffffffffffffffff
push esi
mov eax, 0x4445e8
call fcn.00401276
mov al, 1
jmp 0x40f593
push 0x20a
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call fcn.0041a5f0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x40f591
push edi
push 0x410
lea eax, [ebp - 0x622]
push ebx
push eax
mov word [ebp - 6], bx
mov word [ebp - 0x624], bx
call fcn.0041a5f0
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 0x40f581
cmp eax, ebx
je 0x40f581
mov word [ebp + eax*2 - 0x624], bx
lea eax, [ebp - 0x624]
jmp 0x40f587
lea eax, [ebp - 0x210]
call fcn.004010b5
jmp 0x40f4f0
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00419c60
leave
ret
Function at 0x40f5a1
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4432c4]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [ebp + 0x19c]
push ebx
push esi
push edi
xor esi, esi
push 0x20a
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7a]
push esi
push eax
mov ebx, ecx
mov edi, edx
mov word [ebp - 0x7c], si
call fcn.0041a5f0
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x40f5ef
mov edi, dword [edi + 4]
jmp 0x40f5f2
add edi, 4
cmp dword [ebx + 0x18], 8
jb 0x40f5fd
mov ebx, dword [ebx + 4]
jmp 0x40f600
add ebx, 4
lea eax, [ebp - 0x7c]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x40f627
mov word [ebp + 0x18e], si
mov esi, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
call fcn.004010b5
mov al, 1
jmp 0x40f629
xor al, al
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419c60
add ebp, 0x194
leave
ret

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

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x40f722
mov eax, dword [eax + 4]
jmp 0x40f725
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret
Function at 0x410091
Capabilities:
Get session user name

Disassembly:
push ebp
sub esp, 0x244
lea ebp, [esp - 4]
mov eax, dword [0x4432c4]
xor eax, ebp
mov dword [ebp + 0x244], eax
push 0xc
mov eax, 0x435d83
call fcn.0041e33e
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.00410285
call fcn.00410ea8
cmp byte [eax + 0x134], 0
je 0x4101ff
call fcn.00410ea8
lea esi, [ebp + 0x1c]
call fcn.00401a93
mov byte [ebp - 4], 1
call fcn.00410ea8
cmp dword [ebp + 0x30], edi
mov dword [ebp - 0x18], eax
jne 0x410114
mov ecx, esi
call fcn.0040e032
cmp dword [ebp + 0x30], edi
je 0x410136
mov edi, dword [ebp + 0x30]
dec edi
lea eax, [ebp + 0x1c]
call fcn.0040cdb9
cmp word [eax], 0x5c
je 0x410134
push 0x43aa78
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.0041a5f0
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.004010b5
mov eax, esi
push eax
call fcn.0040caf2
pop ecx
push 0xffffffffffffffff
mov eax, esi
push edi
lea esi, [ebp + 0x1c]
call fcn.00401315
push 0x43aa7c
mov eax, esi
push eax
call fcn.00401053
mov eax, dword [ebp - 0x18]
push 0xffffffffffffffff
push edi
add eax, 0x70
call fcn.00401315
push str..RCStat.data
mov eax, esi
push eax
call fcn.00401053
cmp byte [ebp + 0x250], 0
je 0x4101d9
push str..pending
mov eax, esi
push eax
call fcn.00401053
push 0xffffffffffffffff
push ebx
xor ebx, ebx
lea eax, [ebp + 0x1c]
call fcn.00401276
push ebx
push 1
lea esi, [ebp]
call fcn.00401197
push ebx
push 1
lea esi, [ebp + 0x1c]
call fcn.00401197
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.00419c60
add ebp, 0x248
leave
ret 4
Function at 0x411723
Capabilities:
Get session user name

Disassembly:
push ebp
sub esp, 0x228
lea ebp, [esp - 4]
mov eax, dword [0x4432c4]
xor eax, ebp
mov dword [ebp + 0x228], eax
push 0x24
mov eax, 0x436a0c
call fcn.0041e33e
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.00401276
push 0xffffffffffffffff
lea eax, [edi + 0x104]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00401276
call fcn.00410ea8
push 0xffffffffffffffff
lea ecx, [edi + 0x120]
add eax, 0x70
push ecx
call fcn.00401276
push str..tmp
lea eax, [edi + 0x120]
push eax
call fcn.00401053
push ebx
call fcn.00419eae
push eax
call fcn.00419c6f
pop ecx
pop ecx
mov dword [edi + 0x54], ebx
mov dword [edi + 0x58], ebx
mov byte [edi + 0x13c], bl
call fcn.00410ea8
cmp byte [eax + 0x134], bl
je 0x411912
lea ecx, [edi + 0xcc]
call fcn.0040e032
cmp dword [edi + 0xe0], ebx
je 0x411912
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.0041a5f0
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.004010b5
mov eax, esi
push eax
call fcn.0040caf2
pop ecx
push 0xffffffffffffffff
push ebx
lea eax, [edi + 0x120]
call fcn.00401315
mov eax, esi
push eax
lea esi, [edi + 0xcc]
push esi
lea ebx, [ebp - 0x30]
call fcn.0040db92
pop ecx
pop ecx
push 0xffffffffffffffff
push esi
xor ebx, ebx
mov byte [ebp - 4], 0xc
call fcn.00401276
push ebx
push 1
lea esi, [ebp - 0x30]
call fcn.00401197
push ebx
push 1
lea esi, [ebp]
call fcn.00401197
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.00419c60
add ebp, 0x22c
leave
ret 4
Function at 0x415852
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 0x415863
xor al, al
jmp 0x4158a1
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebx + 0x18], 8
jb 0x415875
mov ebx, dword [ebx + 4]
jmp 0x415878
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 0x415899
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 0x418f9e
Capabilities:
Encode data using base64

Disassembly:
push 0x1c
mov eax, 0x435317
call fcn.0041e33e
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], edi
call fcn.0040a2d8
xor ebx, ebx
inc ebx
cmp dword [ebp + 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x24], ebx
je 0x4190fc
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 0x41904b
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.0040ee3e
mov al, byte [eax]
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 0x20], al
push dword [ebp - 0x20]
call fcn.0040b084
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 4
jl 0x41901e
and dword [ebp - 0x18], 0
mov edi, dword [ebp - 0x18]
cmp dword [ebp + 0xc], 0
jne 0x418fcb
test edi, edi
je 0x4190fc
cmp edi, 3
jge 0x419077
push 3
pop ecx
sub ecx, edi
push ecx
lea eax, [ebp + edi - 0x10]
push 0
push eax
call fcn.0041a5f0
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 0x4190e6
mov eax, dword [ebp - 0x10]
movzx esi, byte [ebp + eax - 0x14]
call fcn.0040ee3e
mov al, byte [eax]
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 0x20], al
push dword [ebp - 0x20]
call fcn.0040b084
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x28]
jl 0x4190bb
mov edi, dword [ebp - 0x18]
push 3
pop esi
cmp edi, esi
jge 0x4190fc
sub esi, edi
mov edi, dword [ebp - 0x1c]
push 0x3d
call fcn.0040b084
dec esi
jne 0x4190ef
mov eax, dword [ebp - 0x1c]
call fcn.0041e416
ret

Function at 0x419c60
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4432c4]
jne 0x419c6a
repz ret
jmp fcn.0042161b
Function at 0x422076
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 + 0x4432e0]
je 0x422091
inc edi
cmp edi, 0x17
jb 0x422082
cmp edi, 0x17
jae 0x422211
push ebp
push 3
call fcn.00429a3a
cmp eax, 1
pop ecx
je 0x4221dd
push 3
call fcn.00429a3a
test eax, eax
pop ecx
jne 0x4220c5
cmp dword [0x443110], 1
je 0x4221dd
cmp ebx, 0xfc
je 0x422210
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x445398
push ebp
call fcn.00421408
add esp, 0xc
test eax, eax
je 0x4220fb
push esi
push esi
push esi
push esi
push esi
call fcn.00419d03
add esp, 0x14
push 0x104
mov esi, 0x4453b1
push esi
push 0
mov byte [0x4454b5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42213f
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00421408
add esp, 0xc
test eax, eax
je 0x42213f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00419d03
add esp, 0x14
push esi
call fcn.00419f90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x422184
push esi
call fcn.00419f90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4456ac
push 0x439524
sub ecx, eax
push ecx
push eax
call fcn.00428086
add esp, 0x14
test eax, eax
je 0x422184
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00419d03
add esp, 0x14
jmp 0x422186
xor esi, esi
push 0x439520
push ebx
push ebp
call fcn.00427fca
add esp, 0xc
test eax, eax
je 0x4221a6
push esi
push esi
push esi
push esi
push esi
call fcn.00419d03
add esp, 0x14
push dword [edi*8 + 0x4432e4]
push ebx
push ebp
call fcn.00427fca
add esp, 0xc
test eax, eax
je 0x4221c8
push esi
push esi
push esi
push esi
push esi
call fcn.00419d03
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042987d
add esp, 0xc
jmp 0x422210
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x422210
cmp ebp, 0xffffffff
je 0x422210
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4432e4]
push dword [esi]
call fcn.00419f90
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 0x42987d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004217f9
xor ebx, ebx
cmp dword [0x445ad4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x429953
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x429a33
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x429a33
push eax
call fcn.0042178b
mov dword [esp], 0x43a670
push edi
mov dword [0x445ad4], eax
call esi
push eax
call fcn.0042178b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x445ad8], eax
call esi
push eax
call fcn.0042178b
mov dword [0x445adc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00421084
test eax, eax
pop ecx
pop ecx
je 0x429921
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00419d03
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x429953
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042178b
cmp eax, ebx
pop ecx
mov dword [0x445ae4], eax
je 0x429953
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042178b
pop ecx
mov dword [0x445ae0], eax
mov eax, dword [0x445ae0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4299d8
cmp dword [0x445ae4], ecx
je 0x4299d8
push eax
call fcn.00421802
push dword [0x445ae4]
mov esi, eax
call fcn.00421802
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4299d8
cmp edi, ebx
je 0x4299d8
call esi
cmp eax, ebx
je 0x4299a5
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4299a5
test byte [ebp - 0x18], 1
jne 0x4299d8
lea eax, [ebp - 0x10]
push eax
call fcn.004210bb
test eax, eax
pop ecx
je 0x4299c0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00419d03
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4299cf
or dword [ebp + 0x10], 0x200000
jmp 0x429a13
or dword [ebp + 0x10], 0x40000
jmp 0x429a13
mov eax, dword [0x445ad8]
cmp eax, dword [ebp - 8]
je 0x429a13
push eax
call fcn.00421802
cmp eax, ebx
pop ecx
je 0x429a13
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x429a13
mov eax, dword [0x445adc]
cmp eax, dword [ebp - 8]
je 0x429a13
push eax
call fcn.00421802
cmp eax, ebx
pop ecx
je 0x429a13
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x445ad4]
call fcn.00421802
cmp eax, ebx
pop ecx
je 0x429a33
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x429a35
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42ec7c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4432c4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042ec11
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.0041a5f0
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 0x42eccb
cmp dword [ebp - 0x1c], 5
jb 0x42ece3
jmp 0x42ecdf
cmp dword [ebp - 0x10], 1
jne 0x42ece3
cmp dword [ebp - 0x1c], 4
ja 0x42ecdf
jne 0x42ece3
cmp dword [ebp - 0x18], 0
jbe 0x42ece3
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43a7c8
call fcn.0042eae5
test eax, eax
jge 0x42ed04
mov byte [0x445c44], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00419c60
add ebp, 0x78
leave
ret

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

Disassembly:
cmp dword [0x445c2c], 0
push esi
jne 0x42ee29
call fcn.0042ed54
test eax, eax
je 0x42ee6c
mov eax, dword [0x445c2c]
cmp eax, 1
jne 0x42ee4a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42ee6c
pop esi
ret
push eax
call dword [0x445c34]
test eax, eax
jne 0x42eeb4
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 0x42ee70
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x445c2c]
call dword [0x445c34]
mov edi, eax
test edi, edi
je 0x42ee97
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x42eeb3
lea edi, [esi + 0xff0]
push esi
push dword [0x445c2c]
call dword [0x445c30]
add esi, 0x10
cmp esi, edi
jb 0x42ee9d
mov eax, esi
pop edi
pop esi
ret
jmp 0x42ee16