joyce8/EMBER2024-capa huggingface dataset:
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.00403b80
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.00403e70
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.004017f0
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.0040a81e
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.004017f0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.004099dc
push ebx
call fcn.00409956
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.0040a069
add esp, 0xc
test eax, eax
jne 0x40143d
push dword [edi]
lea eax, [esp + 0x10]
push 1
push 0x60
push eax
call fcn.00409c7e
add esp, 0x10
cmp eax, 1
jb 0x40143d
nop dword [eax]
push 8
push esi
push str.MEI_f_v_n_v
call fcn.00409600
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.00407760
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.00407760
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.00402900
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.0040a069
push dword [esi]
call fcn.0040a5db
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.0040a069
add esp, 0xc
push dword [esi + 0x20]
call sub.WS2_32.dll_ntohl
push eax
call fcn.0040995b
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.004017f0
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.00409c7e
add esp, 0x10
cmp eax, 1
jae 0x401649
push str.Could_not_read_from_file.
push str.fread
call fcn.004017f0
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.00409a87
add esp, 4
test eax, eax
je 0x401677
push str.Error_on_file_n.
call fcn.00401a10
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 0x403a50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.00407780
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.00402900
push esi
push edi
mov ebx, eax
call fcn.00403e70
add esp, 0x10
xor edi, edi
mov esi, eax
test ebx, ebx
je 0x403b4c
push ebx
test esi, esi
je 0x403b51
call fcn.00409a5c
add esp, 4
test eax, eax
jne 0x403b23
push ebx
push 1
lea eax, [esp + 0x14]
push 0x1000
push eax
call fcn.00409c7e
add esp, 0x10
cmp eax, 0xffffffff
jne 0x403ae2
push ebx
call fcn.00409a87
add esp, 4
test eax, eax
je 0x403b08
push ebx
jmp 0x403b18
push esi
push 1
lea eax, [esp + 0x14]
push 0x1000
push eax
call fcn.0040a81e
add esp, 0x10
test eax, eax
jle 0x403b17
push esi
call fcn.00409a87
add esp, 4
test eax, eax
jne 0x403b17
push ebx
call fcn.00409a5c
add esp, 4
test eax, eax
je 0x403ab8
jmp 0x403b23
push esi
call fcn.0040f4a7
add esp, 4
or edi, 0xffffffff
push ebx
call fcn.004099dc
push esi
call fcn.004099dc
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00407760
add esp, 0x1004
ret
test esi, esi
je 0x403b59
push esi
call fcn.004099dc
add esp, 4
mov ecx, dword [esp + 0x100c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407760
add esp, 0x1004
ret
Function at 0x403bd0
Capabilities:
Create directory
Get common file path
Set environment variable

Disassembly:
mov eax, 0x302c
call fcn.00407780
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 0x403c56
push 0x421554
call fcn.00403dc0
push ebp
mov ebx, eax
lea eax, [esp + 0x3c]
push 0x1000
push eax
call fcn.00402970
push 0
push 0x421554
push 0
call fcn.00404bc0
mov edi, eax
lea eax, [esp + 0x50]
push 0
push eax
push 0
call fcn.00404bc0
mov esi, eax
push esi
push edi
call fcn.0040e335
push edi
call fcn.00409956
push esi
call fcn.00409956
add esp, 0x38
jmp 0x403c5a
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 0x421558
lea eax, [esp + 0x1c]
push 0x10
push eax
call fcn.00404690
add esp, 0x10
xor esi, esi
nop dword [eax]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x103c]
push eax
call fcn.0040f48c
mov edi, eax
push edi
call fcn.0040e371
add esp, 0xc
test eax, eax
je 0x403d22
push edi
call fcn.00409956
inc esi
add esp, 4
cmp esi, 5
jl 0x403c90
test ebp, ebp
je 0x403d1e
push 0
push 0x421554
push 0
call fcn.00404bc0
test ebx, ebx
je 0x403d07
push 0
push ebx
push 0
mov edi, eax
call fcn.00404bc0
mov esi, eax
push esi
push edi
call fcn.0040e335
push edi
call fcn.00409956
push esi
call fcn.00409956
push ebx
call fcn.00409956
add esp, 0x2c
xor eax, eax
jmp 0x403d98
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.00409956
add esp, 4
xor eax, eax
jmp 0x403d98
push 0x1000
push edi
push dword [esp + 0x18]
call fcn.00404c50
push edi
call fcn.00409956
add esp, 0x10
test ebp, ebp
je 0x403d93
push 0
push 0x421554
push 0
call fcn.00404bc0
test ebx, ebx
je 0x403d7c
push 0
push ebx
push 0
mov edi, eax
call fcn.00404bc0
mov esi, eax
push esi
push edi
call fcn.0040e335
push edi
call fcn.00409956
push esi
call fcn.00409956
push ebx
call fcn.00409956
add esp, 0x2c
jmp 0x403d93
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.00409956
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x3038]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407760
add esp, 0x302c
ret
Function at 0x403dc0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.00407780
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.00404bc0
add esp, 0xc
lea ecx, [esp]
push 0x2000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x403e50
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.00404c50
add esp, 0xc
test eax, eax
je 0x403e50
cmp byte [eax], 0
je 0x403e50
push eax
call fcn.0040da24
add esp, 4
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.00407760
add esp, 0x4004
ret
mov ecx, dword [esp + 0x4000]
xor eax, eax
xor ecx, esp
call fcn.00407760
add esp, 0x4004
ret
Function at 0x403e70
Capabilities:
Create directory

Disassembly:
mov eax, 0x4034
call fcn.00407780
mov eax, dword [0x42c008]
xor eax, esp
mov dword [esp + 0x4030], eax
mov eax, dword [esp + 0x4038]
push esi
mov esi, dword [esp + 0x4040]
push 0x1000
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0040cbe0
push 0x1000
lea eax, [esp + 0x1044]
push esi
push eax
call fcn.0040cbe0
add esp, 0x18
cmp byte [esp + 0x1033], 0
jne 0x40403a
cmp byte [esp + 0x2033], 0
jne 0x40403a
push ebp
lea ebp, [esp + 0x38]
lea ecx, [ebp + 1]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x403ee1
push ebx
push edi
lea eax, [esp + 0x1040]
sub ebp, ecx
push 0x42042c
push eax
call fcn.0040cd0a
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x403fe4
nop dword [eax]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403f15
sub ecx, edx
inc ebp
add ebp, ecx
cmp ebp, 0xfff
jae 0x403fc9
lea edi, [esp + 0x40]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x403f32
mov ax, word [0x42042c]
mov esi, ebx
mov word [edi], ax
mov al, byte [ebx]
inc ebx
test al, al
jne 0x403f47
lea edi, [esp + 0x40]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403f55
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
push 0x42042c
rep movsb byte es:[edi], byte [esi]
push 0
call fcn.0040cd0a
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x403fe4
push 0x1000
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x2048]
push eax
call fcn.00404bc0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2050]
push eax
call fcn.0040d573
add esp, 0x14
test eax, eax
jns 0x403f10
lea eax, [esp + 0x2040]
push eax
call fcn.0040e371
add esp, 4
jmp 0x403f10
xor eax, eax
pop edi
pop ebx
pop ebp
pop esi
mov ecx, dword [esp + 0x4030]
xor ecx, esp
call fcn.00407760
add esp, 0x4034
ret
push 0x1000
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x2048]
push eax
call fcn.00404bc0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2050]
push eax
call fcn.0040d573
add esp, 0x14
test eax, eax
jne 0x404026
lea eax, [esp + 0x40]
push eax
push str.WARNING:_file_already_exists_but_should_not:__s_n
call fcn.00401a80
add esp, 8
lea eax, [esp + 0x40]
push 0x4215f8
push eax
call fcn.00402900
add esp, 8
jmp 0x403fcb
mov ecx, dword [esp + 0x4034]
xor eax, eax
pop esi
xor ecx, esp
call fcn.00407760
add esp, 0x4034
ret

Function at 0x404350
Capabilities:
Set environment variable

Disassembly:
push esi
push edi
push 0
push dword [esp + 0x10]
push 0
call fcn.00404bc0
add esp, 0xc
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
mov esi, eax
call fcn.00409956
add esp, 4
mov eax, esi
pop edi
pop esi
ret
Function at 0x404380
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x2068
call fcn.00407780
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.00404bc0
push 1
push 0x16
call fcn.0040ef21
push 1
push 2
call fcn.0040ef21
push 1
push 0xf
call fcn.0040ef21
push 1
push 0x15
call fcn.0040ef21
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.0040a93e
push eax
call fcn.0040e04c
push eax
call fcn.0040ea89
push 1
mov dword [esp + 0x68], eax
call fcn.0040a93e
push eax
call fcn.0040e04c
push eax
call fcn.0040ea89
push 2
mov dword [esp + 0x78], eax
call fcn.0040a93e
push eax
call fcn.0040e04c
push eax
call fcn.0040ea89
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 0x4044d7
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.00407760
add esp, 0x2068
ret
push str.Error_creating_child_process__n
push 0x42161c
call fcn.00401900
mov ecx, dword [esp + 0x206c]
add esp, 8
xor ecx, esp
or eax, 0xffffffff
call fcn.00407760
add esp, 0x2068
ret
Function at 0x412565
Capabilities:
Read file on windows

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

Function at 0x41695c
Capabilities:
Set environment variable

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

Function at 0x416967
Capabilities:
Set environment variable

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

Function at 0x406b83
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x45bdec], 0
push esi
jne 0x406bba
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b94
mov dword [ecx*4 + 0x45bde8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b8f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406beb
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x45bde8]
xor eax, esi
inc ecx
dec edx
jne 0x406bcd
pop edi
not eax
pop esi
ret 0xc
Function at 0x401040
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0x1e4dc
mov dword [ebp - 0xc], 0x3000
mov dword [ebp - 4], 0x40
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esp, ebp
pop ebp
ret

Function at 0x401160
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 8], 0x11cb
mov dword [ebp - 0x10], 0
jmp 0x40117f
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0xc]
jae 0x401246
mov dword [ebp - 8], 0x4189
cmp dword [ebp - 0x10], 0
jne 0x4011e8
push 0x104
push 0x4021a4
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push section..tums_1
push 0x4021a4
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push pe_nt_image_headers32
push 3
push 0
push 3
push 1
push 0x4021a4
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4011e1
cmp dword [ebp - 4], 0
jne 0x4011e8
mov eax, 0x42
jmp 0x401246
mov edx, dword [ebp - 0x10]
add edx, 0x563
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
add edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov dword [eax], edx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
xor edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov dword [eax], edx
jmp 0x401176
mov esp, ebp
pop ebp
ret
Function at 0x42e001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x407ef8
mov ecx, 0xae94622
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0xd794fa2
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x79bf157f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x3c]
lea ebx, [eax + edi + 0x78]
mov eax, dword [ebx]
test eax, eax
je 0x79bf162e
cmp dword [ebx + 4], 0x28
jb 0x79bf162e
lea esi, [eax + edi]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x79bf162e
mov edx, dword [esi + 0x20]
cmp edx, eax
jb 0x79bf162e
lea edx, [edx + ecx*4]
mov ecx, dword [ebx + 4]
add ecx, eax
cmp ecx, edx
jb 0x79bf162e
mov eax, dword [esi + 0x20]
and dword [ebp + 8], 0
add eax, edi
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x1c]
add eax, edi
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x24]
add eax, edi
cmp dword [esi + 0x18], 0
mov dword [ebp - 0xc], eax
jbe 0x79bf162e
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
lea eax, [eax + ecx*4]
mov ecx, dword [ebx]
cmp ecx, dword [eax]
ja 0x79bf1623
mov eax, dword [eax]
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebx]
mov ecx, dword [ebp - 8]
add edx, dword [ebx + 4]
lea eax, [eax + ecx + 1]
cmp eax, edx
ja 0x79bf1623
push dword [ebp + 0xc]
lea eax, [ecx + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x79bf1635
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x18]
jb 0x79bf15e5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp + 8]
cmp dword [esi + 0x14], ecx
jbe 0x79bf162e
mov esi, dword [esi + 0x1c]
mov eax, dword [ebx]
cmp esi, eax
jb 0x79bf162e
lea edx, [esi + ecx*4 + 4]
mov esi, dword [ebx + 4]
add esi, eax
cmp esi, edx
jb 0x79bf162e
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + eax*4]
jmp 0x79bf1630

Function at 0x79bf1705
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x40
mov edi, 0x101000
push edi
push dword [esp + 0x14]
push 0
call esi
test eax, eax
jne 0x79bf172b
push 4
push edi
push dword [esp + 0x14]
push eax
call esi
pop edi
pop esi
ret

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

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx + 8]
mov eax, dword [edi + 0x3c]
mov esi, dword [eax + edi + 0x78]
add esi, edi
mov ebx, dword [esi + 0x20]
xor ebp, ebp
add ebx, edi
cmp ebp, dword [esi + 0x18]
jae 0x79bf186f
mov eax, dword [ebx + ebp*4]
push dword [esp + 0x14]
add eax, edi
push eax
call fcn.79bf1073
pop ecx
pop ecx
test eax, eax
je 0x79bf186a
inc ebp
cmp ebp, dword [esi + 0x18]
jb 0x79bf184f
cmp ebp, dword [esi + 0x18]
jb 0x79bf187b
push 0x7f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x79bf1890
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x1c]
lea eax, [eax + ebp*2]
movzx eax, word [eax + edi]
lea eax, [ecx + eax*4]
mov eax, dword [eax + edi]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x79bf1ede
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 4]
test edi, edi
jne 0x79bf1f27
mov ecx, dword [eax + 4]
push edi
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ecx
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x79bf1f23
cmp dword [ebp - 8], ebx
je 0x79bf1f5c
xor eax, eax
jmp 0x79bf1f5f
mov esi, dword [esi + 8]
mov edx, ebx
xor ecx, ecx
add edx, dword [eax]
adc ecx, dword [eax + 4]
xor ebx, ebx
cmp ebx, ecx
jg 0x79bf1f49
jl 0x79bf1f3f
cmp esi, edx
jae 0x79bf1f49
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x79bf1f23
mov eax, dword [eax]
push dword [ebp + 0x10]
add eax, edi
push eax
push dword [ebp + 0xc]
call section..text
add esp, 0xc
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x79bf2690
Capabilities:
Allocate or change rwx memory
Map section object

Disassembly:
sub esp, 0x10
push edi
mov edi, dword [esp + 0x20]
push 0
push 0x8000000
push 0x40
lea eax, [esp + 0x18]
push eax
push 0
push 0xe
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.ntdll.dll_NtCreateSection]
test eax, eax
jl 0x79bf278e
mov ecx, dword [esp + 4]
push esi
push 0x40
push 0x100000
push 2
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 1
lea eax, [esp + 0x40]
push eax
push 0xffffffffffffffff
push ecx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x34], 0
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov esi, eax
test esi, esi
jge 0x79bf2719
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
pop esi
pop edi
add esp, 0x10
ret
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x79bf2749
cmp byte [esp + 0x20], 0
push edi
je 0x79bf273b
mov ecx, dword [esp + 0x28]
push ecx
push 0xffffffffffffffff
push eax
call fcn.79bf29d0
add esp, 0x10
jmp 0x79bf2749
mov edx, dword [esp + 0x28]
push eax
push edx
call section..text
add esp, 0xc
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x79bf275e
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x79bf2764
mov ecx, dword [esp + 8]
mov dword [eax], ecx
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x79bf277b
mov edx, dword [esp + 0x24]
push edx
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
jmp 0x79bf2781
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
mov eax, dword [esp + 0x30]
test eax, eax
je 0x79bf278b
mov dword [eax], edi
xor eax, eax
pop esi
pop edi
add esp, 0x10
ret
Function at 0x79bf2a10
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov bl, byte [eax]
push esi
cmp bl, 0xd8
je 0x79bf2a41
cmp bl, 0xd7
je 0x79bf2a41
mov esi, dword [esp + 0x14]
lea ecx, [eax + 1]
test esi, esi
jle 0x79bf2a69
mov eax, dword [esp + 0x10]
sub ecx, eax
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
sub esi, 1
jne 0x79bf2a33
pop esi
pop ebx
ret
mov esi, dword [esp + 0x10]
push esi
inc eax
push eax
call fcn.79bf2a8e
cmp bl, 0xd8
jne 0x79bf2a69
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
jle 0x79bf2a69
lea esp, [esp]
xor byte [eax + esi], 0xf0
inc eax
cmp eax, ecx
jl 0x79bf2a60
pop esi
pop ebx
ret