joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa9a0b0
Capabilities:
Create udp socket

Disassembly:
cmp byte [edx + 0x452], 2
je fcn.00a71d50
mov al, 1
ret

Function at 0xa9ffd0
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, ecx
push 0x401
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + 0x400], 0
test eax, eax
jne 0xaa0001
push 0x2e
push esi
call fcn.00aa5e90
add esp, 8
test eax, eax
je 0xa9ffff
mov byte [eax], 0
xor eax, eax
pop esi
ret

Function at 0xaa00a0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xb0a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push esi
push edi
push 0xf0000040
push 1
push 0
push 0
push eax
mov esi, edx
mov dword [ebp - 0x20], 8
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xaa012d
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0x208
lea edx, [ebp - 0xc]
movlpd qword [ebp - 0xc], xmm0
mov ecx, ebx
mov dword [ebp - 0x14], 0x6601
mov dword [ebp - 0x10], 8
call fcn.00aa0010
mov ecx, edx
call fcn.00aa15f0
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0xaa0140
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00aa17a3
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x20]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esi], eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x24]
mov dword [esi + 4], ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00aa17a3
mov esp, ebp
pop ebp
ret

Function at 0xaa0370
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000040
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xaa03af
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0xaa03b7
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 0x1b
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0xaa07e0
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000040
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xaa0812
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x800c
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
xor eax, eax
pop esi
pop ebp
ret
Function at 0xaa08d0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0xb0a97c]
mov edi, eax
add esp, 4
test edi, edi
jne 0xaa0903
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x10]
jbe 0xaa094a
mov eax, dword [esi]
push ecx
call eax
push dword [ebp + 8]
mov eax, dword [esi + 4]
push ebx
push dword [edi + 4]
call eax
mov ebx, dword [edi + 8]
add ebx, dword [esi + 0xc]
push dword [edi + 4]
mov eax, dword [esi + 8]
push ebx
mov dword [ebp - 8], ebx
call eax
mov eax, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 8], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 8]
add esp, 8
xor ebx, ebx
test eax, eax
je 0xaa09a3
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 8], 1
jne 0xaa0968
mov ebx, dword [ebp - 0xc]
cmp ebx, dword [esi + 0x10]
jae 0xaa09d7
nop dword [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0xad723b
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0xad723a
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0xaa09b0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xaa14f0
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push esi
push edi
push 0xf0000040
mov esi, ecx
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xaa152b
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
ret

Function at 0xabb109
Capabilities:
Set environment variable

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

Function at 0xac2429
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00ac22a8
Function at 0x4013d3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x44c450], 1
mov dword [0x44c454], 1
mov dword [0x44c458], 1
mov dword [0x44c444], 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.00421904]
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.00410f40
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.00410f40
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.00411270
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.00411380
jmp 0x403076
mov dword [esp + 4], 0x10000
mov dword [esp], 0x425247
call fcn.00411380
jmp 0x403060
Function at 0x406aa0
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.00421904]
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 0x406afc
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.00406790
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 0x407790
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
push eax
mov eax, 0x1088
call fcn.0041b8bc
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.00407230
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 0x407820
mov ecx, eax
mov edx, ebp
lea eax, [esp + 0x24]
call fcn.004075a0
jmp 0x4077f0
mov dword [esp], esi
call sub.msvcrt.dll_feof
test eax, eax
jne 0x4078c0
mov dword [esp], esi
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_ferror
test eax, eax
je 0x4077f0
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.004044c0
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.00404350
mov byte [esp + 0x54], 0
mov eax, dword [esp + 0x54]
mov dword [ebx], eax
mov eax, dword [0x449d4c]
mov dword [ebx + 4], eax
mov eax, dword [0x449d50]
mov dword [ebx + 8], eax
mov eax, dword [0x449d54]
mov dword [ebx + 0xc], eax
mov eax, dword [0x449d58]
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 0x40b2d0
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 0x40b380
or edx, eax
je 0x40b360
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 [0x4262f8]
fxch st(2)
fcomi st(2)
fstp st(2)
jb 0x40b330
fld dword [0x4262dc]
fcompi st(2)
fstp st(1)
ja 0x40b3a0
fstp st(0)
jmp 0x40b334
fstp st(0)
fstp st(0)
fld qword [esp + 0x18]
mov eax, ebx
mov edx, 0x11
fstp qword [esp]
call fcn.0040b010
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.0040b010
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.00407b60
cmp esi, 0xfa1d05ee
je 0x40b400
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 0x40b420
jmp 0x40b3d9
Function at 0x40ce10
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 0x40ceb0
test eax, eax
je 0x40ce90
fld dword [esp + 0x50]
fchs
fld dword [esp + 0x50]
fldz
fcompi st(1)
fxch st(1)
fcmovbe st(0), st(1)
fld dword [0x4262d8]
fxch st(1)
fcomi st(1)
fstp st(1)
jb 0x40ce60
fld dword [0x4262dc]
fcompi st(1)
fstp st(0)
ja 0x40ced0
fstp st(0)
jmp 0x40ce64
fstp st(0)
fstp st(0)
fld dword [esp + 0x50]
mov eax, ebx
mov edx, 8
fstp dword [esp]
call fcn.0040bed0
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.0040bed0
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.00407b60
cmp esi, 0xfa1d05ee
je 0x40cf30
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 0x40cf50
jmp 0x40cf09
Function at 0x410b70
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x44be60]
test eax, eax
je 0x410b80
ret
push ebx
sub esp, 0x78
mov dword [esp], str.GC_USE_GETWRITEWATCH
call sub.msvcrt.dll_getenv
test eax, eax
je 0x410b9d
cmp byte [eax], 0x30
je 0x410c80
mov dword [esp], str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
sub esp, 4
test eax, eax
je 0x410c70
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 0x410c70
mov eax, dword [0x44c3e8]
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 0x410ca0
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 [0x44c3e8]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], 1
call dword [0x42d304]
sub esp, 0x18
test eax, eax
jne 0x410c90
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 [0x44be60], 1
add esp, 0x78
pop ebx
ret
cmp byte [eax + 1], 0
jne 0x410b9d
jmp 0x410c70
mov dword [0x42d304], 0
jmp 0x410c54
mov dword [0x42d304], 0
jmp 0x410c70

Function at 0x410cd0
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 0x410db0
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 0x410d70
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 0x410ddc
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 0x410e50
Capabilities:
Write file on windows

Disassembly:
test edx, edx
je 0x410f10
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x34
mov ecx, dword [0x42d068]
test ecx, ecx
jne 0x410ec0
mov eax, dword [0x44be58]
test eax, eax
je 0x410ed9
cmp eax, 0xffffffff
je 0x410f13
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 [0x42d068]
sub esp, 0x14
test eax, eax
jne 0x410ef0
test ebx, ebx
je 0x410f30
mov eax, dword [esp + 0x2c]
add esp, 0x34
pop ebx
pop esi
ret
mov dword [esp], 0x44c424
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x44be58]
sub esp, 4
test eax, eax
jne 0x410e74
call fcn.00410cd0
mov dword [0x44be58], eax
jmp 0x410e74
mov dword [esp], 0x44c424
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x410eac
xor eax, eax
ret
mov edx, dword [0x42d068]
test edx, edx
je 0x410f30
mov dword [esp], 0x44c424
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
lea esi, [esi]
mov eax, 0xffffffff
jmp 0x410eb8

Function at 0x410f40
Capabilities:
Query environment variable

Disassembly:
push ebx
sub esp, 0x18
mov dword [0x44be5c], 1
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x410f8f
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.00410e50
test eax, eax
jns 0x410fb0
mov dword [esp], str.GC_LOOP_ON_ABORT
call sub.msvcrt.dll_getenv
test eax, eax
je 0x410fcf
jmp 0x410f9f
mov edx, 1
mov eax, 0x4263ae
call fcn.00410e50
mov dword [esp], str.GC_LOOP_ON_ABORT
call sub.msvcrt.dll_getenv
test eax, eax
jne 0x410f9f
add esp, 0x18
pop ebx
ret