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

Disassembly:
push ecx
mov eax, dword [0x10319850]
xor edx, edx
cmp eax, edx
jne 0x100e8506
xor eax, eax
mov byte [eax + 0x10319750], al
inc eax
cmp eax, 0x100
jl 0x100e84ee
mov dword [0x10319850], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x10319750
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x100e8597
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x100e856a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x100e8538
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x100e8610
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x100e8663
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x100e864a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100eeff0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1012008e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.100ef910
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x102b921c
call fcn.1010e607
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x100ef083
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1010e607
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x100ef07c
push 0
mov ecx, eax
call fcn.100e6120
mov dword [esi + 0xc], eax
jmp 0x100ef085
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x100ef085
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x10110ca6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10110cde
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.1010ed21
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.1010ecf9
jmp 0x10110cea
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x101124a4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x101124e6
call fcn.1011872c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x101124e6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x101124dd
xor eax, eax
jmp 0x101124ee
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.101124f4
pop edi
pop esi
pop ebx
ret 4
Function at 0x41dfcb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41e00a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41e00a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41e00a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41e00a
cmp dword [ecx + 0x74], 0xe
jbe 0x41e00a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x423b88
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x423c25
push ebx
push esi
call fcn.00423b51
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00423ae5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x423bd2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x423c24
push edi
push eax
call fcn.004224eb
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x423bf2
call fcn.00422539
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x423c23
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00423ae5
add esp, 0x20
test eax, eax
jne 0x423c11
push edi
call fcn.00422539
jmp 0x423c19
push ebx
call fcn.00422539
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x424e34
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d0c8
push 0x42d0c0
push str.FlsAlloc
push 0x1f
call fcn.00424cf3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x424e68
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b130]
call esi
jmp 0x424e6e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x424eb2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d0d8
push 0x42d0d0
push str.FlsGetValue
push 0x21
call fcn.00424cf3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x424ee9
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x424ef1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d0e0
push 0x42d0d8
push str.FlsSetValue
push 0x22
call fcn.00424cf3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x424f2b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42b130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42a2f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42a31d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42a31d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
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 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 0x42a839
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x42a848
pop dword [ebp - 0x1c]
mov eax, 0x15298174
add eax, 0xeb1926d4
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x51b1a
push 0
mov eax, 0x83400cef
sub eax, 0x82fb5a3f
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0xe44abb7b
sub ecx, 0xe44a6d2a
xor esi, esi
add esi, eax
mov edx, 0x475e00
add edx, dword [ebp - 0x1c]
mov edi, 0xd56820f4
sub edi, 0xc99ce2d8
add dword [ebp - 0x14], eax
mov ebx, dword [edx]
mov dword [ebp - 0x14], 0x46cc5131
sub ebx, edi
xor dword [ebp - 0xc], 0x1cc4be26
mov dword [esi], ebx
sub dword [ebp - 0x18], 0xb1508015
add esi, 0xfff05ea2
add esi, 0xfa162
add edx, 4
loop 0x42a8a3
add eax, 0x9d109a9c
sub eax, 0x9d0f6e85
xor ebx, ebx
add ebx, eax
add eax, 0xc794b542
sub eax, 0xc794b53d
mov ecx, 0x5ad0edcf
sub ecx, 0x5a90edcf
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x10002b96
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x10002ba5
pop dword [ebp - 0x50]
mov eax, 0x10c1204
add eax, 0xef419a1
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x526db9df
sub dword [ebp - 0x60], 0x41b7494
mov dword [ebp - 0x5c], 0x7ec85a26
sub dword [ebp - 0x5c], 0x4c950de1
mov dword [ebp - 0x58], 0xb999c182
add dword [ebp - 0x58], 0x92b282ac
mov dword [ebp - 0x54], 0xb933c750
sub dword [ebp - 0x54], 0xb933c750
lea eax, [ebp - 0x60]
push eax
mov eax, 0x74de3ff
sub eax, 0xf74d13c3
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xb7897459
sub dword [ebp - 0x60], 0x43170b03
mov dword [ebp - 0x5c], 0x996382d
add dword [ebp - 0x5c], 0x37d62948
mov dword [ebp - 0x58], 0xe9465707
sub dword [ebp - 0x58], 0x85d6ea9b
mov dword [ebp - 0x54], 0x4d4b5f2
sub dword [ebp - 0x54], 0x4d4b5f2
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x53b30b5a
add eax, 0xbc4dc50e
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x38df2
push 0
call eax
mov ecx, 0x4e18
xor edi, edi
add edi, eax
mov ebx, 0x6307ecca
sub ebx, 0x53069aca
add ebx, dword [ebp - 0x50]
mov esi, 0x386cd35b
add esi, 0x5e2a2d37
xor dword [ebp - 0x18], ebx
mov edx, dword [ebx]
sub dword [ebp - 0x30], 0x17def180
add edx, esi
sub dword [ebp - 0x3c], eax
mov dword [edi], edx
add edi, 4
add ebx, 0x6be0f5fa
add ebx, 0x941f0a0a
loop 0x10002cc3
add eax, 0x53fe0395
sub eax, 0x53fcd862
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xe7a277a5
add ecx, 0x285d885b
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x401237
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
push edi
mov dword [ebp - 0x38], esi
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov dword [ebp - 0x20], eax
mov eax, dword [0x41b2f8]
mov dword [ebp - 0x30], eax
mov eax, dword [0x41b2fc]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x34], eax
call fcn.00401230
mov ebx, dword [ebp - 0x10]
mov eax, dword [0x41b300]
add ebx, 0x23f
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b304]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0x20
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov ecx, dword [0xaf18ac]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x4012c4
push 0x418028
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [ebp - 4]
mov ecx, dword [0xaf18ac]
add eax, dword [ebp - 0x28]
mov edx, 0xedeb2e40
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
mov eax, dword [0xaf18a8]
cmove eax, edx
xor edx, edx
mov dword [0xaf18a8], eax
cmp ecx, 0x3eb
mov eax, dword [0xaf1800]
cmove eax, edx
mov dword [0xaf1800], eax
lea eax, [ebx + edi]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x14], edx
mov dword [0xaf18a4], 0xf4ea3dee
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x18]
sub esi, eax
mov dword [ebp - 0xc], eax
mov eax, esi
mov dword [ebp - 0x18], esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
nop
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov edx, esi
mov eax, dword [ebp - 4]
add ebx, 0x61c88647
shr edx, cl
add edx, dword [ebp - 0x34]
mov dword [ebp - 0xc], edx
xor edx, dword [ebp - 0x20]
xor eax, edx
mov dword [ebp - 0x10], ebx
sub edi, eax
mov dword [ebp - 4], eax
dec dword [ebp - 0x24]
mov dword [ebp - 0x18], edi
jne 0x401292
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x20]
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d464
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41af20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00409cee
mov dword [ebp - 0x14], eax
cmp dword [0x44d09c], esi
jne 0x40d557
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d4e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d637
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d637
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d637
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x44d09c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x44d0a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x44d0a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44d0ac], eax
test eax, eax
je 0x40d554
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44d0a8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d57c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d56f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d591
push 4
pop eax
jmp 0x40d639
cmp dword [ebp - 0x14], esi
je 0x40d591
push dword [0x44d09c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d576
mov eax, dword [0x44d0a8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d5ef
cmp dword [0x44d0ac], edi
je 0x40d5ef
push eax
call ebx
push dword [0x44d0ac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d5ef
test eax, eax
je 0x40d5ef
call ecx
test eax, eax
je 0x40d5e4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d5e4
test byte [ebp - 8], 1
jne 0x40d5ef
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d61f
mov eax, dword [0x44d0a0]
cmp eax, edi
je 0x40d61c
push eax
call ebx
test eax, eax
je 0x40d61c
call eax
mov esi, eax
test esi, esi
je 0x40d61c
mov eax, dword [0x44d0a4]
cmp eax, edi
je 0x40d61c
push eax
call ebx
test eax, eax
je 0x40d61c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x44d09c]
call ebx
test eax, eax
je 0x40d637
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d639
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004042a7
mov esp, ebp
pop ebp
ret
Function at 0x4027d0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x402840
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401c90
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x25125254
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x25149b00
cmp dword [ebp + 0xc], 2
jl 0x25125268
mov ebx, 0x25149b30
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x251252a0
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x25121e38
mov dword [0x25147014], eax
mov eax, 0x25121e40
mov dword [0x25147018], eax
mov eax, ebx
call fcn.25125138
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x251252d5
cmp al, 3
jge 0x251252d5
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x251252e6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x251252f1
call dword [ecx + eax*4]
cmp dword [0x25147028], 0
jne 0x25125307
mov byte [0x25147030], 1
fnstcw word [0x25144014]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.25125448
call fcn.251251e8
ret 4

Function at 0x251253b0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x25147040], 0
je 0x25125417
cmp word [0x2514732c], 0xd7b2
jne 0x251253d9
cmp dword [0x25147334], 0
jbe 0x251253d9
mov eax, 0x25147328
call dword [0x25147344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x25125444
call fcn.25125ecc
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x2514401e], 0
jne 0x25125433
push 0
push 0x251449aa
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x251255d4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x25144020], 0
je 0x251255ff
mov edx, edi
mov eax, esi
call dword [0x25144020]
mov ebx, eax
jmp 0x25125610
mov eax, 8
call fcn.25123a48
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x25147041], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x2512559c
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x25125645
mov edx, 8
mov eax, ebx
call fcn.25123a64
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x25127254
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x25129778
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebp, eax
test ebp, ebp
je 0x25129818
test ebp, ebp
setl byte [esp]
mov eax, edi
xor ecx, ecx
mov edx, 0xb
call fcn.25125f30
mov esi, 0xb
mov eax, ebp
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebx, eax
mov ecx, 0xa
mov eax, ebp
cdq
idiv ecx
mov ebp, eax
mov eax, edi
call fcn.25125bac
add bl, 0x30
mov byte [eax + esi - 1], bl
dec esi
test ebp, ebp
jne 0x251297a2
cmp byte [esp], 0
je 0x251297e7
mov eax, edi
call fcn.25125bac
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x25129824
mov eax, edi
call fcn.25125bac
push eax
mov eax, edi
call fcn.25125bac
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.25123b80
mov edx, ebx
mov eax, edi
xor ecx, ecx
call fcn.25125f30
jmp 0x25129824
mov eax, edi
mov edx, 0x25129838
call fcn.25125a88
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x25129f28
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push ecx
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.25125a88
mov eax, ebx
call fcn.25125bbc
mov eax, dword [ebx]
mov dword [esp], eax
mov eax, dword [esp]
test eax, eax
je 0x25129f50
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x25129f64
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x25129f59
pop edx
pop esi
pop ebx
ret

Function at 0x2512a9a8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x2512a9f0
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
mov edi, esi
push edi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x2512a9e6
cmp word [edi], 0x5a4d
jne 0x2512a9e6
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x2512a9e6
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x2512a9fc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret