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

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 4], ebx
jle 0x428b00
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
xor edi, edi
xor esi, esi
nop
lea eax, [edi + 1]
and eax, 0x800000ff
jns 0x428aa1
dec eax
or eax, 0xffffff00
inc eax
movzx edi, al
movzx eax, byte [edi + ebp]
lea ecx, [edi + ebp]
add eax, ebx
and eax, 0x800000ff
jns 0x428abb
dec eax
or eax, 0xffffff00
inc eax
movzx ebx, al
lea eax, [ebx + ebp]
call fcn.00428a60
movzx ecx, byte [ecx]
movzx edx, byte [eax]
add ecx, edx
and ecx, 0x800000ff
jns 0x428ade
dec ecx
or ecx, 0xffffff00
inc ecx
movzx eax, cl
mov cl, byte [eax + ebp]
mov eax, dword [esp + 0x18]
xor byte [esi + eax], cl
mov eax, dword [esp + 0x10]
inc eax
movsx esi, ax
mov dword [esp + 0x10], eax
cmp esi, dword [esp + 0x1c]
jl 0x428a90
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x428b10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
xor eax, eax
mov ecx, ebx
lea esp, [esp]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x428b20
xor dl, dl
xor esi, esi
mov ecx, ebx
mov ebp, 0x100
mov eax, dword [esp + 0x14]
movzx edi, dl
movzx eax, byte [edi + eax]
movzx edx, byte [ecx]
sub eax, edx
add eax, esi
and eax, 0x800000ff
jns 0x428b55
dec eax
or eax, 0xffffff00
inc eax
movzx esi, al
lea eax, [esi + ebx]
call fcn.00428a60
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x18]
inc ecx
dec ebp
jne 0x428b35
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x429490
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
test edi, edi
jbe 0x4294e8
push ebx
push esi
mov esi, dword [esp + 0x10]
movzx edx, byte [esi]
mov ecx, eax
and ecx, 0xf
movzx ecx, word [ecx*4 + 0x4805b0]
shr ax, 4
mov ebx, edx
and ebx, 0xf
xor cx, word [ebx*4 + 0x4805b0]
shr edx, 4
xor ecx, eax
mov eax, ecx
and eax, 0xf
movzx eax, word [eax*4 + 0x4805b0]
xor ax, word [edx*4 + 0x4805b0]
shr cx, 4
xor eax, ecx
inc esi
dec edi
jne 0x4294a1
pop esi
pop ebx
pop edi
ret
Function at 0x42d0a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x28]
mov eax, dword [esi]
push eax
call fcn.0044ec80
add esp, 4
test eax, eax
jne 0x42d1bf
mov ecx, dword [esi + 4]
cmp ecx, 1
jl 0x42d1c4
cmp ecx, 0x80
jg 0x42d1c4
push edi
mov edi, dword [esp + 0x28]
xor edx, edx
mov eax, edi
div ecx
test edx, edx
je 0x42d0ed
pop edi
mov eax, 0x16
pop esi
add esp, 0x14
ret
test cl, 3
jne 0x42d0e2
mov ecx, dword [esi]
imul ecx, ecx, 0x58
mov ecx, dword [ecx + 0x56a358]
test ecx, ecx
je 0x42d122
lea edx, [esi + 0x88]
push edx
mov edx, dword [esp + 0x24]
add esi, 8
push esi
push eax
mov eax, dword [esp + 0x30]
push eax
push edx
call ecx
add esp, 0x14
pop edi
pop esi
add esp, 0x14
ret
test edi, edi
push ebx
push ebp
je 0x42d1ba
mov ebp, dword [esp + 0x28]
mov ecx, dword [esi]
imul ecx, ecx, 0x58
lea eax, [esi + 0x88]
push eax
lea edx, [esp + 0x18]
push edx
push ebp
call dword [ecx + 0x56a340]
add esp, 0xc
test eax, eax
jne 0x42d1bc
mov eax, dword [esi + 4]
test eax, eax
jle 0x42d19b
mov ebx, dword [esp + 0x2c]
lea edi, [esp + 0x14]
mov edx, 0xfffffff8
sub edi, ebp
sub ebx, ebp
sub edx, esi
lea ecx, [esi + 8]
mov eax, ebp
mov dword [esp + 0x10], edx
mov ebp, dword [ecx]
mov edx, dword [edi + eax]
xor edx, ebp
mov ebp, dword [eax]
mov dword [ecx], ebp
mov dword [ebx + eax], edx
mov edx, dword [esp + 0x10]
mov ebp, dword [esi + 4]
add ecx, 4
add edx, ecx
add eax, 4
cmp edx, ebp
jl 0x42d172
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x2c]
add ebp, eax
add ecx, eax
sub edi, eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edi
jne 0x42d130
xor eax, eax
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x14
ret
mov eax, 0x16
pop esi
add esp, 0x14
ret

Function at 0x42f1a0
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x42f1c3
jmp 0x42f1b0
imul eax, eax, 0xf4243
movzx ecx, cl
xor eax, ecx
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x42f1b0
ret
Function at 0x43b600
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
push esi
push 0
lea eax, [esp + 0xc]
push eax
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x43b61f
pop esi
xor eax, eax
pop ebx
pop ecx
ret
inc esi
mov eax, esi
call fcn.0043b510
test eax, eax
mov dword [esp + 8], eax
je 0x43b619
push esi
push eax
push edi
call ebx
mov ecx, dword [esp + 8]
neg eax
sbb eax, eax
pop esi
and eax, ecx
pop ebx
pop ecx
ret

Function at 0x43b710
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
xor eax, eax
mov ax, word [esp + 8]
shr ax, 0xf
lea edx, [ecx + ecx]
push ebx
push esi
mov esi, 0x16
or eax, edx
mov ecx, eax
mov dword [esp + 0x10], eax
shr ecx, 8
xor cl, al
mov byte [esp + 0x11], cl
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov cx, word [esp + 0x10]
shr cx, 1
shl eax, 0xf
xor edx, edx
or eax, ecx
mov dword [esp + 0x10], eax
mov dx, word [esp + 0x10]
shr dx, 1
shl eax, 0xf
or eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
add eax, 4
jmp 0x43b770
mov dl, byte [esp + 0x10]
mov cl, dl
shl dl, 1
shr cl, 7
or cl, dl
mov byte [esp + 0x10], cl
mov ebx, dword [esp + 0x10]
shr ebx, 8
mov dl, bl
shl dl, 7
shr bl, 1
or dl, bl
xor dl, cl
mov byte [esp + 0x11], dl
mov ecx, dword [esp + 0x10]
not ecx
mov dx, cx
xor word [eax - 4], dx
mov dword [esp + 0x10], ecx
add ecx, 0x55
mov dword [esp + 0x10], ecx
mov dl, cl
shl dl, 1
shr cl, 7
or cl, dl
mov byte [esp + 0x10], cl
mov byte [esp + 0xc], bl
mov ebx, dword [esp + 0x10]
shr ebx, 8
mov dl, bl
shl dl, 7
shr bl, 1
or dl, bl
xor dl, cl
mov byte [esp + 0x11], dl
mov ecx, dword [esp + 0x10]
not ecx
mov dx, cx
xor word [eax - 2], dx
mov dword [esp + 0x10], ecx
add ecx, 0x55
mov dword [esp + 0x10], ecx
mov dl, cl
shl dl, 1
shr cl, 7
or cl, dl
mov byte [esp + 0x10], cl
mov byte [esp + 0xc], bl
mov ebx, dword [esp + 0x10]
shr ebx, 8
mov dl, bl
shl dl, 7
shr bl, 1
or dl, bl
xor dl, cl
mov byte [esp + 0x11], dl
mov ecx, dword [esp + 0x10]
not ecx
mov dx, cx
xor word [eax], dx
mov dword [esp + 0x10], ecx
add ecx, 0x55
mov dword [esp + 0x10], ecx
mov dl, cl
shl dl, 1
shr cl, 7
or cl, dl
mov byte [esp + 0xc], bl
mov byte [esp + 0x10], cl
mov ebx, dword [esp + 0x10]
shr ebx, 8
mov dl, bl
shr bl, 1
shl dl, 7
or dl, bl
xor dl, cl
mov byte [esp + 0x11], dl
mov ecx, dword [esp + 0x10]
not ecx
mov byte [esp + 0xc], bl
mov dword [esp + 0x10], ecx
mov dx, cx
xor word [eax + 2], dx
add ecx, 0x55
add eax, 8
dec esi
mov dword [esp + 0x10], ecx
jne 0x43b770
pop esi
pop ebx
ret
Function at 0x43c430
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov al, byte [esp + 8]
mov edx, dword [esp + 0xc]
and al, 0xf
push ebx
movzx cx, al
push ebp
push esi
mov word [esp + 0xc], cx
lea ebp, [edx + edi - 1]
jmp 0x43c450
xor dl, dl
test di, di
mov ecx, ebp
je 0x43c47b
movzx esi, di
lea esp, [esp]
mov al, byte [ecx]
mov bl, dl
mov dl, al
shl al, 1
or al, bl
shr dl, 7
mov byte [ecx], al
dec ecx
dec esi
jne 0x43c460
test dl, dl
je 0x43c47b
or byte [ebp], 1
mov eax, dword [esp + 0xc]
mov cx, ax
add eax, 0xffff
test cx, cx
mov dword [esp + 0xc], eax
jne 0x43c450
xor ecx, ecx
test edi, edi
jbe 0x43c4b0
mov esi, dword [esp + 0x18]
mov dl, byte [esp + 0x14]
xor eax, eax
mov bl, byte [eax + esi]
xor bl, dl
inc ecx
mov byte [eax + esi], bl
movzx eax, cx
cmp eax, edi
jb 0x43c4a0
pop esi
pop ebp
xor ax, ax
pop ebx
pop ecx
ret

Function at 0x43c4c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
xor ecx, ecx
test ebx, ebx
push edi
jbe 0x43c4db
xor eax, eax
nop
xor byte [eax + ebp], dl
inc ecx
movzx eax, cx
cmp eax, ebx
jb 0x43c4d0
and dl, 0xf
movzx ax, dl
mov word [esp + 0x10], ax
xor dl, dl
test bx, bx
mov esi, ebp
je 0x43c511
movzx edi, bx
mov al, byte [esi]
mov cl, dl
mov dl, al
shr al, 1
shl cl, 7
or al, cl
and dl, 1
mov byte [esi], al
inc esi
dec edi
jne 0x43c4f3
test dl, dl
je 0x43c511
or byte [ebp], 0x80
mov eax, dword [esp + 0x10]
mov cx, ax
add eax, 0xffff
test cx, cx
mov dword [esp + 0x10], eax
jne 0x43c4e7
pop edi
pop esi
xor ax, ax
pop ebp
ret

Function at 0x43c5b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push esi
mov esi, dword [esp + 8]
movzx eax, byte [esi + 2]
movzx ecx, byte [eax + str._.C]
push edi
mov edi, dword [esp + 0x10]
mov eax, 4
cmp edi, eax
jle 0x43c5ed
push ebx
nop
mov bl, byte [eax + esi]
mov edx, ecx
and edx, 0xff
mov dl, byte [edx + str._.C]
xor bl, dl
inc ecx
mov byte [eax + esi], bl
inc eax
cmp eax, edi
jl 0x43c5d0
pop ebx
pop edi
pop esi
ret

Function at 0x43c650
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
test cx, cx
push ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 4], eax
jbe 0x43c6f2
push ebp
movzx ecx, cx
push esi
push edi
mov dword [esp + 0x1c], ecx
jmp 0x43c680
mov eax, dword [esp + 0x10]
jmp 0x43c680
mov edi, dword [eax + 4]
mov ebp, dword [eax]
mov dword [esp + 0x18], 0x10
lea ecx, [ecx]
xor ecx, ecx
mov cl, bl
lea edx, [esp + 0x14]
mov dword [esp + 0x14], edi
and ecx, 0xf
call fcn.0043c5f0
mov edx, dword [esp + 0x14]
mov esi, ebp
xor esi, edx
mov ecx, 2
lea edx, [esp + 0x24]
xor esi, ebx
call fcn.0043c620
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
dec eax
mov ebp, edi
mov edi, esi
mov dword [esp + 0x18], eax
jne 0x43c690
mov eax, dword [esp + 0x10]
mov dword [eax + 4], esi
mov dword [eax], ebp
add eax, 8
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
inc ebx
dec eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], eax
jne 0x43c671
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x43e8f0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [ecx]
push ebx
push ebp
push esi
mov esi, dword [eax]
push edi
add dword [eax + 4], edx
mov edx, dword [ecx + 4]
add esi, edx
mov dword [eax], esi
lea edx, [ecx + 0x10]
mov dword [esp + 0x10], 3
mov edi, edi
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
xor ebx, ebp
mov esi, ebx
mov edi, ebp
shr edi, 4
and edi, 0x1f
mov ecx, 0x20
sub ecx, edi
shr esi, cl
mov ecx, edi
mov edi, dword [edx - 8]
shl ebx, cl
mov ecx, 0x20
or esi, ebx
sub esi, edi
mov dword [eax + 4], esi
mov edi, esi
shr edi, 7
xor esi, ebp
and edi, 0x1f
sub ecx, edi
mov ebx, esi
shr ebx, cl
mov ecx, edi
shl esi, cl
mov ecx, dword [edx - 4]
or ebx, esi
add ecx, ebx
mov ebx, dword [eax + 4]
xor ebx, ecx
mov dword [eax], ecx
mov ebp, dword [edx]
mov edi, ecx
shr edi, 4
and edi, 0x1f
mov esi, ebx
mov ecx, 0x20
sub ecx, edi
shr esi, cl
mov ecx, edi
shl ebx, cl
mov ecx, 0x20
or esi, ebx
mov ebx, dword [eax]
sub esi, ebp
xor ebx, esi
mov edi, esi
mov dword [eax + 4], esi
shr edi, 7
and edi, 0x1f
sub ecx, edi
mov esi, ebx
shr esi, cl
mov ecx, edi
shl ebx, cl
mov ecx, dword [edx + 4]
or esi, ebx
mov ebx, dword [eax + 4]
add ecx, esi
mov edi, ecx
xor ebx, ecx
mov dword [eax], ecx
mov ebp, dword [edx + 8]
shr edi, 4
and edi, 0x1f
mov esi, ebx
mov ecx, 0x20
sub ecx, edi
shr esi, cl
mov ecx, edi
shl ebx, cl
mov ecx, 0x20
or esi, ebx
mov ebx, dword [eax]
sub esi, ebp
mov edi, esi
shr edi, 7
and edi, 0x1f
mov dword [eax + 4], esi
xor ebx, esi
sub ecx, edi
mov esi, ebx
shr esi, cl
mov ecx, edi
shl ebx, cl
mov ecx, dword [edx + 0xc]
add edx, 0x20
or esi, ebx
mov ebx, dword [eax + 4]
add ecx, esi
xor ebx, ecx
mov dword [eax], ecx
mov ebp, dword [edx - 0x10]
mov edi, ecx
shr edi, 4
and edi, 0x1f
mov esi, ebx
mov ecx, 0x20
sub ecx, edi
shr esi, cl
mov ecx, edi
shl ebx, cl
mov ecx, 0x20
or esi, ebx
mov ebx, dword [eax]
sub esi, ebp
mov edi, esi
xor ebx, esi
shr edi, 7
mov dword [eax + 4], esi
and edi, 0x1f
sub ecx, edi
mov esi, ebx
shr esi, cl
mov ecx, edi
mov edi, dword [edx - 0xc]
shl ebx, cl
mov ecx, dword [esp + 0x10]
or esi, ebx
add esi, edi
dec ecx
mov dword [eax], esi
mov dword [esp + 0x10], ecx
jne 0x43e910
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x43ea50
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov ebp, 0xc
jmp 0x43ea60
mov ebx, dword [edi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + ebp*8 + 4]
mov edx, dword [edi]
sub edx, ecx
mov esi, ebx
shr esi, 7
and esi, 0x1f
mov eax, edx
mov ecx, 0x20
sub ecx, esi
shl eax, cl
mov ecx, esi
shr edx, cl
mov ecx, dword [esp + 0x10]
or eax, edx
xor eax, ebx
mov dword [edi], eax
mov edx, dword [ecx + ebp*8]
lea esi, [edx + ebx]
mov edx, eax
shr edx, 4
and edx, 0x1f
mov ecx, 0x20
sub ecx, edx
mov ebx, esi
shl ebx, cl
mov ecx, edx
shr esi, cl
or ebx, esi
xor ebx, eax
dec ebp
mov dword [edi + 4], ebx
jne 0x43ea60
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
sub dword [edi], ecx
mov edx, dword [eax]
mov eax, ebx
pop esi
sub eax, edx
pop ebp
mov dword [edi + 4], eax
pop ebx
ret
Function at 0x446b20
Capabilities:
Hash data with md5

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

Function at 0x466230
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, eax
mov eax, dword [0x48d0a8]
and eax, 0xff00
cmp eax, 0x2300
je 0x46627d
shr edi, 2
xor edx, edx
test edi, edi
jle 0x46627d
push ebx
mov edi, edi
mov ecx, dword [esi + edx*4]
mov eax, ecx
shl ecx, 0x10
shr eax, 0x10
or eax, ecx
mov ecx, eax
shr ecx, 8
mov ebx, eax
shl ebx, 8
xor ecx, ebx
and ecx, 0xff00ff
shl eax, 8
xor ecx, eax
mov dword [esi + edx*4], ecx
inc edx
cmp edx, edi
jl 0x466250
pop ebx
pop edi
ret
Function at 0x471992
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48e230]
jne 0x47199c
repz ret
jmp fcn.00471fc4
Function at 0x4021a4
Capabilities:
Encode data using xor

Disassembly:
push 0x402634
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
cmp byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
aam 0xf6
mov ecx, 0x6c2ce541
dec esp
xor dword [eax], 0x79
jge 0x4021a9
aad 0xe2
cmp eax, 0
add byte [eax], al
add dword [eax], eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
mov ecx, 0x31ccb3a4
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ecx], al
add byte [ebx], cl
add byte [eax + 0x40], al
add byte [eax], al
add byte [eax], al
add bh, bh
Function at 0x4010c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401114
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401110
lea ebx, [ebx]
cmp esi, eax
jae 0x401114
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401100
cmp esi, eax
jb 0x40111a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402390
Capabilities:
Check os version

Disassembly:
sub esp, 0xb0
mov eax, dword [0x45cefc]
xor eax, esp
mov dword [esp + 0xac], eax
mov eax, dword [str.Service_Pack_1]
mov ecx, dword [0x455754]
mov edx, dword [0x455758]
push esi
push 0x9c
mov dword [esp + 0xac], edx
mov dword [esp + 0xa4], eax
mov ax, word [0x45575c]
mov dword [esp + 0xa8], ecx
mov cl, byte [0x45575e]
lea edx, [esp + 8]
push 0
push edx
mov word [esp + 0xb8], ax
mov byte [esp + 0xba], cl
call fcn.00423160
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x9c
call esi
test eax, eax
jne 0x402426
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x94
call esi
test eax, eax
je 0x402476
cmp dword [esp + 0x14], 2
jne 0x402476
cmp dword [esp + 8], 6
jne 0x402476
cmp dword [esp + 0xc], 0
jne 0x402476
cmp byte [esp + 0x9e], 1
jne 0x402476
lea edx, [esp + 0xa0]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00425810
add esp, 8
test eax, eax
je 0x402476
mov al, 1
pop esi
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.00423893
add esp, 0xb0
ret
mov ecx, dword [esp + 0xb0]
pop esi
xor ecx, esp
xor al, al
call fcn.00423893
add esp, 0xb0
ret
Function at 0x4027a0
Capabilities:
Get disk information

Disassembly:
mov ecx, dword [0x463e08]
cmp ecx, 0xffffffff
push esi
mov esi, dword [0x464e18]
jne 0x4027df
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, 3
lea ecx, [ecx]
mov edx, 1
shl edx, cl
test eax, edx
je 0x4027d6
add ecx, 1
cmp ecx, 0x1a
jl 0x4027c0
or ecx, 0xffffffff
cmp ecx, 0xffffffff
jne 0x4027df
or eax, ecx
pop esi
ret
add ecx, 0xffffffff
push ecx
push esi
mov eax, 1
mov byte [0x464e21], 1
call fcn.00406df0
add esp, 8
pop esi
ret

Function at 0x402800
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x447578
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push esi
mov eax, dword [0x45cefc]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
push 0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x8c], 0
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4028a6
mov dword [esp + 0x84], 0xffffffff
mov eax, dword [esp + 0x8c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402890
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x80
ret
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 8]
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], eax
mov word [esp + 0x5c], 0
mov dword [esp + 0x58], 0x101
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x4028ff
xor ecx, ecx
lea eax, [esp + 0x8c]
call fcn.00401fc0
mov esi, dword [esp + 0x8c]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402935
mov dword [esp + 0x84], 0xffffffff
lea eax, [esi - 0x10]
jmp 0x402877
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov dword [esp + 0x84], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402967
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x80
ret
Function at 0x402980
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
mov ecx, dword [0x4719f8]
push ebx
push ebp
push esi
push edi
push 0x4558c8
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edx, dword [0x4719f8]
mov edi, eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0
push 2
push 0
push 0
mov ebp, eax
mov eax, dword [esp + 0x2c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4029dc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4029d4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x402b70
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x14
mov eax, dword [0x45cefc]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
xor edx, edx
push edx
mov dword [esp + 8], edx
mov dword [esp + 0xc], edx
lea edx, [esp + 4]
push edx
mov edx, dword [eax + 4]
push edx
push eax
push 0xc
lea eax, [esp + 0x18]
push eax
push 0x2d1400
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00423893
add esp, 0x14
ret

Function at 0x402d00
Capabilities:
Get disk information

Disassembly:
push esi
push edi
mov edi, eax
mov eax, dword [0x463e08]
test eax, eax
jle 0x402d11
mov esi, eax
jmp 0x402d36
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, 3
lea esp, [esp]
mov edx, 1
shl edx, cl
test eax, edx
je 0x402d79
add ecx, 1
cmp ecx, 0x1a
jl 0x402d20
or esi, 0xffffffff
mov ecx, dword [0x471d4c]
mov eax, 1
sub eax, dword [ecx - 4]
or eax, dword [ecx - 8]
jge 0x402d5b
xor ecx, ecx
mov eax, 0x471d4c
call fcn.00401fc0
mov ecx, dword [0x471d4c]
call fcn.00406f40
add esi, 0x60
push esi
push 0x455784
call fcn.004022a0
add esp, 8
call fcn.00401d00
pop edi
pop esi
ret
mov esi, ecx
jmp 0x402d36
Function at 0x402d80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x45cefc]
xor eax, esp
mov dword [esp + 0x408], eax
push ebp
push edi
push 0x400
lea eax, [esp + 0x14]
push 0
push eax
mov edi, ecx
mov dword [esp + 0x18], 0x400
call fcn.00423160
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push str.SYSTEMCurrentControlSetServicesUSBSTOREnum
push SysReAllocStringLen
xor ebp, ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x402de8
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.00423893
add esp, 0x40c
ret
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x420]
push ecx
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402e3d
cmp dword [esp + 0x418], 4
mov ebp, 1
jne 0x402e30
movzx eax, byte [esp + 0x10]
push eax
push 0x45578c
call fcn.004022a0
add esp, 8
jmp 0x402e3d
push ebx
lea edx, [esp + 0x14]
mov ebx, edi
call fcn.00405920
pop ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x410]
pop edi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.00423893
add esp, 0x40c
ret