joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a94a
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x417ddc
call fcn.00410b5c
sub esp, 0x60
mov eax, dword [0x41d280]
push ebx
push esi
push edi
push 7
pop esi
mov dword [ebp - 0x6c], ecx
xor edi, edi
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
call fcn.004016a1
push edi
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], edi
mov dword [ebp - 0x4c], esi
call fcn.004016a1
lea ecx, [ebp - 0x48]
call fcn.00401e8d
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 1
mov dword [ebp - 0x68], edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor esi, esi
cmp dword [ebp - 0x68], edi
mov ebx, eax
jle 0x40a9d7
push dword [ebx + esi*4]
lea ecx, [ebp - 0x2c]
call fcn.004028c5
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004094fd
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x64]
push eax
call fcn.0040a8ca
inc esi
cmp esi, dword [ebp - 0x68]
jl 0x40a9aa
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x64]
call fcn.00404e62
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401b0c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor eax, eax
pop ebx
call fcn.004102ee
leave
ret 8
Function at 0x40ad5e
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
je 0x40ad78
mov dword [eax], ecx
mov eax, dword [0x41debc]
cmp eax, dword [0x41dedc]
push ebx
push esi
push edi
jae 0x40aed4
mov ebx, eax
inc eax
mov dword [0x41debc], eax
mov eax, dword [0x423f48]
lea eax, [eax*2 + 0x421f30]
push eax
mov esi, ebx
push ebx
mov edi, 0x41dec0
shl esi, 5
add esi, dword [0x41ded0]
push edi
call fcn.0040c0d4
mov eax, dword [ebp + 8]
add esp, 0xc
test eax, eax
je 0x40adc8
mov dword [eax], 0x421f30
cmp dword [ebp + 0xc], 0
je 0x40aed4
cmp byte [esi + 0x19], 0
jne 0x40ae22
push 0x41d224
push 0x41d21c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x423f40
push 0x422f30
push 0x423f44
push ebx
push 0x41df10
push edi
call fcn.0040ca64
add esp, 0x28
test eax, eax
je 0x40ae22
xor ecx, ecx
cmp eax, 2
setne cl
lea ecx, [ecx + ecx - 0x79e7fffd]
mov eax, ecx
jmp 0x40aed6
mov edi, dword [0x423f48]
lea edi, [edi*2 + 0x421f30]
cmp word [edi], 0
je 0x40ae5b
mov ebx, edi
cmp word [edi], 0x2f
jne 0x40ae51
and word [edi], 0
push 0x421f30
call fcn.0040d071
pop ecx
mov word [edi], 0x5c
inc ebx
inc ebx
cmp word [ebx], 0
mov edi, ebx
jne 0x40ae37
cmp byte [esi + 0x19], 0
push 0x421f30
je 0x40ae6e
call fcn.0040d071
pop ecx
jmp 0x40aed4
lea eax, [ebp - 0x10]
push eax
call fcn.0040d08a
test eax, eax
pop ecx
pop ecx
jne 0x40aeb9
mov eax, dword [ebp - 8]
mov ecx, dword [0x422f30]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
add ecx, eax
push ecx
lea eax, [ebp - 0x10]
push eax
call fcn.0040cf54
add esp, 0xc
test eax, eax
jne 0x40aeb9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jne 0x40aeb9
lea eax, [ebp - 0x10]
push eax
call fcn.0040ced5
test eax, eax
pop ecx
je 0x40aec0
mov eax, 0x86180003
jmp 0x40aed6
cmp byte [esi + 0x1d], 0
je 0x40aed4
push dword [esi + 0x14]
push 0x421f30
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40cefa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [esi]
test edi, edi
je 0x40cf45
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x40cf16
mov eax, edi
and dword [ebp + 0x10], 0
push 0
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x40cf4b
test ecx, ecx
je 0x40cf45
test edi, edi
ja 0x40cf0b
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x40cf54
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [esi]
test edi, edi
je 0x40cf9f
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x40cf70
mov eax, edi
and dword [ebp + 0x10], 0
push 0
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x40cfa5
test ecx, ecx
je 0x40cf9f
test edi, edi
ja 0x40cf65
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x40f5aa
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x40f5c3
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx - 4]
mov dword [ebp - 4], ecx
lea esi, [eax + edi]
jmp 0x40f5e6
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x40f5eb
inc esi
cmp esi, dword [ebp - 4]
jb 0x40f5dd
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 4]
mov dword [ebp - 8], eax
jae 0x40f6df
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x40f621
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp + 0xc], eax
je 0x40f64e
cmp cl, 0xff
je 0x40f64e
and edx, 3
shl edx, 1
or edx, 1
inc eax
jmp 0x40f5d8
dec ecx
shl edx, cl
and edx, 7
je 0x40f607
movzx ecx, byte [edx + 0x419200]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x4191f8], 0
mov cl, byte [ebx + 4]
je 0x40f649
test cl, cl
je 0x40f649
cmp cl, 0xff
jne 0x40f607
mov dword [ebp + 0xc], eax
jmp 0x40f616
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x40f677
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x40f67e
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x40f6b2
movzx edi, byte [edx + 0x419200]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x40f69d
cmp al, 0xff
jne 0x40f6af
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x40f669
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x40f5d8
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
Function at 0x410c3f
Capabilities:
Terminate process

Disassembly:
push 8
push 0x419330
call fcn.00410400
push 8
call fcn.00411cc4
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x42400c], esi
jne 0x410c73
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x424008], esi
mov al, byte [ebp + 0x10]
mov byte [0x424004], al
cmp dword [ebp + 0xc], edi
jne 0x410cbd
cmp dword [0x427958], edi
je 0x410cad
mov eax, dword [0x427954]
sub eax, 4
mov dword [0x427954], eax
cmp eax, dword [0x427958]
jb 0x410cad
mov eax, dword [eax]
cmp eax, edi
je 0x410c8e
call eax
jmp 0x410c8e
push 0x41d03c
mov eax, 0x41d034
call fcn.00410bbd
pop ecx
push 0x41d048
mov eax, 0x41d040
call fcn.00410bbd
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.00410cee
cmp dword [ebp + 0x10], edi
jne 0x410cfc
mov dword [0x42400c], esi
push dword [ebp + 8]
call fcn.00410b7b
xor edi, edi
xor esi, esi
inc esi
call fcn.0041043b
ret

Function at 0x411409
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x411426
call fcn.004143ee
mov dword [eax], 0x16
xor eax, eax
jmp 0x411490
push esi
push 0x8c
push 1
call fcn.00414bd6
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41147b
push esi
call fcn.004134df
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x411459
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x411374
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x41148f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0041061b
test ebx, ebx
pop ecx
je 0x41148d
push ebx
call fcn.00414400
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4114dd
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4193a0
call fcn.00410400
mov edi, 0x94
mov eax, edi
call fcn.00411100
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x423fcc], ecx
mov eax, dword [esi + 4]
mov dword [0x423fd8], eax
mov edx, dword [esi + 8]
mov dword [0x423fdc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x423fd0], esi
cmp ecx, 2
je 0x41153d
or esi, 0x8000
mov dword [0x423fd0], esi
shl eax, 8
add eax, edx
mov dword [0x423fd4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x411578
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411578
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x411590
cmp eax, 0x20b
je 0x41157d
mov dword [ebp - 0x1c], esi
jmp 0x4115a4
cmp dword [ecx + 0x84], 0xe
jbe 0x411578
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41159e
cmp dword [ecx + 0x74], 0xe
jbe 0x411578
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00412039
pop ecx
test eax, eax
jne 0x4115b8
push 0x1c
call fcn.004114b9
pop ecx
call fcn.004136d9
test eax, eax
jne 0x4115c9
push 0x10
call fcn.004114b9
pop ecx
call fcn.0041381c
mov dword [ebp - 4], esi
call fcn.00415359
test eax, eax
jge 0x4115e2
push 0x1b
call fcn.00411494
pop ecx
call fcn.004152ba
mov dword [0x427944], eax
call fcn.00415150
mov dword [0x424014], eax
call fcn.004150ba
test eax, eax
jge 0x411607
push 8
call fcn.00411494
pop ecx
call fcn.00414e87
test eax, eax
jge 0x411618
push 9
call fcn.00411494
pop ecx
push 1
call fcn.00410bd5
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41162e
push eax
call fcn.00411494
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.00414e41
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x41164f
movzx eax, word [ebp - 0x40]
jmp 0x411652
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00406f5d
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x411670
push edi
call fcn.00410d02
call fcn.00410d24
jmp 0x4116a2
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041043b
ret
Function at 0x411df6
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 0x411e24
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 0x411e2b
cmp ebx, dword [eax + 4]
jae 0x411e2b
xor eax, eax
jmp 0x41201b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x411e3c
xor eax, eax
inc eax
jmp 0x41201a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x411e52
cmp ecx, edx
jae 0x411f97
cmp dword [eax + 4], 0
je 0x411e5b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x411e43
cmp dword [ebp + 8], 0
je 0x411e7d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x411f97
cmp eax, esi
jae 0x411f97
mov eax, dword [0x424180]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x411ea2
cmp dword [esi*4 + 0x424188], edi
je 0x411f9b
inc esi
cmp esi, eax
jl 0x411e90
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x412017
cmp dword [ebp - 8], 0x1000000
jne 0x412017
test byte [ebp - 0xc], 0xcc
je 0x411f20
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x412017
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x412017
cmp word [eax + 0x18], 0x10b
jne 0x412017
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x412017
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x411f20
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x411f20
test byte [ecx + 0x27], 0x80
jne 0x411f97
push 1
push 0x4241c8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x411e34
mov ecx, dword [0x424180]
test ecx, ecx
mov edx, ecx
jle 0x411f54
lea eax, [ecx*4 + 0x424184]
cmp dword [eax], edi
je 0x411f54
dec edx
sub eax, 4
test edx, edx
jg 0x411f48
test edx, edx
jne 0x411f85
push 0xf
pop ebx
cmp ecx, ebx
jg 0x411f61
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x411f79
lea eax, [edx*4 + 0x424188]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x411f67
cmp ecx, 0x10
jge 0x411f85
inc ecx
mov dword [0x424180], ecx
push 0
push 0x4241c8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x411e34
xor eax, eax
jmp 0x41201a
test esi, esi
jle 0x411e34
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4241c8
call ebx
test eax, eax
jne 0x411e34
cmp dword [esi*4 + 0x424188], edi
je 0x411ff1
mov eax, dword [0x424180]
lea esi, [eax - 1]
test esi, esi
jl 0x411fdf
cmp dword [esi*4 + 0x424188], edi
je 0x411fdb
dec esi
jns 0x411fcf
test esi, esi
jge 0x411fef
cmp eax, 0x10
jge 0x411fea
inc eax
mov dword [0x424180], eax
lea esi, [eax - 1]
jmp 0x411ff1
je 0x412009
xor ecx, ecx
test esi, esi
jl 0x412009
lea eax, [ecx*4 + 0x424188]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x411ff7
push 0
push 0x4241c8
call ebx
jmp 0x411e34
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414c91
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x41d280]
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 + 0x41d9f8]
je 0x414cc6
inc eax
cmp eax, 0x13
jb 0x414cb7
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x41d9f8]
jne 0x414dec
mov eax, dword [0x424018]
cmp eax, 1
je 0x414dc4
cmp eax, edx
jne 0x414cf6
cmp dword [0x41d2b4], 1
je 0x414dc4
cmp ecx, 0xfc
je 0x414dec
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 0x414d2c
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004138b0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00410590
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x414d60
mov eax, edi
push eax
call fcn.00410590
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4193e4
push edi
call fcn.00415860
add esp, 0x10
push edi
call fcn.00410590
push dword [esi + 0x41d9fc]
mov ebx, eax
call fcn.00410590
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00411100
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004138b0
push edi
push ebx
call fcn.004138c0
push 0x4193e0
push ebx
call fcn.004138c0
push dword [esi + 0x41d9fc]
push ebx
call fcn.004138c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041575b
add esp, 0x2c
jmp 0x414dec
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x41d9fc]
push dword [esi]
call fcn.00410590
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.004102ee
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x415150
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x424404]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x415199
call ebp
mov esi, eax
cmp esi, ebx
je 0x41517f
mov dword [0x424404], 1
jmp 0x41519e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x415194
push 2
pop eax
mov dword [0x424404], eax
jmp 0x415199
mov eax, dword [0x424404]
cmp eax, 1
jne 0x4151f6
cmp esi, ebx
jne 0x4151b1
call ebp
mov esi, eax
cmp esi, ebx
jne 0x4151b1
xor eax, eax
jmp 0x41529d
cmp word [esi], bx
mov eax, esi
je 0x4151c6
inc eax
inc eax
cmp word [eax], bx
jne 0x4151b8
inc eax
inc eax
cmp word [eax], bx
jne 0x4151b8
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.004110df
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x4151e9
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x41529d
push ebp
push esi
push edi
call fcn.0040fc40
add esp, 0xc
jmp 0x4151db
cmp eax, 2
je 0x4151ff
cmp eax, ebx
jne 0x4151aa
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x4151aa
cmp byte [ebp], bl
mov esi, ebp
je 0x415235
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x4151aa
push esi
add edi, eax
call fcn.00410590
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x415212
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.004110df
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x4152ae
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x41528f
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x4152a4
push edi
call fcn.00410590
push esi
lea edi, [edi + eax + 1]
call fcn.0041056e
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x415255
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.0041061b
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x4151aa
Function at 0x4152ba
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x424408]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x4152fa
call esi
test eax, eax
je 0x4152df
mov dword [0x424408], 1
jmp 0x4152ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4152f6
mov dword [0x424408], 2
jmp 0x415308
xor eax, eax
jmp 0x415356
cmp eax, 1
jne 0x415303
call esi
jmp 0x415356
cmp eax, 2
jne 0x4152f6
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x41534e
lea eax, [esi + esi]
push eax
call fcn.004110df
mov ebp, eax
test ebp, ebp
pop ecx
je 0x41534e
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x415352
push ebp
call fcn.0041061b
pop ecx
xor eax, eax
jmp 0x415354
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x41575b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x424414], ebx
push esi
push edi
jne 0x4157db
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x415816
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x424414], eax
je 0x415816
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x424418], eax
call esi
cmp dword [0x423fcc], 2
mov dword [0x42441c], eax
jne 0x4157db
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x424424], eax
je 0x4157db
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x424420], eax
mov eax, dword [0x424420]
test eax, eax
je 0x415820
call eax
test eax, eax
je 0x415807
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x424424]
test eax, eax
je 0x415807
test byte [ebp - 8], 1
jne 0x415820
cmp dword [0x423fd8], 4
jb 0x41581a
or byte [ebp + 0x12], 0x20
jmp 0x41583f
xor eax, eax
jmp 0x41584f
or byte [ebp + 0x12], 4
jmp 0x41583f
mov eax, dword [0x424418]
test eax, eax
je 0x41583f
call eax
mov ebx, eax
test ebx, ebx
je 0x41583f
mov eax, dword [0x42441c]
test eax, eax
je 0x41583f
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x424414]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416088
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x41d280]
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 0x4160b9
xor eax, eax
jmp 0x416242
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 + 0x426800]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4160f5
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00417289
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4161d0
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x41620e
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 0x416159
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41614a
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 0x41612a
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 0x416199
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x4161a2
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x41611b
jmp 0x4161a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x41623d
cmp dword [ebp - 0x6c], edi
je 0x41620e
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x416203
call fcn.004143ee
mov dword [eax], 9
call fcn.004143f7
mov dword [eax], esi
jmp 0x416238
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 0x4161f8
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x4161a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x4161a4
push dword [ebp - 0x6c]
call fcn.00414400
pop ecx
jmp 0x416238
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x416226
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x416226
xor eax, eax
jmp 0x416240
call fcn.004143ee
mov dword [eax], 0x1c
call fcn.004143f7
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x416240
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.004102ee
add ebp, 0x3a0
leave
ret