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

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push 0
push 0
mov dword [esp + 0xc], 0
push dword [esi]
call fcn.00409c15
push dword [esi]
lea eax, [esp + 0x1c]
push 2
push 1
push eax
call fcn.004098ab
mov ax, word [esp + 0x28]
add esp, 0x1c
cmp al, 0x4d
jne 0x4011f2
cmp ah, 0x5a
jne 0x4011f2
push 0
push 0x3c
push dword [esi]
call fcn.00409c15
push dword [esi]
lea eax, [esp + 0x14]
push 1
push 4
push eax
call fcn.004098ab
mov eax, dword [esp + 0x20]
push 0
add eax, 0x18
push eax
push dword [esi]
call fcn.00409c15
push dword [esi]
lea eax, [esp + 0x38]
push 1
push 2
push eax
call fcn.004098ab
mov ax, word [esp + 0x44]
add esp, 0x38
cmp al, 0xb
jne 0x4011f2
cmp ah, 1
jne 0x4011b6
mov ecx, 0x98
jmp 0x4011c0
cmp ah, 2
jne 0x4011f2
mov ecx, 0xa8
mov eax, dword [esp + 4]
push 0
add eax, ecx
push eax
push dword [esi]
call fcn.00409c15
push dword [esi]
lea eax, [esp + 0x14]
push 1
push 4
push eax
call fcn.004098ab
mov eax, dword [esp + 0x20]
add esp, 0x1c
or ecx, 0xffffffff
test eax, eax
cmove eax, ecx
pop esi
pop ecx
ret
or eax, 0xffffffff
pop esi
pop ecx
ret

Function at 0x401220
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi], 0
jne 0x401252
lea eax, [edi + 0x68]
push 0x420200
push eax
call fcn.00402970
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x401252
push str.Cannot_open_archive_file_n
call fcn.00401a40
add esp, 4
xor eax, eax
pop edi
ret
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push 0
push dword [ebp + 4]
call sub.WS2_32.dll_ntohl
add eax, dword [edi + 4]
push eax
push dword [edi]
call fcn.00409c15
add esp, 0xc
push dword [ebp + 8]
call sub.WS2_32.dll_ntohl
push eax
call fcn.00409588
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40129a
push str.Could_not_allocate_read_buffer_n
call fcn.00401a40
add esp, 4
xor eax, eax
pop ebp
pop ebx
pop edi
ret
push dword [edi]
push 1
push dword [ebp + 8]
call sub.WS2_32.dll_ntohl
push eax
push ebx
call fcn.004098ab
add esp, 0x10
cmp eax, 1
jae 0x4012ce
push str.Could_not_read_from_file_n
call fcn.00401a40
push ebx
call fcn.00409583
add esp, 8
xor eax, eax
pop ebp
pop ebx
pop edi
ret
cmp byte [ebp + 0x10], 1
jne 0x401305
push esi
push ebp
push ebx
call fcn.00401030
push ebx
mov esi, eax
call fcn.00409583
add esp, 0xc
mov ebx, esi
test esi, esi
pop esi
jne 0x401305
lea eax, [ebp + 0x12]
push eax
push str.Error_decompressing__s_n
call fcn.00401a40
add esp, 8
xor eax, eax
pop ebp
pop ebx
pop edi
ret
mov eax, dword [edi]
test eax, eax
je 0x40131a
push eax
call fcn.00409609
add esp, 4
mov dword [edi], 0
pop ebp
mov eax, ebx
pop ebx
pop edi
ret
Function at 0x401320
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.00401220
push esi
mov ebx, eax
call fcn.00403b50
add esp, 0xc
cmp eax, 0xffffffff
jne 0x401348
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.00403e40
add esp, 8
mov esi, eax
push dword [ebp + 0xc]
call sub.WS2_32.dll_ntohl
mov ebp, eax
test esi, esi
jne 0x401387
push edi
push str._s_could_not_be_extracted__n
push str.fopen
call fcn.004017b0
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.0040a3ca
add esp, 0x10
cmp eax, 1
je 0x4013b8
test ebp, ebp
je 0x4013b8
push edi
push str.Failed_to_write_all_bytes_for__s_n
push str.fwrite
call fcn.004017b0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00409609
push ebx
call fcn.00409583
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4013d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x64
mov eax, dword [0x42c008]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
mov ebx, dword [esp + 0x70]
push esi
push edi
mov edi, dword [esp + 0x74]
lea esi, [esp + 0x14]
push 0
add ebx, 0xffffffa0
push ebx
push dword [edi]
call fcn.00409c15
add esp, 0xc
test eax, eax
jne 0x40143d
push dword [edi]
lea eax, [esp + 0x10]
push 1
push 0x60
push eax
call fcn.004098ab
add esp, 0x10
cmp eax, 1
jb 0x40143d
nop dword [eax]
push 8
push esi
push str.MEI_f_v_n_v
call fcn.00409500
add esp, 0xc
test eax, eax
je 0x401452
dec esi
lea eax, [esp + 0xc]
cmp esi, eax
jae 0x401420
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004076a4
add esp, 0x64
ret
movups xmm0, xmmword [esi]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [edi + 0x30], xmm0
movups xmm0, xmmword [esi + 0x30]
movups xmmword [edi + 0x40], xmm0
movups xmm0, xmmword [esi + 0x40]
movups xmmword [edi + 0x50], xmm0
movq xmm0, qword [esi + 0x50]
movq qword [edi + 0x60], xmm0
push dword [edi + 0x18]
call sub.WS2_32.dll_ntohl
lea ecx, [esp + 0xc]
sub esi, ecx
mov ecx, dword [esp + 0x6c]
add esi, ebx
sub esi, eax
xor eax, eax
add esi, 0x58
mov dword [edi + 4], esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004076a4
add esp, 0x64
ret
Function at 0x401560
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi], 0
jne 0x401585
lea eax, [esi + 0x68]
push 0x420200
push eax
call fcn.00402970
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x401610
push esi
call fcn.00401120
add esp, 4
cmp eax, 1
jge 0x4015a8
push 2
push 0
push dword [esi]
call fcn.00409c15
push dword [esi]
call fcn.0040a187
add esp, 0x10
push eax
push esi
call fcn.004013d0
add esp, 8
cmp eax, 0xffffffff
je 0x401610
push dword [esi + 0x24]
mov dword [esi + 0x406c], 0
call sub.WS2_32.dll_ntohl
push 0
mov dword [0x42c954], eax
push dword [esi + 0x1c]
call sub.WS2_32.dll_ntohl
add eax, dword [esi + 4]
push eax
push dword [esi]
call fcn.00409c15
add esp, 0xc
push dword [esi + 0x20]
call sub.WS2_32.dll_ntohl
push eax
call fcn.00409588
add esp, 4
mov dword [esi + 8], eax
test eax, eax
jne 0x401615
push str.Could_not_allocate_buffer_for_TOC.
push str.malloc
call fcn.004017b0
add esp, 8
or eax, 0xffffffff
pop esi
ret
push dword [esi]
push 1
push dword [esi + 0x20]
call sub.WS2_32.dll_ntohl
push eax
push dword [esi + 8]
call fcn.004098ab
add esp, 0x10
cmp eax, 1
jae 0x401649
push str.Could_not_read_from_file.
push str.fread
call fcn.004017b0
add esp, 8
or eax, 0xffffffff
pop esi
ret
push dword [esi + 0x20]
call sub.WS2_32.dll_ntohl
add eax, dword [esi + 8]
push dword [esi]
mov dword [esi + 0xc], eax
call fcn.004096b4
add esp, 4
test eax, eax
je 0x401677
push str.Error_on_file_n.
call fcn.004019d0
add esp, 4
or eax, 0xffffffff
pop esi
ret
push esi
call fcn.00401200
add esp, 4
xor eax, eax
pop esi
ret
Function at 0x403a20
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.004076c0
mov eax, dword [0x42c008]
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 0x420200
push eax
call fcn.00402970
push esi
push edi
mov ebx, eax
call fcn.00403e40
add esp, 0x10
xor edi, edi
mov esi, eax
test ebx, ebx
je 0x403b1f
push ebx
test esi, esi
je 0x403b24
call fcn.00409689
add esp, 4
test eax, eax
jne 0x403af6
nop dword [eax + eax]
push ebx
push 0x1000
lea eax, [esp + 0x14]
push 1
push eax
call fcn.004098ab
add esp, 0x10
test eax, eax
jne 0x403ab9
push ebx
call fcn.004096b4
add esp, 4
test eax, eax
je 0x403adb
push ebx
jmp 0x403aeb
push esi
push eax
lea eax, [esp + 0x14]
push 1
push eax
call fcn.0040a3ca
add esp, 0x10
test eax, eax
je 0x403aea
push esi
call fcn.004096b4
add esp, 4
test eax, eax
jne 0x403aea
push ebx
call fcn.00409689
add esp, 4
test eax, eax
je 0x403a90
jmp 0x403af6
push esi
call fcn.0040f32a
add esp, 4
or edi, 0xffffffff
push ebx
call fcn.00409609
push esi
call fcn.00409609
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.004076a4
add esp, 0x1004
ret
test esi, esi
je 0x403b2c
push esi
call fcn.00409609
add esp, 4
mov ecx, dword [esp + 0x100c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004076a4
add esp, 0x1004
ret
Function at 0x403ba0
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov eax, 0x302c
call fcn.004076c0
mov eax, dword [0x42c008]
xor eax, esp
mov dword [esp + 0x3028], eax
mov eax, dword [esp + 0x3030]
push ebx
push ebp
mov ebp, dword [esp + 0x303c]
mov dword [esp + 8], eax
push esi
push edi
test ebp, ebp
je 0x403c26
push 0x4215e4
call fcn.00403d90
push ebp
mov ebx, eax
lea eax, [esp + 0x3c]
push 0x1000
push eax
call fcn.004029e0
push 0
push 0x4215e4
push 0
call fcn.00404a30
mov edi, eax
lea eax, [esp + 0x50]
push 0
push eax
push 0
call fcn.00404a30
mov esi, eax
push esi
push edi
call fcn.0040e1b1
push edi
call fcn.00409583
push esi
call fcn.00409583
add esp, 0x38
jmp 0x403c2a
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x1038]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push 0x4215e8
lea eax, [esp + 0x1c]
push 0x10
push eax
call fcn.00404660
add esp, 0x10
xor esi, esi
nop dword [eax]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x103c]
push eax
call fcn.0040f30f
mov edi, eax
push edi
call fcn.00404990
add esp, 0xc
test eax, eax
je 0x403cf2
push edi
call fcn.00409583
inc esi
add esp, 4
cmp esi, 5
jl 0x403c60
test ebp, ebp
je 0x403cee
push 0
push 0x4215e4
push 0
call fcn.00404a30
test ebx, ebx
je 0x403cd7
push 0
push ebx
push 0
mov edi, eax
call fcn.00404a30
mov esi, eax
push esi
push edi
call fcn.0040e1b1
push edi
call fcn.00409583
push esi
call fcn.00409583
push ebx
call fcn.00409583
add esp, 0x2c
xor eax, eax
jmp 0x403d68
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.00409583
add esp, 4
xor eax, eax
jmp 0x403d68
push 0x1000
push edi
push dword [esp + 0x18]
call fcn.00404ad0
push edi
call fcn.00409583
add esp, 0x10
test ebp, ebp
je 0x403d63
push 0
push 0x4215e4
push 0
call fcn.00404a30
test ebx, ebx
je 0x403d4c
push 0
push ebx
push 0
mov edi, eax
call fcn.00404a30
mov esi, eax
push esi
push edi
call fcn.0040e1b1
push edi
call fcn.00409583
push esi
call fcn.00409583
push ebx
call fcn.00409583
add esp, 0x2c
jmp 0x403d63
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.00409583
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x3038]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004076a4
add esp, 0x302c
ret
Function at 0x403d90
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.004076c0
mov eax, dword [0x42c008]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push 0
push eax
push 0
call fcn.00404a30
add esp, 0xc
lea ecx, [esp]
push 0x2000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x403e20
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.00404ad0
add esp, 0xc
test eax, eax
je 0x403e20
cmp byte [eax], 0
je 0x403e20
push eax
call fcn.0040d5c2
add esp, 4
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.004076a4
add esp, 0x4004
ret
mov ecx, dword [esp + 0x4000]
xor eax, eax
xor ecx, esp
call fcn.004076a4
add esp, 0x4004
ret

Function at 0x404320
Capabilities:
Set environment variable

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

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

Disassembly:
mov eax, 0x2068
call fcn.004076c0
mov eax, dword [0x42c008]
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.00404a30
push 1
push 0x16
call fcn.0040eda4
push 1
push 2
call fcn.0040eda4
push 1
push 0xf
call fcn.0040eda4
push 1
push 0x15
call fcn.0040eda4
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.0040a4ea
push eax
call fcn.0040dbea
push eax
call fcn.0040e8db
push 1
mov dword [esp + 0x68], eax
call fcn.0040a4ea
push eax
call fcn.0040dbea
push eax
call fcn.0040e8db
push 2
mov dword [esp + 0x78], eax
call fcn.0040a4ea
push eax
call fcn.0040dbea
push eax
call fcn.0040e8db
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 0x4044a7
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.004076a4
add esp, 0x2068
ret
push str.Error_creating_child_process__n
push 0x4216ac
call fcn.004018c0
mov ecx, dword [esp + 0x206c]
add esp, 8
xor ecx, esp
or eax, 0xffffffff
call fcn.004076a4
add esp, 0x2068
ret
Function at 0x404990
Capabilities:
Create directory

Disassembly:
sub esp, 0x38
mov eax, dword [0x42c008]
xor eax, esp
mov dword [esp + 0x34], eax
movups xmm0, xmmword [str.D:_A__FA___S_1_3_4_]
push esi
mov esi, dword [esp + 0x40]
lea eax, [esp + 8]
movups xmmword [esp + 0x10], xmm0
push 0
movups xmm0, xmmword [0x421874]
push eax
push 1
movups xmmword [esp + 0x2c], xmm0
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], 0xc
movq xmm0, qword [0x421884]
push eax
movq qword [esp + 0x40], xmm0
mov dword [esp + 0x1c], 0
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x404a03
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004076a4
add esp, 0x38
ret
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x38]
neg eax
pop esi
sbb eax, eax
xor ecx, esp
neg eax
dec eax
call fcn.004076a4
add esp, 0x38
ret
Function at 0x41242c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004122ab

Function at 0x416823
Capabilities:
Set environment variable

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

Function at 0x41682e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004163cc
Function at 0x1000b360
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x1004e010]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
lea eax, [esp + 0xc]
push eax
push ebp
mov edi, ecx
call sym.lua5.1_32.dll_luaL_buffinit
add esp, 8
mov esi, 0x200
lea ecx, [esp + 0xc]
push ecx
call sym.lua5.1_32.dll_luaL_prepbuffer
add esp, 4
cmp esi, edi
jbe 0x1000b3a6
mov esi, edi
push ebx
push esi
push 1
push eax
call fcn.1001ad65
add dword [esp + 0x1c], eax
add esp, 0x10
sub edi, eax
je 0x1000b3bf
cmp eax, esi
je 0x1000b393
lea edx, [esp + 0xc]
push edx
call sym.lua5.1_32.dll_luaL_pushresult
add esp, 4
test edi, edi
je 0x1000b3f9
push 0xffffffffffffffff
push ebp
call sym.lua5.1_32.dll_lua_objlen
add esp, 8
test eax, eax
ja 0x1000b3f9
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.1001a67b
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.1001a67b
add esp, 0x210
ret
Function at 0x1001a67b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1004e010]
jne 0x1001a685
repz ret
jmp fcn.100233c8

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x10029df9
call fcn.1001aed3
mov dword [eax], esi
call fcn.1001aec0
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.10024091
add esp, 0x14
push 0x16
pop eax
jmp 0x10029e4e
test dword [ebp + 0xc], 0xfffffff9
jne 0x10029dd5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10029e26
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1001aee6
pop ecx
call fcn.1001aec0
mov eax, dword [eax]
jmp 0x10029e4e
test al, 0x10
jne 0x10029e4c
test al, 1
je 0x10029e4c
test byte [ebp + 0xc], 2
je 0x10029e4c
call fcn.1001aed3
mov dword [eax], 5
call fcn.1001aec0
mov dword [eax], 0xd
jmp 0x10029e1d
xor eax, eax
pop esi
pop ebp
ret

Function at 0x10036dc7
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.100244c3
and dword [ebp - 4], 0
cmp dword [0x100503b4], 0
mov ebx, eax
jne 0x10036e78
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10036f29
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10036f29
push eax
call fcn.10024451
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100503b4], eax
call esi
push eax
call fcn.10024451
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100503b8], eax
call esi
push eax
call fcn.10024451
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100503bc], eax
call esi
push eax
call fcn.10024451
pop ecx
mov dword [0x100503c4], eax
test eax, eax
je 0x10036e78
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10024451
pop ecx
mov dword [0x100503c0], eax
mov eax, dword [0x100503c0]
cmp eax, ebx
je 0x10036ed0
cmp dword [0x100503c4], ebx
je 0x10036ed0
push eax
call fcn.100244cc
push dword [0x100503c4]
mov esi, eax
call fcn.100244cc
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10036ed0
test edi, edi
je 0x10036ed0
call esi
test eax, eax
je 0x10036ec7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10036ec7
test byte [ebp - 0xc], 1
jne 0x10036ed0
or dword [ebp + 0x10], 0x200000
jmp 0x10036f09
mov eax, dword [0x100503b8]
cmp eax, ebx
je 0x10036f09
push eax
call fcn.100244cc
pop ecx
test eax, eax
je 0x10036f09
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10036f09
mov eax, dword [0x100503bc]
cmp eax, ebx
je 0x10036f09
push eax
call fcn.100244cc
pop ecx
test eax, eax
je 0x10036f09
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100503b4]
call fcn.100244cc
pop ecx
test eax, eax
je 0x10036f29
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10036f2b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6cd591f0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
add ecx, 0xffffffff
push edi
mov edi, dword [esi + 4]
shr ecx, 0x1f
xor edx, edi
sub ecx, 1
and edx, ecx
xor edi, edx
mov dword [esi + 4], edi
xor dword [eax + 4], edx
lea edx, [ebx - 1]
cmp edx, 9
ja case.default.0x6cd59226
jmp dword [edx*4 + 0x6cd59350]
mov edi, 0xa
cmp ebx, edi
jle case.0x6cd59226.10
push ebp
mov edx, dword [esi]
mov ebx, dword [edx + edi*4]
lea ebp, [edx + edi*4]
mov edx, dword [eax]
mov edx, dword [edx + edi*4]
xor edx, ebx
and edx, ecx
xor ebx, edx
mov dword [ebp], ebx
mov ebx, dword [eax]
xor dword [ebx + edi*4], edx
lea ebx, [ebx + edi*4]
add edi, 1
cmp edi, dword [esp + 0x20]
jl 0x6cd59237
pop ebp
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x24]
mov edx, dword [edx + 0x24]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x24], edi
mov edi, dword [eax]
xor dword [edi + 0x24], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x20]
mov edx, dword [edx + 0x20]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x20], edi
mov edi, dword [eax]
xor dword [edi + 0x20], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x1c]
mov edx, dword [edx + 0x1c]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x1c], edi
mov edi, dword [eax]
xor dword [edi + 0x1c], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x18]
mov edx, dword [edx + 0x18]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x18], edi
mov edi, dword [eax]
xor dword [edi + 0x18], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x14]
mov edx, dword [edx + 0x14]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x14], edi
mov edi, dword [eax]
xor dword [edi + 0x14], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x10]
mov edx, dword [edx + 0x10]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x10], edi
mov edi, dword [eax]
xor dword [edi + 0x10], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0xc]
mov edx, dword [edx + 0xc]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0xc], edi
mov edi, dword [eax]
xor dword [edi + 0xc], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 8]
mov edx, dword [edx + 8]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 8], edi
mov edi, dword [eax]
xor dword [edi + 8], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 4]
mov edx, dword [edx + 4]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 4], edi
mov edi, dword [eax]
xor dword [edi + 4], edx
mov esi, dword [esi]
mov edx, dword [eax]
mov edi, dword [esi]
mov edx, dword [edx]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [esi], edi
mov eax, dword [eax]
xor dword [eax], edx
pop edi
pop esi
pop ebx
ret