joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x20627da2
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
loop 0x431060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x2a7933b4
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401ae0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40e044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40e03c]
sub esp, 4
test ebx, ebx
je 0x401b2b
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 0x401b24
test esi, esi
je 0x401b24
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401b00
mov dword [esp], 0x40e044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401d00
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 0x401d50
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 0x401e28
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401d8e
cmp eax, 4
jne 0x401db0
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 0x401d9e
cmp edx, 4
je 0x401d9e
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.00401d00
Function at 0x1000a44f
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
push esi
push edi
push dword [esp + 0x40]
push dword [esp + 0x40]
push ebx
push dword [esp + 0x40]
push edx
push ecx
call fcn.100109b0
mov dword [esp + 0x38], 0x69988a
lea edi, [esp + 0x3c]
xor eax, eax
lea esi, [ecx + 4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [esp + 0x2c], 0xf389db
add dword [esp + 0x2c], 0xffff3092
add dword [esp + 0x2c], 0xfffff660
xor dword [esp + 0x2c], 0xf7529a
mov dword [esp + 0x28], 0x1afa87
shl dword [esp + 0x28], 0xc
shl dword [esp + 0x28], 0xf
shr dword [esp + 0x28], 7
xor dword [esp + 0x28], 0x7731a0
mov eax, dword [ecx]
mov edx, dword [esi]
add esi, 4
xor edx, eax
mov dword [esp + 0x30], eax
mov eax, edx
mov dword [esp + 0x34], edx
and eax, 0xfffffffc
mov ecx, edx
add eax, 4
mov edi, edx
and cl, 3
cmovne edi, eax
mov eax, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
push edi
call fcn.10018994
mov ebp, eax
add esp, 0x1c
test ebp, ebp
je 0x1000a537
shr edi, 2
xor eax, eax
lea ecx, [esi + edi*4]
xor edi, edi
mov edx, ecx
sub edx, esi
add edx, 3
shr edx, 2
cmp esi, ecx
cmova edx, eax
test edx, edx
je 0x1000a52d
mov ecx, ebp
sub ecx, esi
mov eax, dword [esi]
xor eax, dword [esp + 0x18]
inc edi
mov dword [ecx + esi], eax
lea esi, [esi + 4]
cmp edi, edx
jb 0x1000a51c
test ebx, ebx
je 0x1000a537
mov eax, dword [esp + 0x1c]
mov dword [ebx], eax
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x1000e9f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push ebx
push edx
push ecx
call fcn.100109b0
mov dword [ebp - 0x14], 0x6edd07
lea edi, [ebp - 0x10]
xor eax, eax
add esp, 0x10
stosd dword es:[edi], eax
xor edx, edx
push 0x72
stosd dword es:[edi], eax
pop ecx
stosd dword es:[edi], eax
mov dword [ebp + 8], 0x5c6347
shr dword [ebp + 8], 9
shr dword [ebp + 8], 4
add dword [ebp + 8], 0xffffa995
xor dword [ebp + 8], 0xffffac78
mov dword [ebp - 4], 0x14d5a7
add dword [ebp - 4], 0xaa23
imul eax, dword [ebp - 4], 0x7b
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
div ecx
mov dword [ebp - 4], eax
xor dword [ebp - 4], 0x17324a
mov dword [ebp - 4], 0xb1aa31
xor dword [ebp - 4], 0xc886bbe7
xor dword [ebp - 4], 0xc83711c6
cmp byte [ebx], 0
je 0x1000eae0
push esi
mov edi, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 4], 0x14d5a7
add dword [ebp - 4], 0xaa23
imul eax, dword [ebp - 4], 0x7b
push 0x72
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
div ecx
mov dword [ebp - 4], eax
xor dword [ebp - 4], 0x17324a
mov cl, byte [ebp - 4]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0xb1aa31
xor dword [ebp - 4], 0xc886bbe7
xor dword [ebp - 4], 0xc83711c6
shl esi, cl
mov cl, byte [ebp - 4]
mov edx, dword [ebp + 8]
movsx eax, byte [ebx]
mov dword [ebp + 8], eax
add dword [ebp + 8], esi
shl edx, cl
add dword [ebp + 8], edx
sub dword [ebp + 8], edi
inc ebx
pop ecx
cmp byte [ebx], 0
jne 0x1000ea79
pop esi
mov eax, dword [ebp + 8]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100109b1
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
push ebx
push esi
push edi
push dword [esp + 0x34]
push dword [esp + 0x34]
push eax
push edx
push ecx
call fcn.100109b0
and dword [esp + 0x34], 0
lea edi, [eax + 4]
and dword [esp + 0x38], 0
mov dword [esp + 0x2c], 0xbba13d
mov dword [esp + 0x30], 0xa797c2
mov dword [esp + 0x20], 0x402c3e
add dword [esp + 0x20], 0xb5b8
xor dword [esp + 0x20], 0x47ead6
mov dword [esp + 0x40], 0x6fe49c
add dword [esp + 0x40], 0xffffb2f8
add dword [esp + 0x40], 0x81ef
or dword [esp + 0x40], 0xb2e8c633
xor dword [esp + 0x40], 0xb2fc6a33
mov ecx, dword [eax]
mov eax, dword [edi]
add edi, 4
xor eax, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
lea esi, [eax + 1]
mov eax, esi
mov ecx, esi
and eax, 0xfffffffc
add eax, 4
and cl, 3
cmovne esi, eax
mov eax, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
push esi
call fcn.10018994
mov ebx, eax
add esp, 0x18
mov dword [esp + 0x2c], ebx
test ebx, ebx
je 0x10010abd
shr esi, 2
xor eax, eax
push ebp
xor ebp, ebp
mov edx, ebx
lea ecx, [edi + esi*4]
mov esi, ecx
sub esi, edi
add esi, 3
shr esi, 2
cmp edi, ecx
cmova esi, eax
test esi, esi
je 0x10010ab4
mov ebx, dword [esp + 0x14]
mov ecx, dword [edi]
lea edi, [edi + 4]
xor ecx, ebx
mov byte [edx], cl
mov eax, ecx
shr eax, 8
lea edx, [edx + 4]
shr ecx, 0x10
mov byte [edx - 3], al
mov byte [edx - 2], cl
shr ecx, 8
inc ebp
mov byte [edx - 1], cl
cmp ebp, esi
jb 0x10010a8b
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
pop ebp
mov byte [ebx + eax], 0
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x1c
ret
Function at 0x10017a14
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebx, edx
mov edx, dword [esp + 0x20]
push edx
push dword [esp + 0x20]
push dword [esp + 0x20]
push ebx
push ecx
call fcn.100109b0
mov dword [esp + 0x34], 0x9d0941
add esp, 0x14
or dword [esp + 0x20], 0x7997045
shl dword [esp + 0x20], 5
xor dword [esp + 0x20], 0xf3af28a5
mov ecx, dword [ebx + 0x3c]
mov eax, dword [esp + 0x20]
add ecx, ebx
sub edx, dword [ecx + 0x34]
mov ebp, dword [ecx + eax*8 + 0x7c]
mov dword [esp + 0x20], edx
mov edx, dword [ecx + eax*8 + 0x78]
add edx, ebx
add ebp, edx
mov dword [esp + 0x10], ebp
cmp edx, ebp
jae 0x10017abe
push esi
push edi
mov edi, dword [edx + 4]
lea esi, [edx + 8]
add edi, edx
cmp esi, edi
jae 0x10017ab5
mov ebp, dword [esp + 0x28]
movzx eax, word [esi]
mov ecx, eax
mov dword [esp + 0x14], 0x3000
and ecx, 0xfff
and eax, 0xf000
add ecx, dword [edx]
add ecx, ebx
cmp ax, word [esp + 0x14]
jne 0x10017aaa
add dword [ecx], ebp
add esi, 2
cmp esi, edi
jb 0x10017a85
mov ebp, dword [esp + 0x18]
add edx, dword [edx + 4]
cmp edx, ebp
jb 0x10017a75
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x10017ac4
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
push ebx
push esi
mov esi, dword [esp + 0x28]
push edi
push dword [esp + 0x30]
push esi
push edx
push ecx
call fcn.100109b0
xor eax, eax
mov dword [esp + 0x28], 0x401883
lea edi, [esp + 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [esp + 0x1c], 0xd89b32
lea edi, [esi + 4]
shl dword [esp + 0x1c], 3
xor dword [esp + 0x1c], 0x6c9d070
mov dword [esp + 0x3c], 0xd6836e
or dword [esp + 0x3c], 0xa4bbb23f
xor dword [esp + 0x3c], 0xa4fe1cc6
mov ecx, dword [esi]
mov eax, dword [edi]
add edi, 4
xor eax, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
lea esi, [eax + 1]
mov eax, esi
mov ecx, esi
and eax, 0xfffffffc
add eax, 4
and cl, 3
cmovne esi, eax
mov eax, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
lea eax, [esi + esi]
push eax
call fcn.10018994
mov ebx, eax
add esp, 0x14
mov dword [esp + 0x2c], ebx
test ebx, ebx
je 0x10017bc5
shr esi, 2
xor eax, eax
push ebp
xor ebp, ebp
mov edx, ebx
lea ecx, [edi + esi*4]
mov esi, ecx
sub esi, edi
add esi, 3
shr esi, 2
cmp edi, ecx
cmova esi, eax
test esi, esi
je 0x10017bba
mov ebx, dword [esp + 0x14]
mov ecx, dword [edi]
lea edi, [edi + 4]
xor ecx, ebx
movzx eax, cl
mov word [edx], ax
mov eax, ecx
shr eax, 8
lea edx, [edx + 8]
movzx eax, al
mov word [edx - 6], ax
shr ecx, 0x10
movzx eax, cl
shr ecx, 8
inc ebp
mov word [edx - 4], ax
movzx eax, cl
mov word [edx - 2], ax
cmp ebp, esi
jb 0x10017b81
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
xor ecx, ecx
pop ebp
mov word [ebx + eax*2], cx
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x1c
ret
Function at 0x100194c0
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov dword [ebp - 0x2c], 0xd452a7
xor edx, edx
push esi
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], 0x7a667e
shl dword [ebp - 4], 7
shr dword [ebp - 4], 7
add dword [ebp - 4], 0xf354
xor dword [ebp - 4], 0x7deea6
mov dword [ebp - 0x18], 0x7060dd
add dword [ebp - 0x18], 0xffff7c12
xor dword [ebp - 0x18], 0x6eb3ae
mov dword [ebp - 0x14], 0xf9db96
imul eax, dword [ebp - 0x14], 0x36
push 0x3f
pop ecx
push 0x53
mov dword [ebp - 0x14], eax
shl dword [ebp - 0x14], 3
xor dword [ebp - 0x14], 0xa5a35118
mov dword [ebp - 0x20], 0xdcb415
mov eax, dword [ebp - 0x20]
div ecx
pop ecx
mov dword [ebp - 0x20], eax
xor edx, edx
xor dword [ebp - 0x20], 0xb59ca
mov dword [ebp - 0x10], 0xcf1719
xor dword [ebp - 0x10], 0x86e7a188
imul eax, dword [ebp - 0x10], 3
mov dword [ebp - 0x10], eax
xor dword [ebp - 0x10], 0x92761095
mov dword [ebp - 0x1c], 0x87cb98
xor dword [ebp - 0x1c], 0x1483cecd
xor dword [ebp - 0x1c], 0x14091897
mov dword [ebp - 0xc], 0x2af8e1
shl dword [ebp - 0xc], 0xc
mov eax, dword [ebp - 0xc]
div ecx
mov dword [ebp - 0xc], eax
xor dword [ebp - 0xc], 0x21d1d6a
mov dword [ebp - 8], 0x758d27
add dword [ebp - 8], 0xffffdd8f
or dword [ebp - 8], 0xc9dc7678
shl dword [ebp - 8], 7
xor dword [ebp - 8], 0xfeb03cd0
push dword [ebp - 0x18]
mov edx, dword [ebp - 4]
push ecx
lea ecx, [ebp - 0x234]
call fcn.1000a5ba
pop ecx
pop ecx
test eax, eax
je 0x10019616
lea eax, [ebp - 0x234]
cmp word [ebp - 0x234], si
je 0x100195ec
cmp word [eax], 0x5c
je 0x100195e6
add eax, 2
cmp word [eax], si
jne 0x100195d6
jmp 0x100195ec
xor ecx, ecx
mov word [eax + 2], cx
push ecx
push ecx
push dword [ebp - 8]
lea eax, [ebp - 0x234]
push dword [ebp - 0xc]
push eax
push ecx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x24]
push dword [ebp - 0x10]
push dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
push ecx
push eax
push ecx
call fcn.1000dc1a
add esp, 0x30
mov eax, dword [ebp - 0x24]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10020a3b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
push eax
push edx
push ecx
call fcn.100109b0
mov dword [ebp + 8], 0xf5e67f
add esp, 0x14
add dword [ebp + 8], 0xe9dd
xor dword [ebp + 8], 0xf6d157
cmp dword [eax + 4], 0x40
jae 0x10020a71
xor eax, eax
pop ebp
ret
mov ecx, dword [eax]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x10020a6d
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10020a6d
movzx edx, word [eax + 0x18]
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
cmp edx, ecx
cmovne eax, esi
pop esi
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x4042e8
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x3fa0ab90
mov eax, 0x3fa089b8
xor eax, esi
push 0x723e07db
mov edx, 0x723e07db
pop ecx
xor edx, ecx
xor eax, edx
push 0x5989a2e0
pop ecx
mov edx, edi
push edx
pop ecx
push 0x3d86d4e7
mov edi, 0x3d86d4e7
pop edx
xor edi, edx
xor edi, ecx
jmp 0x403f48

Function at 0x4051fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405235
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40523e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405248
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405269
mov al, byte [esp]
jmp 0x40526b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4062ca
Capabilities:
Encode data using xor

Disassembly:
xor esi, edi
push 0x747bfb6d
mov ebx, 0x46b27a73
pop edi
xor ebx, edi
xor esi, ebx
mov ecx, 0
xor ecx, esi
mov ebx, 0xfffffffc
add esp, ebx
mov dword [esp], ecx
call eax
pop edi
mov edx, 0x383e4115
xor edx, 0xa5c1ae3
push 0x4c765558
mov eax, 0x7e140f8e
pop esi
xor eax, esi
xor eax, edx
mov ecx, 0x531b586c
xor ecx, 0x56c84695
mov ebx, ecx
xor ebx, 0xffffffff
and ebx, 0x5d31cfc
and ecx, 0xfa2ce303
or ecx, ebx
xor eax, ecx
mov edi, 0x2000000
mov ecx, 0x84400
xor edi, ecx
mov esi, 0x73fe71
xor esi, 0x14a3fe66
xor edi, esi
push 0x6690df41
mov ebx, 0x58c251a2
pop ecx
xor ebx, ecx
xor edi, ebx
mov ecx, 0x28caabb9
xor edi, ecx
push 0x7b7746d9
mov ebx, 0x70177fe9
pop ecx
xor ebx, ecx
push ebx
mov ebx, 0x602d8250
mov ecx, 0x10000100
xor ebx, ecx
mov edx, 0x25a65565
xor edx, 0x5eabb56e
xor edx, ebx
pop esi
xor edx, esi
mov ecx, 0
mov ebx, 4
xor ecx, ebx
sub esp, ecx
mov esi, 0x664af4e8
xor esi, 0x664af4e8
xor esi, esp
mov dword [esi], eax
xor ecx, ecx
add ecx, edx
xor ebx, ebx
add ebx, ecx
mov esi, ebx
push esi
xor eax, eax
mov al, byte [edi]
add edx, eax
mov al, byte [edx]
pop edx
mov byte [edi], al
mov esi, 0
mov ecx, 1
xor esi, ecx
push 0x73dd974a
mov ebx, 0x73dd974a
pop ecx
xor ebx, ecx
xor esi, ebx
sub edi, esi
pop eax
mov ecx, 0xe2ecd43
mov esi, 0x5b32454f
xor esi, ecx
push 0xda981df7
mov ebx, 0x707b6a04
pop ecx
xor ebx, ecx
xor esi, ebx
add eax, esi
mov esi, eax
or esi, esi
jne 0x406385
mov ebx, 0x4842021a
mov ecx, 0x12058921
xor ebx, ecx
push 0x54cd7981
mov edi, 0x30c016bc
pop esi
xor edi, esi
xor edi, ebx
mov eax, 0x3382b345
mov esi, 0x78fc5f12
xor esi, eax
mov edx, 0x2a68b3d8
xor edx, 0x5f1ce5a0
xor edx, esi
xor edx, edi
call edx
pop ecx
pop ecx
ret
Function at 0x4025a4
Capabilities:
Check for peb beingdebugged flag

Disassembly:
pop eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov bl, byte [eax + 2]
mov byte [0x4333cc], bl
ret
Function at 0x402cf0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4360a4
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x43609c]
sub esp, 4
test ebx, ebx
je 0x402d3b
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 0x402d34
test esi, esi
je 0x402d34
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402d10
mov dword [esp], 0x4360a4
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402f20
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 sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x402f70
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 sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x403048
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x402fae
cmp eax, 4
jne 0x402fd0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_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 sub.KERNEL32.dll_VirtualProtect
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 sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x402fbe
cmp edx, 4
je 0x402fbe
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
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.00402f20
Function at 0x404e10
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 fcn.00402be0
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x404e46
jmp 0x404e7e
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x404e43
cmp al, 9
je 0x404e43
cmp al, 0x22
jne 0x404e67
jmp 0x404ec6
cmp al, 9
je 0x404e73
add ebx, 1
movzx eax, byte [ebx]
test al, 0xdf
jne 0x404e60
jmp 0x404e73
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x404e70
cmp al, 9
je 0x404e70
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x404e8d
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004025b8
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
test al, al
je 0x404ed2
mov edx, ebx
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x22
jne 0x404ec2
cmp al, 0x22
jne 0x404e73
lea ebx, [edx + 2]
jmp 0x404e73
Function at 0x401340
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0x808
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edx
xor ebp, ebp
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x40139b
mov edi, ecx
lea edx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x401360
sub edi, edx
sar edi, 1
cmp edi, 0x200
jb 0x40137c
mov edi, 0x1ff
push edi
push ecx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00401000
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x4013bd
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x40142f
mov esi, dword [ebx]
cmp esi, ebx
je 0x40142f
test esi, esi
je 0x40142f
cmp word [esi + 0x24], 2
jbe 0x401429
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x401429
cmp dword [esi + 0x18], 0
je 0x401429
test ebp, ebp
je 0x4013e5
cmp ebp, eax
jne 0x401429
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00401000
mov edx, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
test edx, edx
je 0x40140a
cmp edx, dword [esi + 0x18]
jne 0x401429
cmp dword [esp + 0x14], eax
je 0x40143c
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00401500
add esp, 8
test eax, eax
je 0x40143c
mov esi, dword [esi]
cmp esi, ebx
jne 0x4013c3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x808
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret