joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e3f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov edx, ecx
mov ecx, 0x10b
push edi
xor edi, edi
mov dword [ebp - 4], edx
mov eax, dword [edx + 0x3c]
cmp word [eax + edx + 0x18], cx
je 0x40e414
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [eax + edx + 0x78]
mov eax, dword [eax + edx + 0x7c]
mov dword [ebp - 0x1c], eax
add ebx, edx
je 0x40e42b
mov eax, dword [ebx + 0x20]
test eax, eax
jne 0x40e433
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
lea ecx, [eax + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x1c]
add eax, edx
push esi
mov esi, dword [ebx + 0x18]
mov dword [ebp - 0x18], eax
xor eax, eax
sub esi, 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], esi
js 0x40e4f7
nop
add eax, esi
cdq
sub eax, edx
mov edx, str.GetProcAddress
mov esi, eax
sar esi, 1
mov ecx, dword [ecx + esi*4]
add ecx, dword [ebp - 4]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x40e494
test al, al
je 0x40e490
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x40e494
add ecx, 2
add edx, 2
test al, al
jne 0x40e474
xor eax, eax
jmp 0x40e499
sbb eax, eax
or eax, 1
mov edx, dword [ebp - 4]
test eax, eax
jne 0x40e4c9
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
movzx eax, word [eax + esi*2]
mov edi, dword [ecx + eax*4]
add edi, edx
cmp edi, ebx
jb 0x40e4bc
mov eax, dword [ebp - 0x1c]
add eax, ebx
cmp edi, eax
jb 0x40e4f3
test edi, edi
jne 0x40e55a
mov eax, dword [ebp - 0xc]
jmp 0x40e4e4
mov ecx, dword [ebp - 8]
cmp dword [ebp - 0xc], ecx
je 0x40e4f7
test eax, eax
jle 0x40e4de
mov eax, dword [ebp - 0xc]
dec esi
mov dword [ebp - 8], esi
jmp 0x40e4e7
lea eax, [esi + 1]
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 8]
cmp eax, esi
jg 0x40e4f7
mov ecx, dword [ebp - 0x10]
jmp 0x40e460
test edi, edi
jne 0x40e55a
mov ebx, dword [ebp - 8]
xor esi, esi
test ebx, ebx
js 0x40e55a
mov eax, dword [ebp - 0x10]
mov ecx, str.GetProcAddress
mov eax, dword [eax + esi*4]
add eax, edx
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40e530
test dl, dl
je 0x40e52c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40e530
add eax, 2
add ecx, 2
test dl, dl
jne 0x40e510
xor eax, eax
jmp 0x40e535
sbb eax, eax
or eax, 1
test eax, eax
je 0x40e54a
mov edx, dword [ebp - 4]
inc esi
cmp esi, ebx
jle 0x40e500
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
movzx eax, word [eax + esi*2]
mov edi, dword [ecx + eax*4]
add edi, dword [ebp - 4]
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x411b20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b516
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x487070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], 0x47fdb8
call fcn.00419a78
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0041834c
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x417330
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c4a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x487070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x41745f
cmp byte [ebx + 0x3d], 0
je 0x41745f
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x417389
xor al, al
jmp 0x417461
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0040b2e0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4173f7
sub eax, 1
je 0x4173fb
sub eax, 2
je 0x417451
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.00404160
mov al, bl
jmp 0x417461
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x417433
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00452493
add esp, 0x10
cmp esi, eax
jne 0x4173e9
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x3d], 0
je 0x417451
test esi, esi
jne 0x4173b4
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00404950
jmp 0x4173ae
lea ecx, [ebp - 0x28]
mov bl, 1
call fcn.00404160
mov al, bl
jmp 0x417461
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419644
mov esp, ebp
pop ebp
ret
Function at 0x41c240
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x41c26c
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x41c25d
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x41c2a0
cmp dword [esi + 8], 0
jne 0x41c290
push 0x46df4c
push dword [eax + 8]
call fcn.0045268f
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x41c290
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.00452872
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x41c2c2
mov eax, dword [esi + 8]
test eax, eax
je 0x41c2bc
push eax
call fcn.00451eeb
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x428060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x164]
test eax, eax
je 0x428089
push dword [esi + 0xf4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x4280bf
push dword [esi + 0xf0]
lea eax, [eax + eax*2]
push 1
add eax, 0x470650
push 2
push eax
call fcn.00452493
push dword [esi + 0xf0]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00452493
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

Function at 0x429e20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov cl, byte [ebp + 8]
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x429e31
jmp dword [eax*4 + 0x429ea4]
mov al, 0x41
pop ebp
ret
mov al, 0x42
pop ebp
ret
mov al, 0x43
pop ebp
ret
mov al, 0x44
pop ebp
ret
mov al, 0x45
pop ebp
ret
mov al, 0x46
pop ebp
ret
mov al, 0x47
pop ebp
ret
mov al, 0x48
pop ebp
ret
mov al, 0x49
pop ebp
ret
mov al, 0x4a
pop ebp
ret
mov al, 0x4b
pop ebp
ret
mov al, 0x4c
pop ebp
ret
mov al, 0x4d
pop ebp
ret
mov al, 0x4e
pop ebp
ret
mov al, 0x4f
pop ebp
ret
mov al, 0x50
pop ebp
ret
mov al, 0x51
pop ebp
ret
mov al, 0x52
pop ebp
ret
mov al, 0x53
pop ebp
ret
mov al, 0x54
pop ebp
ret
mov al, 0x55
pop ebp
ret
mov al, 0x56
pop ebp
ret
mov al, 0x57
pop ebp
ret
mov al, 0x58
pop ebp
ret
mov al, 0x59
pop ebp
ret
mov al, 0x5a
pop ebp
ret
mov al, cl
pop ebp
ret

Function at 0x42bbe0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.0045973f
add esp, 0x18
test eax, eax
je 0x42bc02
cmp eax, 0xffffffff
jne 0x42bc04
xor eax, eax
pop ebp
ret
Function at 0x437930
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [ecx - 0xc8]
mov edx, dword [edi]
cmp eax, 0x64
jb 0x43795f
push str.Couldnt_set_desired_mode
push edx
call fcn.00427ad0
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebp
ret
cmp ecx, 0xc8
je 0x437976
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edx
call fcn.00427b70
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x43798d
push edi
call fcn.004374c0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x14
jne 0x4379a1
push edi
call fcn.00436fb0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x15
jne 0x4379b5
push edi
call fcn.00437420
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x16
jne 0x4379c5
push edi
call fcn.004374a0
mov esi, eax
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x441920
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x444850
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x4870a0]
mov edi, eax
add esp, 4
test edi, edi
jne 0x44487d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x4448c4
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x4448ca
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x44492b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x4448f0
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x444957
mov eax, dword [esi + 4]
push 1
push str.6digit
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x475f03
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x444930
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x45ebfb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045ea7a
Function at 0x10003ebf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x10003ece
pop dword [ebp - 8]
mov eax, 0x12a0657b
sub eax, 0x2a026ad
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xc3244f31
sub dword [ebp - 0x18], 0x74d209e6
mov dword [ebp - 0x14], 0xa925cab
add dword [ebp - 0x14], 0x27a0ef9a
mov dword [ebp - 0x10], 0xc1f8f8c1
add dword [ebp - 0x10], 0x8a534b6d
mov dword [ebp - 0xc], 0x3bb8647b
sub dword [ebp - 0xc], 0x3bb8647b
lea eax, [ebp - 0x18]
push eax
mov eax, 0xc79bee36
sub eax, 0xb79b9df2
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x58bb7737
add dword [ebp - 0x18], 0x1bb6f21f
mov dword [ebp - 0x14], 0xfea10598
sub dword [ebp - 0x14], 0xbd34a423
mov dword [ebp - 0x10], 0xf431e840
sub dword [ebp - 0x10], 0x90c27bd4
mov dword [ebp - 0xc], 0x5bfad9de
sub dword [ebp - 0xc], 0x5bfad9de
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x35876
push 0
call eax
mov ecx, 0xf2e210db
add ecx, 0xd1e32ba
xor edx, edx
add edx, eax
mov edi, 0x3760016c
add edi, 0xd8a0b494
add edi, dword [ebp - 8]
mov esi, 0x339e7462
add esi, 0x78709bd4
xor dword [ebp - 4], esi
mov ebx, dword [edi]
sub dword [ebp - 4], esi
add ebx, esi
mov dword [ebp - 4], 0xffa3d082
mov dword [edx], ebx
xor dword [ebp - 4], 0x13665a5
add edx, 0x9f11f5a1
add edx, 0x60ee0a63
add edi, 0x4d388595
sub edi, 0x4d388591
loop 0x10003fed
add eax, 0xea805e1a
add eax, 0x1580a30d
mov ebx, eax
add eax, 5
mov ecx, 0xc7c183a7
sub ecx, 0xb7c183a7
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x402d53
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x403488
call fcn.0040323c
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4043a0
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x402d98
cmp eax, esi
jne 0x402d8b
xor esi, esi
inc esi
mov edi, esi
jmp 0x402d9b
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x402d6f
xor esi, esi
inc esi
cmp dword [0x4043a4], esi
jne 0x402dad
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x402de7
cmp dword [0x4043a4], ebx
jne 0x402de1
mov dword [0x4043a4], esi
push 0x4011a8
push 0x40119c
call fcn.00402ec2
pop ecx
pop ecx
test eax, eax
je 0x402de7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402ebc
mov dword [0x404034], esi
cmp dword [0x4043a4], esi
jne 0x402e0a
push 0x401198
push 0x401190
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4043a4], 2
test edi, edi
jne 0x402e17
xor eax, eax
mov ecx, 0x4043a0
xchg dword [ecx], eax
cmp dword [0x4043a8], 0
je 0x402e43
push 0x4043a8
call fcn.00403090
pop ecx
test eax, eax
je 0x402e43
push ebx
push 2
push ebx
mov esi, dword [0x4043a8]
mov ecx, esi
call dword [0x40515c]
call esi
push dword [0x404040]
push dword [0x40403c]
push dword [0x404038]
call fcn.00401a43
add esp, 0xc
mov dword [0x404030], eax
cmp dword [0x404048], 0
jne 0x402ea1
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x404034], 0
jne 0x402eb5
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x404030]
mov dword [ebp - 4], 0xfffffffe
call fcn.00403284
ret
call fcn.00541000
jmp 0x402d53

Function at 0x402f94
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4034a8
call fcn.0040340c
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x402ff4
cmp eax, 0xffffffff
je 0x402ff4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x402fed
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x402fed
cmp edx, 0x10000000
jae 0x402fed
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x402fea
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00403451
ret 4

Function at 0x403040
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 0x40307e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x403076
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x403080
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x403066
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x401443
pop dword [ebp - 0x10]
mov eax, 0x401443
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xc4c6e547
sub dword [ebp - 0x20], 0x76749ffc
mov dword [ebp - 0x1c], 0xa33821b5
sub dword [ebp - 0x1c], 0x7104d570
mov dword [ebp - 0x18], 0xca571ec
sub dword [ebp - 0x18], 0xc0592dbe
mov dword [ebp - 0x14], 0x29a7cce4
sub dword [ebp - 0x14], 0x29a7cce4
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], 0xd5152a47
sub dword [ebp - 0x20], 0x60a2c0f1
mov dword [ebp - 0x1c], 0x7f497116
sub dword [ebp - 0x1c], 0x3ddd0fa1
mov dword [ebp - 0x18], 0x6869f8a6
sub dword [ebp - 0x18], 0x4fa8c3a
mov dword [ebp - 0x14], 0xf6da7bd5
sub dword [ebp - 0x14], 0xf6da7bd5
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xbe8b0fda
sub eax, 0xbe4a8eda
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3942a
push 0
call eax
mov ecx, 0x4be1
mov edi, eax
mov esi, 0x7d82c137
add esi, 0x82c422c9
add esi, dword [ebp - 0x10]
mov ebx, 0x615f81ef
sub ebx, 0xd4343e01
xor dword [ebp - 0xc], 0x2a643196
mov edx, dword [esi]
mov dword [ebp - 4], 0x6e2182b0
xor edx, ebx
xor dword [ebp - 4], ecx
mov dword [edi], edx
xor dword [ebp - 4], ecx
add edi, 0x6f6b6c88
add edi, 0x9094937c
add esi, 4
loop 0x401555
add eax, 0x69351b8
add eax, 0xf96dd09f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x3308ffd3
add ecx, 0xcd37002d
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x405a3d
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.shell32.dll_ShellExecuteExW]
ret 4

Function at 0x405b23
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x405b32
pop dword [ebp - 0x2c]
mov eax, 0x3401ab00
add eax, 0xcc3eb032
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0xe7978a29
sub dword [ebp - 0x3c], 0x994544de
mov dword [ebp - 0x38], 0xa04516fe
sub dword [ebp - 0x38], 0x6e11cab9
mov dword [ebp - 0x34], 0x9fa5fa1c
sub dword [ebp - 0x34], 0x5359b5ee
mov dword [ebp - 0x30], 0xec61b9d0
add dword [ebp - 0x30], 0x139e4630
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x7cb5a8c3
sub eax, 0x7c75284b
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xd8b117a4
sub dword [ebp - 0x3c], 0x643eae4e
mov dword [ebp - 0x38], 0xc9607660
sub dword [ebp - 0x38], 0x87f414eb
mov dword [ebp - 0x34], 0x94b2c283
add dword [ebp - 0x34], 0xcebca9e9
mov dword [ebp - 0x30], 0x4270c103
sub dword [ebp - 0x30], 0x4270c103
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x36fd4
push 0
call eax
mov ecx, 0x47eb
mov ebx, eax
mov edx, 0xcd155b2f
add edx, 0x332fb8d1
add edx, dword [ebp - 0x2c]
mov edi, 0x94d4dff4
sub edi, 0x4ab4f37d
add dword [ebp - 0xc], edi
mov esi, dword [edx]
xor dword [ebp - 0x18], 0x9cb5ce30
add esi, edi
add dword [ebp - 4], ecx
mov dword [ebx], esi
add dword [ebp - 0xc], esi
add ebx, 0xdc9f0e7e
add ebx, 0x2360f186
add edx, 4
loop 0x405c49
add eax, 0x1127f
mov ebx, eax
add eax, 5
mov ecx, 0x3342f9c9
sub ecx, 0x3302f9c9
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x405dee
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa70
push esi
call fcn.00406411
push esi
call fcn.00405d91
mov edi, eax
test edi, edi
jne 0x405e0f
xor eax, eax
jmp 0x405e67
push edi
call fcn.004066c0
test byte [0x434f1c], 0x80
je 0x405e2c
mov ax, word [edi]
test ax, ax
je 0x405e0b
cmp ax, 0x5c
je 0x405e0b
sub edi, esi
sar edi, 1
jmp 0x405e46
call fcn.0040676f
test eax, eax
je 0x405e40
test byte [eax], 0x10
je 0x405e0b
push esi
call fcn.00405d32
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405e32
call fcn.00405ce6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405ee2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405f01
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4
Function at 0x401ee2
Capabilities:
Terminate process

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

Function at 0x402793
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x4027a2
pop dword [ebp - 0x20]
mov eax, 0x8d4f3bf3
add eax, 0x72f0ebaf
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x3555a
push 0
mov eax, 0x9207b386
add eax, 0x6e392d52
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0xb9159af4
add ecx, 0x46ea9b17
xor edi, edi
add edi, eax
mov esi, 0x45eca082
sub esi, 0x45ab64be
add esi, dword [ebp - 0x20]
mov ebx, 0x1a71d985
sub dword [ebp - 4], 0xee36481d
mov edx, dword [esi]
xor dword [ebp - 0x14], ebx
add edx, ebx
sub dword [ebp - 0x18], eax
mov dword [edi], edx
xor dword [ebp - 0x14], esi
add edi, 0xac041a82
add edi, 0x53fbe582
add esi, 4
loop 0x4027fd
add eax, 0x67dcb57
sub eax, 0x67d0058
xor ebx, ebx
add ebx, eax
add eax, 0x495d42fc
sub eax, 0x495d42f7
mov ecx, 0xd81dce6b
sub ecx, 0xd7ddce6b
add ecx, dword [ebp - 0x20]
call ebx
leave
ret