joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40977c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffd4
mov ecx, 0x20
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 0xc]
mov dword [esp + 8], 4
call fcn.0040fc34
xor esi, esi
xor ecx, ecx
xor edx, edx
jmp 0x4097e3
xor eax, eax
mov edi, esi
mov ebp, dword [esp]
shl edi, 4
lea ebx, [esp + edx*4 + 0xc]
lea edi, [ebp + edi]
mov bl, byte [ebx + eax]
lea edi, [edi + ecx*4]
mov byte [edi + eax + 0x14], bl
inc eax
cmp eax, 4
jl 0x4097ae
inc edx
inc ecx
cmp edx, dword [esp + 8]
jge 0x4097db
cmp ecx, 4
jl 0x4097ac
cmp ecx, 4
jne 0x4097e3
inc esi
xor ecx, ecx
cmp edx, dword [esp + 8]
jge 0x4097ee
cmp esi, 0xa
jle 0x4097d0
cmp esi, 0xa
jg 0x409981
mov eax, dword [esp + 8]
xor edx, edx
mov dl, byte [esp + eax*4 + 9]
mov al, byte [edx + 0x417cf4]
xor byte [esp + 0xc], al
mov edx, dword [esp + 8]
xor eax, eax
mov al, byte [esp + edx*4 + 0xa]
mov dl, byte [eax + 0x417cf4]
xor byte [esp + 0xd], dl
mov eax, dword [esp + 8]
xor edx, edx
mov dl, byte [esp + eax*4 + 0xb]
mov al, byte [edx + 0x417cf4]
xor byte [esp + 0xe], al
mov edx, dword [esp + 8]
xor eax, eax
mov al, byte [esp + edx*4 + 8]
mov dl, byte [eax + 0x417cf4]
xor byte [esp + 0xf], dl
mov eax, dword [esp + 4]
mov dl, byte [eax + 0x417ef4]
xor byte [esp + 0xc], dl
inc dword [esp + 4]
cmp dword [esp + 8], 8
je 0x409891
mov edx, 1
cmp edx, dword [esp + 8]
jge 0x40992f
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x409871
inc edx
cmp edx, dword [esp + 8]
jl 0x40986f
jmp 0x40992f
mov edx, 1
jmp 0x4098af
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x40989a
inc edx
mov eax, dword [esp + 8]
sar eax, 1
jns 0x4098ba
adc eax, 0
cmp edx, eax
jl 0x409898
mov eax, dword [esp + 8]
sar eax, 1
jns 0x4098c9
adc eax, 0
xor edx, edx
mov dl, byte [esp + eax*4 + 8]
mov dl, byte [edx + 0x417cf4]
xor byte [esp + eax*4 + 0xc], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 9]
mov dl, byte [edx + 0x417cf4]
xor byte [esp + eax*4 + 0xd], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 0xa]
mov dl, byte [edx + 0x417cf4]
xor byte [esp + eax*4 + 0xe], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 0xb]
mov dl, byte [edx + 0x417cf4]
xor byte [esp + eax*4 + 0xf], dl
mov edx, eax
inc edx
cmp edx, dword [esp + 8]
jge 0x40992f
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x409914
inc edx
cmp edx, dword [esp + 8]
jl 0x409912
xor edx, edx
jmp 0x40996d
xor eax, eax
mov ebx, esi
shl ebx, 4
mov edi, dword [esp]
lea ebx, [edi + ebx]
lea ebx, [ebx + ecx*4]
lea edi, [ebx + eax + 0x14]
lea ebx, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
mov byte [edi], bl
inc eax
cmp eax, 4
jl 0x409937
inc edx
inc ecx
cmp edx, dword [esp + 8]
jge 0x409965
cmp ecx, 4
jl 0x409935
cmp ecx, 4
jne 0x40996d
inc esi
xor ecx, ecx
cmp edx, dword [esp + 8]
jge 0x409978
cmp esi, 0xa
jle 0x40995a
cmp esi, 0xa
jle 0x4097f7
add esp, 0x2c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40998c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov dword [esp], eax
mov esi, 1
xor eax, eax
xor ecx, ecx
mov edx, esi
mov ebx, ecx
shl edx, 4
add edx, dword [esp]
shl ebx, 2
add edx, ebx
xor ebx, ebx
add edx, 0x14
movzx edi, byte [edx + 1]
mov bl, byte [edx]
lea edi, [edi*4 + 0x41a312]
lea ebx, [ebx*4 + 0x419f12]
mov bl, byte [ebx + eax]
xor bl, byte [edi + eax]
movzx edi, byte [edx + 2]
movzx edx, byte [edx + 3]
lea edi, [edi*4 + 0x41a712]
lea edx, [edx*4 + 0x41ab12]
xor bl, byte [edi + eax]
xor bl, byte [edx + eax]
lea edx, [esp + ecx*4 + 4]
mov byte [edx + eax], bl
inc ecx
cmp ecx, 4
jl 0x40999e
inc eax
cmp eax, 4
jl 0x40999c
mov eax, esi
lea edx, [esp + 4]
shl eax, 4
mov ecx, 0x10
add eax, dword [esp]
add eax, 0x14
call fcn.0040fc34
inc esi
cmp esi, 0xa
jl 0x40999a
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x40ac78
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
xor edx, edx
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], edx
ret
Function at 0x40e57c
Capabilities:
Move file

Disassembly:
push ebx
push esi
push edi
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x40e585
mov eax, dword [esp + 0x2000]
add esp, 0xfffffb30
mov ebx, edx
mov esi, eax
lea edi, [esp + 0x10b4]
lea eax, [esp + 0xc14]
call fcn.00406858
lea eax, [esp + 0xc40]
call fcn.00406858
lea eax, [esp + 0xc6c]
call fcn.00406858
push 0
lea ecx, [esp + 4]
mov edx, ebx
mov eax, esi
call fcn.00405b74
test al, al
jne 0x40e5e5
xor eax, eax
jmp 0x40e732
cmp byte [esp], 0
je 0x40e5f5
cmp byte [esp + 0xc98], 0
jne 0x40e5fc
xor eax, eax
jmp 0x40e732
mov eax, esp
call fcn.00405f84
lea edx, [esp + 0xc98]
call fcn.00406fdc
test eax, eax
je 0x40e62a
mov eax, esi
call fcn.00405f84
lea edx, [esp + 0xc98]
call fcn.00406fdc
test eax, eax
je 0x40e631
xor eax, eax
jmp 0x40e732
xor ebx, ebx
mov eax, edi
mov ecx, 0x400
mov edx, esi
call fcn.00407084
push ebx
push str.rtmp_d
mov eax, edi
call fcn.00405f84
push eax
call fcn.0040fe18
add esp, 0xc
mov eax, edi
xor edx, edx
call fcn.00406e60
test al, al
je 0x40e66f
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x40e633
mov eax, edi
xor edx, edx
call fcn.00406e60
test al, al
je 0x40e683
xor eax, eax
jmp 0x40e732
lea eax, [esp + 0x14b4]
mov ecx, 0x400
mov edx, esi
call fcn.00407084
mov eax, esp
call fcn.00405f84
push eax
lea eax, [esp + 0x14b8]
call fcn.00405f84
pop edx
call fcn.0040fd20
push edi
lea ecx, [esp + 0x14b8]
push ecx
call sub.KERNEL32.DLL_MoveFileA
test eax, eax
jne 0x40e6c6
xor eax, eax
jmp 0x40e732
lea eax, [esp + 0x18b4]
call fcn.0040e73c
xor ebx, ebx
xor edx, edx
mov eax, esi
call fcn.00406e60
test al, al
jne 0x40e6f3
lea eax, [esp + 0x18b4]
xor ecx, ecx
mov edx, esi
call fcn.0040e91c
mov ebx, eax
lea eax, [esp + 0x14b4]
push eax
push edi
call sub.KERNEL32.DLL_MoveFileA
test bl, bl
je 0x40e71d
lea eax, [esp + 0x18b4]
call fcn.0040ea20
lea eax, [esp + 0x18b4]
call fcn.0040eaa8
mov al, 1
push eax
lea eax, [esp + 0x18b8]
mov edx, 2
call fcn.0040e78c
pop eax
add esp, 0x24d4
pop edi
pop esi
pop ebx
ret
Function at 0x40e7d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, eax
push edi
mov dword [ebp - 4], edx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc18], edx
cmp byte [ebx + 0x16], 0
mov esi, ecx
je 0x40e7f3
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x40e804
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x40e813
or dword [ebp - 8], 2
xor eax, eax
cmp byte [ebx + 0x15], 0
jne 0x40e820
add eax, 0x8000000
mov dword [ebp - 0xc], eax
call fcn.00405718
test eax, eax
je 0x40e84d
test esi, esi
je 0x40e84d
cmp word [esi], 0
je 0x40e84d
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push esi
call sub.KERNEL32.DLL_CreateFileW
mov edi, eax
jmp 0x40e864
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e87d
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x40e87d
mov dword [ebx + 0xc18], 1
xor edx, edx
cmp edi, 0xffffffff
mov byte [ebx + 0x12], 0
setne cl
mov dword [ebx + 0xc], edx
and ecx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 0xd], cl
cmp byte [ebp - 0xd], 0
je 0x40e8e7
mov dword [ebx + 4], edi
test esi, esi
je 0x40e8b2
lea eax, [ebx + 0x418]
mov edx, esi
call fcn.004104f8
jmp 0x40e8bb
mov word [ebx + 0x418], 0
cmp dword [ebp - 4], 0
je 0x40e8ce
lea eax, [ebx + 0x17]
mov edx, dword [ebp - 4]
call fcn.0040fd20
jmp 0x40e8dd
lea edx, [ebx + 0x17]
mov ecx, 0x1000000
mov eax, esi
call fcn.004102d8
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0040e9cc
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40ead8
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, ecx
test esi, esi
mov edi, eax
mov dword [esp], edx
je 0x40ebfb
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40eb13
dec eax
je 0x40eafd
dec eax
je 0x40eb09
jmp 0x40eb13
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x40eb13
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
cmp dword [edi + 0xc], 0
je 0x40eb65
xor ebp, ebp
cmp esi, ebp
jle 0x40eb81
push 0
lea eax, [esp + 8]
push eax
mov edx, esi
sub edx, ebp
cmp edx, 0x4000
jge 0x40eb38
mov ecx, esi
sub ecx, ebp
jmp 0x40eb3d
mov ecx, 0x4000
push ecx
mov eax, dword [esp + 0xc]
add eax, ebp
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
je 0x40eb81
add ebp, 0x4000
cmp esi, ebp
jg 0x40eb1f
jmp 0x40eb81
push 0
lea eax, [esp + 8]
push eax
push esi
push dword [esp + 0xc]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
jne 0x40ebf7
cmp byte [edi + 0x14], 0
je 0x40ebf7
cmp dword [edi + 0xc], 0
jne 0x40ebf7
lea edx, [edi + 0x17]
mov eax, 0x41b998
call fcn.0040cc5c
test al, al
je 0x40ebe1
mov ecx, dword [esp + 4]
cmp ecx, esi
jae 0x40eb13
cmp dword [esp + 4], 0
jbe 0x40eb13
mov eax, edi
call fcn.0040ee20
push edx
push eax
mov eax, dword [esp + 0xc]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
xor edx, edx
mov eax, edi
call fcn.0040ed68
jmp 0x40eb13
lea ecx, [edi + 0x17]
mov eax, 0x41b998
xor edx, edx
call fcn.0040cc44
jmp 0x40ebf7
mov byte [edi + 8], 1
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40ece8
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
push esi
push edi
push ecx
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x40ed0f
cmp esi, 0x4e20
jle 0x40ed05
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [esp + 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40ed60
mov eax, ebx
call fcn.0040f028
test al, al
je 0x40ed47
cmp esi, 0x4e20
jle 0x40ed47
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.0040ece8
jmp 0x40ed63
cmp dword [ebx + 0xc], 1
jne 0x40ed5b
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x40ed5b
xor eax, eax
jmp 0x40ed63
or eax, 0xffffffff
jmp 0x40ed63
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x410268
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [0x41577c], 0
jne 0x410281
call fcn.0040febc
mov dword [0x415778], eax
inc byte [0x41577c]
call fcn.0040febc
sub eax, dword [0x415778]
cmp eax, 0x64
jle 0x4102bd
cmp dword [0x416188], 0
je 0x4102b8
mov eax, 0x41b998
mov edx, 0xff
call fcn.0040cdf8
mov eax, 0x41b998
mov edx, 0xff
call fcn.0040cdf0
call fcn.00402c40
ret
Function at 0x4069c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4069e9
xor eax, eax
test eax, eax
je 0x4069fc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4069fc
xor ecx, ecx
jmp 0x4069ff
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x427dec], 0
push esi
jne 0x406b59
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 0x406b33
mov dword [ecx*4 + 0x427de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406b8a
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 + 0x427de8]
xor eax, esi
inc ecx
dec edx
jne 0x406b6c
pop edi
not eax
pop esi
ret 0xc

Function at 0x40b15a
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [pe_dos_header]
mov eax, dword ds:[eax + 0x34]
mov ebp, dword ds:[eax + 0xb8]
jmp 0x40b168
push eax
push ecx
push esi
push ebp
mov eax, dword fs:[0x30]
test eax, eax
js 0x40b14a
mov eax, dword ds:[eax + 0xc]
mov esi, dword ds:[eax + 0x1c]
lodsd eax, dword [esi]
mov ebp, dword ds:[eax + 8]
mov dword [ebx + 0x60], ebp
mov eax, ebp
cmp word [eax], 0x5a4d
jne 0x40b145
add eax, 0x3c
mov ecx, dword [eax]
add ecx, dword [ebx + 0x60]
cmp word [ecx], 0x4550
jne 0x40b145
add ecx, 0x78
mov esi, dword [ecx]
add esi, dword [ebx + 0x60]
add esi, 0x18
lodsd eax, dword [esi]
mov dword [ebx + 0x64], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x68], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x6c], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x70], eax
pop ebp
pop esi
pop ecx
pop eax
ret
Function at 0x401460
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
cmp eax, 0x101
ja 0x401485
cmp eax, 0x100
jae 0x401498
cmp eax, 0x10
je 0x401491
jmp 0x4014cb
sub eax, 0x104
cmp eax, 1
ja 0x4014cb
jmp 0x401498
mov byte [0x408020], 0
mov eax, dword [ebp + 0x14]
not eax
shr eax, 0x1f
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x4014ba
mov dword [esp], str.DOWN_n
call sym._OutputDebugStringA_4
sub esp, 4
jmp 0x4014f1
mov dword [esp], 0x40606a
call sym._OutputDebugStringA_4
sub esp, 4
jmp 0x4014f1
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._DefWindowProcA_16
sub esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
leave
ret 0x10
Function at 0x401f60
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408048
call sym._EnterCriticalSection_4
mov ebx, dword [0x408040]
sub esp, 4
test ebx, ebx
je 0x401fab
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401fa4
test esi, esi
je 0x401fa4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401f80
mov dword [esp], 0x408048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402190
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4021e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4022b8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40221e
cmp eax, 4
jne 0x402240
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40222e
cmp edx, 4
je 0x40222e
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 sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402190
Function at 0x404090
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call sym.___main
call sym._GetCommandLineA_0
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym._GetStartupInfoA_4
sub esp, 4
test ebx, ebx
jne 0x4040c6
jmp 0x4040fe
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x4040c3
cmp al, 9
je 0x4040c3
cmp al, 0x22
jne 0x4040e7
jmp 0x404146
cmp al, 9
je 0x4040f3
add ebx, 1
movzx eax, byte [ebx]
test al, 0xdf
jne 0x4040e0
jmp 0x4040f3
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x4040f0
cmp al, 9
je 0x4040f0
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x40410d
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.WinMain@16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
test al, al
je 0x404152
mov edx, ebx
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x22
jne 0x404142
cmp al, 0x22
jne 0x4040f3
lea ebx, [edx + 2]
jmp 0x4040f3

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x55802d65
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..rsrc
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0xf1932c7
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x100013e0
Capabilities:
Query environment variable

Disassembly:
push ebx
push edi
push esi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
cmp byte [0x10013e38], 1
jne 0x100013ff
test byte [0x10013e37], 1
jne 0x1000141e
jmp 0x1000144b
push str.LIBUNWIND_PRINT_APIS
call sym._getenv
add esp, 4
mov byte [0x10013e38], 1
test eax, eax
setne byte [0x10013e37]
je 0x1000144b
mov ebx, dword [dbg.__acrt_iob_func]
push 2
call ebx
add esp, 4
push edi
push esi
push str.libunwind:___unw_init_local_cursor_p__context_p__n
push eax
call dbg.__mingw_fprintf
add esp, 0x10
push 2
call ebx
add esp, 4
push eax
call sym._fflush
add esp, 4
mov dword [esi], method.libunwind::AbstractUnwindCursor.AbstractUnwindCursor__
mov dword [esi + 4], 0x10013e34
movups xmm0, xmmword [edi]
movups xmm1, xmmword [edi + 0x10]
movups xmmword [esi + 8], xmm0
movups xmmword [esi + 0x18], xmm1
movups xmm0, xmmword [edi + 0x20]
movups xmmword [esi + 0x28], xmm0
movups xmm0, xmmword [edi + 0x30]
movups xmmword [esi + 0x38], xmm0
xorps xmm0, xmm0
movups xmmword [esi + 0x48], xmm0
movups xmmword [esi + 0x58], xmm0
movups xmmword [esi + 0x62], xmm0
mov ecx, esi
push 0
call method.libunwind::UnwindCursor_libunwind::LocalAddressSpace__libunwind::Registers_x86_.setInfoBasedOnIPRegister_bool_
xor eax, eax
pop esi
pop edi
pop ebx
ret

Function at 0x100014a0
Capabilities:
Query environment variable

Disassembly:
cmp byte [0x10013e38], 1
jne 0x100014b3
movzx eax, byte [0x10013e37]
and al, 1
ret
push str.LIBUNWIND_PRINT_APIS
call sym._getenv
add esp, 4
test eax, eax
setne al
setne byte [0x10013e37]
mov byte [0x10013e38], 1
and al, 1
ret

Function at 0x100014e0
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp byte [0x10013e38], 1
jne 0x10001504
test byte [0x10013e37], 1
jne 0x10001523
jmp 0x10001551
push str.LIBUNWIND_PRINT_APIS
call sym._getenv
add esp, 4
mov byte [0x10013e38], 1
test eax, eax
setne byte [0x10013e37]
je 0x10001551
mov edi, dword [dbg.__acrt_iob_func]
push 2
call edi
add esp, 4
push ebx
push ebp
push esi
push str.libunwind:___unw_get_reg_cursor_p__regNum_d__value_p__n
push eax
call dbg.__mingw_fprintf
add esp, 0x14
push 2
call edi
add esp, 4
push eax
call sym._fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x10010788]
mov ecx, esi
push ebp
call edi
mov ecx, eax
mov eax, 0xffffe672
test cl, cl
je 0x10001584
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x10010788]
mov ecx, esi
push ebp
call edi
mov dword [ebx], eax
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10001590
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
cmp byte [0x10013e38], 1
jne 0x100015b7
test byte [0x10013e37], 1
jne 0x100015d6
jmp 0x10001604
push str.LIBUNWIND_PRINT_APIS
call sym._getenv
add esp, 4
mov byte [0x10013e38], 1
test eax, eax
setne byte [0x10013e37]
je 0x10001604
mov edi, dword [dbg.__acrt_iob_func]
push 2
call edi
add esp, 4
push ebp
push ebx
push esi
push str.libunwind:___unw_set_reg_cursor_p__regNum_d__value0x_x__n
push eax
call dbg.__mingw_fprintf
add esp, 0x14
push 2
call edi
add esp, 4
push eax
call sym._fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x10010788]
mov ecx, esi
push ebx
call edi
mov ecx, eax
mov eax, 0xffffe672
test cl, cl
je 0x10001698
mov eax, dword [esi]
mov edi, dword [eax + 0x10]
mov ecx, edi
call dword [0x10010788]
mov ecx, esi
push ebp
push ebx
call edi
xor eax, eax
cmp ebx, 0xffffffff
jne 0x10001698
mov eax, dword [esi]
mov edi, dword [eax + 0x24]
mov ecx, edi
call dword [0x10010788]
mov eax, esp
mov ecx, esi
push eax
call edi
mov eax, dword [esi]
mov edi, dword [eax + 0x34]
mov ecx, edi
call dword [0x10010788]
mov ecx, esi
push 0
call edi
cmp dword [esp + 0x10], 0
je 0x10001696
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x10010788]
mov ecx, esi
push 0xfffffffffffffffe
call edi
mov edi, eax
add edi, dword [esp + 0x10]
mov eax, dword [esi]
mov ebx, dword [eax + 0x10]
mov ecx, ebx
call dword [0x10010788]
mov ecx, esi
push edi
push 0xfffffffffffffffe
call ebx
xor eax, eax
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x100016a0
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp byte [0x10013e38], 1
jne 0x100016c4
test byte [0x10013e37], 1
jne 0x100016e3
jmp 0x10001711
push str.LIBUNWIND_PRINT_APIS
call sym._getenv
add esp, 4
mov byte [0x10013e38], 1
test eax, eax
setne byte [0x10013e37]
je 0x10001711
mov edi, dword [dbg.__acrt_iob_func]
push 2
call edi
add esp, 4
push ebx
push ebp
push esi
push str.libunwind:___unw_get_fpreg_cursor_p__regNum_d__value_p__n
push eax
call dbg.__mingw_fprintf
add esp, 0x14
push 2
call edi
add esp, 4
push eax
call sym._fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x10010788]
mov ecx, esi
push ebp
call edi
mov ecx, eax
mov eax, 0xffffe672
test cl, cl
je 0x10001744
mov eax, dword [esi]
mov edi, dword [eax + 0x18]
mov ecx, edi
call dword [0x10010788]
mov ecx, esi
push ebp
call edi
fstp qword [ebx]
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret