joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403120
Capabilities:
Get disk size

Disassembly:
mov eax, dword [ecx + 8]
sub esp, 0x10
push esi
xor esi, esi
test eax, eax
je 0x403135
mov eax, dword [ecx + 0xc]
pop esi
add esp, 0x10
ret
mov ecx, dword [ecx + 4]
lea edx, [esp + 0x10]
mov eax, dword [ecx - 8]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x403169
mov esi, dword [esp + 4]
imul esi, dword [esp + 8]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x403170
Capabilities:
Get disk size

Disassembly:
mov ecx, dword [ecx + 4]
sub esp, 0x10
lea edx, [esp + 8]
mov eax, dword [ecx - 8]
push esi
xor esi, esi
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4031b4
mov eax, dword [esp + 4]
pop esi
imul eax, dword [esp + 4]
imul eax, dword [esp + 8]
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x4013d3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x44c430], 1
mov dword [0x44c434], 1
mov dword [0x44c438], 1
mov dword [0x44c424], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40141e
mov eax, 0
jmp 0x4014b8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x401441
mov eax, 0
jmp 0x4014b8
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401463
cmp eax, 0x20b
je 0x401488
jmp 0x4014b3
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401475
mov eax, 0
jmp 0x4014b8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014b8
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4014a0
mov eax, 0
jmp 0x4014b8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014b8
mov eax, 0
leave
ret

Function at 0x4029c0
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
mov esi, str.double_string.free___detected_n
push ebx
mov ebx, 0x1e
sub esp, 0x10
mov dword [esp], 1
call dword [0x424874]
mov edi, eax
nop
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], edi
mov dword [esp + 4], 1
call sub.msvcrt.dll_fwrite
sub ebx, eax
add esi, eax
test ebx, ebx
jg 0x4029e0
add esp, 0x10
pop ebx
pop esi
pop edi
ret

Function at 0x402a30
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [esp + 0x18], edx
test eax, eax
je 0x402b10
mov esi, dword [fcn.00421784]
mov ebx, eax
mov dword [esp], 1
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp], 2
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov edi, dword [esp + 0x18]
mov byte [esp + 0x24], 0xa
test edi, edi
jle 0x402ab0
mov dword [esp], 1
call esi
mov dword [esp], 2
call esi
mov ebp, eax
nop
mov dword [esp + 8], edi
mov dword [esp], ebx
mov dword [esp + 0xc], ebp
mov dword [esp + 4], 1
call sub.msvcrt.dll_fwrite
sub edi, eax
add ebx, eax
test edi, edi
jg 0x402a90
mov dword [esp], 1
lea edi, [esp + 0x24]
mov ebx, 1
call esi
mov dword [esp], 2
call esi
mov ebp, eax
lea esi, [esi]
mov dword [esp + 8], ebx
mov dword [esp], edi
mov dword [esp + 0xc], ebp
mov dword [esp + 4], 1
call sub.msvcrt.dll_fwrite
sub ebx, eax
add edi, eax
test ebx, ebx
jg 0x402ad0
mov dword [esp], 2
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, str.eprintln_NIL_
mov edx, 0xd
mov ecx, 1
mov dword [esp + 0x24], str.eprintln_NIL_
mov dword [esp + 0x28], 0xd
mov dword [esp + 0x2c], 1
call fcn.00402a30
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402fc0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x42d360]
mov eax, dword [0x42d368]
sub eax, ebx
cmp eax, 0x7fff
ja 0x40306b
mov ecx, dword [0x42d30c]
test ecx, ecx
je 0x403080
mov dword [esp + 4], 0x11000
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ebx, [eax + 0xfff]
sub esp, 8
and ebx, 0xfffff000
cmp dword [0x42d3ac], 0x1ff
jbe 0x40302c
mov dword [esp], 0x425230
call fcn.00410de0
call dword [sym.imp.KERNEL32.dll_DebugBreak]
test ebx, ebx
je 0x4030f0
mov eax, dword [0x42d3ac]
add dword [0x42d340], 0x10000
cmp dword [0x42d310], 2
lea edx, [eax + 1]
mov dword [eax*4 + 0x441514], ebx
mov dword [0x42d3ac], edx
je 0x403150
lea eax, [ebx + 0x10000]
mov dword [0x42d368], eax
lea eax, [ebx + 0x8000]
mov dword [0x42d360], eax
add esp, 0x18
mov eax, ebx
pop ebx
ret
cmp dword [0x42480c], 1
mov edx, dword [0x42d304]
mov dword [esp], 0
sbb eax, eax
and eax, 0xffffffc4
add eax, 0x40
mov dword [esp + 0xc], eax
mov eax, dword [0x42d308]
or ah, 0x30
mov dword [esp + 8], eax
xor eax, eax
test edx, edx
sete al
add eax, 0x10000
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
sub esp, 0x10
mov ebx, eax
test eax, 0xfff
je 0x40300e
mov dword [esp], 0x425218
call fcn.00410de0
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x40300e
mov dword [esp + 4], 0x8000
mov dword [esp], 0x425260
call dword [0x424810]
mov eax, 0x8000
call fcn.00411110
mov ebx, eax
test eax, eax
je 0x403076
add dword [0x42d340], 0x8000
cmp dword [0x42d310], 2
jne 0x403076
mov dword [esp + 4], 0x8000
mov dword [esp], 0x425247
call fcn.00411220
jmp 0x403076
mov dword [esp + 4], 0x10000
mov dword [esp], 0x425247
call fcn.00411220
jmp 0x403060
Function at 0x406a40
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
mov edi, str.V_panic:
push esi
mov esi, 9
push ebx
sub esp, 0x8c
mov ebx, dword [fcn.00421784]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
mov dword [esp], 1
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp], 1
call ebx
mov dword [esp], 2
call ebx
mov ebp, eax
mov dword [esp + 8], esi
mov dword [esp], edi
mov dword [esp + 0xc], ebp
mov dword [esp + 4], 1
call sub.msvcrt.dll_fwrite
sub esi, eax
add edi, eax
test esi, esi
jg 0x406a9c
mov dword [esp], 2
lea edi, [esp + 0x5c]
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
call fcn.00402a30
xor eax, eax
mov ecx, 9
lea edx, [esp + 0x40]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x40], str.v_hash:
mov dword [esp + 0x44], 8
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], 0xfe10
mov dword [esp + 0x50], str.6b2d527
mov dword [esp + 0x54], 7
mov dword [esp + 0x58], 1
mov dword [esp + 0x60], 0x4250a8
mov dword [esp + 0x68], 1
call fcn.00406730
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
call fcn.00402a30
mov eax, str.print_backtrace_skipping_top_frames_is_not_implemented
mov edx, 0x36
mov ecx, 1
call fcn.00402a30
mov dword [esp], 1
call sub.msvcrt.dll_exit
lea esi, [esi]
lea esi, [esi]
nop
Function at 0x407c40
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
push eax
mov eax, 0x1088
call fcn.0041b73c
mov ecx, 0x400
sub esp, eax
mov esi, edx
mov eax, dword [esp + eax]
lea ebp, [esp + 0x80]
mov edi, ebp
mov ebx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, 0x1000
call fcn.00407a90
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0x1000
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 1
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 1
mov dword [esp], ebp
call sub.msvcrt.dll_fread
test eax, eax
jle 0x407cd0
mov ecx, eax
mov edx, ebp
lea eax, [esp + 0x24]
call fcn.00407350
jmp 0x407ca0
mov dword [esp], esi
call sub.msvcrt.dll_feof
test eax, eax
jne 0x407d70
mov dword [esp], esi
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_ferror
test eax, eax
je 0x407ca0
mov eax, 0x10
mov dword [esp + 0x54], str.file_read_error
mov edi, ebx
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x5c], 1
mov dword [esp + 0x60], 0
call fcn.00404460
mov edx, dword [esp + 0x1c]
mov ecx, 0xb
mov esi, eax
mov eax, dword [esp + 0x54]
mov dword [esi], eax
mov eax, dword [esp + 0x58]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x60]
mov dword [esi + 0xc], eax
mov eax, edx
rep stosd dword es:[edi], eax
mov dword [ebx + 4], esi
mov eax, ebx
mov dword [ebx + 0xc], esi
add esi, 0xc
mov dword [ebx + 0x10], esi
mov byte [ebx], 1
mov dword [ebx + 8], 3
add esp, 0x108c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 1
mov eax, 1
call fcn.004042f0
mov byte [esp + 0x54], 0
mov eax, dword [esp + 0x54]
mov dword [ebx], eax
mov eax, dword [0x449d50]
mov dword [ebx + 4], eax
mov eax, dword [0x449d54]
mov dword [ebx + 8], eax
mov eax, dword [0x449d58]
mov dword [ebx + 0xc], eax
mov eax, dword [0x449d5c]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x28], eax
add esp, 0x108c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40b250
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x4c
fld qword [esp + 0x60]
fstp qword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
lea ecx, [edx - 0x80000000]
or ecx, eax
je 0x40b300
or edx, eax
je 0x40b2e0
fld qword [esp + 0x18]
fchs
fld qword [esp + 0x18]
fldz
fcompi st(1)
fld st(0)
fcmovnbe st(0), st(2)
fstp st(2)
fld qword [0x426258]
fxch st(2)
fcomi st(2)
fstp st(2)
jb 0x40b2b0
fld dword [0x42623c]
fcompi st(2)
fstp st(1)
ja 0x40b320
fstp st(0)
jmp 0x40b2b4
fstp st(0)
fstp st(0)
fld qword [esp + 0x18]
mov eax, ebx
mov edx, 0x11
fstp qword [esp]
call fcn.0040af90
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebx], 0x42569a
mov eax, ebx
mov dword [ebx + 4], 3
mov dword [ebx + 8], 1
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebx], str._0.0
mov eax, ebx
mov dword [ebx + 4], 4
mov dword [ebx + 8], 1
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x28]
fstp qword [esp]
mov edx, 0x12
call fcn.0040af90
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
lea eax, [esp + 0x34]
call fcn.00407df0
cmp esi, 0xfa1d05ee
je 0x40b380
mov eax, dword [esp + 0x34]
mov dword [ebx], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 8], eax
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 1
mov edi, str.double_string.free___detected_n
mov esi, 0x1e
call dword [0x424874]
mov ebp, eax
lea esi, [esi]
mov dword [esp + 8], esi
mov dword [esp], edi
mov dword [esp + 0xc], ebp
mov dword [esp + 4], 1
call sub.msvcrt.dll_fwrite
sub esi, eax
add edi, eax
test esi, esi
jg 0x40b3a0
jmp 0x40b359
Function at 0x40cd50
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x3c
mov eax, dword [esp + 0x50]
cmp eax, 0x80000000
je 0x40cdf0
test eax, eax
je 0x40cdd0
fld dword [esp + 0x50]
fchs
fld dword [esp + 0x50]
fldz
fcompi st(1)
fxch st(1)
fcmovbe st(0), st(1)
fld dword [0x426238]
fxch st(1)
fcomi st(1)
fstp st(1)
jb 0x40cda0
fld dword [0x42623c]
fcompi st(1)
fstp st(0)
ja 0x40ce10
fstp st(0)
jmp 0x40cda4
fstp st(0)
fstp st(0)
fld dword [esp + 0x50]
mov eax, ebx
mov edx, 8
fstp dword [esp]
call fcn.0040be10
add esp, 0x3c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebx], 0x42569a
mov eax, ebx
mov dword [ebx + 4], 3
mov dword [ebx + 8], 1
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebx], str._0.0
mov eax, ebx
mov dword [ebx + 4], 4
mov dword [ebx + 8], 1
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x18]
fstp dword [esp]
mov edx, 6
call fcn.0040be10
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
lea eax, [esp + 0x24]
call fcn.00407df0
cmp esi, 0xfa1d05ee
je 0x40ce70
mov eax, dword [esp + 0x24]
mov dword [ebx], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 8], eax
add esp, 0x3c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 1
mov edi, str.double_string.free___detected_n
mov esi, 0x1e
call dword [0x424874]
mov ebp, eax
lea esi, [esi]
mov dword [esp + 8], esi
mov dword [esp], edi
mov dword [esp + 0xc], ebp
mov dword [esp + 4], 1
call sub.msvcrt.dll_fwrite
sub esi, eax
add edi, eax
test esi, esi
jg 0x40ce90
jmp 0x40ce49
Function at 0x410a10
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x44bf10]
test eax, eax
je 0x410a20
ret
push ebx
sub esp, 0x78
mov dword [esp], str.GC_USE_GETWRITEWATCH
call sub.msvcrt.dll_getenv
test eax, eax
je 0x410a3d
cmp byte [eax], 0x30
je 0x410b20
mov dword [esp], str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
sub esp, 4
test eax, eax
je 0x410b10
mov dword [esp + 4], str.GetWriteWatch
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [0x42d304], eax
test eax, eax
je 0x410b10
mov eax, dword [0x44c3c8]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x202000
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
sub esp, 0x10
mov ebx, eax
test eax, eax
je 0x410b40
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x30]
mov dword [esp + 0xc], eax
mov eax, dword [0x44c3c8]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], 1
call dword [0x42d304]
sub esp, 0x18
test eax, eax
jne 0x410b30
mov dword [0x42d308], 0x200000
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
sub esp, 0xc
mov dword [0x44bf10], 1
add esp, 0x78
pop ebx
ret
cmp byte [eax + 1], 0
jne 0x410a3d
jmp 0x410b10
mov dword [0x42d304], 0
jmp 0x410af4
mov dword [0x42d304], 0
jmp 0x410b10

Function at 0x410b70
Capabilities:
Query environment variable

Disassembly:
push ebx
sub esp, 0x148
lea ebx, [esp + 0x2c]
mov dword [esp + 8], 0x105
mov dword [esp + 4], ebx
mov dword [esp], str.GC_LOG_FILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
sub eax, 1
sub esp, 0xc
cmp eax, 0x103
ja 0x410c50
cmp dword [0x42d310], 2
mov edx, pe_nt_image_headers32
mov eax, 0x80000080
mov dword [esp], ebx
cmove eax, edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 4
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x40000000
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
jne 0x410c10
add esp, 0x148
mov eax, ebx
pop ebx
ret
lea eax, [esp + 0x28]
mov dword [esp], ebx
mov dword [esp + 0x28], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, ebx
sub esp, 0x10
add esp, 0x148
pop ebx
ret
mov dword [esp + 8], 0x105
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
sub esp, 0xc
cmp eax, 4
jle 0x410c7c
lea edx, [eax - 4]
cmp byte [esp + eax + 0x28], 0x2e
cmove eax, edx
add eax, ebx
mov edx, 0x80000080
cmp dword [0x42d310], 2
mov dword [eax], 0x2e63672e
mov dword [eax + 4], 0x676f6c
mov eax, pe_nt_image_headers32
cmovne eax, edx
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x40000000
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
mov ebx, eax
add esp, 0x148
mov eax, ebx
pop ebx
ret
Function at 0x410cf0
Capabilities:
Write file on windows

Disassembly:
test edx, edx
je 0x410db0
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x34
mov ecx, dword [0x42d064]
test ecx, ecx
jne 0x410d60
mov eax, dword [0x44bf08]
test eax, eax
je 0x410d79
cmp eax, 0xffffffff
je 0x410db3
lea edx, [esp + 0x2c]
mov dword [esp + 8], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
mov eax, dword [0x42d064]
sub esp, 0x14
test eax, eax
jne 0x410d90
test ebx, ebx
je 0x410dd0
mov eax, dword [esp + 0x2c]
add esp, 0x34
pop ebx
pop esi
ret
mov dword [esp], 0x44c404
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x44bf08]
sub esp, 4
test eax, eax
jne 0x410d14
call fcn.00410b70
mov dword [0x44bf08], eax
jmp 0x410d14
mov dword [esp], 0x44c404
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x410d4c
xor eax, eax
ret
mov edx, dword [0x42d064]
test edx, edx
je 0x410dd0
mov dword [esp], 0x44c404
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
lea esi, [esi]
mov eax, 0xffffffff
jmp 0x410d58

Function at 0x410de0
Capabilities:
Query environment variable

Disassembly:
push ebx
sub esp, 0x18
mov dword [0x44bf0c], 1
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x410e2f
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Fatal_error_in_GC
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
sub esp, 0x10
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov edx, eax
mov eax, ebx
call fcn.00410cf0
test eax, eax
jns 0x410e50
mov dword [esp], str.GC_LOOP_ON_ABORT
call sub.msvcrt.dll_getenv
test eax, eax
je 0x410e6f
jmp 0x410e3f
mov edx, 1
mov eax, 0x42630e
call fcn.00410cf0
mov dword [esp], str.GC_LOOP_ON_ABORT
call sub.msvcrt.dll_getenv
test eax, eax
jne 0x410e3f
add esp, 0x18
pop ebx
ret
Function at 0x410e80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [0x44bf30]
test ebx, ebx
jne 0x411000
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
shr edx, 8
xor edx, eax
movzx edx, dl
mov edx, dword [edx*4 + 0x44bfa0]
test edx, edx
je 0x421e40
cmp dword [edx + 8], eax
jne 0x411040
mov edi, dword [edx + 4]
mov edx, dword [0x42d064]
movzx ecx, byte [edi + 0x10]
test cl, cl
je 0x410eec
movzx eax, word [edi + 0x12]
add eax, 1
mov word [edi + 0x12], ax
movzx eax, ax
shr eax, cl
test eax, eax
je 0x411010
xor eax, eax
mov word [edi + 0x12], ax
add ecx, 1
mov byte [edi + 0x10], cl
test edx, edx
jne 0x410fe0
xor esi, esi
jmp 0x410f47
mov ebp, dword [0x42d3d0]
test ebx, ebx
cmove esi, dword [0x42d350]
test ebp, ebp
je 0x410f90
mov edx, dword [ebp + 4]
mov dword [0x42d3d0], edx
mov ecx, dword [0x42d064]
test ecx, ecx
jne 0x410f70
mov edx, dword [ebp + 0xc]
mov dword [ebp + 4], 0
add ebx, 1
mov dword [esp + 4], edx
mov edx, dword [ebp]
mov dword [esp], edx
call dword [ebp + 8]
mov dword [ebp + 0xc], 0
mov eax, dword [0x42d3d0]
test eax, eax
je 0x410faa
mov eax, dword [0x42d064]
test eax, eax
je 0x410f00
mov dword [esp], 0x42d04c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 4
jmp 0x410f00
mov dword [esp], 0x42d04c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x410f26
mov ebp, dword [0x42d064]
test ebp, ebp
je 0x410faa
mov dword [esp], 0x42d04c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
test ebx, ebx
je 0x410fd2
mov eax, dword [0x42d350]
cmp eax, esi
je 0x410fd2
mov edx, dword [0x42d064]
test edx, edx
jne 0x411060
add eax, dword [0x42d354]
sub eax, esi
mov dword [0x42d354], eax
mov byte [edi + 0x10], 0
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x42d04c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x410efa
mov eax, dword [0x42d064]
test eax, eax
je 0x410fd6
jmp 0x411020
test edx, edx
je 0x410fd6
lea esi, [esi]
lea esi, [esi]
nop
mov dword [esp], 0x42d04c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x410fd6
mov edx, dword [edx]
test edx, edx
je 0x4110a4
cmp eax, dword [edx + 8]
je 0x410ebd
jmp 0x411040
mov dword [esp], 0x42d04c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x42d354]
sub esp, 4
sub eax, esi
add eax, dword [0x42d350]
mov dword [0x42d354], eax
mov eax, dword [0x42d064]
test eax, eax
je 0x410fd2
mov dword [esp], 0x42d04c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x410fd2
jmp 0x421e40
mov eax, dword [4]
ud2
Function at 0x411110
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
push ebx
sub esp, 0x14
mov edx, dword [0x42d30c]
test edx, edx
je 0x4111a0
cmp eax, 0xffffeffe
lea edx, [eax + 0x1000]
mov eax, 0xffffffff
mov dword [esp], 0
cmova edx, eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ebx, [eax + 0xfff]
sub esp, 8
and ebx, 0xfffff000
cmp dword [0x42d3ac], 0x1ff
jbe 0x411174
mov dword [esp], str.Too_many_heap_sections
call fcn.00410de0
call dword [sym.imp.KERNEL32.dll_DebugBreak]
test ebx, ebx
je 0x41118d
mov eax, dword [0x42d3ac]
lea edx, [eax + 1]
mov dword [eax*4 + 0x441514], ebx
mov dword [0x42d3ac], edx
add esp, 0x14
mov eax, ebx
pop ebx
pop esi
ret
cmp dword [0x42480c], 1
mov esi, dword [0x42d304]
mov dword [esp], 0
sbb ecx, ecx
mov ebx, dword [0x42d308]
xor edx, edx
and ecx, 0xffffffc4
add ecx, 0x40
or bh, 0x30
test esi, esi
sete dl
mov dword [esp + 8], ebx
mov esi, edx
add edx, eax
mov dword [esp + 0xc], ecx
not esi
cmp esi, eax
mov eax, 0xffffffff
cmovbe edx, eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
sub esp, 0x10
mov ebx, eax
test eax, 0xfff
je 0x411156
mov dword [esp], str.Bad_VirtualAlloc_result
call fcn.00410de0
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x411156

Function at 0x4113c0
Capabilities:
Execute shellcode via indirect call

Disassembly:
push ebp
shl edx, 0xc
xor ecx, 1
mov ebp, eax
push edi
lea edi, [eax + edx]
mov edx, ecx
push esi
and edx, 1
push ebx
sub esp, 0x2c
mov esi, dword [0x44c3c8]
mov byte [esp + 0x1b], dl
mov ebx, esi
lea esi, [esi + edi - 1]
neg ebx
and ebp, ebx
and esi, ebx
mov dword [esp + 0x1c], ebp
cmp ebp, esi
jae 0x411443
mov dword [esp + 0x14], eax
mov edx, ebp
mov ebp, 1
cmp dword [esp + 0x14], edx
seta bl
cmp edi, edx
setbe cl
or bl, cl
jne 0x411417
cmp byte [esp + 0x1b], 0
je 0x411439
mov ebx, edx
mov ecx, edx
mov eax, ebp
shr ebx, 0x11
shr ecx, 0xc
and ebx, 0x1fff
shl eax, cl
add ebx, 0x307c
lock or dword [ebx*4 + 0x42d320], eax
add edx, 0x1000
cmp edx, esi
jb 0x411400
cmp dword [0x42480c], 1
mov dword [esp + 0xc], 0x44bf34
sbb eax, eax
and eax, 0xffffffc4
add eax, 0x40
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
sub esi, eax
mov dword [esp], eax
mov dword [esp + 4], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x411480
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.un_VirtualProtect_failed:_errcode_0x_X_n
mov dword [esp + 4], eax
call fcn.00411220
mov dword [esp], str.un_VirtualProtect_failed
call fcn.00410de0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_DebugBreak]