joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4146c3
Capabilities:
Parse pe header

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

Function at 0x426ae0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426b0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426b0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x493630
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5c000]
push edi
jmp 0x49364a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x493651
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x493640
mov eax, 1
add ebx, ebx
jne 0x493663
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x493674
jne 0x493693
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x493693
dec eax
add ebx, ebx
jne 0x493680
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x493658
add ebx, ebx
jne 0x49368f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4936e5
xor ecx, ecx
sub eax, 3
jb 0x4936ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x49371a
sar eax, 1
mov ebp, eax
jmp 0x4936b6
add ebx, ebx
jne 0x4936b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x493684
inc ecx
add ebx, ebx
jne 0x4936c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x493684
add ebx, ebx
jne 0x4936d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4936c6
jne 0x4936e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4936c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x493704
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4936f6
jmp 0x493646
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x493704
add edi, ecx
jmp 0x493646
pop esi
mov edi, esi
mov ecx, 0x30e6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x493722
cmp byte [edi], 0x19
jne 0x493722
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 0x493727
lea edi, [esi + 0x90000]
mov eax, dword [edi]
or eax, eax
je 0x49379f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x94450]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x94568]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x493754
mov ecx, edi
jns 0x493783
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 + 0x9456c]
or eax, eax
je 0x493799
mov dword [ebx], eax
add ebx, 4
jmp 0x493771
call dword [esi + 0x9457c]
mov ebp, dword [esi + 0x94570]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x4937d3
sub esp, 0xffffff80
jmp 0x45372d
Function at 0x4023e6
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffffc
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp dword [ebp + 8], 0
je 0x402406
mov eax, dword [ebp + 8]
mov byte [eax], 0
test ebx, ebx
je 0x40240f
cmp byte [ebx], 0
jne 0x402416
xor eax, eax
jmp 0x402496
xor esi, esi
jmp 0x402459
mov al, byte [ebx]
xor ecx, ecx
mov cl, al
inc ebx
cmp ecx, 0x3d
jne 0x402440
cmp dword [ebp - 4], 0
je 0x402440
test esi, esi
jne 0x402440
cmp dword [ebp + 8], 0
je 0x40243c
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov esi, edx
jmp 0x402459
xor ecx, ecx
mov cl, al
cmp ecx, 0xd
je 0x40244e
cmp ecx, 0xa
jne 0x402456
cmp ecx, 0xd
jne 0x40245e
inc ebx
jmp 0x40245e
mov byte [edx], al
inc edx
cmp byte [ebx], 0
jne 0x40241a
mov byte [edx], 0
cmp dword [ebp - 4], 0
je 0x402494
mov eax, dword [ebp - 4]
test esi, esi
mov byte [eax], 0
je 0x402494
push 0x1000
lea edx, [ebp - 0x1004]
push edx
push esi
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
lea edx, [ebp - 0x1004]
mov eax, dword [ebp - 4]
call fcn.0040f1b4
mov byte [esi], 0
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4026e6
Capabilities:
Get common file path

Disassembly:
add esp, 0xfffffbe0
push esp
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [0x414045], 0
jne 0x40276f
mov eax, esp
call fcn.00405b5c
mov ecx, 6
mov edx, dword [str.RarSFX]
call fcn.0040f260
test eax, eax
jne 0x40276f
push 0x414203
call sub.KERNEL32.DLL_zSpj
mov eax, esp
call fcn.0040f134
mov byte [esp + eax + 1], 0
lea eax, [esp + 0x400]
mov ecx, 0x1e
xor edx, edx
call fcn.0040f0b4
mov dword [esp + 0x404], 3
mov word [esp + 0x410], 0x14
mov eax, esp
mov dword [esp + 0x408], eax
lea edx, [esp + 0x400]
push edx
call fcn.00413438
add esp, 0x420
ret

Function at 0x40282a
Capabilities:
Set registry value

Disassembly:
push ebx
add esp, 0xfffffbf8
mov ebx, eax
cmp byte [0x41405d], 0
je 0x4028a1
cmp byte [0x41596c], 0
je 0x4028a1
lea edx, [esp + 8]
mov eax, 0x41596c
call fcn.004027f9
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyExA
test eax, eax
jne 0x4028a1
mov eax, ebx
call fcn.0040f134
inc eax
push eax
push ebx
push 1
push 0
lea edx, [esp + 0x18]
push edx
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x408
pop ebx
ret
Function at 0x4028a9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffff7f4
mov ebx, eax
cmp byte [0x41405d], 0
je 0x402922
lea edx, [esp + 0xc]
mov eax, ebx
call fcn.004027f9
push esp
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x402922
mov dword [esp + 4], 0x400
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 0x410]
push eax
lea edx, [esp + 0x10]
push edx
push 0
lea ecx, [esp + 0x1c]
push ecx
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x40291a
lea edx, [esp + 0x40c]
mov eax, ebx
call fcn.0040f1b4
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x80c
pop ebx
ret

Function at 0x4029e8
Capabilities:
Get geographical location

Disassembly:
add esp, 0xffffff9c
push 0x64
lea eax, [esp + 4]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [esp]
add esp, 0x64
ret
Function at 0x4037a0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
mov eax, 0x41a4ac
push ebx
mov ebx, 0x415564
push esi
call fcn.0040f98c
call sub.KERNEL32.DLL_GetCommandLineA
mov esi, eax
test esi, esi
je 0x4037da
xor eax, eax
mov al, byte [esi]
cmp eax, 0x22
jne 0x4037da
lea eax, [esi + 1]
mov edx, 0x22
call fcn.0040f144
mov esi, eax
test esi, esi
je 0x40388a
mov edx, 0x414108
mov eax, esi
call fcn.0040f188
mov esi, eax
test eax, eax
je 0x4037fd
mov eax, ebx
mov edx, esi
call fcn.0040f1b4
mov byte [ebp - 1], 0
xor eax, eax
xor esi, esi
jmp 0x40387a
xor ecx, ecx
mov cl, dl
cmp ecx, 0x20
je 0x403814
mov byte [ebp - 1], 1
cmp ecx, 0x22
jne 0x40381a
inc esi
test esi, 1
jne 0x403879
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x2d
jne 0x40383b
test eax, eax
je 0x403845
xor edx, edx
mov dl, byte [ebx + eax - 1]
cmp edx, 0x20
je 0x403845
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x2f
jne 0x403879
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x73
je 0x403855
cmp edx, 0x53
jne 0x403879
mov dl, byte [ebx + eax + 2]
test dl, dl
je 0x403866
xor ecx, ecx
mov cl, dl
cmp ecx, 0x20
jne 0x403879
mov dword [0x414058], 1
mov byte [0x41405c], 1
jmp 0x403881
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x403807
cmp byte [ebp - 1], 0
jne 0x40388a
mov byte [ebx], 0
push 0x400
push 0x415164
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x415164
push str.sfxname
call sub.KERNEL32.DLL_GPWD_f_
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
mov dword [0x41a4a4], eax
push 0x64
push ebx
call fcn.00413504
mov dword [0x415964], eax
push 0x65
push dword [0x41a4a4]
call fcn.004134f8
mov dword [0x415968], eax
lea eax, [ebp - 0xc]
call fcn.00405540
mov edx, 0x415164
mov eax, 0x41a490
call fcn.00404b80
lea eax, [ebp - 0x24]
call fcn.004040e8
lea eax, [ebp - 0x3c]
call fcn.004040e8
push 0
push 0x401183
lea edx, [ebp - 0x24]
push 0
mov dword [0x415d6c], edx
lea ecx, [ebp - 0x3c]
push str.STARTDLG
push ebx
mov dword [0x415d70], ecx
call fcn.00413486
xor eax, eax
mov dword [0x4148b0], eax
xor edx, edx
mov dword [0x415d70], edx
mov dword [0x415d6c], edx
cmp dword [0x4148b8], 0
jne 0x40395d
cmp dword [0x4148c4], 0
jne 0x40395d
mov ecx, 4
mov edx, dword [0x414048]
xor eax, eax
call fcn.004018d1
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.0040410c
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0040410c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004055b4
cmp byte [0x414044], 0
je 0x403992
call fcn.004026e6
mov eax, 0x4150d4
mov ecx, 0x80
xor edx, edx
call fcn.0040f0b4
cmp dword [0x414054], 0
jle 0x4039b6
mov eax, dword [0x414048]
call fcn.0040f038
push dword [0x415964]
call fcn.00413424
mov eax, dword [0x415968]
test eax, eax
je 0x4039d0
push eax
call fcn.00413424
cmp dword [0x41a484], 0
jne 0x4039f1
cmp dword [0x4148b8], 0
je 0x4039f1
mov eax, 0x41a484
mov edx, 0xff
call fcn.0040c500
mov dword [0x4148b8], 2
push dword [0x41a484]
call sub.KERNEL32.DLL_ExitProcess
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404484
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffdc
mov edi, edx
mov esi, eax
xor eax, eax
mov dword [esp], eax
xor edx, edx
mov dword [esp + 4], edx
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
jmp 0x4044ea
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x2710
ja 0x4044fb
push 0
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
call fcn.00413528
test eax, eax
je 0x4044ea
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
call fcn.004134bc
lea ecx, [esp + 8]
push ecx
call fcn.00413570
lea eax, [esp + 8]
push eax
call fcn.0041348c
push esp
push esi
mov edx, dword [esi]
call dword [edx + 0x48]
test eax, eax
jl 0x4044a2
cmp dword [esp], 0
je 0x4044a2
xor ebx, ebx
cmp dword [esp], 0
je 0x404545
lea eax, [esp + 4]
push eax
push 0x414840
mov edx, dword [esp + 8]
push edx
mov ecx, dword [edx]
call dword [ecx]
test eax, eax
jl 0x404545
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
test eax, eax
jl 0x40453b
push edi
mov ecx, dword [esp + 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
setge bl
and ebx, 1
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, ebx
add esp, 0x24
pop edi
pop esi
pop ebx
ret

Function at 0x40541c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9ac
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
lea ebx, [ebp - 0x254]
test edi, edi
je 0x405463
mov edx, edi
mov eax, ebx
call fcn.0040f1b4
mov eax, ebx
call fcn.0040f134
inc eax
add ebx, eax
mov edx, edi
mov eax, ebx
call fcn.0040f1b4
mov eax, ebx
call fcn.0040f134
inc eax
add ebx, eax
mov eax, 0x85
call fcn.00402930
mov edx, eax
mov eax, ebx
call fcn.0040f1b4
mov eax, ebx
call fcn.0040f134
inc eax
add ebx, eax
mov edx, 0x41456c
mov eax, ebx
call fcn.0040f1b4
mov eax, ebx
call fcn.0040f134
inc eax
mov ecx, 0x4c
add ebx, eax
lea eax, [ebp - 0x54]
xor edx, edx
mov byte [ebx], 0
call fcn.0040f0b4
mov dword [ebp - 0x54], 0x4c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x50], eax
mov edx, dword [0x41a4a4]
mov dword [ebp - 0x4c], edx
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 0x400
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov eax, esi
call fcn.00405b5c
cmp esi, eax
jne 0x4054fc
lea edx, [ebp - 0x654]
push edx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea ecx, [ebp - 0x654]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], 0x1080c
lea eax, [ebp - 0x54]
push eax
call fcn.0041341e
mov ebx, eax
test ebx, ebx
jne 0x40552c
call fcn.00413418
cmp eax, 0x3002
jne 0x40552c
mov byte [esi], 0
lea eax, [ebp - 0x54]
push eax
call fcn.0041341e
mov ebx, eax
test ebx, ebx
setne al
and eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406634
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
call fcn.004052f0
test eax, eax
je 0x40665a
test ebx, ebx
je 0x40665a
cmp word [ebx], 0
je 0x40665a
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x406662
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x406675
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.004069f0
xor eax, eax
jmp 0x406690
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x406684
cmp eax, 3
jne 0x40668b
mov eax, 2
jmp 0x406690
mov eax, 1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.004052f0
test eax, eax
je 0x40698f
test ebx, ebx
je 0x40698f
cmp word [ebx], 0
je 0x40698f
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret

Function at 0x4069c4
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.004052f0
test eax, eax
je 0x4069e6
test ebx, ebx
je 0x4069e6
cmp word [ebx], 0
je 0x4069e6
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
pop esi
pop ebx
ret

Function at 0x4086d8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, 0x41617c
push ebp
mov ebp, edx
cmp dword [edi + 4], 0
mov esi, ecx
mov ebx, eax
jne 0x4086f2
call fcn.004086a0
mov eax, ebp
jmp 0x40870a
mov edx, ebx
xor ecx, ecx
xor dl, byte [eax]
dec esi
mov cl, dl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
inc eax
mov ebx, edx
test esi, esi
jbe 0x408712
test al, 7
jne 0x4086f6
cmp esi, 8
jb 0x40879b
xor ebx, dword [eax]
xor ecx, ecx
mov cl, bl
sub esi, 8
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
xor ebx, dword [eax + 4]
add eax, 8
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
cmp esi, 8
mov ebx, edx
jae 0x40871b
xor edx, edx
jmp 0x4087b5
mov ecx, ebx
xor cl, byte [eax + edx]
and ecx, 0xff
shr ebx, 8
mov ecx, dword [edi + ecx*4]
xor ecx, ebx
mov ebx, ecx
inc edx
cmp esi, edx
ja 0x40879f
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x408e10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
test ebx, ebx
je 0x408e27
test esi, esi
jg 0x408e2e
xor eax, eax
jmp 0x408ee0
mov edx, dword [ebp - 4]
add edx, 4
lea eax, [ebp - 0x2c]
mov ecx, 0x10
call fcn.0040f0c8
test esi, esi
jns 0x408e48
add esi, 0xf
sar esi, 4
mov dword [ebp - 8], esi
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jle 0x408ec7
lea ecx, [ebp - 0x1c]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0040919c
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [eax]
xor dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 4]
xor dword [ebp - 0x18], ecx
mov ecx, dword [eax + 8]
xor dword [ebp - 0x14], ecx
mov eax, dword [eax + 0xc]
xor dword [ebp - 0x10], eax
mov eax, edx
mov edx, ebx
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0xc], ecx
add ebx, 0x10
add dword [ebp + 8], 0x10
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jg 0x408e5a
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
add eax, 4
mov ecx, 0x10
call fcn.0040f0c8
mov eax, dword [ebp - 8]
shl eax, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40dd6c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, eax
push edi
mov dword [ebp - 4], edx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc18], edx
cmp byte [ebx + 0x16], 0
mov esi, ecx
je 0x40dd8f
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x40dda0
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x40ddaf
or dword [ebp - 8], 2
cmp byte [ebx + 0x15], 0
je 0x40ddb9
xor eax, eax
jmp 0x40ddbe
mov eax, 0x8000000
mov dword [ebp - 0xc], eax
call fcn.004052f0
test eax, eax
je 0x40ddeb
test esi, esi
je 0x40ddeb
cmp word [esi], 0
je 0x40ddeb
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push esi
call sub.KERNEL32.DLL_CreateFileW
mov edi, eax
jmp 0x40de02
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x40de1b
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x40de1b
mov dword [ebx + 0xc18], 1
xor edx, edx
cmp edi, 0xffffffff
mov byte [ebx + 0x12], 0
setne cl
mov dword [ebx + 0xc], edx
and ecx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 0xd], cl
cmp byte [ebp - 0xd], 0
je 0x40de85
mov dword [ebx + 4], edi
test esi, esi
je 0x40de50
lea eax, [ebx + 0x418]
mov edx, esi
call fcn.0040f894
jmp 0x40de59
mov word [ebx + 0x418], 0
cmp dword [ebp - 4], 0
je 0x40de6c
lea eax, [ebx + 0x17]
mov edx, dword [ebp - 4]
call fcn.0040f1b4
jmp 0x40de7b
lea edx, [ebx + 0x17]
mov ecx, 0x10000000
mov eax, esi
call fcn.0040f7e0
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0040df6c
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40f770
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [0x414738], 0
jne 0x40f789
call fcn.0040f350
mov dword [0x414734], eax
inc byte [0x414738]
call fcn.0040f350
sub eax, dword [0x414734]
cmp eax, 0x64
jle 0x40f7c5
cmp dword [0x4148b8], 0
je 0x40f7c0
mov eax, 0x41a484
mov edx, 0xff
call fcn.0040c500
mov eax, 0x41a484
mov edx, 0xff
call fcn.0040c4f8
call fcn.004029ac
ret
Function at 0x44fc43
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0044fdf3
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x44fd41
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x44fce4
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x44fd27
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x44fcfb
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x44fd16
test al, 0x40
je 0x44fd0d
mov ecx, dword [edi + 0x20]
jmp 0x44fd14
test al, 0x80
je 0x44fd27
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x44fd27
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x44fcb3
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret