joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447710
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x2c
mov eax, dword [0x4a6074]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x4a8a10], ecx
inc eax
cmp eax, 0x100
jb 0x447724
cmp eax, 0x800
jae 0x4477f3
nop dword [eax + eax]
mov edx, dword [eax*4 + 0x4a8610]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x4a8a10]
mov dword [eax*4 + 0x4a8a10], edx
inc eax
cmp eax, 0x800
jb 0x4477d0
lea ecx, [esp + 0x14]
mov dword [0x4aaa5c], 0x4484c0
call fcn.004485d0
test eax, eax
je 0x44789f
mov edi, dword [esp + 0x24]
xor ecx, ecx
mov ebp, dword [esp + 0x1c]
mov esi, edi
shr esi, 8
mov eax, 0x4a6a18
shr edi, 4
and esi, 0xff00f
and edi, 0xf00f
xor edx, edx
mov ebx, dword [esp + 0x18]
cmp dword [eax - 8], ebx
mov ebx, dword [esp + 0x20]
jne 0x447849
cmp dword [eax - 4], ebp
jne 0x447849
cmp dword [eax], ebx
je 0x447858
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x447833
or ecx, 0xffffffff
sub ecx, 0
je 0x447886
sub ecx, 1
je 0x447875
sub ecx, 1
jne 0x44789f
cmp esi, 6
jb 0x44789f
jne 0x447895
cmp edi, 0xf
jb 0x44789f
jmp 0x447895
cmp esi, 5
jb 0x44789f
jne 0x447895
cmp edi, 6
jb 0x44789f
cmp edi, 0xa
jmp 0x447893
cmp esi, 6
jb 0x44789f
jne 0x447895
cmp edi, 0x100c
je 0x44789f
mov dword [0x4aaa5c], 0x448560
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044b0c6
add esp, 0x2c
ret
Function at 0x44a0c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
push edi
xor edi, edi
mov dword [esp + 8], ecx
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x44a0e1
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
push ebx
push ebp
lea ebx, [edx - 4]
or ebp, 0xffffffff
add ebx, ecx
mov dword [esp + 0x14], ebx
nop
lea edx, [edi + ecx]
cmp edx, ebx
jae 0x44a104
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x44a104
inc edx
cmp edx, ebx
jb 0x44a0f7
mov edi, edx
sub edi, ecx
mov ecx, edi
sub ecx, ebp
cmp edx, ebx
jae 0x44a210
cmp ecx, 3
jbe 0x44a141
xor esi, esi
mov al, byte [edx + 4]
mov ebp, edi
mov dword [esp + 0x18], ebp
test al, al
je 0x44a17c
cmp al, 0xff
je 0x44a17c
mov ecx, dword [esp + 0x10]
and esi, 3
add esi, esi
mov eax, 1
or esi, 1
add edi, eax
jmp 0x44a0f0
dec ecx
shl esi, cl
and esi, 7
je 0x44a11b
cmp byte [esi + 0x494598], 0
je 0x44a168
movzx eax, byte [esi + 0x4945d8]
mov ecx, edx
sub ecx, eax
mov al, byte [ecx + 4]
test al, al
je 0x44a168
cmp al, 0xff
jne 0x44a11b
mov ecx, dword [esp + 0x10]
and esi, 3
add esi, esi
mov ebp, edi
or esi, 1
inc edi
jmp 0x44a0f0
movzx ecx, byte [edx + 3]
movzx eax, al
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 1]
shl eax, 8
or eax, ecx
nop word [eax + eax]
sub eax, edi
lea ebx, [eax - 5]
test esi, esi
je 0x44a1d9
movzx ebp, byte [esi + 0x4945d8]
mov ecx, 0x18
shl ebp, 3
mov eax, ebx
sub ecx, ebp
shr eax, cl
test al, al
je 0x44a1c6
cmp al, 0xff
jne 0x44a1d9
mov ecx, 0x20
mov eax, 1
sub ecx, ebp
shl eax, cl
dec eax
xor eax, ebx
jmp 0x44a1a0
mov ebp, dword [esp + 0x18]
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x18
and al, 1
mov byte [edx + 1], bl
neg al
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
mov ebx, dword [esp + 0x14]
shr eax, 8
mov byte [edx + 2], al
mov eax, 5
add edi, eax
jmp 0x44a0f0
pop ebp
pop ebx
cmp ecx, 3
jbe 0x44a227
mov eax, dword [esp + 0x1c]
xor esi, esi
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x1c]
dec ecx
shl esi, cl
and esi, 7
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret

Function at 0x47017d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046fffc

Function at 0x477074
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00476d34
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x40596d
pop dword [ebp - 0x28]
mov eax, 0xf4432489
sub eax, 0xf402cb1c
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x40e4a766
sub dword [ebp - 0x38], 0xf292621b
mov dword [ebp - 0x34], 0xf11e1fdc
add dword [ebp - 0x34], 0x41152c69
mov dword [ebp - 0x30], 0x8ce3ae26
add dword [ebp - 0x30], 0xbf689608
mov dword [ebp - 0x2c], 0x7028ecda
sub dword [ebp - 0x2c], 0x7028ecda
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xa1741c98
add dword [ebp - 0x38], 0xd2fe4cbe
mov dword [ebp - 0x34], 0xe3d122f3
sub dword [ebp - 0x34], 0xa264c17e
mov dword [ebp - 0x30], 0xa28bb37a
add dword [ebp - 0x30], 0xc0e3b8f2
mov dword [ebp - 0x2c], 0x9e8e2411
sub dword [ebp - 0x2c], 0x9e8e2411
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x38cdb
push 0
call eax
mov ecx, 0xf6628779
sub ecx, 0xf6623720
mov edi, eax
mov edx, 0xb4e050c9
add edx, 0x4b60af37
add edx, dword [ebp - 0x28]
mov esi, 0xd0b0ff12
add esi, 0x5f4d0bb1
mov ebx, dword [edx]
xor dword [ebp - 0x1c], 0xfabcf430
sub ebx, esi
sub dword [ebp - 8], 0x9c087057
mov dword [edi], ebx
mov dword [ebp - 0x10], 0x19e2e41f
add edi, 4
add edx, 0x4d7b2ac5
sub edx, 0x4d7b2ac1
loop 0x405a85
add eax, 0xa25a07c2
sub eax, 0xa258d38b
mov ebx, eax
add eax, 5
mov ecx, 0x2b8cb8a9
add ecx, 0xd4b34757
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0xed1fe72
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
push esi
push dword [ebp + 8]
call fcn.0ed1fa8a
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0ed1fad5
push eax
push esi
push dword [ebp + 8]
call fcn.0ed1fa8a
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0ed1fad5
push eax
push esi
push dword [ebp + 8]
call fcn.0ed1fa8a
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0ed1fac5
ret

Function at 0xed200a1
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax + 4], ebx
jne 0xed2006a
cmp dword [eax + 0xc], ebx
je 0xed2010d
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.0ed1fac5
cwde
pop edx
add bh, byte [ecx + 0x750c5d39]
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
cmp eax, ebx
lea edi, [ecx + esi]
jne 0xed200ad
mov dword [ebp + 0x10], edi
jmp 0xed200b2
add eax, esi
mov dword [ebp + 0x10], eax
call fcn.0ed1fac5
salc
mov cl, byte [edx]
push ecx
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0xed200fb
test eax, 0x80000000
lea ecx, [eax + esi]
or al, 0x30
je 0xed200d6
and eax, 0xffff
push eax
jmp 0xed200da
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0ed1fa8a
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0xed202b4
add edi, 4
add dword [ebp + 0x10], 4
jmp 0xed200bb
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0xed2005c
call fcn.0ed1fac5
inc ecx
and ah, byte [ebx + eax*2]
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0xed20179
add eax, esi
cmp dword [eax], ebx
je 0xed20179
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0xed20174
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0xed2015e
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0xed20166
cmp edx, ebx
jne 0xed202b4
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0xed20135
add eax, dword [eax + 4]
jmp 0xed20122
mov dword [ebp + 0xc], ebx
jmp 0xed20184
Function at 0xed201b2
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0xed2019c
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0xed201ba
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
xbegin 0x99d201b8
js 0xed201de
xbegin 0x99d201b8
js 0xed201de
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0xed20218
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
or byte gs:[eax], al
add byte [eax], al
inc eax
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0xed201ff
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0xed20208
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0xed20212
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0xed201f4
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
or al, 0x66
cmp ecx, dword [eax + 6]
jbe 0xed2017e
mov dword [ebp + 8], esi
xor edi, edi
Function at 0x410c70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4025e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401f20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.00404fd8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00405038
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x410e25
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x410d46
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00405088
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x410e25
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x404ae4
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.004050e8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x410e25
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410dc3
mov dword [ebp - 0x8c], 0
jmp 0x410dcf
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x74]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x5c]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410e06
mov dword [ebp - 0x90], 0
jmp 0x410e12
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x54], 2
jmp 0x410d14
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404e50
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x410e4d
jmp 0x410e4c
ret

Function at 0x18202782
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x182027bd
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x182027a4
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x182027b5
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x182027bf
inc edi
add eax, 0x28
cmp edi, esi
jb 0x1820279a
xor eax, eax
pop edi
pop esi
ret
Function at 0x42105f
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x44e8a8
call fcn.00422e90
call main
movzx esi, ax
push 2
call main
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x420f16
xor ebx, ebx
jmp 0x420f49
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x420f12
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x420f12
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x420f49
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004279ab
test eax, eax
jne 0x420f5d
push 0x1c
call main
pop ecx
call fcn.00427918
test eax, eax
jne 0x420f6e
push 0x10
call main
pop ecx
call fcn.00428296
and dword [ebp - 4], 0
call fcn.004279c0
test eax, eax
jns 0x420f88
push 0x1b
call main
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov dword [0x457adc], eax
call main
mov dword [0x455a24], eax
call main
test eax, eax
jns 0x420fae
push 8
call main
pop ecx
call fcn.00427eb1
test eax, eax
jns 0x420fbf
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x420fd2
push eax
call main
pop ecx
call fcn.00428714
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x420ff4
push esi
call main
call fcn.00426cd7
jmp 0x421029
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00422ed5
ret
call main
jmp 0x420ee8

Function at 0x434db2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x434dc1
pop dword [ebp - 0x10]
mov eax, 0x9973fc67
add eax, 0x66cf515a
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xd039e6b
add dword [ebp - 0x20], 0x414ea6e0
mov dword [ebp - 0x1c], 0x47c8ea74
add dword [ebp - 0x1c], 0xea6a61d1
mov dword [ebp - 0x18], 0x84c72053
sub dword [ebp - 0x18], 0x387adc25
mov dword [ebp - 0x14], 0x51e39b27
sub dword [ebp - 0x14], 0x51e39b27
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xb823e5df
add dword [ebp - 0x20], 0xbc4e8377
mov dword [ebp - 0x1c], 0x9f1a2095
sub dword [ebp - 0x1c], 0x5dadbf20
mov dword [ebp - 0x18], 0xf897d52f
sub dword [ebp - 0x18], 0x952868c3
mov dword [ebp - 0x14], 0x6c4202ea
sub dword [ebp - 0x14], 0x6c4202ea
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x4503d
push 0
call eax
mov ecx, 0x438c
xor esi, esi
add esi, eax
mov edx, 0x8a1588
sub edx, 0x42bf88
add edx, dword [ebp - 0x10]
mov edi, 0xc9a2d632
sub edi, 0x202e005a
add dword [ebp - 4], edi
mov ebx, dword [edx]
xor dword [ebp - 4], 0x600662e7
xor ebx, edi
sub dword [ebp - 8], esi
mov dword [esi], ebx
sub dword [ebp - 8], 0xde2ad92
add esi, 4
add edx, 0x63fabd09
sub edx, 0x63fabd05
loop 0x434ed5
add eax, 0x4bf6a4b2
sub eax, 0x4bf5a3af
xor ebx, ebx
add ebx, eax
add eax, 0x68576888
add eax, 0x97a8977d
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x109d3a24
Capabilities:
Encode data using xor

Disassembly:
jmp 0x109d3a2e
pushal
call 0x109d3a34
pop ebp
sub ebp, 0x10
sub ebp, 0x9d3a24
mov al, byte [esp + 0x28]
cmp al, 1
je 0x109d3a58
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x109d3a61
mov eax, 0x9d3a24
add eax, ebp
add eax, 0x63
mov ecx, 0x5c8
mov edx, 0xa75817be
xor byte [eax], dl
inc eax
dec ecx
jne 0x109d3a78
jmp 0x109d3a8b
xor eax, 0x82373573
mov esi, 0x7f3fbebe
inc esi
mov esi, 0x73bdbebe
push es
mov eax, 0x4bebebe
xchg esi, eax
mov esi, 0x5c49bebe
mov ebp, 0xb23f3576
mov esi, 0x7bbdbebe
xor ebx, edx
lcall 0xd6ee, 0x9aba3742
push esi
pop ds
lahf
mov esi, 0xc52687d6
mov esi, 0xd69a92bf
nop
test edx, ebx
add dl, byte [esi - 0x45]
mov esi, 0x8a57bebe
mov esi, 0xda33bebe
lcall 0xe3ea, 0x9a923742
xor eax, 0xbebeb63b
mov esi, 0xbeb22b35
mov esi, 0xae3335be
mov esi, 0x577fbebe
mov esp, 0x7c3dbc8f
mov edx, 0x4a3bb1f7
inc ecx
inc ecx
inc ecx
xor eax, 0xda339a92
lcall 0x3235, 0xbeb27cba
lcall 0x56d6, 0xbebebeba
pop ds
lahf
mov esi, 0xc52687d6
mov esi, 0xef9a92bf
push esi
mov ebx, 0x57bebebe
sti
mov esp, 0xda33bebe
lcall 0x5235, 0x9a923742
inc ecx
retf
Function at 0x405162
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push esi
push edi
call fcn.00404fad
mov esi, eax
test esi, esi
je 0x4052df
push 0x40130c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401318
push esi
mov dword [0x40db2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401324
push esi
mov dword [0x40db30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401330
push esi
mov dword [0x40db34], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x40db2c], 0
mov dword [0x40db38], eax
je 0x4051d8
cmp dword [0x40db30], 0
je 0x4051d8
cmp dword [0x40db34], 0
je 0x4051d8
test eax, eax
jne 0x405200
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x40db30], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x40db34], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x40db2c], 0x404d20
mov dword [0x40db38], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x40d564], eax
cmp eax, 0xffffffff
je 0x4052e4
push dword [0x40db30]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4052e4
call fcn.00405512
push dword [0x40db2c]
call fcn.00404dd2
push dword [0x40db30]
mov dword [0x40db2c], eax
call fcn.00404dd2
push dword [0x40db34]
mov dword [0x40db30], eax
call fcn.00404dd2
push dword [0x40db38]
mov dword [0x40db34], eax
call fcn.00404dd2
add esp, 0x10
mov dword [0x40db38], eax
call fcn.0040680a
test eax, eax
je 0x4052df
push 0x404e50
push dword [0x40db2c]
call fcn.00404d5d
pop ecx
mov esi, eax
mov ecx, eax
call dword [0x410110]
call esi
mov dword [0x40d560], eax
cmp eax, 0xffffffff
je 0x4052df
push 0x214
push 1
call fcn.004096cd
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4052df
push edi
push dword [0x40d560]
push dword [0x40db34]
call fcn.00404d5d
pop ecx
mov esi, eax
mov ecx, eax
call dword [0x410110]
call esi
test eax, eax
jne 0x4052e9
push edi
call fcn.004093e7
pop ecx
call fcn.004052fc
xor eax, eax
pop edi
pop esi
ret
push 0
push edi
call fcn.00405089
pop ecx
pop ecx
or dword [edi + 4], 0xffffffff
xor eax, eax
inc eax
jmp 0x4052e6
Function at 0x405761
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov esi, ebx
cmp edi, dword [esi*8 + section..text]
je 0x405780
inc esi
cmp esi, 0x17
jb 0x405771
cmp esi, 0x17
jae 0x4058c0
push 3
call fcn.00409a9b
pop ecx
cmp eax, 1
je 0x40588a
push 3
call fcn.00409a9b
pop ecx
test eax, eax
jne 0x4057b3
cmp dword [0x40d550], 1
je 0x40588a
cmp edi, 0xfc
je 0x4058c0
push 0x401908
push 0x314
mov edi, 0x40db70
push edi
call fcn.004099ac
add esp, 0xc
test eax, eax
je 0x4057e8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00406876
add esp, 0x14
push 0x104
push 0x40db89
push ebx
mov byte [0x40dc8d], bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40582b
push 0x401924
push 0x2fb
push 0x40db89
call fcn.004099ac
add esp, 0xc
test eax, eax
je 0x40582b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00406876
add esp, 0x14
push 0x40193c
push 0x314
push edi
call fcn.00409a1c
add esp, 0xc
test eax, eax
je 0x40584f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00406876
add esp, 0x14
push dword [esi*8 + 0x401004]
push 0x314
push edi
call fcn.00409a1c
add esp, 0xc
test eax, eax
je 0x405875
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00406876
add esp, 0x14
push 0x12010
push 0x401940
push edi
call fcn.00409ae7
add esp, 0xc
jmp 0x4058c0
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, eax
test edx, edx
je 0x4058c0
cmp edx, 0xffffffff
je 0x4058c0
mov esi, dword [esi*8 + 0x401004]
mov ecx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4058a9
push ebx
lea eax, [ebp - 4]
sub ecx, edi
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40607d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x4060df
push ebx
xor ebx, ebx
push esi
mov esi, edi
cmp word [edi], bx
je 0x4060b3
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x4060ae
add esi, 2
movzx ecx, word [esi]
test cx, cx
jne 0x40609b
sub esi, edi
add esi, 2
push esi
call fcn.004094e1
mov dword [ebp - 4], eax
pop ecx
test eax, eax
je 0x4060d4
push esi
push edi
push eax
call fcn.0040a530
mov ebx, dword [ebp - 4]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop esi
mov eax, ebx
pop ebx
pop edi
leave
ret

Function at 0x406140
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40617e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x406176
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x406180
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x406166
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x406250
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x406281
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x406281
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x406281
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret