joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa52f7a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xa9ef44]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00a44a1c
and dword [ebp - 0x14], 0
cmp dword [0xabb2d8], 0
mov dword [ebp - 0x18], eax
jne 0xa5302d
push 0xaa6330
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0xa530d5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xaa2790
push ebx
call edi
test eax, eax
je 0xa530d5
mov esi, dword [0xaa0390]
push eax
call esi
push 0xaa6320
push ebx
mov dword [0xabb2d8], eax
call edi
push eax
call esi
push 0xaa630c
push ebx
mov dword [0xabb2dc], eax
call edi
push eax
call esi
push 0xaa62f0
push ebx
mov dword [0xabb2e0], eax
call edi
push eax
call esi
mov dword [0xabb2e8], eax
test eax, eax
je 0xa5302d
push 0xaa62d8
push ebx
call edi
push eax
call esi
mov dword [0xabb2e4], eax
mov eax, dword [0xabb2e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [0xaa0394]
cmp eax, ecx
je 0xa53086
cmp dword [0xabb2e8], ecx
je 0xa53086
push eax
call esi
push dword [0xabb2e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0xa53086
test ebx, ebx
je 0xa53086
call edi
test eax, eax
je 0xa5307d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0xa5307d
test byte [ebp - 8], 1
jne 0xa53086
or dword [ebp + 0x10], 0x200000
jmp 0xa530b9
mov eax, dword [0xabb2dc]
cmp eax, dword [ebp - 0x18]
je 0xa530b9
push eax
call esi
test eax, eax
je 0xa530b9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0xa530b9
mov eax, dword [0xabb2e0]
cmp eax, dword [ebp - 0x18]
je 0xa530b9
push eax
call esi
test eax, eax
je 0xa530b9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0xabb2d8]
call esi
test eax, eax
je 0xa530d5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0xa530d7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00a3ac6e
leave
ret
Function at 0xa604c8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0xa6054d
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00a3b080
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0xa60510
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0xa60532
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0xa605a8
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.00a60218
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
cmp esi, 3
pop ecx
pop ecx
jb 0xa60594
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x106
jae 0xa605a8
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0xa604d1
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push 0x44
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004012d0
add esp, 0xc
xor eax, eax
xor ecx, ecx
lea edx, [esp]
push edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov word [esp + 0x60], cx
mov ecx, dword [esp + 0x7c]
push ecx
push edx
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x64], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401071
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40ac40], eax
xor eax, eax
add esp, 0x54
ret
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
push ecx
mov dword [0x40ac44], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp]
add esp, 0x54
ret
Function at 0x4010a0
Capabilities:
Accept command line arguments
Read file via mapping

Disassembly:
sub esp, 0xa14
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xa10], eax
push ebx
push edi
push 0x1fe
xor ebx, ebx
lea ecx, [esp + 0x1e]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x24], ax
call fcn.004012d0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x18]
push eax
push ebx
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov edi, eax
mov dword [esp + 0x14], edi
cmp edi, ebx
jne 0x401117
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
mov dword [0x40ac40], eax
call fcn.00401090
add esp, 8
jmp 0x4012ad
push esi
push 0x2000
push ebx
push ebx
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
jne 0x401150
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
mov dword [0x40ac40], eax
call fcn.00401090
add esp, 8
jmp 0x4012ac
push ebp
push 0x7fe
lea edx, [esp + 0x226]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x22c], cx
call fcn.004012d0
add esp, 0xc
push 0x3e8
lea eax, [esp + 0x224]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
cmp dword [esi], ebx
jne 0x401247
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x224]
push edx
mov dword [esi], 1
call fcn.00401000
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 8
mov edi, eax
push 0xa
push edi
call ebx
mov dword [esp + 0x14], eax
cmp eax, 0x102
jne 0x4011e7
cmp dword [esi], 1
je 0x4011b8
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov dword [esp + 0x14], 0
call ebp
mov edi, dword [esp + 0x1c]
jmp 0x40129d
cmp dword [esi], 1
jne 0x4011cd
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x401225
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 3
mov dword [0x40ac40], eax
call fcn.00401090
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
push edi
mov dword [esp + 0x14], eax
call ebp
mov edi, dword [esp + 0x1c]
jmp 0x40129d
mov ecx, dword [esp + 0x14]
push ecx
push 4
call fcn.00401090
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
push edi
mov dword [esp + 0x14], eax
call ebp
mov edi, dword [esp + 0x1c]
jmp 0x40129d
mov eax, dword [esi + 4]
cmp eax, ebx
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 2
jl 0x401297
inc eax
lea edi, [esi + 0x814]
lea ebx, [esi + 0x14]
mov dword [esp + 0x18], eax
push edi
push ebx
call fcn.00401000
add esp, 8
test eax, eax
jne 0x401281
mov edx, dword [0x40ac40]
mov dword [esi + 0x10], edx
jmp 0x40128c
push eax
call ebp
mov eax, dword [0x40ac44]
mov dword [esi + 8], eax
sub dword [esp + 0x18], 1
jne 0x401268
mov edi, dword [esp + 0x1c]
mov dword [esi], 3
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call ebp
mov eax, dword [esp + 0x10]
pop ebp
pop esi
mov ecx, dword [esp + 0xa18]
pop edi
pop ebx
xor ecx, esp
call fcn.0040134a
add esp, 0xa14
ret 0x10
Function at 0x40134a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x401354
repz ret
jmp fcn.004016af

Function at 0x403783
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040265d
and dword [ebp - 4], 0
cmp dword [0x40b570], 0
mov ebx, eax
jne 0x403834
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4038e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4038e5
push eax
call fcn.004025eb
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b570], eax
call esi
push eax
call fcn.004025eb
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b574], eax
call esi
push eax
call fcn.004025eb
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b578], eax
call esi
push eax
call fcn.004025eb
pop ecx
mov dword [0x40b580], eax
test eax, eax
je 0x403834
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004025eb
pop ecx
mov dword [0x40b57c], eax
mov eax, dword [0x40b57c]
cmp eax, ebx
je 0x40388c
cmp dword [0x40b580], ebx
je 0x40388c
push eax
call fcn.00402666
push dword [0x40b580]
mov esi, eax
call fcn.00402666
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40388c
test edi, edi
je 0x40388c
call esi
test eax, eax
je 0x403883
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x403883
test byte [ebp - 0xc], 1
jne 0x40388c
or dword [ebp + 0x10], 0x200000
jmp 0x4038c5
mov eax, dword [0x40b574]
cmp eax, ebx
je 0x4038c5
push eax
call fcn.00402666
pop ecx
test eax, eax
je 0x4038c5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4038c5
mov eax, dword [0x40b578]
cmp eax, ebx
je 0x4038c5
push eax
call fcn.00402666
pop ecx
test eax, eax
je 0x4038c5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b570]
call fcn.00402666
pop ecx
test eax, eax
je 0x4038e5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4038e7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x468b3c
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004689b3

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x20402e5b
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x25cd4d1f
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x5727b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x115000]
push edi
jmp 0x5727ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5727d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5727c0
mov eax, 1
add ebx, ebx
jne 0x5727e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5727f4
jne 0x572813
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x572813
dec eax
add ebx, ebx
jne 0x572800
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5727d8
add ebx, ebx
jne 0x57280f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x572865
xor ecx, ecx
sub eax, 3
jb 0x57282b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x57289a
sar eax, 1
mov ebp, eax
jmp 0x572836
add ebx, ebx
jne 0x572836
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x572804
inc ecx
add ebx, ebx
jne 0x572844
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x572804
add ebx, ebx
jne 0x572851
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x572846
jne 0x572862
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x572846
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x572884
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x572876
jmp 0x5727c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x572884
add edi, ecx
jmp 0x5727c6
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5728a2
cmp byte [edi], 0x11
jne 0x5728a2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5728a7
lea edi, [esi + 0x16b000]
mov eax, dword [edi]
or eax, eax
je 0x57291f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1ff310]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1ff48c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5728d4
mov ecx, edi
jns 0x572903
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1ff490]
or eax, eax
je 0x572919
mov dword [ebx], eax
add ebx, 4
jmp 0x5728f1
call dword [esi + 0x1ff4a0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x572950
cmp al, 0xef
ja 0x572943
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x572925
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x572932
mov ebp, dword [esi + 0x1ff494]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x572984
sub esp, 0xffffff80
jmp 0x420577
Function at 0x994cdc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x994d03
call fcn.00937288
mov dword [eax], esi
call fcn.00937275
push 0x16
pop esi
mov dword [eax], esi
call fcn.00937eca
mov eax, esi
jmp 0x994d58
test dword [ebp + 0xc], 0xfffffff9
jne 0x994ce9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x994d30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0093729b
pop ecx
call fcn.00937275
mov eax, dword [eax]
jmp 0x994d58
test al, 0x10
jne 0x994d56
test al, 1
je 0x994d56
test byte [ebp + 0xc], 2
je 0x994d56
call fcn.00937288
mov dword [eax], 5
call fcn.00937275
mov dword [eax], 0xd
jmp 0x994d27
xor eax, eax
pop esi
pop ebp
ret

Function at 0x402e60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
push edx
mov eax, dword [ebp + 8]
cmp eax, 2
jne 0x402e99
mov edi, 0
mov dword [0x436040], edi
mov byte [0x428475], 1
mov byte [0x43639d], 0
mov byte [0x43639e], 0
mov byte [0x43639f], 0
jmp 0x402ebc
cmp eax, 1
jne 0x402ebc
mov edi, 0
mov dword [0x436044], edi
mov byte [0x4284a7], 1
mov eax, 0
mov dword [0x436395], eax
cmp dword [section.BSS], 0
jbe 0x402ec7
jmp 0x402eef
push section.BSS
push 0
push 0
push 0x402f00
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x436010], eax
push 0xfffffffffffffff6
call sub.kernel32.dll_GetStdHandle
mov dword [0x43601c], eax
pop edx
pop ecx
pop ebx
leave
ret 4
Function at 0x4018a1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
test esi, esi
push edi
mov edi, 0x40a248
je 0x4018ed
push ebx
xor ebx, ebx
mov eax, 0x1000000
cmp esi, eax
ja 0x4018c0
mov eax, esi
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add edi, ecx
sub esi, ecx
add ebx, ecx
test eax, eax
je 0x4018ea
test ecx, ecx
je 0x4018ea
test esi, esi
ja 0x4018b5
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x40198c
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x401a2b
push 0x206
lea eax, [ebp - 0x206]
push ebx
push eax
mov word [ebp - 0x208], bx
call fcn.00406240
add esp, 0xc
cmp word [esi], bx
je 0x401a0c
push edi
lea edi, [ebp - 0x208]
sub edi, esi
cmp word [esi], 0x5c
jne 0x4019f9
cmp word [esi - 2], 0x3a
je 0x4019f9
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x4019f9
push ebx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ax, word [esi]
mov word [edi + esi], ax
inc esi
inc esi
cmp word [esi], bx
mov word [edi + esi], bx
jne 0x4019cd
pop edi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x401a2b
push ebx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
pop ebx
leave
ret
Function at 0x4039fa
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x403a02
mov dword [ecx*4 + 0x40b248], eax
inc ecx
cmp ecx, 0x100
jb 0x4039fd
pop esi
ret

Function at 0x40427c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
push edi
mov edi, dword [ebp + 8]
jb 0x4043c4
or dword [ebp - 4], 0xffffffff
lea ecx, [edi + ecx - 4]
push ebx
mov dword [ebp - 8], ecx
push esi
lea esi, [eax + edi]
jmp 0x4042b4
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x4042b9
inc esi
cmp esi, dword [ebp - 8]
jb 0x4042ab
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 8]
jae 0x4043a5
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x404338
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp - 4], eax
je 0x4042e5
cmp cl, 0xff
jne 0x404367
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
sub edi, eax
sub edi, 5
test edx, edx
mov ebx, edi
mov dword [ebp - 0xc], ebx
je 0x404378
movzx edi, byte [edx + 0x401850]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
shr ebx, cl
test bl, bl
je 0x404328
cmp bl, 0xff
jne 0x404375
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, dword [ebp - 0xc]
jmp 0x404300
dec ecx
shl edx, cl
and edx, 7
je 0x4042d2
movzx ecx, byte [edx + 0x401850]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x401848], 0
mov cl, byte [ebx + 4]
je 0x404364
test cl, cl
je 0x404364
cmp cl, 0xff
jne 0x4042d2
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x4042a6
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x4042a6
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
and ecx, edx
mov edx, dword [ebp + 0xc]
pop esi
mov dword [edx], ecx
pop ebx
pop edi
leave
ret

Function at 0x406570
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0
mov esi, ecx
push esi
push 0x406483
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 4], eax
pop esi
jne 0x40659f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
leave
ret
mov al, 1
leave
ret
Function at 0x4078fd
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push dword [esi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
cmp eax, ebx
jne 0x407921
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x407962
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x407917
push edi
mov ecx, esi
call fcn.004078f1
push ebx
push 0x80
push 2
push ebx
push 7
push 0x40000000
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407968
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
push ebx
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 8]
mov dword [ebp - 4], ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x407990
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x407961
mov bl, 1
jmp 0x407985

Function at 0x407b05
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push 0x118
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00406240
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 0x11c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x407b59
cmp dword [ebp - 0x118], 6
jne 0x407b59
cmp dword [ebp - 0x114], 0
jne 0x407b59
xor eax, eax
inc eax
cmp byte [ebp - 2], al
je 0x407b5b
xor eax, eax
leave
ret

Function at 0x407d85
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
cmp dword [section..SPLASH], edi
mov esi, ecx
je 0x407d9c
call fcn.00407b60
push 0x104
push dword [ebp + 8]
push esi
call fcn.0040805e
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [esi + 0x208], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [esi + 0x20c], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [esi + 0x210], eax
mov eax, dword [ebp + 0x18]
push edi
push edi
mov dword [esi + 0x214], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x21c], eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x407bcd
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 0x21c]
mov dword [esi + 0x218], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x218], edi
jne 0x407e1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x407e28
push dword [esi + 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
leave
ret 0x14

Function at 0x407e52
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x407e8c
cmp dword [ebp - 0x104], 2
jne 0x407e8c
cmp dword [ebp - 0x110], 6
jae 0x407e8c
xor al, al
leave
ret
mov al, 1
leave
ret
Function at 0x407e90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407ed7
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407ed7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
leave
ret
xor al, al
leave
ret