joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409098
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x445504]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.APPDATA
mov dword [ebp - 0xa0], 0x94
call fcn.0041ab6d
mov esi, eax
test esi, esi
pop ecx
mov ebx, 0x1388
je 0x409125
push esi
call fcn.00418150
cmp eax, 2
pop ecx
jbe 0x409125
cmp byte [esi], 0x5c
jne 0x409125
cmp byte [esi + 1], 0x5c
jne 0x409125
push str._Extractor__Roaming_AppData_directory_detected_n
call fcn.0040935a
pop ecx
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x409169
cmp dword [ebp - 0x9c], 5
jbe 0x409131
push str.LOCALAPPDATA
call fcn.0041ab6d
pop ecx
mov esi, eax
push esi
push str._Extractor__Local_AppData_directory_resolved_to__s_n
call fcn.0040935a
pop ecx
jmp 0x409168
push str._Extractor__Local_AppData_directory_detected_n
call fcn.0040935a
jmp 0x409168
push str.USERPROFILE
call fcn.0041ab6d
pop ecx
push ebx
mov edi, eax
call fcn.00417fc0
pop ecx
mov esi, eax
push edi
push esi
mov byte [esi], 0
call fcn.004181f0
push str.Local_Settings
call fcn.0040927d
add esp, 0xc
push str.Application_Data
call fcn.0040927d
pop ecx
push str.Validating_directory..._n
call fcn.0040935a
pop ecx
push esi
push str.Shared_dir_detected_is__s_n
call fcn.0040935a
push esi
call fcn.00408f36
add esp, 0xc
test eax, eax
je 0x4091f1
push esi
push str.Checking_if_string_is_cAscii__s_n
call fcn.0040935a
push esi
xor edi, edi
call fcn.00418150
add esp, 0xc
test eax, eax
jbe 0x4091b8
cmp byte [edi + esi], 0x80
jae 0x4091f1
push esi
inc edi
call fcn.00418150
cmp edi, eax
pop ecx
jb 0x4091a6
push esi
push str.Checking_if__s_contains_a___n
call fcn.0040935a
push esi
xor edi, edi
call fcn.00418150
add esp, 0xc
test eax, eax
jbe 0x4091e4
cmp byte [edi + esi], 0x21
je 0x4091f1
push esi
inc edi
call fcn.00418150
cmp edi, eax
pop ecx
jb 0x4091d2
push str.Shared_directory_appears_valid._n
call fcn.0040935a
pop ecx
jmp 0x40924d
push esi
push str.The_directory__s_appears_invalid._n
call fcn.0040935a
push esi
push str.Trying_the_short_path_instead._n
call fcn.0040935a
push ebx
call fcn.00417fc0
add esp, 0x14
push 0x400
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x40923f
push edi
push str.Got_short_path_of__s_n
call fcn.0040935a
push esi
call fcn.00408f36
add esp, 0xc
test eax, eax
je 0x40923f
mov eax, edi
jmp 0x40924f
push edi
call fcn.00417ee3
pop ecx
call fcn.00408f58
mov esi, eax
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417ed4
leave
ret
Function at 0x40957d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, eax
push edi
push str._Windows_Subsystem__Fixing__s_n
call fcn.0040935a
push 0x443198
push edi
call fcn.00419256
add esp, 0x10
mov esi, eax
test esi, esi
mov byte [ebp - 4], 0x50
mov byte [ebp - 3], 0x45
mov byte [ebp - 2], 0
mov byte [ebp - 1], 0
push edi
jne 0x4095cb
push str._Windows_Subsystem__Could_not_open_file__s_n
call fcn.0040935a
pop ecx
pop ecx
push 1
call fcn.00418e2e
push str._Windows_Subsystem__Opened__s_n
call fcn.0040935a
pop ecx
xor ebx, ebx
pop ecx
xor edi, edi
push esi
call fcn.0041acdf
pop ecx
push esi
mov dword [ebp - 8], eax
inc ebx
call fcn.0041b8fe
test eax, eax
pop ecx
jne 0x40969e
mov al, byte [ebp - 8]
cmp al, byte [ebp + edi - 4]
jne 0x409601
inc edi
jmp 0x409603
xor edi, edi
cmp edi, 4
jne 0x4095db
cmp ebx, 0xffffffff
mov dword [0x454e54], ebx
je 0x4095c4
lea edi, [ebx + 0x58]
push edi
push 0x58
push ebx
push str._Windows_Subsystem__Found_marker_OK_at__d___d___d__n
call fcn.0040935a
xor ebx, ebx
push ebx
push edi
push esi
call fcn.0041c270
add esp, 0x1c
push edi
push str._Windows_Subsystem__Skipped_to_relevant_spot__d_n
call fcn.0040935a
push esi
call fcn.0041acdf
add esp, 0xc
push eax
push str._Windows_Subsystem__Was__02X_n
call fcn.0040935a
push ebx
push edi
push esi
call fcn.0041c270
add esp, 0x14
push esi
push 2
call fcn.0041bda7
push esi
call fcn.004190f6
add esp, 0xc
push ebx
push edi
push esi
call fcn.0041c270
add esp, 0xc
push esi
call fcn.0041acdf
pop ecx
push eax
push str._Windows_Subsystem__Now__02X_n
call fcn.0040935a
push esi
call fcn.004190f6
add esp, 0xc
push esi
call fcn.0041ac63
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push str.SS_edit___PE_sig
push str.Could_not_find_marker:__s_n
jmp 0x4095bd

Function at 0x4097db
Capabilities:
Check os version
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x445504]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push str.perm_all
push esi
call fcn.004196f0
test eax, eax
pop ecx
pop ecx
jne 0x40987a
push str.Permanent_install_for_all_users_n
call fcn.0040935a
pop ecx
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40983f
cmp dword [ebp - 0x9c], 5
jbe 0x40983f
push str.PROGRAMDATA
call fcn.0041ab6d
pop ecx
jmp 0x4098a2
push str.ALLUSERSPROFILE
call fcn.0041ab6d
mov edi, eax
mov dword [esp], 0x1388
call fcn.00417fc0
pop ecx
mov esi, eax
push edi
push esi
mov byte [esi], 0
call fcn.004181f0
push str.Application_Data
call fcn.0040927d
add esp, 0xc
push esi
call fcn.0040925e
pop ecx
jmp 0x4098a4
push str.perm_user
push esi
call fcn.004196f0
test eax, eax
pop ecx
pop ecx
jne 0x409892
push str.Permanent_install_for_current_user_n
jmp 0x409897
push str.Temporary_install_n
call fcn.0040935a
pop ecx
call fcn.00409098
mov esi, eax
test esi, esi
jne 0x4098ba
push str.ERROR:_Unable_to_get_shared_dir_
call fcn.0040935a
pop ecx
push 1
call fcn.00418e2e
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00417ed4
leave
ret
Function at 0x40b730
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x40b750
push 0xd0
push str.._srchashes_sha2_sha256.c
push 0x4364a8
call fcn.0040d8b0
add esp, 0xc
mov dword [esi + 0x2a0], 0
mov dword [esi + 0x278], 0
mov dword [esi + 0x27c], 0
mov dword [esi + 0x280], 0x6a09e667
mov dword [esi + 0x284], 0xbb67ae85
mov dword [esi + 0x288], 0x3c6ef372
mov dword [esi + 0x28c], 0xa54ff53a
mov dword [esi + 0x290], 0x510e527f
mov dword [esi + 0x294], 0x9b05688c
mov dword [esi + 0x298], 0x1f83d9ab
mov dword [esi + 0x29c], 0x5be0cd19
xor eax, eax
pop esi
ret

Function at 0x40bcd0
Capabilities:
Hash data using sha224

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x40bced
push 0x2a
push str.c:users_simplehelpworkspace_runner_nativelibtomlibtomcrypt_srchashes_sha2_sha224.c
push 0x4364a8
call fcn.0040d8b0
add esp, 0xc
mov dword [esi + 0x2a0], 0
mov dword [esi + 0x278], 0
mov dword [esi + 0x27c], 0
mov dword [esi + 0x280], 0xc1059ed8
mov dword [esi + 0x284], 0x367cd507
mov dword [esi + 0x288], 0x3070dd17
mov dword [esi + 0x28c], 0xf70e5939
mov dword [esi + 0x290], 0xffc00b31
mov dword [esi + 0x294], 0x68581511
mov dword [esi + 0x298], 0x64f98fa7
mov dword [esi + 0x29c], 0xbefa4fa4
xor eax, eax
pop esi
ret
Function at 0x417ed4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x445504]
jne 0x417ede
repz ret
jmp fcn.0041cf55

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x41bfbb
call fcn.004183fc
mov dword [eax], esi
call fcn.004183e9
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0041ed0e
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x41bf97
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41bfea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041840f
pop ecx
call fcn.004183e9
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x41c011
test al, 1
je 0x41c011
test byte [esp + 0xc], 2
je 0x41c011
call fcn.004183fc
mov dword [eax], 5
call fcn.004183e9
mov dword [eax], 0xd
jmp 0x41bfe1
xor eax, eax
pop esi
ret
Function at 0x425c33
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041ed95
xor ebx, ebx
cmp dword [0x4489e8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x425d08
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x425c73
xor eax, eax
jmp 0x425dcc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x425c6c
push eax
call fcn.0041ed32
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4489e8], eax
call esi
push eax
call fcn.0041ed32
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4489ec], eax
call esi
push eax
call fcn.0041ed32
mov dword [0x4489f0], eax
lea eax, [ebp - 8]
push eax
call fcn.00418c5b
test eax, eax
pop ecx
pop ecx
je 0x425cd6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041ec12
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x425d08
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041ed32
cmp eax, ebx
pop ecx
mov dword [0x4489f8], eax
je 0x425d08
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041ed32
pop ecx
mov dword [0x4489f4], eax
mov eax, dword [0x4489f4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x425d81
cmp dword [0x4489f8], esi
je 0x425d81
push eax
call fcn.0041ed9e
pop ecx
call eax
cmp eax, ebx
je 0x425d4e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4489f8]
call fcn.0041ed9e
pop ecx
call eax
test eax, eax
je 0x425d4e
test byte [ebp - 0x18], 1
jne 0x425d81
lea eax, [ebp - 0xc]
push eax
call fcn.00418c92
test eax, eax
pop ecx
je 0x425d69
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041ec12
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x425d78
or dword [ebp + 0x10], 0x200000
jmp 0x425db2
or dword [ebp + 0x10], 0x40000
jmp 0x425db2
mov eax, dword [0x4489ec]
cmp eax, esi
je 0x425db2
push eax
call fcn.0041ed9e
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x425db2
mov eax, dword [0x4489f0]
cmp eax, esi
je 0x425db2
push dword [ebp - 4]
push eax
call fcn.0041ed9e
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4489e8]
call fcn.0041ed9e
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x432700
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
not eax
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp esi, 8
jbe 0x4327cf
test bl, 7
je 0x432739
nop
movzx ecx, byte [ebx]
dec esi
movzx edx, al
inc ebx
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x438038]
test bl, 7
jne 0x432720
mov edi, esi
and esi, 7
and edi, 0xfffffff8
add edi, ebx
cmp ebx, edi
jae 0x4327cf
nop dword [eax + eax]
xor eax, dword [ebx]
add ebx, 4
mov dword [ebp + 0x10], ebx
add dword [ebp + 0x10], 4
mov ebx, dword [ebx]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x438438]
xor edx, dword [ecx*4 + 0x438838]
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x439438]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x439838]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x438038]
mov ecx, eax
shr ecx, 0x18
movzx eax, al
xor edx, dword [ecx*4 + 0x439038]
movzx ecx, bl
mov ebx, dword [ebp + 0x10]
xor edx, dword [ecx*4 + 0x438c38]
xor edx, dword [eax*4 + 0x439c38]
mov eax, edx
cmp ebx, edi
jb 0x432750
test esi, esi
je 0x4327ed
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x438038]
sub esi, 1
jne 0x4327d3
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x432800
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
not eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
not esi
cmp edi, 4
jbe 0x4328fa
mov dword [ebp + 0x14], ebx
test bl, 3
je 0x432857
nop word [eax + eax]
movzx ecx, byte [ebx]
dec edi
movzx edx, al
inc ebx
shrd eax, esi, 8
xor edx, ecx
shr esi, 8
xor eax, dword [edx*8 + 0x43a038]
xor esi, dword [edx*8 + 0x43a03c]
test bl, 3
jne 0x432830
mov dword [ebp + 0x14], ebx
mov edx, edi
mov dword [ebp - 8], 0
and edx, 0xfffffffc
mov dword [ebp - 4], 0
and edi, 3
mov dword [ebp + 0xc], edi
lea ecx, [edx + ebx]
add edx, 3
shr edx, 2
cmp ebx, ecx
cmova edx, dword [ebp - 8]
mov dword [ebp - 8], edx
test edx, edx
je 0x4328fa
mov edi, edx
mov ebx, dword [ebx]
xor ebx, eax
mov eax, ebx
shr eax, 0x10
movzx edx, al
mov eax, ebx
shr eax, 8
movzx ecx, al
mov eax, dword [edx*8 + 0x43a838]
mov edx, dword [edx*8 + 0x43a83c]
xor eax, dword [ecx*8 + 0x43b038]
xor edx, dword [ecx*8 + 0x43b03c]
mov ecx, ebx
shr ecx, 0x18
xor eax, dword [ecx*8 + 0x43a038]
xor edx, dword [ecx*8 + 0x43a03c]
movzx ecx, bl
mov ebx, dword [ebp + 0x14]
add ebx, 4
mov dword [ebp + 0x14], ebx
xor eax, dword [ecx*8 + 0x43b838]
xor edx, dword [ecx*8 + 0x43b83c]
xor eax, esi
mov ecx, dword [ebp - 4]
xor edx, 0
inc ecx
mov esi, edx
mov dword [ebp - 4], ecx
cmp ecx, edi
jb 0x432888
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x432925
nop
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
movzx edx, al
shrd eax, esi, 8
xor edx, ecx
shr esi, 8
xor eax, dword [edx*8 + 0x43a038]
xor esi, dword [edx*8 + 0x43a03c]
sub edi, 1
jne 0x432900
not esi
not eax
pop edi
mov edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405890
Capabilities:
Encode data using xor

Disassembly:
inc edx
mov ebp, esp
sub esp, 0x24
dec edx
push esi
push edi
mov ecx, dword [esi]
push ebp
xor ebx, ebx
stosb byte es:[edi], al
insb byte es:[edi], dx
test dword [ecx], ebx
rcl dword [eax - 0x73]
jne 0x4058b3
or ecx, 0x73
xor eax, eax
adc dh, ch
ror dword [ecx - 0x7d], 1
xor eax, 0x89277d06
sbb dword [ebp + 0x7e8b43dc], ebx
adc eax, dword [ebx - 0x2efcfb3a]
push es
jge 0x4058dd
mov dword [ecx], ebx
popfd
fadd qword [ebx - 0x75]
jle 0x4058d1
add esi, 4
add edx, ecx
test edi, edi
jne 0x4058a7
mov eax, dword [ebp + 0x3f]
inc edx
push edx
push eax
push 0xd134f152
mov esi, dword [esi - 0x7a36ccf4]
test byte [ecx - 0x2fe90bbb], 0x52
dec ebp
ror dword [ebx - 0x36ccf34a], 1
test esi, esi
mov dword [ebp - 0xc], eax
push ss
rcl byte [edx + 0x4d]
cld
je 0x4058a2
mov eax, dword [0x457bac45]
clc
jmp 0x4058ee
cmp ecx, 6
jge 0x4058fd
mov eax, dword [ebp + ecx*4 + 0x4a]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], ecx
jmp 0x405908
mov esp, dword [eax + 0x27ffc9f2]
push ebp
xchg edi, eax
scasb al, byte es:[edi]
xchg byte [ebx - 0x74ffd9b7], bh
enter 0xfffffffffffffa88, 0xffffffffffffff8b
dec ecx
add byte es:[ebx - 0x74057738], cl
fld dword [ebx]
scasb al, byte es:[edi]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
add al, byte [ebp + 0x12]
xor ebx, ecx
jmp 0xc0c35d03
Function at 0x55e580
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x541015
lea edi, [esi - 0x140015]
push edi
or ebp, 0xffffffff
jmp 0x55e5a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x55e5a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55e598
mov eax, 1
add ebx, ebx
jne 0x55e5bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x55e5cc
jne 0x55e5eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55e5eb
dec eax
add ebx, ebx
jne 0x55e5d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x55e5b0
add ebx, ebx
jne 0x55e5e7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x55e63d
xor ecx, ecx
sub eax, 3
jb 0x55e603
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x55e672
sar eax, 1
mov ebp, eax
jmp 0x55e60e
add ebx, ebx
jne 0x55e60e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55e5dc
inc ecx
add ebx, ebx
jne 0x55e61c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55e5dc
add ebx, ebx
jne 0x55e629
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x55e61e
jne 0x55e63a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x55e61e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x55e65c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x55e64e
jmp 0x55e59e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x55e65c
add edi, ecx
jmp 0x55e59e
pop esi
mov edi, esi
mov ecx, 0x1cd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x55e67a
cmp byte [edi], 0
jne 0x55e67a
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 0x55e67f
lea edi, [esi + 0x15c000]
mov eax, dword [edi]
or eax, eax
je 0x55e6ee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15ec28]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x15ec78]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x55e6ac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15ec80]
or eax, eax
je 0x55e6e8
mov dword [ebx], eax
add ebx, 4
jmp 0x55e6c9
call dword [esi + 0x15ec7c]
mov ebp, dword [esi + 0x15ec84]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x55e722
sub esp, 0xffffff80
jmp section._4198400
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x1ef15844
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x3be810de
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x406c40
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push esi
or esi, 0xffffffff
test eax, eax
je 0x406df5
push ebx
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], ebx
je 0x406df4
mov eax, dword [0x40b004]
push ebp
push 0x1000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
je 0x406dec
push edi
nop
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x1000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x1c]
cmp edx, 8
mov eax, ebp
mov edi, edx
jb 0x406dae
mov ebp, edx
shr ebp, 3
lea ebx, [ebx]
movzx ebx, byte [eax]
xor ebx, esi
and ebx, 0xff
add eax, 1
mov ecx, esi
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax]
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
xor ebx, ecx
and ebx, 0xff
add eax, 1
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
add eax, 1
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
add eax, 1
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
add eax, 1
sub edi, 8
sub ebp, 1
mov esi, ecx
jne 0x406cd0
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
test edi, edi
je 0x406dcf
movzx ecx, byte [eax]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x4090f0]
add eax, 1
sub edi, 1
jne 0x406db2
cmp edx, 0x1000
je 0x406ca0
mov edx, dword [0x40b004]
push ebp
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
mov eax, esi
not eax
pop esi
add esp, 8
ret 4

Function at 0x406e00
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 0x408967
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x4085d8
sub ebx, ebx
call fcn.00408990
xor dword [eax], edx
add eax, 1
add edi, edi
and ebx, edi
cmp eax, ecx
jne fcn.00408967
sub edi, 0xb356995c
sub edi, 0x9dbace00
ret
Function at 0x410480
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x65a4a6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x7d9a88]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x20]
lea ecx, [esi + 4]
push edx
call fcn.005293d0
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x20]
lea ecx, [esi + 0x24]
push edx
mov dword [esp + 0x1c], 0
call fcn.004126f0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esi + 0x44]
mov byte [esp + 0x1c], 1
call fcn.004126f0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0x104
push eax
lea ecx, [esi + 0x574]
push ecx
mov dword [esi], edx
call fcn.005b1950
mov edx, dword [esp + 0x30]
push 0x104
push edx
lea eax, [esi + 0x678]
push eax
call fcn.005b1950
push 0x410
lea ecx, [esi + 0x64]
push 0
push ecx
call fcn.005af530
push 0x80
lea edx, [esi + 0x474]
push 0
push edx
call fcn.005af530
push 0x80
lea eax, [esi + 0x4f4]
push 0
push eax
call fcn.005af530
push 0x8000
call fcn.005b1b66
add esp, 0x40
push 0x8000
push 0
push eax
mov dword [esi + 0x77c], eax
call fcn.005af530
push 0xc20
call fcn.005b1b66
push 0xc20
push 0
push eax
mov dword [esi + 0x780], eax
call fcn.005af530
push 0x1010
call fcn.005b1b66
push 0x1010
push 0
push eax
mov dword [esi + 0x784], eax
call fcn.005af530
add esp, 0x2c
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0xc

Function at 0x4138b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
mov ecx, dword [0x80f794]
cmp ecx, 0x270
jl 0x413990
cmp ecx, 0x271
jne 0x4138d8
push 0x1105
call fcn.004137c0
add esp, 4
xor ecx, ecx
lea ebx, [ebx]
mov eax, dword [ecx*4 + 0x84b3cc]
xor eax, dword [ecx*4 + 0x84b3c8]
inc ecx
and eax, 0x7fffffff
xor eax, dword [ecx*4 + 0x84b3c4]
mov edx, eax
shr eax, 1
and edx, 1
xor eax, dword [edx*4 + 0x821160]
xor eax, dword [ecx*4 + 0x84b9f8]
cmp ecx, 0xe3
mov dword [ecx*4 + 0x84b3c4], eax
jl 0x4138e0
cmp ecx, 0x26f
jge 0x413961
lea ecx, [ecx*4 + 0x84b3c8]
mov edi, edi
mov eax, dword [ecx]
xor eax, dword [ecx + 4]
add ecx, 4
and eax, 0x7fffffff
xor eax, dword [ecx - 4]
mov edx, eax
and edx, 1
mov edx, dword [edx*4 + 0x821160]
xor edx, dword [ecx - 0x390]
shr eax, 1
xor edx, eax
cmp ecx, 0x84bd84
mov dword [ecx - 4], edx
jl 0x413930
mov ecx, dword [0x84bd84]
mov eax, dword [0x84b3c8]
xor eax, ecx
and eax, 0x7fffffff
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
xor eax, dword [ecx*4 + 0x821160]
xor eax, dword [0x84b9f8]
xor ecx, ecx
mov dword [0x84bd84], eax
mov eax, dword [ecx*4 + 0x84b3c8]
inc ecx
mov edx, eax
shr edx, 0xb
xor eax, edx
mov dword [0x80f794], ecx
mov ecx, eax
and ecx, 0xff3a58ad
shl ecx, 7
xor eax, ecx
mov edx, eax
and edx, 0xffffdf8c
shl edx, 0xf
xor eax, edx
mov ecx, eax
shr ecx, 0x12
xor ecx, eax
mov dword [esp], ecx
fild dword [esp]
test ecx, ecx
jge 0x4139d6
fadd qword [0x6c6218]
fmul qword [0x6c6210]
pop ecx
ret