joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401050
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x38
push edi
mov edi, dword [esp + 0x40]
cmp dword [edi], 0
jne 0x401088
lea eax, [edi + 0x68]
push 0x421220
push eax
call fcn.004027d0
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x401088
push str.Cannot_open_archive_file_n
call fcn.00401930
add esp, 4
xor eax, eax
pop edi
add esp, 0x38
ret
push ebx
mov ebx, dword [esp + 0x48]
push esi
push 0
push dword [ebx + 4]
call sub.WS2_32.dll_ntohl
add eax, dword [edi + 4]
push eax
push dword [edi]
call fcn.00409f09
add esp, 0xc
push dword [ebx + 8]
call sub.WS2_32.dll_ntohl
push eax
call fcn.004097ce
mov esi, eax
add esp, 4
test esi, esi
jne 0x4010d3
push str.Could_not_allocate_read_buffer_n
call fcn.00401930
add esp, 4
xor eax, eax
pop esi
pop ebx
pop edi
add esp, 0x38
ret
push dword [edi]
push 1
push dword [ebx + 8]
call sub.WS2_32.dll_ntohl
push eax
push esi
call fcn.00409b12
add esp, 0x10
cmp eax, 1
jae 0x40110a
push str.Could_not_read_from_file_n
call fcn.00401930
push esi
call fcn.004097b3
add esp, 8
xor eax, eax
pop esi
pop ebx
pop edi
add esp, 0x38
ret
cmp byte [ebx + 0x10], 1
push ebp
jne 0x4011b6
push dword [ebx + 0xc]
call sub.WS2_32.dll_ntohl
push eax
call fcn.004097ce
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40113e
push str.Error_allocating_decompression_buffer_n
call fcn.00401930
add esp, 4
jmp 0x4011f3
push dword [ebx + 8]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x14], esi
call sub.WS2_32.dll_ntohl
push dword [ebx + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ebp
call sub.WS2_32.dll_ntohl
push 0x38
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push str.1.2.11
push eax
call fcn.004066c0
add esp, 0xc
test eax, eax
js 0x4011e1
lea eax, [esp + 0x10]
push 4
push eax
call fcn.00404d30
add esp, 8
test eax, eax
js 0x4011d5
lea eax, [esp + 0x10]
push eax
call fcn.00406500
push esi
call fcn.004097b3
add esp, 8
mov esi, ebp
mov eax, dword [edi]
test eax, eax
je 0x4011cb
push eax
call fcn.00409850
add esp, 4
mov dword [edi], 0
pop ebp
mov eax, esi
pop esi
pop ebx
pop edi
add esp, 0x38
ret
push dword [esp + 0x28]
push eax
push str.Error__d_from_inflate:__s_n
jmp 0x4011eb
push dword [esp + 0x28]
push eax
push str.Error__d_from_inflateInit:__s_n
call fcn.00401930
add esp, 0xc
push esi
call fcn.004097b3
lea eax, [ebx + 0x12]
push eax
push str.Error_decompressing__s_n
call fcn.00401930
add esp, 0xc
xor eax, eax
pop ebp
pop esi
pop ebx
pop edi
add esp, 0x38
ret
Function at 0x401220
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push ebp
push esi
call fcn.00401050
push esi
mov ebx, eax
call fcn.00403af0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x401248
pop esi
pop ebp
or eax, eax
pop ebx
ret
push edi
lea edi, [ebp + 0x12]
lea eax, [esi + 0x2068]
push edi
push eax
call fcn.00403dc0
add esp, 8
mov esi, eax
push dword [ebp + 0xc]
call sub.WS2_32.dll_ntohl
mov ebp, eax
test esi, esi
jne 0x401287
push edi
push str._s_could_not_be_extracted__n
push str.fopen
call fcn.00401760
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push 1
push ebp
push ebx
call fcn.0040a746
add esp, 0x10
cmp eax, 1
je 0x4012b8
test ebp, ebp
je 0x4012b8
push edi
push str.Failed_to_write_all_bytes_for__s_n
push str.fwrite
call fcn.00401760
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00409850
push ebx
call fcn.004097b3
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x403850
Capabilities:
Create directory
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.00407850
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push edi
push 0
push eax
push 0
call fcn.00404ac0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4038a8
push str.LOADER:_Failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.004018c0
add esp, 4
xor eax, eax
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.00407830
add esp, 0x4004
ret
push esi
push 0x1000
lea eax, [esp + 0x200c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
mov esi, eax
call fcn.004097b3
add esp, 4
test esi, esi
jne 0x4038f2
push str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
call fcn.004018c0
add esp, 4
xor eax, eax
pop esi
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.00407830
add esp, 0x4004
ret
push 0x1000
lea eax, [esp + 0x200c]
push eax
push 0
call fcn.0040db0e
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x403935
push str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.004018c0
add esp, 4
xor eax, eax
pop esi
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.00407830
add esp, 0x4004
ret
push ebx
push 0x2000
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004084b0
push 0x5c
push esi
call fcn.00408877
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
add esp, 0x14
test edi, edi
je 0x403993
nop
mov ecx, edi
lea eax, [esp + 0xc]
sub ecx, esi
sar ecx, 1
inc ecx
push ecx
push esi
push eax
call fcn.0040e358
add esp, 0xc
lea eax, [esp + 0xc]
push 0
push eax
call ebx
lea eax, [edi + 2]
push 0x5c
push eax
call fcn.00408877
mov edi, eax
add esp, 8
test edi, edi
jne 0x403960
push 0
push esi
call ebx
mov ecx, dword [esp + 0x400c]
mov eax, esi
pop ebx
pop esi
pop edi
xor ecx, esp
call fcn.00407830
add esp, 0x4004
ret
Function at 0x4039c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.00407850
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push ebx
push esi
mov esi, dword [esp + 0x1018]
push edi
mov edi, dword [esp + 0x1018]
push 0x421220
push eax
call fcn.004027d0
push esi
push edi
mov ebx, eax
call fcn.00403dc0
add esp, 0x10
xor edi, edi
mov esi, eax
test ebx, ebx
je 0x403abf
push ebx
test esi, esi
je 0x403ac4
call fcn.004098d4
add esp, 4
test eax, eax
jne 0x403a96
nop dword [eax + eax]
push ebx
push 0x1000
lea eax, [esp + 0x14]
push 1
push eax
call fcn.00409b12
add esp, 0x10
test eax, eax
jne 0x403a59
push ebx
call fcn.00409900
add esp, 4
test eax, eax
je 0x403a7b
push ebx
jmp 0x403a8b
push esi
push eax
lea eax, [esp + 0x14]
push 1
push eax
call fcn.0040a746
add esp, 0x10
test eax, eax
je 0x403a8a
push esi
call fcn.00409900
add esp, 4
test eax, eax
jne 0x403a8a
push ebx
call fcn.004098d4
add esp, 4
test eax, eax
je 0x403a30
jmp 0x403a96
push esi
call fcn.0040fa6d
add esp, 4
or edi, 0xffffffff
push ebx
call fcn.00409850
push esi
call fcn.00409850
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00407830
add esp, 0x1004
ret
test esi, esi
je 0x403acc
push esi
call fcn.00409850
add esp, 4
mov ecx, dword [esp + 0x100c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407830
add esp, 0x1004
ret
Function at 0x403b40
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov eax, 0x2028
call fcn.00407850
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x2024], eax
mov eax, dword [esp + 0x202c]
push ebx
push ebp
mov ebp, dword [esp + 0x2038]
mov dword [esp + 8], eax
push esi
push edi
test ebp, ebp
je 0x403bbf
push 0x42274c
call fcn.00403d10
push ebp
mov ebx, eax
call fcn.00403850
mov edi, eax
add esp, 8
test edi, edi
je 0x403c7b
push edi
push 0x422750
call fcn.0040e943
push edi
mov esi, eax
call fcn.004097b3
add esp, 0xc
test esi, esi
je 0x403bc3
push str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
call fcn.004018c0
add esp, 4
xor eax, eax
jmp 0x403cf5
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x34]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str._MEI_d
lea eax, [esp + 0x1c]
push 0x10
push eax
call fcn.004045e0
add esp, 0x10
xor esi, esi
nop
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0040fa52
mov edi, eax
push edi
call fcn.00404960
add esp, 0xc
test eax, eax
je 0x403c7f
push edi
call fcn.004097b3
inc esi
add esp, 4
cmp esi, 5
jl 0x403bf0
test ebp, ebp
je 0x403c7b
push 0
push 0x42274c
push 0
call fcn.00404ac0
test ebx, ebx
je 0x403c64
push 0
push ebx
push 0
mov edi, eax
call fcn.00404ac0
mov esi, eax
push esi
push edi
call fcn.0040e943
push edi
call fcn.004097b3
push esi
call fcn.004097b3
push ebx
call fcn.004097b3
add esp, 0x2c
xor eax, eax
jmp 0x403cf5
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.004097b3
add esp, 4
xor eax, eax
jmp 0x403cf5
push 0x1000
push edi
push dword [esp + 0x18]
call fcn.00404b60
push edi
call fcn.004097b3
add esp, 0x10
test ebp, ebp
je 0x403cf0
push 0
push 0x42274c
push 0
call fcn.00404ac0
test ebx, ebx
je 0x403cd9
push 0
push ebx
push 0
mov edi, eax
call fcn.00404ac0
mov esi, eax
push esi
push edi
call fcn.0040e943
push edi
call fcn.004097b3
push esi
call fcn.004097b3
push ebx
call fcn.004097b3
add esp, 0x2c
jmp 0x403cf0
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.004097b3
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x2034]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407830
add esp, 0x2028
ret
Function at 0x403d10
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.00407850
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push 0
push eax
push 0
call fcn.00404ac0
add esp, 0xc
lea ecx, [esp]
push 0x2000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x403da0
push 0x2000
lea eax, [esp + 0x2004]
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
lea eax, [esp + 4]
push eax
push 0
call fcn.00404b60
add esp, 0xc
test eax, eax
je 0x403da0
cmp byte [eax], 0
je 0x403da0
push eax
call fcn.00410fc9
add esp, 4
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.00407830
add esp, 0x4004
ret
mov ecx, dword [esp + 0x4000]
xor eax, eax
xor ecx, esp
call fcn.00407830
add esp, 0x4004
ret

Function at 0x404290
Capabilities:
Set environment variable

Disassembly:
push esi
push edi
push 0
push dword [esp + 0x10]
push 0
call fcn.00404ac0
add esp, 0xc
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
mov esi, eax
call fcn.004097b3
add esp, 4
mov eax, esi
pop edi
pop esi
ret

Function at 0x4042c0
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x2068
call fcn.00407850
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x2064], eax
mov eax, dword [esp + 0x206c]
push 0x1000
push eax
lea eax, [esp + 0x6c]
mov dword [esp + 8], 0
push eax
call fcn.00404ac0
push 1
push 0x16
call fcn.0040f4d7
push 1
push 2
call fcn.0040f4d7
push 1
push 0xf
call fcn.0040f4d7
push 1
push 0x15
call fcn.0040f4d7
add esp, 0x2c
mov dword [esp + 4], 0xc
lea eax, [esp + 0x20]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
mov dword [esp + 0x24], 0
push 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x50], 0x101
mov word [esp + 0x54], ax
call fcn.0040a871
push eax
call fcn.0041101d
push eax
call fcn.0040f06d
push 1
mov dword [esp + 0x68], eax
call fcn.0040a871
push eax
call fcn.0041101d
push eax
call fcn.0040f06d
push 2
mov dword [esp + 0x78], eax
call fcn.0040a871
push eax
call fcn.0041101d
push eax
call fcn.0040f06d
add esp, 0x24
mov dword [esp + 0x60], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push 1
push 0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x404417
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp]
mov ecx, dword [esp + 0x2064]
xor ecx, esp
call fcn.00407830
add esp, 0x2068
ret
push str.Error_creating_child_process__n
push 0x422854
call fcn.00401810
mov ecx, dword [esp + 0x206c]
add esp, 8
xor ecx, esp
or eax, 0xffffffff
call fcn.00407830
add esp, 0x2068
ret
Function at 0x404960
Capabilities:
Create directory

Disassembly:
mov eax, 0x201c
call fcn.00407850
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x2018], eax
push ebx
mov ebx, dword [esp + 0x2024]
lea eax, [esp + 8]
push esi
push eax
xor esi, esi
mov dword [esp + 0x10], 0xffffffff
push 8
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x404a0b
lea eax, [esp + 8]
push eax
push esi
push esi
push 1
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4049d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x404a0b
push dword [esp + 8]
push 1
call fcn.004097a8
mov esi, eax
add esp, 8
test esi, esi
je 0x404a0b
lea eax, [esp + 8]
push eax
push dword [esp + 0xc]
push esi
push 1
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x404a0b
lea eax, [esp + 0x10]
push eax
push dword [esi]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
push esi
call fcn.004097b3
mov eax, dword [esp + 0x10]
add esp, 4
cmp eax, 0xffffffff
je 0x404a24
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
mov eax, str.S_1_3_4
test esi, esi
cmovne eax, esi
push eax
push str.D:_A__FA____s_
lea eax, [esp + 0x28]
push 0x1000
push eax
call fcn.00404800
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xc
push eax
push 1
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 0
push eax
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x404aa1
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x404aa1
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2018]
xor ecx, esp
call fcn.00407830
add esp, 0x201c
ret
mov ecx, dword [esp + 0x2020]
or eax, 0xffffffff
pop esi
pop ebx
xor ecx, esp
call fcn.00407830
add esp, 0x201c
ret
Function at 0x412b76
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004129ec

Function at 0x4170fc
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416c4f
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

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

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x102e2058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x102e21a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x102e207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x102e206a
add dl, dl
jne 0x102e2089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x102e20dc
xor eax, eax
add dl, dl
jne 0x102e2096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x102e217d
add dl, dl
jne 0x102e20a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102e20b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102e20bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102e20c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x102e20d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x102e2075
mov eax, 1
add dl, dl
jne 0x102e20ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102e20f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x102e20e1
sub eax, ebx
mov ebx, 1
jne 0x102e2128
mov ecx, 1
add dl, dl
jne 0x102e210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x102e2119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x102e2105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x102e2075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x102e213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x102e214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x102e2136
cmp eax, 0x7d00
jae 0x102e216d
cmp eax, 0x500
jb 0x102e2168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x102e2075
cmp eax, 0x7f
ja 0x102e2170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x102e2075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x102e219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x102e2075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422004]
jne 0x40100a
repz ret
jmp fcn.004018f4

Function at 0x4067a8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040261d
and dword [ebp - 4], 0
cmp dword [0x423cdc], 0
mov ebx, eax
jne 0x406859
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40690a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40690a
push eax
call fcn.004025ab
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423cdc], eax
call esi
push eax
call fcn.004025ab
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423ce0], eax
call esi
push eax
call fcn.004025ab
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423ce4], eax
call esi
push eax
call fcn.004025ab
pop ecx
mov dword [0x423cec], eax
test eax, eax
je 0x406859
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004025ab
pop ecx
mov dword [0x423ce8], eax
mov eax, dword [0x423ce8]
cmp eax, ebx
je 0x4068b1
cmp dword [0x423cec], ebx
je 0x4068b1
push eax
call fcn.00402626
push dword [0x423cec]
mov esi, eax
call fcn.00402626
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4068b1
test edi, edi
je 0x4068b1
call esi
test eax, eax
je 0x4068a8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4068a8
test byte [ebp - 0xc], 1
jne 0x4068b1
or dword [ebp + 0x10], 0x200000
jmp 0x4068ea
mov eax, dword [0x423ce0]
cmp eax, ebx
je 0x4068ea
push eax
call fcn.00402626
pop ecx
test eax, eax
je 0x4068ea
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4068ea
mov eax, dword [0x423ce4]
cmp eax, ebx
je 0x4068ea
push eax
call fcn.00402626
pop ecx
test eax, eax
je 0x4068ea
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423cdc]
call fcn.00402626
pop ecx
test eax, eax
je 0x40690a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40690c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41dd00
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
cmp edi, 0x19f
jne 0x41dd19
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor edx, edx
test edi, edi
jle 0x41dd61
nop
lea ecx, [esp + 8]
mov dword [esp], 5
mov dword [esp + 8], 0
call fcn.0041dcf0
mov eax, dword [esp + 8]
add eax, 0x46
mov dword [esp], eax
sub dword [esp], 0x46
movsx eax, byte [edx + esi]
mov dword [esp + 4], eax
mov eax, dword [esp]
xor dword [esp + 4], eax
mov cl, byte [esp + 4]
mov byte [edx + esi], cl
inc edx
cmp edx, edi
jl 0x41dd20
cmp edi, 0x2d
jne 0x41dd7a
mov dword [0x2b21ef8], 0xa62e7790
mov dword [0x2b21efc], 0xffffffff
add esp, 0xc
ret
Function at 0x465586
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov eax, 0x6b
mov word [ebp - 0x24], ax
mov ecx, 0x65
mov word [ebp - 0x22], cx
mov edx, 0x72
mov word [ebp - 0x20], dx
mov eax, 0x6e
mov word [ebp - 0x1e], ax
mov ecx, 0x65
mov word [ebp - 0x1c], cx
mov edx, 0x6c
mov word [ebp - 0x1a], dx
mov eax, 0x33
mov word [ebp - 0x18], ax
mov ecx, 0x32
mov word [ebp - 0x16], cx
mov edx, 0x2e
mov word [ebp - 0x14], dx
mov eax, 0x64
mov word [ebp - 0x12], ax
mov ecx, 0x6c
mov word [ebp - 0x10], cx
mov edx, 0x6c
mov word [ebp - 0xe], dx
xor eax, eax
mov word [ebp - 0xc], ax
mov dword [ebp - 4], 0
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x46563a
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00465516
add esp, 8
cmp eax, 0
mov eax, dword [ebx + 0x10]
mov ebx, dword [ebx]
jne 0x465613
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x465646
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
push ebp
push edi
mov edi, ecx
mov ebp, edx
test edi, edi
je 0x465661
test ebp, ebp
je 0x465661
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
jne 0x465669
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
mov eax, dword [eax + edi + 0x78]
add eax, edi
push ebx
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
mov ebx, dword [eax + 0x14]
add ecx, edi
mov dword [esp + 0x10], ecx
push esi
mov esi, dword [eax + 0x1c]
mov ecx, ebp
sub ecx, dword [eax + 0x10]
add esi, edi
add edx, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ebx
cmp ecx, ebx
ja 0x4656a9
mov eax, dword [esi + ecx*4]
pop esi
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0x14
ret
mov eax, dword [eax + 0x18]
xor esi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x465705
mov ecx, ebx
movzx ebx, word [edx + esi*2]
cmp ebx, ecx
ja 0x465700
mov eax, dword [esp + 0x14]
mov ecx, ebp
mov eax, dword [eax + esi*4]
add eax, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4656eb
test dl, dl
je 0x4656e7
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4656eb
add ecx, 2
add eax, 2
test dl, dl
jne 0x4656cb
xor eax, eax
jmp 0x4656f0
sbb eax, eax
or eax, 1
test eax, eax
je 0x46570f
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
inc esi
cmp esi, eax
jb 0x4656b8
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
mov eax, dword [esp + 0x20]
pop esi
mov eax, dword [eax + ebx*4]
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0x14
ret