joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101c1534
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x101d85c8], 0
mov dword [0x101d85cc], 0
mov dword [0x101d85d8], 0
mov ebx, dword [0x101d85c0]
add ebx, 0xffffec41
mov dword [0x101d85c4], ebx
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x101c1687
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add edx, 1
mov edi, ecx
add edi, 1
mov dword [ebp - 0x2c], eax
mov eax, edx
cdq
idiv esi
mov dword [0x101d85c8], edx
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x2c]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x101d85cc], edx
mov dword [0x101d85c4], 0x63e
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x101d85d0], cl
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x101d85d0]
mov edx, dword [0x101d85cc]
mov byte [ebx + edx], cl
mov edx, dword [0x101d85c8]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x101d85cc]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x101d85d8], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
mov ch, byte [edx + esi]
mov dword [0x101d85c4], 0xff5
mov dword [0x101d85c0], 0xc9e
xor ch, cl
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x38], edi
je 0x101c1687
mov eax, dword [0x101d85c8]
mov ecx, dword [0x101d85cc]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jmp 0x101c159f
mov dword [0x101d85c4], 0x22fd
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101c1699
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
mov edx, dword [0x101d85c0]
mov esi, edx
add esi, 0xffffddef
mov dword [0x101d85c4], esi
add edx, 0xfffff1ae
mov dword [0x101d85c0], edx
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.101c0e8b
lea ecx, [0x101c0396]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x68], 0x13d800
mov edx, dword [0x101d85ac]
mov dword [esp + 0x78], edx
mov edx, dword [0x101d85b0]
mov dword [esp + 0x7c], edx
mov dword [0x101d85c0], 0x1a6c
mov edx, dword [0x101d85b4]
mov dword [esp + 0x88], edx
mov edx, dword [0x101d85b8]
mov dword [esp + 0x58], edx
mov edx, dword [0x101d85bc]
mov dword [esp + 0x60], edx
mov edx, dword [0x101d85c4]
add edx, 0xc86
mov dword [0x101d85c4], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x101c175d
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x101c174b
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
jne 0x101c174b
mov eax, dword [esp + 0x10]
mov dword [esp + 0x8c], eax
mov dword [0x101d85c4], 0x8e8
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x34], edx
mov dword [0x101d85c0], 0x1277
call fcn.101c0c39
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
jne 0x101c17f1
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.101c07c4
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x101d85c4], 0xd4a
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040c272
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040c272
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040c272
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040c272
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040c272
mov dword [0x41203c], eax
call fcn.0040c272
test eax, eax
jge 0x402550
push 8
call fcn.0040c272
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040c272
pop ecx
push 1
call fcn.0040c272
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040c272
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040c272
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040c272
jmp 0x402495

Function at 0x40c272
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40c281
pop dword [ebp - 0x14]
mov eax, 0x40c281
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x379ee
push 0
mov eax, 0xf0aab515
add eax, 0xf962bc3
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0xc2a0134d
sub ecx, 0xc29fd302
mov edi, eax
mov esi, 0x413bc4
add esi, dword [ebp - 0x14]
mov ebx, 0x204a563c
sub ebx, 0x9df59f66
xor dword [ebp - 0x10], ecx
mov edx, dword [esi]
sub edx, ebx
xor dword [ebp - 0xc], 0x67377d0b
mov dword [edi], edx
add edi, 0x9db9bce5
add edi, 0x6246431f
add esi, 4
loop 0x40c2d5
add eax, 0xf3ff
xor ebx, ebx
add ebx, eax
add eax, 0x278e7d09
add eax, 0xd87182fc
mov ecx, 0xf3903ecd
sub ecx, 0xf3503ecd
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x40632d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40633c
pop dword [ebp - 0x18]
mov eax, 0x40633c
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xc04fd56
add dword [ebp - 0x28], 0x424d47f5
mov dword [ebp - 0x24], 0xd2ee8f1f
sub dword [ebp - 0x24], 0xa0bb42da
mov dword [ebp - 0x20], 0xb4b9125a
add dword [ebp - 0x20], 0x979331d4
mov dword [ebp - 0x1c], 0xb7239df
sub dword [ebp - 0x1c], 0xb7239df
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x40828d57
add dword [ebp - 0x28], 0x33efdbff
mov dword [ebp - 0x24], 0xf4cec12b
sub dword [ebp - 0x24], 0xb3625fb6
mov dword [ebp - 0x20], 0xc2841c9a
add dword [ebp - 0x20], 0xa0eb4fd2
mov dword [ebp - 0x1c], 0x75f5bf93
add dword [ebp - 0x1c], 0x8a0a406d
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0xe0b3017c
sub eax, 0xe072907c
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3bc95
push 0
call eax
mov ecx, 0x9fac8cfb
add ecx, 0x6053cfb1
xor esi, esi
add esi, eax
mov edx, 0xa94c6c8f
add edx, 0x56f49371
add edx, dword [ebp - 0x18]
mov edi, 0x47b8cf50
xor dword [ebp - 0xc], 0x99226e7e
mov ebx, dword [edx]
xor dword [ebp - 0x14], ebx
xor ebx, edi
mov dword [esi], ebx
add dword [ebp - 8], 0xbded288d
add esi, 4
add edx, 4
loop 0x406450
add eax, 0x16583
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xc17e6423
add ecx, 0x3ec19bdd
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x417e3d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
test eax, eax
jg 0x417e61
jl 0x417e58
test ebx, ebx
jne 0x417e61
xor eax, eax
xor edx, edx
jmp 0x417f1e
cmp dword [esi + 0x38], 0
je 0x417e76
push eax
push ebx
push dword [ebp + 8]
call fcn.00417f24
jmp 0x417f1e
mov eax, dword [esi + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x417eb9
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x417eb9
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [ebp + 8]
cmovb esi, dword [eax]
push esi
push ecx
push edi
call fcn.00452270
mov ecx, dword [ebp - 4]
add edi, esi
mov dword [ebp + 8], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x417ebf
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [esi + 0x4c], 0
je 0x417f13
mov ecx, esi
call fcn.004170e2
mov ecx, dword [ebp + 8]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x417efe
push dword [esi + 0x4c]
push eax
push 1
push ecx
call fcn.0045aaed
mov ecx, dword [ebp + 8]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp + 8], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x417f13
jmp 0x417ed1
test edx, edx
je 0x417f13
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.0045aaed
add esp, 0x10
sub edi, eax
mov edx, dword [ebp + 0x10]
sub ebx, edi
mov eax, ebx
sbb edx, 0
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4182c2
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret
Function at 0x419a78
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x6672bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push edi
mov dword [ebp - 0x260], ecx
mov ecx, dword [ebp + 0x10]
push 0x47d57c
push eax
mov dword [ebp - 0x264], ecx
call fcn.004584df
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x419ba6
push esi
push 2
xor edi, edi
push edi
push ebx
call fcn.0045af78
push ebx
call fcn.0045bcfc
push edi
push edi
push ebx
mov esi, eax
call fcn.0045af78
add esp, 0x1c
mov eax, 0x258
cmp esi, eax
pop esi
jne 0x419ba6
push ebx
push 1
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.0045aaed
push ebx
call fcn.004583ed
add esp, 0x14
cmp byte [ebp - 0x1dc], 0x39
jne 0x419ba6
cmp byte [ebp - 0x1db], 0xd5
jne 0x419ba6
cmp byte [ebp - 0x150], 0x4d
jne 0x419ba6
cmp byte [ebp - 0x14f], 0xe7
jne 0x419ba6
mov eax, dword [ebp - 0x1d8]
mov ecx, edi
test eax, eax
je 0x419b4e
xor byte [ebp + ecx - 0x1d4], 0x5a
inc ecx
mov eax, dword [ebp - 0x1d8]
cmp ecx, eax
jb 0x419b3b
cmp dword [ebp - 0x154], edi
jbe 0x419b6d
xor byte [ebp + edi - 0x14e], 0x5a
inc edi
cmp edi, dword [ebp - 0x154]
jb 0x419b56
mov eax, dword [ebp - 0x1d8]
push eax
lea eax, [ebp - 0x1d4]
push eax
push dword [ebp - 0x260]
call fcn.00452270
push dword [ebp - 0x154]
lea ecx, [ebp - 0x14e]
push ecx
push dword [ebp - 0x264]
call fcn.00452270
add esp, 0x18
mov byte [0x6b3dd0], 1
mov al, 1
jmp 0x419ba8
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00450e8c
leave
ret
Function at 0x4236de
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 4], 0
jne 0x4236eb
xor eax, eax
jmp 0x4236fe
push dword [ecx + 4]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.0045aaed
add esp, 0x10
pop ebp
ret 8

Function at 0x426920
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov ecx, dword [0x6b43c4]
mov ecx, dword [ecx + 8]
jmp fcn.00427df0

Function at 0x451f02
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x479164]
test eax, eax
je 0x451f41
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x451f41
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x451f41
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x451f41
cmp dword [ecx + 0x74], 0xe
jbe 0x451f41
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x469fdb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00469e4c

Function at 0x476f80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x476fad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x476fad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1001152
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
push 0x104
lea eax, [ebp - 0x170]
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call fcn.010010e4
cmp eax, 1
jl 0x100121b
push ebx
xor ebx, ebx
cmp byte [ebp - 0x170], bl
push esi
lea esi, [ebp - 0x170]
je 0x10011bb
cmp byte [esi], 0x3a
je 0x100119e
inc esi
cmp byte [esi], bl
jne 0x1001192
jmp 0x10011a1
mov byte [esi], bl
inc esi
cmp byte [esi], bl
je 0x10011bb
push 0x10010ac
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10011c1
lea esi, [ebp - 0x170]
push 0x29
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1001219
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x1001219
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x1001219
push ebx
lea eax, [ebp - 0x14]
push eax
call sub.ole32.dll_CoRegisterSurrogateEx
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
pop ebx
xor eax, eax
leave
ret 0x10
Function at 0x40632d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x40633c
pop dword [ebp - 0x10]
mov eax, 0x40633c
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x6d890200
add dword [ebp - 0x20], 0xe0c9434b
mov dword [ebp - 0x1c], 0xa0fb6ddf
add dword [ebp - 0x1c], 0x9137de66
mov dword [ebp - 0x18], 0x2ae71520
sub dword [ebp - 0x18], 0xde9ad0f2
mov dword [ebp - 0x14], 0x77bf635b
sub dword [ebp - 0x14], 0x77bf635b
lea eax, [ebp - 0x20]
push eax
mov eax, 0x67f41db0
sub eax, 0x67b3ad50
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x897a6d63
sub dword [ebp - 0x20], 0x1508040d
mov dword [ebp - 0x1c], 0x3a631009
add dword [ebp - 0x1c], 0x709516c
mov dword [ebp - 0x18], 0x945c93fb
sub dword [ebp - 0x18], 0x30ed278f
mov dword [ebp - 0x14], 0xee5654c9
sub dword [ebp - 0x14], 0xee5654c9
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 0x3b56d
push 0
call eax
mov ecx, 0xfa8ba175
add ecx, 0x574b96d
mov esi, eax
mov edi, 0xe87221d9
add edi, 0x17cede27
add edi, dword [ebp - 0x10]
mov ebx, 0x305884ba
sub ebx, 0x129255c5
mov dword [ebp - 8], 0x8eabaf8f
mov edx, dword [edi]
mov dword [ebp - 8], 0x340f5ac3
xor edx, ebx
mov dword [ebp - 4], 0x5a203e45
mov dword [esi], edx
sub dword [ebp - 0xc], 0x35a7ac1e
add esi, 4
add edi, 0xce1a1ae0
add edi, 0x31e5e524
loop 0x406454
add eax, 0x15e5b
mov ebx, eax
add eax, 0xb397c9b7
add eax, 0x4c68364e
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x408b8e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x408b9d
pop dword [ebp - 0x18]
mov eax, 0x15c87371
add eax, 0xea78182c
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x38c88
push 0
mov eax, 0x1e4caa6e
add eax, 0xe1f4366a
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x79b774eb
sub ecx, 0x79b72e9c
xor ebx, ebx
add ebx, eax
mov edi, 0x26da39e8
add edi, 0xd96701dc
add edi, dword [ebp - 0x18]
mov edx, 0x1e126bc0
add edx, 0xd73e7f56
xor dword [ebp - 4], edi
mov esi, dword [edi]
xor dword [ebp - 0x14], 0x8aee7581
add esi, edx
xor dword [ebp - 0xc], 0x81d5a878
mov dword [ebx], esi
mov dword [ebp - 8], 0x5630d8fe
add ebx, 0x55db4f7b
add ebx, 0xaa24b089
add edi, 0x9fdcfa07
sub edi, 0x9fdcfa03
loop 0x408bfe
add eax, 0x10c0f
xor ebx, ebx
add ebx, eax
add eax, 0xbd4fa29
add eax, 0xf42b05dc
mov ecx, 0x33d9bcc4
add ecx, 0xcc66433c
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x10001044
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, 0x10014efc
sub byte [esi - 0x1a3], 0xd8
pop esi
jmp 0x1000107d
jmp 0x100010a4
xor eax, eax
jmp 0x10001414
call fcn.100010ab
test eax, eax
jne 0x10001422
ret
push ebp
push eax
mov eax, 0x10015143
add dword [eax - 0x3c], 0x25b5642c
xor byte [eax - 0x365], 0xf5
pop eax
push ebx
mov ebx, eax
call fcn.1000121c
sub esp, 4
push esi
pop dword [0x10014db5]
mov dword [esp], 0x35485406
add dword [esp], 0x343216f8
push eax
call fcn.1000125f
push 0x40
push 0x71bbe571
push ecx
inc ecx
not ecx
mov ecx, 0x71bbd571
xor dword [esp + 4], ecx
pop ecx
mov ecx, 0xe640
pushal
sbb dword [0x10014dec], 0xc7771e73
call fcn.1000121c
mov edx, eax
or dword [0x10014dbf], ecx
sub esp, 4
mov dword [esp], 0xf8db8669
push edi
mov edi, 0x10014ff3
add word [edi + 0xc1], 0xf648
sub word [edi - 0xfa], 0xfce1
pop edi
add dword [esp], 0x343216f8
push edx
xor word [0x10014fff], 0x6a06
call fcn.1000125f
cmp dword [eax], 0x4c2c033
jne 0x10001502
xor word [0x10014e24], 0x861d
jo 0x100014f8
push ebx
mov ebx, 0x1001519c
or dword [ebx - 2], 0x8e8b69bf
pop ebx
jmp fcn.10001628
popal
pushal
call fcn.1000121c
mov edx, eax
mov word [0x10015028], 0x688c
sub esp, 4
mov dword [esp], 0x8e4eba58
push edi
mov edi, 0x10014e60
xor word [edi - 0xb], 0x60b6
sbb byte [edi + 0x32e], 0xb7
pop edi
add dword [esp], 0x343216f8
push edx
call fcn.1000125f
mov ebx, eax
mov ecx, 5
xor eax, eax
push esi
mov esi, 0x10014dd3
and word [esi + 0x1e4], 0xd253
pop esi
xor al, byte [ebx]
rol eax, 7
inc ebx
dec ecx
jne 0x1000155b
cmp eax, 0x18460194
je 0x100015bb
cmp eax, 0xd6c06aa3
jne 0x100015d6
jmp 0x100015bb
popal
shl ecx, 4
push ecx
push 0x50eef643
pop dword [0x10014da3]
xor ecx, ecx
push ecx
call eax
int3
popal
jmp 0x100015f8
shl ecx, 4
push ecx
xor ecx, ecx
push ecx
call eax
push edi
mov edi, eax
push esi
mov esi, 0x10015096
sub byte [esi + 0xa1], 0x6d
sub word [esi - 0xea], 0x99a2
pop esi
push esi
jmp 0x10001700
jmp loc.10021000

Function at 0x1000121c
Capabilities:
Access peb ldr_data

Disassembly:
push esi
jmp 0x1000123c
xor eax, eax
mov eax, dword fs:[eax + 0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
pop esi
ret
Function at 0x1000125f
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push ebx
push edx
push ecx
mov ecx, 0x10014e79
xor dword [ecx - 0x121], 0x1638db40
pop ecx
push esi
push edi
mov ebx, dword [ebp + 8]
mov ecx, ebx
add ebx, dword [ebx + 0x3c]
push dword [ebx + 0x7c]
push 0x9c830a79
pop dword [0x10014f30]
mov ebx, dword [ebx + 0x78]
add ebx, ecx
add dword [esp], ebx
push edi
mov edi, 0x10015138
xor dword [edi - 0x326], 0x411f6b3b
mov byte [edi - 0x258], 0x58
pop edi
mov edi, dword [ebx + 0x20]
add edi, ecx
xor esi, esi
lea edx, [edi + esi*4]
mov edx, dword [edx]
jmp 0x100012f4
jmp 0x1000132b
jmp 0x10001351
add edx, ecx
mov dword [ebp - 4], edx
xor eax, eax
rol eax, 7
xor al, byte [edx]
inc edx
cmp byte [edx], 0
jne 0x10001358
mov dword [0x10014d6c], edi
cmp eax, dword [ebp + 0xc]
je 0x10001380
inc esi
cmp esi, dword [ebx + 0x18]
jb 0x100012b7
mov edx, dword [ebx + 0x24]
add edx, ecx
movzx edx, word [edx + esi*2]
push edi
mov edi, 0x10014d8f
and byte [edi + 0xfc], 0xef
mov word [edi + 0x185], 0x3fc
pop edi
mov eax, dword [ebx + 0x1c]
add eax, ecx
mov eax, dword [eax + edx*4]
add eax, ecx
pop ecx
cmp eax, ebx
jbe 0x100013fb
cmp eax, ecx
jae 0x100013fb
push edi
mov edi, 0x10014e35
sbb word [edi + 0xbf], 0x63e8
and word [edi + 0x31f], 0x6a01
pop edi
push dword [ebp - 4]
push dword [ebp + 8]
sub esp, 4
mov dword [esp], 0xeb8ed3f6
add dword [esp], 0x343216f8
push dword [ebp + 8]
call fcn.1000125f
call eax
sub dword [0x10014ed7], edi
pop edi
pop esi
push ecx
mov ecx, 0x10015162
sub dword [ecx - 0x2bf], 0x15bc800
pop ecx
pop edx
pop ebx
leave
ret 8
Function at 0x401000
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [esi]
mov edx, ecx
xor edx, eax
shr ecx, 8
and edx, 0xff
mov edx, dword [edi + edx*4]
xor edx, ecx
movzx ecx, dl
add ecx, dword [esi + 4]
mov dword [esi], edx
mov edx, dword [esi + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 4], ecx
shr ecx, 0x18
xor ecx, edx
and ecx, 0xff
shr edx, 8
xor edx, dword [edi + ecx*4]
mov dword [esi + 8], edx
ret
Function at 0x4020d0
Capabilities:
Enumerate process modules
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1e10
call fcn.00436b40
mov eax, dword [0x45c070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push esi
push 0x80
push 4
push esi
push esi
push 0x40000000
push 0x45f138
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push esi
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0xffc
lea eax, [ebp - 0x1e0c]
push esi
push eax
mov dword [ebp - 0x1e10], esi
call fcn.004308f0
add esp, 0xc
lea ecx, [ebp - 0xe10]
push ecx
push 0x1000
lea edx, [ebp - 0x1e10]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
push 0x451578
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov dword [ebp - 0xe14], esi
call fcn.0042ddb4
mov ecx, dword [ebp - 0x1e10]
add esp, 0xc
xor edx, edx
cmp ecx, esi
je 0x4021c9
mov esi, dword [ebx + 0xc]
xor eax, eax
lea ecx, [ecx]
cmp esi, ecx
jbe 0x402193
mov eax, dword [ebp + eax - 0x1e0c]
cmp esi, eax
jb 0x4021a8
test eax, eax
je 0x4021a8
inc edx
lea eax, [edx*4]
mov ecx, dword [ebp + eax - 0x1e10]
test ecx, ecx
jne 0x402180
jmp 0x4021c9
mov edx, dword [ebp + edx*4 - 0x1e10]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
push 0x100
lea eax, [ebp - 0x40c]
push eax
push 0
push 0
push 2
push 0x800
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push 0x100
lea ecx, [ebp - 0x60c]
push ecx
push 0
push 0
push 8
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
cmp byte [ebp + 8], 0
mov eax, str.NonContinuable
jne 0x402213
mov eax, 0x451820
push eax
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebx]
push eax
mov eax, dword [ebx + 0xc]
push eax
push ecx
lea edx, [ebp - 0x60c]
push edx
lea eax, [ebp - 0x40c]
push eax
push str.__s__s__r_nException:__x_at__p__Thread:__d__Module:__s__s_r_n_r_n
lea ecx, [ebp - 0xe0c]
push 0x400
push ecx
call fcn.0042da15
add esp, 0x28
push 0
lea edx, [ebp - 0xe10]
push edx
lea eax, [ebp - 0xe0c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea ecx, [ebp - 0xe0c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042d4af
mov esp, ebp
pop ebp
ret