joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431840
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0041e860
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x43190b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x43190b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4318be
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4318c9
or bh, 8
and edi, 0x8000000
je 0x4318e4
mov eax, dword [0x474c3c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x43190b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431ce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x431d0b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x431d2f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x431d4a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x436d9a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0044b52a
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x436dcb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00436df0
pop edi
pop esi
pop ebx
ret 8
Function at 0x438467
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x43849f
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.0043be09
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0043bde1
jmp 0x4384ab
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x43a269
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 0x43a2ab
call fcn.0044b52a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x43a2ab
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x43a2a2
xor eax, eax
jmp 0x43a2b3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0043a2b9
pop edi
pop esi
pop ebx
ret 4
Function at 0x406234
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x406243
pop dword [ebp - 0x14]
mov eax, 0x406243
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xa09e9da8
add dword [ebp - 0x24], 0xadb3a7a3
mov dword [ebp - 0x20], 0x90ce94b4
sub dword [ebp - 0x20], 0x5e9b486f
mov dword [ebp - 0x1c], 0x742ec7eb
sub dword [ebp - 0x1c], 0x27e283bd
mov dword [ebp - 0x18], 0x3ba4242c
sub dword [ebp - 0x18], 0x3ba4242c
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x5938d122
sub dword [ebp - 0x24], 0xe4c667cc
mov dword [ebp - 0x20], 0x5afc9a1f
sub dword [ebp - 0x20], 0x199038aa
mov dword [ebp - 0x1c], 0x2764f1fd
add dword [ebp - 0x1c], 0x3c0a7a6f
mov dword [ebp - 0x18], 0xb2653d25
add dword [ebp - 0x18], 0x4d9ac2db
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xeee1a86
add eax, 0xf152667a
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3893b
push 0
call eax
mov ecx, 0x4e37
xor esi, esi
add esi, eax
mov edi, 0x59624b51
sub edi, 0x591b6751
add edi, dword [ebp - 0x14]
mov edx, 0x8c120896
add dword [ebp - 0xc], 0xb6646bd2
mov ebx, dword [edi]
add dword [ebp - 4], 0xa8b0153
sub ebx, edx
xor dword [ebp - 8], esi
mov dword [esi], ebx
add dword [ebp - 0xc], edi
add esi, 0xa52f2473
add esi, 0x5ad0db91
add edi, 4
loop 0x406351
add eax, 0xe947fcec
sub eax, 0xe946d13d
mov ebx, eax
add eax, 5
mov ecx, 0xf1d64e5c
add ecx, 0xe69b1a4
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

Function at 0x40669d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4066d4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4066ae
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066a9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406705
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4066e7
pop edi
not eax
pop esi
ret 0xc
Function at 0x401010
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d5f8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x43b050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
je 0x401194
cmp word [eax], bx
je 0x401194
cmp edi, ebx
je 0x401194
cmp word [edi], bx
je 0x401194
push 0x2000
mov dword [ebp - 0x20], ebx
call fcn.0041ad8c
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x401194
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
mov dword [ebp - 0x38], 0x4324bc
call edx
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [0x430208]
test eax, eax
je 0x4010d8
push edi
call dword [0x43011c]
test eax, eax
jne 0x4010d8
push 0x80
push edi
call dword [0x430118]
push edi
call dword [0x43011c]
push ebx
push 0x20
push 2
push ebx
push 2
push 0x40000000
push edi
call dword [0x430114]
mov edi, eax
cmp edi, 0xffffffff
je 0x40116e
mov eax, dword [ebp + 8]
push ebx
push eax
lea ecx, [ebp - 0x38]
call fcn.00401230
test eax, eax
je 0x401167
lea ecx, [ebp - 0x14]
push ecx
push 0x2000
push esi
lea ecx, [ebp - 0x38]
call fcn.00401420
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x401159
lea ecx, [ecx]
add dword [ebp - 0x18], eax
push ebx
lea edx, [ebp - 0x1c]
push edx
push eax
push esi
push edi
call dword [0x430110]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jne 0x401167
push ebx
call dword [0x43010c]
lea ecx, [ebp - 0x14]
push ecx
push 0x2000
push esi
lea ecx, [ebp - 0x38]
call fcn.00401420
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jne 0x401120
mov eax, dword [ebp - 0x18]
xor edx, edx
cmp eax, dword [ebp - 0x28]
sete dl
mov dword [ebp - 0x20], edx
push edi
call dword [0x430108]
push esi
call main
add esp, 4
lea ecx, [ebp - 0x38]
call fcn.00401200
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408bc0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*4]
sub ecx, eax
neg ecx
add ecx, ecx
lea edx, [ecx + ecx]
mov ecx, 0xc
sub ecx, edx
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 1]
push ecx
xor esi, esi
call fcn.0041ad8c
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x408c19
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 2
jle 0x408ca2
lea edx, [edi - 3]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
lea eax, [edx*4]
sub eax, edx
neg eax
add edi, eax
mov dword [ebp - 4], edx
mov dword [ebp + 8], edi
movzx eax, byte [ebx]
movzx edi, byte [ebx + 1]
mov edx, eax
shr edx, 2
movzx edx, byte [edx + 0x43d420]
mov byte [ecx + esi], dl
and eax, 3
add eax, eax
mov edx, edi
shr edx, 4
movzx eax, byte [edx + eax*8 + 0x43d420]
mov byte [ecx + esi + 1], al
movzx eax, byte [ebx + 2]
mov edx, eax
shr edx, 6
and edi, 0xf
movzx edx, byte [edx + edi*4 + 0x43d420]
and eax, 0x3f
movzx eax, byte [eax + 0x43d420]
mov byte [ecx + esi + 2], dl
mov byte [ecx + esi + 3], al
add esi, 4
add ebx, 3
dec dword [ebp - 4]
jne 0x408c42
mov edi, dword [ebp + 8]
test edi, edi
je 0x408d02
movzx edi, byte [ebx]
mov edx, edi
shr edx, 2
mov al, byte [edx + 0x43d420]
and edi, 3
cmp dword [ebp + 8], 1
mov byte [ecx + esi], al
jle 0x408ceb
movzx eax, byte [ebx + 1]
mov edx, eax
shr edx, 4
add edi, edi
mov dl, byte [edx + edi*8 + 0x43d420]
and eax, 0xf
mov al, byte [eax*4 + 0x43d420]
mov byte [ecx + esi + 1], dl
mov byte [ecx + esi + 2], al
mov byte [ecx + esi + 3], 0x3d
jmp 0x408cff
shl edi, 4
mov dl, byte [edi + 0x43d420]
mov byte [ecx + esi + 1], dl
mov word [ecx + esi + 2], 0x3d3d
add esi, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x408d0b
mov dword [eax], esi
pop edi
mov byte [ecx + esi], 0
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412740
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x43b050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [0x430280]
push esi
mov esi, ecx
mov ecx, dword [esi]
push edi
push ecx
mov dword [ebp - 0x1c], eax
call ebx
mov edx, dword [esi + 4]
push edx
mov edi, eax
call ebx
mov esi, eax
xor ebx, ebx
mov eax, dword [ebx + str.37k_IF__y_d]
push eax
call dword [0x430280]
mov dword [ebp + ebx - 0x14], eax
add ebx, 4
cmp ebx, 0x10
jl 0x412772
mov eax, 0xe3779b90
mov dword [ebp - 0x18], 0x10
mov ecx, edi
shr ecx, 5
add ecx, dword [ebp - 8]
mov edx, edi
shl edx, 4
add edx, dword [ebp - 0xc]
xor ecx, edx
lea edx, [eax + edi]
xor ecx, edx
sub esi, ecx
mov ecx, esi
shr ecx, 5
add ecx, dword [ebp - 0x10]
mov edx, esi
shl edx, 4
add edx, dword [ebp - 0x14]
xor ecx, edx
lea edx, [eax + esi]
xor ecx, edx
sub edi, ecx
add eax, 0x61c88647
dec dword [ebp - 0x18]
jne 0x412797
push edi
mov edi, dword [0x430284]
call edi
mov ebx, dword [ebp - 0x1c]
push esi
mov dword [ebx], eax
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [ebx + 4], eax
xor ecx, ebp
pop ebx
call fcn.0041ad7d
mov esp, ebp
pop ebp
ret

Function at 0x4140b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d793
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x43b050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
or ecx, 0xffffffff
mov dword [edi + 8], ecx
mov dword [edi + 4], ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x20], 0x43e56c
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [ebp - 4], eax
lea ebx, [edi + 0x34]
mov dword [edi], 0x43653c
mov dword [ebx], 0x43e56c
mov byte [ebp - 4], 1
mov dword [edi + 0x40], ecx
mov dword [edi + 0x3c], ecx
push 0x435944
xor esi, esi
mov dword [edi + 0x38], 4
mov byte [edi + 0x44], al
mov byte [edi + 0x2c], al
mov dword [edi + 0x30], eax
call fcn.00412cb0
xor eax, eax
mov dword [edi + 0x40], eax
mov dword [edi + 0x3c], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x416e70
Capabilities:
Encode data using xor

Disassembly:
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416e75
sub eax, edx
sar eax, 1
mov edx, eax
add edx, edx
xor eax, eax
xor ecx, ecx
test edx, edx
jle 0x416eac
push ebx
push edi
movzx edi, byte [ecx + esi]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x43c300]
inc ecx
cmp ecx, edx
jl 0x416e92
pop edi
pop ebx
not eax
ret
Function at 0x417820
Capabilities:
Check if file exists

Disassembly:
push ecx
push esi
call fcn.004197d0
test eax, eax
jne 0x41782f
xor eax, eax
pop ecx
ret
cmp dword [0x43e578], 0
jne 0x41782b
push esi
call fcn.004199b0
test eax, eax
je 0x41782b
mov eax, dword [esi + 0x4c]
cmp dword [eax - 0xc], 0
je 0x417871
push eax
call dword [0x430208]
test eax, eax
je 0x417871
mov eax, dword [esi + 0x4c]
push eax
call dword [0x43011c]
test eax, eax
jne 0x417871
push 4
push eax
mov eax, dword [esi + 0x4c]
push eax
call dword [0x430070]
cmp dword [0x43e578], 0
jne 0x41782b
mov eax, esi
call fcn.00419c90
cmp dword [0x43e578], 0
jne 0x41782b
push 3
push 0
push 0x3ed
xor ecx, ecx
mov edx, 0x43e520
call fcn.00405bd0
add esp, 0xc
cmp dword [0x43e578], 0
jne 0x41782b
mov eax, 1
mov dword [esi + 0x44], eax
pop ecx
ret
Function at 0x4197d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e8d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43b050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.00419ef0
mov dword [ebp - 4], 0
cmp dword [0x43e578], 0
je 0x41982f
or esi, 0xffffffff
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
jmp 0x419983
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 0xc], 0
jne 0x41984e
or esi, 0xffffffff
lea eax, [ecx - 0x10]
mov dword [ebp - 4], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
jmp 0x419983
mov esi, dword [ebx]
mov edi, ecx
test esi, esi
je 0x419950
cmp word [esi], 0
je 0x419950
cmp word [ecx], 0
je 0x419950
push esi
call fcn.00401010
add esp, 4
test eax, eax
jne 0x4198b8
mov dword [ebp - 0x14], 0x436c48
push edi
mov byte [ebp - 4], 1
call dword [0x43011c]
lea ecx, [ebp - 0x14]
push ecx
push 0
push edi
push esi
push 0
call dword [0x43c2c0]
test eax, eax
jne 0x41994d
push edi
call dword [0x430208]
test eax, eax
je 0x41994d
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00419cc0
add esp, 4
push eax
lea eax, [ebx + 4]
call fcn.0041a9f0
mov bl, al
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
or esi, 0xffffffff
add esp, 4
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4198f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x41995b
mov edi, dword [ebp + 8]
add edi, 0x14
lea eax, [ebp - 0x10]
call fcn.004033b0
push 0x3eb
call fcn.00407370
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x419934
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x10]
or esi, 0xffffffff
mov dword [ebp - 4], esi
lea eax, [ecx - 0x10]
jmp 0x41997b
mov ecx, dword [ebp - 0x10]
push ecx
call dword [0x43011c]
push 0x3ec
call fcn.00407370
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
add esp, 4
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x419991
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x419c90
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [eax + 0x14]
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [0x4301f8]
cmp eax, 0x20
jle 0x419cbd
push 0x7d0
call dword [0x43010c]
mov eax, 1
ret
xor eax, eax
ret
Function at 0x4010da
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x414738
call fcn.00403ae8
sub esp, 0x434
mov eax, dword [0x41b2fc]
push ebx
push esi
push edi
mov dword [ebp - 0x1c], eax
and dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
and byte [ebp - 0xd], 0
lea eax, [ebp - 0x120]
push 0x104
push eax
mov byte [ebp - 4], 2
call fcn.00403e14
pop ecx
lea eax, [ebp - 0x120]
pop ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040dbac
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
call fcn.0040db5c
mov eax, dword [ebp - 0x14]
push 0x5c
lea ecx, [ebp - 0x14]
mov esi, dword [eax - 8]
call fcn.0040c7bd
dec esi
cmp eax, esi
jne 0x40115c
mov eax, dword [ebp - 0x14]
push 1
lea ecx, [ebp - 0x14]
mov eax, dword [eax - 8]
dec eax
push eax
call fcn.0040c765
push str._autorun.inf
lea ecx, [ebp - 0x14]
call fcn.0040dd4a
push dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x224]
mov esi, str.NULL
push 0x100
push eax
push esi
mov ebx, str.CONFIG
push str.INSTKEY
push ebx
call edi
push dword [ebp - 0x14]
lea eax, [ebp - 0x328]
push 0x100
push eax
push esi
push str.EXENAME
push ebx
call edi
mov ebx, 0x400
push str.sierra.ini
lea eax, [ebp - 0x120]
push ebx
push eax
push esi
lea eax, [ebp - 0x224]
push str.InstallPath
push eax
call edi
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040dbac
push str.sierra.ini
lea eax, [ebp - 0x120]
push ebx
push eax
push esi
lea eax, [ebp - 0x224]
push str.UnInstallPath
push eax
call edi
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x120]
push eax
call fcn.0040dbac
push esi
push dword [ebp - 0x18]
call fcn.00403d90
pop ecx
pop ecx
pop edi
pop esi
pop ebx
test eax, eax
jne 0x40121b
and byte [ebp - 0xd], al
jmp 0x401266
push dword [ebp - 0x18]
call fcn.00403d00
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x328]
push eax
call fcn.00403b07
add esp, 0xc
cmp eax, 0xffffffff
je 0x40125d
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.0040db5c
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x328]
push eax
call fcn.0040dbac
mov byte [ebp - 0xd], 1
push dword [ebp - 0x1c]
call fcn.00403d00
pop ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040dab3
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040dab3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040dab3
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x4021e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp method.CDialog.virtual_184
mov eax, 0x414bdc
call fcn.00403ae8
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004135f5
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x40e2f1
call fcn.004135f5
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40e2ff
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40e30d
or eax, 0xffffffff
jmp 0x40e3f5
mov ecx, esi
call fcn.0040e228
mov dword [ebp - 0x14], eax
call fcn.0040f03d
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x40e344
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40e344
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0040eff1
push dword [ebp - 0x14]
call fcn.0040eb3f
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0040dfc0
cmp eax, edi
je 0x40e3b7
test byte [esi + 0x24], 0x10
je 0x40e385
push 4
mov ecx, esi
pop ebx
call fcn.004111bc
test ah, 1
je 0x40e37d
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00410b45
cmp dword [esi + 0x1c], edi
je 0x40e3b7
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00411246
jmp 0x40e3b7
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x40e3cb
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x40e3e4
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x40e3e4
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0040e262
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4109f3
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 0x410a35
call fcn.004135f5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x410a35
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x410a2c
xor eax, eax
jmp 0x410a3d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00410a43
pop edi
pop esi
pop ebx
ret 4