joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e620
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x43e629
ret
push eax
call fcn.004412bb
add esp, 4
test eax, eax
jne 0x43e628
push str.Out_of_memory_n
push 0x478960
call fcn.0043fcc4
add esp, 8
push 1
call fcn.00441209
int3

Function at 0x43e650
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
jne 0x43e66c
mov eax, dword [esp + 4]
test eax, eax
je 0x43e669
push eax
call fcn.0044142f
add esp, 4
xor eax, eax
ret
mov ecx, dword [esp + 4]
test ecx, ecx
push eax
je 0x43e680
push ecx
call fcn.004412cd
add esp, 8
jmp 0x43e688
call fcn.004412bb
add esp, 4
test eax, eax
jne 0x43e66b
push str.Out_of_memory_n
push 0x478960
call fcn.0043fcc4
add esp, 8
push 1
call fcn.00441209
int3

Function at 0x43e6d0
Capabilities:
Terminate process

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43e6e0
sub eax, edx
inc eax
jne 0x43e702
xor eax, eax
push esi
mov esi, eax
mov ecx, edi
sub esi, edi
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x43e6f5
pop esi
pop edi
ret
push eax
call fcn.004412bb
add esp, 4
test eax, eax
jne 0x43e6ee
push str.Out_of_memory_n
push 0x478960
call fcn.0043fcc4
add esp, 8
push 1
call fcn.00441209
int3

Function at 0x43ef90
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push esi
mov esi, dword [esp + 8]
mov edx, dword [esi + 4]
mov esi, dword [esi]
xor eax, eax
test esi, esi
push edi
mov edi, ecx
jle 0x43efbe
push ebx
xor ecx, ecx
mov cl, byte [edx]
mov ebx, eax
shl ebx, 4
add ebx, eax
and ecx, 0xff
add ecx, ebx
inc edx
dec esi
mov eax, ecx
jne 0x43efa4
pop ebx
xor edx, edx
div dword [edi + 4]
pop edi
pop esi
mov eax, edx
ret 4

Function at 0x43f050
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 4]
mov ebp, dword [edi + 0xc]
lea eax, [esi + esi + 1]
mov dword [edi + 4], eax
shl eax, 2
push eax
mov dword [esp + 0x18], ebp
call fcn.0043e620
mov ecx, dword [edi + 4]
mov dword [edi + 0xc], eax
add esp, 4
xor eax, eax
test ecx, ecx
jle 0x43f093
mov ecx, dword [edi + 0xc]
mov dword [ecx + eax*4], 0
mov ecx, dword [edi + 4]
inc eax
cmp eax, ecx
jl 0x43f081
test esi, esi
jle 0x43f10e
mov dword [esp + 0x10], esi
push ebx
lea esp, [esp]
cmp dword [ebp], 0
je 0x43f0fb
mov ecx, dword [ebp]
mov edx, dword [ecx + 8]
mov dword [ebp], edx
mov edx, dword [ecx]
mov esi, dword [edx + 4]
mov edx, dword [edx]
xor eax, eax
test edx, edx
jle 0x43f0e1
mov dword [esp + 0x10], edx
xor edx, edx
mov dl, byte [esi]
mov ebx, eax
shl ebx, 4
add ebx, eax
and edx, 0xff
add edx, ebx
mov eax, edx
mov edx, dword [esp + 0x10]
inc esi
dec edx
mov dword [esp + 0x10], edx
jne 0x43f0c0
xor edx, edx
div dword [edi + 4]
mov eax, dword [edi + 0xc]
mov eax, dword [eax + edx*4]
mov dword [ecx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [eax + edx*4], ecx
cmp dword [ebp], 0
jne 0x43f0a6
mov eax, dword [esp + 0x14]
add ebp, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x43f0a0
mov ebp, dword [esp + 0x18]
pop ebx
push ebp
call fcn.0043e6b0
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x440e19
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x45a960
call fcn.004468fc
mov edi, 0x94
mov eax, edi
call fcn.00440020
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 [0x479b0c], ecx
mov eax, dword [esi + 4]
mov dword [0x479b18], eax
mov edx, dword [esi + 8]
mov dword [0x479b1c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x479b10], esi
cmp ecx, 2
je 0x440e79
or esi, 0x8000
mov dword [0x479b10], esi
shl eax, 8
add eax, edx
mov dword [0x479b14], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x440eb2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x440eb2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x440eca
cmp eax, 0x20b
je 0x440eb7
mov dword [ebp - 0x1c], edi
jmp 0x440ede
cmp dword [ecx + 0x84], 0xe
jbe 0x440eb2
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x440ed8
cmp dword [ecx + 0x74], 0xe
jbe 0x440eb2
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.004468a9
pop ecx
test eax, eax
jne 0x440f0a
cmp dword [0x479afc], 2
je 0x440ef7
call fcn.00446266
push 0x1c
call fcn.004460ef
push 0xff
call fcn.004410ae
pop ecx
pop ecx
call fcn.00446807
mov dword [ebp - 4], edi
call fcn.00443ed7
test eax, eax
jge 0x440f23
push 0x1b
call fcn.00440df4
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x47a0f0], eax
call fcn.004466e5
mov dword [0x479af4], eax
call fcn.00446643
test eax, eax
jge 0x440f49
push 8
call fcn.00440df4
pop ecx
call fcn.00446410
test eax, eax
jge 0x440f5a
push 9
call fcn.00440df4
pop ecx
push 1
call fcn.004410de
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x440f70
push eax
call fcn.00440df4
pop ecx
mov eax, dword [0x479b2c]
mov dword [0x479b30], eax
push eax
push dword [0x479b24]
push dword [0x479b20]
call fcn.0043bed0
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x440f9f
push esi
call fcn.00441209
call fcn.0044122b
jmp 0x440fd1
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.00446937
ret
Function at 0x441148
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x479b4c], esi
push edi
jne 0x441168
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x479b48], esi
mov byte [0x479b44], al
jne 0x4411ce
mov ecx, dword [0x47a0e8]
test ecx, ecx
je 0x4411af
mov eax, dword [0x47a0e4]
sub eax, 4
cmp eax, ecx
jmp 0x4411a8
mov eax, dword [eax]
test eax, eax
je 0x44119a
call eax
mov eax, dword [0x47a0e4]
sub eax, 4
cmp eax, dword [0x47a0e8]
mov dword [0x47a0e4], eax
jae 0x441192
mov eax, 0x460028
mov esi, 0x460034
cmp eax, esi
mov edi, eax
jae 0x4411ce
mov eax, dword [edi]
test eax, eax
je 0x4411c7
call eax
add edi, 4
cmp edi, esi
jb 0x4411bf
mov eax, 0x460038
mov esi, 0x46003c
cmp eax, esi
mov edi, eax
jae 0x4411ed
mov eax, dword [edi]
test eax, eax
je 0x4411e6
call eax
add edi, 4
cmp edi, esi
jb 0x4411de
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x441207
push dword [ebp + 8]
mov dword [0x479b4c], 1
call fcn.004410ae
pop ebp
ret
Function at 0x443344
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x479fcc]
mov eax, dword [0x478c00]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x44350a
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x479fe0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x44350a
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x4433ae
xor eax, eax
jmp 0x44351e
test al, 0x20
je 0x4433bf
push 2
push edi
push edi
push ecx
call fcn.0044916b
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x443494
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x4434db
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x443421
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x443412
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x4433f4
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x443461
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x44346d
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x4433e8
jmp 0x44346f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x443505
cmp dword [ebp + 0x3a4], edi
je 0x4434db
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x4434cd
mov dword [0x479b04], eax
jmp 0x443511
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4434bf
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x44346f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x44346f
push dword [ebp + 0x3a4]
call fcn.004486dc
pop ecx
jmp 0x44351b
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4434f3
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x4433a7
mov dword [0x479b00], 0x1c
mov dword [0x479b04], edi
jmp 0x44351b
sub eax, dword [ebp - 0x7c]
jmp 0x44351e
and dword [0x479b04], 0
mov dword [0x479b00], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00443264
add ebp, 0x39c
leave
ret
Function at 0x445a13
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x479fcc]
push edi
jae 0x445be8
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x479fe0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x445be8
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x445abe
test dl, 2
jne 0x445abe
test dl, 0x48
je 0x445a88
cmp byte [eax + 5], 0xa
je 0x445a88
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x445ad1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x445ab9
mov dword [0x479b04], ecx
jmp 0x445bef
cmp eax, 0x6d
jne 0x445ac5
xor eax, eax
jmp 0x445bfc
push eax
call fcn.004486dc
pop ecx
jmp 0x445bf9
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x445be3
test eax, eax
je 0x445af8
cmp byte [ebx], 0xa
jne 0x445af8
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x445b01
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x445bdd
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x445bcd
cmp al, 0xd
je 0x445b33
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x445bbf
dec ecx
cmp dword [ebp - 8], ecx
jae 0x445b4d
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x445b48
add dword [ebp - 8], 2
jmp 0x445ba1
mov dword [ebp - 8], eax
jmp 0x445bbb
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
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 0x445b75
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x445bbb
cmp dword [ebp - 0x10], 0
je 0x445bbb
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x445b96
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x445ba1
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x445bbe
cmp ebx, dword [ebp + 0xc]
jne 0x445ba6
cmp byte [ebp - 1], 0xa
jne 0x445ba6
mov byte [ebx], 0xa
jmp 0x445bbe
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00445f4d
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x445bbf
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x445b17
jmp 0x445bdd
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x445bdd
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x445bfc
and dword [0x479b04], 0
mov dword [0x479b00], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4460ef
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x478c00]
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 + 0x478ce0]
je 0x446124
inc eax
cmp eax, 0x13
jb 0x446115
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x478ce0]
jne 0x44624a
mov eax, dword [0x479afc]
cmp eax, 1
je 0x446222
cmp eax, edx
jne 0x446154
cmp dword [0x478bc4], 1
je 0x446222
cmp ecx, 0xfc
je 0x44624a
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 0x44618a
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00447b20
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00442ef0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4461be
mov eax, edi
push eax
call fcn.00442ef0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x45eda0
push edi
call fcn.0043f890
add esp, 0x10
push edi
call fcn.00442ef0
push dword [esi + 0x478ce4]
mov ebx, eax
call fcn.00442ef0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00440020
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00447b20
push edi
push ebx
call fcn.00447b30
push 0x45ed80
push ebx
call fcn.00447b30
push dword [esi + 0x478ce4]
push ebx
call fcn.00447b30
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0044af96
add esp, 0x2c
jmp 0x44624a
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x478ce4]
push dword [esi]
call fcn.00442ef0
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.00443264
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4485f9
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.00440020
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x448694
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 [0x479b0c]
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 0x448694
cmp eax, 1
je 0x4486b5
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 0x448694
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x448661
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x448690
xor eax, eax
inc eax
jmp 0x4486d4
cmp edi, eax
jae 0x448698
xor eax, eax
jmp 0x4486d4
cmp eax, esi
jae 0x44869f
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 [0x479b0c]
jmp 0x4486b8
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 0x44af96
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x479d00], ebx
push esi
push edi
jne 0x44b016
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44b051
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x479d00], eax
je 0x44b051
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x479d04], eax
call esi
cmp dword [0x479b0c], 2
mov dword [0x479d08], eax
jne 0x44b016
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x479d10], eax
je 0x44b016
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x479d0c], eax
mov eax, dword [0x479d0c]
test eax, eax
je 0x44b05b
call eax
test eax, eax
je 0x44b042
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x479d10]
test eax, eax
je 0x44b042
test byte [ebp - 8], 1
jne 0x44b05b
cmp dword [0x479b18], 4
jb 0x44b055
or byte [ebp + 0x12], 0x20
jmp 0x44b07a
xor eax, eax
jmp 0x44b08a
or byte [ebp + 0x12], 4
jmp 0x44b07a
mov eax, dword [0x479d04]
test eax, eax
je 0x44b07a
call eax
mov ebx, eax
test ebx, ebx
je 0x44b07a
mov eax, dword [0x479d08]
test eax, eax
je 0x44b07a
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x479d00]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44b17e
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 0x44b1ac
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 0x44b1b3
cmp ebx, dword [eax + 4]
jae 0x44b1b3
xor eax, eax
jmp 0x44b3a3
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x44b1c4
xor eax, eax
inc eax
jmp 0x44b3a2
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x44b1da
cmp ecx, edx
jae 0x44b31f
cmp dword [eax + 4], 0
je 0x44b1e3
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x44b1cb
cmp dword [ebp + 8], 0
je 0x44b205
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x44b31f
cmp eax, esi
jae 0x44b31f
mov eax, dword [0x479d18]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x44b22a
cmp dword [esi*4 + 0x479d20], edi
je 0x44b323
inc esi
cmp esi, eax
jl 0x44b218
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x44b39f
cmp dword [ebp - 8], 0x1000000
jne 0x44b39f
test byte [ebp - 0xc], 0xcc
je 0x44b2a8
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x44b39f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x44b39f
cmp word [eax + 0x18], 0x10b
jne 0x44b39f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x44b39f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x44b2a8
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x44b2a8
test byte [ecx + 0x27], 0x80
jne 0x44b31f
push 1
push 0x479d60
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x44b1bc
mov ecx, dword [0x479d18]
test ecx, ecx
mov edx, ecx
jle 0x44b2dc
lea eax, [ecx*4 + 0x479d1c]
cmp dword [eax], edi
je 0x44b2dc
dec edx
sub eax, 4
test edx, edx
jg 0x44b2d0
test edx, edx
jne 0x44b30d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x44b2e9
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x44b301
lea eax, [edx*4 + 0x479d20]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x44b2ef
cmp ecx, 0x10
jge 0x44b30d
inc ecx
mov dword [0x479d18], ecx
push 0
push 0x479d60
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x44b1bc
xor eax, eax
jmp 0x44b3a2
test esi, esi
jle 0x44b1bc
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x479d60
call ebx
test eax, eax
jne 0x44b1bc
cmp dword [esi*4 + 0x479d20], edi
je 0x44b379
mov eax, dword [0x479d18]
lea esi, [eax - 1]
test esi, esi
jl 0x44b367
cmp dword [esi*4 + 0x479d20], edi
je 0x44b363
dec esi
jns 0x44b357
test esi, esi
jge 0x44b377
cmp eax, 0x10
jge 0x44b372
inc eax
mov dword [0x479d18], eax
lea esi, [eax - 1]
jmp 0x44b379
je 0x44b391
xor ecx, ecx
test esi, esi
jl 0x44b391
lea eax, [ecx*4 + 0x479d20]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x44b37f
push 0
push 0x479d60
call ebx
jmp 0x44b1bc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44ba39
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x44ba52
or eax, 0xffffffff
jmp 0x44bab3
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x44baaf
push 0x3d
push esi
call fcn.0044bc0e
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x44baaf
cmp esi, eax
je 0x44baaf
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x479b2c]
sete cl
cmp eax, dword [0x479b30]
mov dword [ebp - 8], ecx
jne 0x44ba95
mov edi, eax
call fcn.0044b9d8
mov dword [0x479b2c], eax
cmp eax, ebx
jne 0x44baee
cmp dword [ebp + 0xc], ebx
je 0x44bab7
cmp dword [0x479b34], ebx
je 0x44bab7
call fcn.00447a46
test eax, eax
je 0x44baee
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x44bac0
xor eax, eax
jmp 0x44bab2
push 4
call fcn.004412bb
cmp eax, ebx
pop ecx
mov dword [0x479b2c], eax
je 0x44baaf
mov dword [eax], ebx
cmp dword [0x479b34], ebx
jne 0x44baee
push 4
call fcn.004412bb
cmp eax, ebx
pop ecx
mov dword [0x479b34], eax
je 0x44baaf
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x479b2c]
call fcn.0044b98b
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x44bb4f
cmp dword [esi], ebx
je 0x44bb4f
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0044142f
cmp dword [ebp - 8], ebx
pop ecx
jne 0x44bb32
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x44bb90
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x44bb29
mov eax, edi
shl eax, 2
push eax
push dword [0x479b2c]
call fcn.004412cd
cmp eax, ebx
pop ecx
pop ecx
je 0x44bb90
jmp 0x44bb8b
cmp dword [ebp - 8], ebx
jne 0x44bbfb
cmp edi, ebx
jge 0x44bb5e
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x479b2c]
call fcn.004412cd
cmp eax, ebx
pop ecx
pop ecx
je 0x44baaf
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x479b2c], eax
cmp dword [ebp + 0xc], ebx
je 0x44bbe5
push dword [ebp - 4]
call fcn.00442ef0
inc eax
inc eax
push eax
call fcn.004412bb
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x44bbe5
push dword [ebp - 4]
push esi
call fcn.00447b20
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x44bbde
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0044142f
pop ecx
cmp dword [ebp - 8], ebx
je 0x44bbf3
push dword [ebp - 4]
call fcn.0044142f
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x44bab2
push dword [ebp - 4]
call fcn.0044142f
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x44babc