joyce8/EMBER2024-capa huggingface dataset:
Function at 0xdafd89
Capabilities:
Set registry value

Disassembly:
push 0x17c
mov eax, 0xdf8ef3
call fcn.00dd0d56
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x70]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0xec], eax
call fcn.00daed43
and dword [ebp - 4], 0
cmp dword [ebp - 0x60], 0
je 0xdafdf4
push 1
lea eax, [ebp - 0x70]
push eax
push edi
lea ecx, [ebp - 0xac]
call fcn.00daee92
push ebx
push dword [ebp - 0xec]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.00dafd89
lea ecx, [ebp - 0xac]
call fcn.00daeffb
jmp 0xdafee6
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0xdafdfe
mov eax, dword [esi]
push ebx
push dword [ebp - 0xec]
push 3
push 0
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xec], eax
test eax, eax
jne 0xdafefe
push eax
call fcn.00da85e3
mov ecx, eax
call fcn.00da879e
test al, al
je 0xdafee6
push 1
lea ecx, [ebp - 0x188]
call fcn.00d92e8f
lea eax, [ebp - 0x188]
mov byte [ebp - 4], 7
push str.length
push eax
call fcn.00d927d5
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x188]
call fcn.00d9c4b8
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x184]
call fcn.00d98ea9
push esi
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 8
push eax
mov ecx, edi
call fcn.00daf394
push 3
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00daebd8
add esp, 0x10
push eax
push str.Registry::setBinary
push 0x1b3
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_sans_NAS_jdk8u391_514_install_src_windows_common_Registry.cpp
push 0
mov byte [ebp - 4], 0xa
call fcn.00da85e3
mov ecx, eax
call fcn.00da87aa
lea ecx, [ebp - 0x40]
call fcn.00d983fa
lea ecx, [ebp - 0x88]
call fcn.00d983fa
lea ecx, [ebp - 0x28]
call fcn.00d983fa
lea ecx, [ebp - 0x188]
call fcn.00d93981
lea ecx, [ebp - 0x58]
call fcn.00d983fa
lea ecx, [ebp - 0x70]
call fcn.00d983fa
call fcn.00dd0d05
ret 0xc
push str.set_binary_value
lea ecx, [ebp - 0x40]
call fcn.00d92f72
lea ecx, [ebp - 0xe8]
call fcn.00d92fc3
push eax
push esi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0xa0]
mov ecx, edi
push eax
call fcn.00daf3c4
push eax
lea ecx, [ebp - 0x188]
mov byte [ebp - 4], 4
call fcn.00da944a
push str.System_error
push dword [ebp - 0xec]
lea eax, [ebp - 0x188]
mov byte [ebp - 4], 5
push dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x7c]
push eax
call fcn.00dbcd89
mov esi, eax
push 0x1ae
push str.Registry::setBinary
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_sans_NAS_jdk8u391_514_install_src_windows_common_Registry.cpp
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.00d930f3
push eax
lea eax, [ebp - 0xd0]
push esi
push eax
call fcn.00daa246
add esp, 0xc
lea eax, [ebp - 0xd0]
push 0xe1bb40
push eax
call fcn.00dd2add
int3
Function at 0xdb7ba5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x10c
mov eax, 0xdfa0e5
call fcn.00dd0d56
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x68], eax
call fcn.00db7aee
mov ebx, eax
test ebx, ebx
je 0xdb7c92
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push dword [esi + 0x38]
call edi
test eax, eax
jne 0xdb7c48
push str.cannot_load_resource
lea ecx, [ebp - 0x28]
call fcn.00d92f72
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.00db7b0c
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 5
call fcn.00da944a
push str.System_error
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x80]
call fcn.00dbcd89
mov esi, eax
push 0x46
push str.Resource::getPtr
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x74]
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_sans_NAS_jdk8u391_514_install_src_windows_common_Resources.cpp
jmp 0xdb7cfc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [esi + 0x34], 6
mov edi, eax
jne 0xdb7c79
mov edx, dword [esi + 0x18]
mov ecx, edi
and edx, 0xf
jbe 0xdb7c6f
movzx eax, word [ecx]
lea ecx, [ecx + eax*2]
add ecx, 2
sub edx, 1
jne 0xdb7c61
movzx eax, word [ecx]
lea edi, [ecx + 2]
add eax, eax
jmp 0xdb7c83
push ebx
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x68]
mov dword [ecx], eax
mov eax, edi
call fcn.00dd0d05
ret 4
push str.cannot_find_resource
lea ecx, [ebp - 0x28]
call fcn.00d92f72
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.00db7b0c
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.00da944a
push str.System_error
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [sym.imp.KERNEL32.dll_FindResourceA]
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x74]
call fcn.00dbcd89
mov esi, eax
push 0x41
push str.Resource::getPtr
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_sans_NAS_jdk8u391_514_install_src_windows_common_Resources.cpp
call fcn.00d930f3
push eax
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.00daa246
add esp, 0xc
lea eax, [ebp - 0x4c]
push 0xe1bb40
push eax
call fcn.00dd2add
int3

Function at 0xdd1815
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0xdd1854
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xdd1854
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xdd1854
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0xdd1854
cmp dword [ecx + 0x74], 0xe
jbe 0xdd1854
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0xdef5c7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00def244

Function at 0xdf5710
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xdf573d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xdf573d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x61cee0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x11c000]
push edi
or ebp, 0xffffffff
jmp 0x61cf02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x61cf09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x61cef8
mov eax, 1
add ebx, ebx
jne 0x61cf1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x61cf10
jne 0x61cf2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x61cf10
xor ecx, ecx
sub eax, 3
jb 0x61cf40
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x61cfb2
mov ebp, eax
add ebx, ebx
jne 0x61cf4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x61cf58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x61cf7c
inc ecx
add ebx, ebx
jne 0x61cf68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x61cf5d
jne 0x61cf79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x61cf5d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x61cf9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x61cf8d
jmp 0x61cefe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x61cf9c
add edi, ecx
jmp 0x61cefe
pop esi
mov edi, esi
mov ecx, 0x7368
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x61cfba
cmp byte [edi], 0x14
jne 0x61cfba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x61cfbf
lea edi, [esi + 0x218000]
mov eax, dword [edi]
or eax, eax
je 0x61d02e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2208c8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x220a08]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x61cfec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x220a10]
or eax, eax
je 0x61d028
mov dword [ebx], eax
add ebx, 4
jmp 0x61d009
call dword [esi + 0x220a0c]
mov ebp, dword [esi + 0x220a14]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x61d062
sub esp, 0xffffff80
jmp 0x4ebe5c
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x41c5f9
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x5bd260
call fcn.0041d4cc
mov edi, 0x94
mov eax, edi
call fcn.0041ef10
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 [0x6ce40c], ecx
mov eax, dword [esi + 4]
mov dword [0x6ce418], eax
mov edx, dword [esi + 8]
mov dword [0x6ce41c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x6ce410], esi
cmp ecx, 2
je 0x41c659
or esi, 0x8000
mov dword [0x6ce410], esi
shl eax, 8
add eax, edx
mov dword [0x6ce414], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x41c692
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41c692
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41c6aa
cmp eax, 0x20b
je 0x41c697
mov dword [ebp - 0x1c], edi
jmp 0x41c6be
cmp dword [ecx + 0x84], 0xe
jbe 0x41c692
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x41c6b8
cmp dword [ecx + 0x74], 0xe
jbe 0x41c692
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041c7d2
pop ecx
test eax, eax
jne 0x41c6d2
push 0x1c
call fcn.0041c5d5
pop ecx
call fcn.0041ee1d
test eax, eax
jne 0x41c6e3
push 0x10
call fcn.0041c5d5
pop ecx
call fcn.0041ebb7
mov dword [ebp - 4], edi
call fcn.0041e9b9
test eax, eax
jge 0x41c6fc
push 0x1b
call fcn.0041c5b0
pop ecx
call fcn.0041e91a
mov dword [0x6cfe78], eax
call fcn.0041e7b0
mov dword [0x6ce2a4], eax
call fcn.0041e71a
test eax, eax
jge 0x41c721
push 8
call fcn.0041c5b0
pop ecx
call fcn.0041e4e7
test eax, eax
jge 0x41c732
push 9
call fcn.0041c5b0
pop ecx
push 1
call fcn.0041e066
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x41c748
push eax
call fcn.0041c5b0
pop ecx
mov eax, dword [0x6ce434]
mov dword [0x6ce438], eax
push eax
push dword [0x6ce428]
push dword [0x6ce420]
call fcn.004144c0
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x41c777
push esi
call fcn.0041e193
call fcn.0041e1b5
jmp 0x41c7a9
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.0041d507
ret
Function at 0x41e0d0
Capabilities:
Terminate process

Disassembly:
push 8
push 0x5bd298
call fcn.0041d4cc
push 8
call fcn.0041c976
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x6ce44c], esi
jne 0x41e104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x6ce448], esi
mov al, byte [ebp + 0x10]
mov byte [0x6ce444], al
cmp dword [ebp + 0xc], edi
jne 0x41e14e
cmp dword [0x6cfe48], edi
je 0x41e13e
mov eax, dword [0x6cfe44]
sub eax, 4
mov dword [0x6cfe44], eax
cmp eax, dword [0x6cfe48]
jb 0x41e13e
mov eax, dword [eax]
cmp eax, edi
je 0x41e11f
call eax
jmp 0x41e11f
push 0x5e7154
mov eax, 0x5e714c
call fcn.0041e04e
pop ecx
push 0x5e715c
mov eax, 0x5e7158
call fcn.0041e04e
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41e17f
cmp dword [ebp + 0x10], edi
jne 0x41e18d
mov dword [0x6ce44c], esi
push dword [ebp + 8]
call fcn.0041e00c
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41e18c
push 8
call fcn.0041c8c1
pop ecx
ret
call fcn.0041d507
ret

Function at 0x41e1d3
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x5e781c]
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 + 0x5e7290]
je 0x41e208
inc eax
cmp eax, 0x13
jb 0x41e1f9
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x5e7290]
jne 0x41e32e
mov eax, dword [0x6ce2a8]
cmp eax, 1
je 0x41e306
cmp eax, edx
jne 0x41e238
cmp dword [0x5e7164], 1
je 0x41e306
cmp ecx, 0xfc
je 0x41e32e
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 0x41e26e
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00420150
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0041fd10
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41e2a2
mov eax, edi
push eax
call fcn.0041fd10
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x5bd690
push edi
call fcn.00420250
add esp, 0x10
push edi
call fcn.0041fd10
push dword [esi + 0x5e7294]
mov ebx, eax
call fcn.0041fd10
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0041ef10
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00420150
push edi
push ebx
call fcn.00420160
push 0x5bd670
push ebx
call fcn.00420160
push dword [esi + 0x5e7294]
push ebx
call fcn.00420160
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00420057
add esp, 0x2c
jmp 0x41e32e
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x5e7294]
push dword [esi]
call fcn.0041fd10
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.0041feb7
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x41e7b0
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x6ce664]
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 0x41e7f9
call ebp
mov esi, eax
cmp esi, ebx
je 0x41e7df
mov dword [0x6ce664], 1
jmp 0x41e7fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41e7f4
push 2
pop eax
mov dword [0x6ce664], eax
jmp 0x41e7f9
mov eax, dword [0x6ce664]
cmp eax, 1
jne 0x41e856
cmp esi, ebx
jne 0x41e811
call ebp
mov esi, eax
cmp esi, ebx
jne 0x41e811
xor eax, eax
jmp 0x41e8fd
cmp word [esi], bx
mov eax, esi
je 0x41e826
inc eax
inc eax
cmp word [eax], bx
jne 0x41e818
inc eax
inc eax
cmp word [eax], bx
jne 0x41e818
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0041c52f
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x41e849
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x41e8fd
push ebp
push esi
push edi
call fcn.00420390
add esp, 0xc
jmp 0x41e83b
cmp eax, 2
je 0x41e85f
cmp eax, ebx
jne 0x41e80a
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x41e80a
cmp byte [ebp], bl
mov esi, ebp
je 0x41e895
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x41e80a
push esi
add edi, eax
call fcn.0041fd10
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x41e872
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0041c52f
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x41e90e
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x41e8ef
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 0x41e904
push edi
call fcn.0041fd10
push esi
lea edi, [edi + eax + 1]
call fcn.00420374
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x41e8b5
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.0041c417
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x41e80a
Function at 0x41e91a
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x6ce668]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x41e95a
call esi
test eax, eax
je 0x41e93f
mov dword [0x6ce668], 1
jmp 0x41e95f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41e956
mov dword [0x6ce668], 2
jmp 0x41e968
xor eax, eax
jmp 0x41e9b6
cmp eax, 1
jne 0x41e963
call esi
jmp 0x41e9b6
cmp eax, 2
jne 0x41e956
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 0x41e9ae
lea eax, [esi + esi]
push eax
call fcn.0041c52f
mov ebp, eax
test ebp, ebp
pop ecx
je 0x41e9ae
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x41e9b2
push ebp
call fcn.0041c417
pop ecx
xor eax, eax
jmp 0x41e9b4
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x41f49d
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 0x41f4cb
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 0x41f4d2
cmp ebx, dword [eax + 4]
jae 0x41f4d2
xor eax, eax
jmp 0x41f6c2
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41f4e3
xor eax, eax
inc eax
jmp 0x41f6c1
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41f4f9
cmp ecx, edx
jae 0x41f63e
cmp dword [eax + 4], 0
je 0x41f502
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41f4ea
cmp dword [ebp + 8], 0
je 0x41f524
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41f63e
cmp eax, esi
jae 0x41f63e
mov eax, dword [0x6ce680]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41f549
cmp dword [esi*4 + 0x6ce688], edi
je 0x41f642
inc esi
cmp esi, eax
jl 0x41f537
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41f6be
cmp dword [ebp - 8], 0x1000000
jne 0x41f6be
test byte [ebp - 0xc], 0xcc
je 0x41f5c7
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41f6be
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41f6be
cmp word [eax + 0x18], 0x10b
jne 0x41f6be
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41f6be
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41f5c7
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41f5c7
test byte [ecx + 0x27], 0x80
jne 0x41f63e
push 1
push 0x6ce6c8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41f4db
mov ecx, dword [0x6ce680]
test ecx, ecx
mov edx, ecx
jle 0x41f5fb
lea eax, [ecx*4 + 0x6ce684]
cmp dword [eax], edi
je 0x41f5fb
dec edx
sub eax, 4
test edx, edx
jg 0x41f5ef
test edx, edx
jne 0x41f62c
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41f608
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41f620
lea eax, [edx*4 + 0x6ce688]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41f60e
cmp ecx, 0x10
jge 0x41f62c
inc ecx
mov dword [0x6ce680], ecx
push 0
push 0x6ce6c8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41f4db
xor eax, eax
jmp 0x41f6c1
test esi, esi
jle 0x41f4db
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x6ce6c8
call ebx
test eax, eax
jne 0x41f4db
cmp dword [esi*4 + 0x6ce688], edi
je 0x41f698
mov eax, dword [0x6ce680]
lea esi, [eax - 1]
test esi, esi
jl 0x41f686
cmp dword [esi*4 + 0x6ce688], edi
je 0x41f682
dec esi
jns 0x41f676
test esi, esi
jge 0x41f696
cmp eax, 0x10
jge 0x41f691
inc eax
mov dword [0x6ce680], eax
lea esi, [eax - 1]
jmp 0x41f698
je 0x41f6b0
xor ecx, ecx
test esi, esi
jl 0x41f6b0
lea eax, [ecx*4 + 0x6ce688]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41f69e
push 0
push 0x6ce6c8
call ebx
jmp 0x41f4db
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41f7e5
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x5e781c]
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 0x41f816
xor eax, eax
jmp 0x41f99f
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 + 0x6cfd40]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41f852
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00420fb8
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41f92d
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x41f96b
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 0x41f955
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x41f901
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x41f901

Function at 0x420057
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x6ce6d0], ebx
push esi
push edi
jne 0x4200d7
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x420112
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5bdd74
push edi
call esi
test eax, eax
mov dword [0x6ce6d0], eax
je 0x420112
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x6ce6d4], eax
call esi
cmp dword [0x6ce40c], 2
mov dword [0x6ce6d8], eax
jne 0x4200d7
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x6ce6e0], eax
je 0x4200d7
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x6ce6dc], eax
mov eax, dword [0x6ce6dc]
test eax, eax
je 0x42011c
call eax
test eax, eax
je 0x420103
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x6ce6e0]
test eax, eax
je 0x420103
test byte [ebp - 8], 1
jne 0x42011c
cmp dword [0x6ce418], 4
jb 0x420116
or byte [ebp + 0x12], 0x20
jmp 0x42013b
xor eax, eax
jmp 0x42014b
or byte [ebp + 0x12], 4
jmp 0x42013b
mov eax, dword [0x6ce6d4]
test eax, eax
je 0x42013b
call eax
mov ebx, eax
test ebx, ebx
je 0x42013b
mov eax, dword [0x6ce6d8]
test eax, eax
je 0x42013b
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x6ce6d0]
pop edi
pop esi
pop ebx
leave
ret