joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401116
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
push 0x410a98
lea eax, [ebp - 4]
xor edi, edi
push 0x413be0
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call fcn.00401e71
xor ecx, ecx
cmp eax, edi
sete cl
push str.Failed_to_open_executable
push ecx
call fcn.0040106a
push 2
push edi
push dword [ebp - 4]
call fcn.004035cd
push dword [ebp - 4]
call fcn.00402f09
cdq
mov dword [ebp - 0x18], eax
add eax, 0xfffffefc
add esp, 0x24
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], eax
cmp eax, edi
jge 0x401177
mov dword [ebp - 8], edi
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004035cd
push dword [ebp - 4]
push 0x104
push 1
push ebx
call fcn.00402932
push ebx
mov esi, eax
call fcn.004010d4
add esp, 0x20
cmp eax, edi
je 0x4011b9
mov esi, eax
sub eax, ebx
add eax, dword [ebp - 8]
push 5
cdq
pop ecx
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x18], eax
mov esi, edx
jmp 0x401237
mov esi, 0x4100000
push esi
call fcn.004021ef
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
add eax, 0xfbf00000
pop ecx
mov dword [ebp - 8], eax
cmp eax, edi
jge 0x4011da
mov dword [ebp - 8], edi
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004035cd
push dword [ebp - 4]
push esi
push 1
push dword [ebp - 0xc]
call fcn.00402932
push dword [ebp - 0xc]
mov esi, eax
call fcn.004010d4
mov esi, eax
xor eax, eax
cmp esi, edi
setne al
push str.Unable_to_find_an_appended_archive.
mov dword [ebp - 0x14], esi
push eax
call fcn.0040106a
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0xc]
push 5
add eax, dword [ebp - 8]
pop ecx
push dword [ebp - 0xc]
cdq
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x18], eax
mov esi, edx
call fcn.00401f6b
add esp, 0x2c
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x20]
push 0
sub dword [ebp - 0x18], ecx
push dword [ebp - 0x18]
push dword [ebp - 4]
sbb esi, 0
call fcn.004035cd
push dword [ebp - 4]
mov edi, 0x104
push edi
push 1
push ebx
call fcn.00402932
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
mov esi, str.Unable_to_read_from_file
neg eax
push esi
push eax
call fcn.0040106a
mov cx, word [ebx]
mov eax, 0x410afc
add esp, 0x24
cmp cx, word [eax]
jne 0x40128a
mov dword [ebp - 0x10], ebx
jmp 0x4012de
mov eax, dword [ebp - 0x18]
add eax, 0xfffffefc
jns 0x401296
xor eax, eax
push 0
push eax
push dword [ebp - 4]
call fcn.004035cd
push dword [ebp - 4]
push edi
push 1
push ebx
call fcn.00402932
mov edi, eax
xor eax, eax
cmp eax, edi
sbb eax, eax
neg eax
push esi
push eax
call fcn.0040106a
add esp, 0x24
lea eax, [edi + ebx - 1]
jmp 0x4012d5
mov dx, word [eax]
mov ecx, 0x410afc
cmp dx, word [ecx]
je 0x4012db
dec eax
cmp eax, ebx
jae 0x4012c7
jmp 0x4012de
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
call fcn.0040388b
mov eax, dword [ebp - 0x10]
pop ecx
pop edi
pop esi
leave
ret
Function at 0x401da4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412284]
jne 0x401dae
repz ret
jmp fcn.00403bf3

Function at 0x40bed9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x412284]
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.00405c36
and dword [ebp - 0x14], 0
cmp dword [0x413b50], 0
mov dword [ebp - 0x18], eax
jne 0x40bf8c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c034
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40c034
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x413b50], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x413b54], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x413b58], eax
call edi
push eax
call esi
mov dword [0x413b60], eax
test eax, eax
je 0x40bf8c
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x413b5c], eax
mov eax, dword [0x413b5c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40bfe5
cmp dword [0x413b60], ecx
je 0x40bfe5
push eax
call esi
push dword [0x413b60]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40bfe5
test ebx, ebx
je 0x40bfe5
call edi
test eax, eax
je 0x40bfdc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40bfdc
test byte [ebp - 8], 1
jne 0x40bfe5
or dword [ebp + 0x10], 0x200000
jmp 0x40c018
mov eax, dword [0x413b54]
cmp eax, dword [ebp - 0x18]
je 0x40c018
push eax
call esi
test eax, eax
je 0x40c018
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c018
mov eax, dword [0x413b58]
cmp eax, dword [ebp - 0x18]
je 0x40c018
push eax
call esi
test eax, eax
je 0x40c018
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x413b50]
call esi
test eax, eax
je 0x40c034
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c036
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401da4
leave
ret
Function at 0x402880
Capabilities:
Parse credit card information
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
or eax, 0xffffffff
mov word [ebp - 0xc], ax
push ebx
xor ecx, ecx
mov eax, 0x65
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov edx, 2
mul edx
seto cl
push esi
push edi
mov dword [ebp - 0x20], ebx
neg ecx
or ecx, eax
push ecx
call fcn.004115d7
add esp, 4
xor ecx, ecx
push 4
mov dword [ebp - 0x24], eax
mov word [eax], cx
call fcn.004115d7
add esp, 4
test eax, eax
Function at 0x40f760
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
push ebx
push esi
or ecx, 0xffffffff
mov ebx, 0x484ea8
call fcn.0040f6f0
mov esi, eax
lea eax, [esp + 0xa8]
push esi
push eax
call fcn.00413650
push esi
call fcn.004111dc
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.0040f820
lea eax, [esp + 0xa8]
mov ecx, esi
call fcn.0040f850
xor ebx, ebx
mov dword [edi + 8], ebx
xor ecx, ecx
mov eax, ebx
movzx edx, byte [esp + ecx + 0x18]
add eax, edx
movzx edx, byte [esp + ecx + 0x19]
add eax, edx
movzx edx, byte [esp + ecx + 0x1a]
add eax, edx
movzx edx, byte [esp + ecx + 0x1b]
add ecx, 4
add eax, edx
cmp ecx, 0x10
jl 0x40f7b4
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
push 0x488120
push eax
call fcn.004149c2
add esp, 8
mov dword [edi], eax
cmp eax, ebx
je 0x427c2a
push edi
call fcn.0040f5c0
cmp eax, ebx
je 0x427c34
mov ecx, dword [edi]
push ecx
mov esi, eax
call fcn.00414a46
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 1
jmp 0x40f813
mov edx, dword [edi]
push edx
push 0x10
lea eax, [esp + 0x10]
push 1
push eax
call fcn.00414d04
add esp, 0x10
push 0x99f2
push 0x10
lea ecx, [esp + 0x10]
push ecx
call int.0044afef
xor eax, eax
mov dword [edi + 8], ebx
xor ecx, ecx
movzx edx, byte [esp + eax + 8]
inc eax
imul ecx, edx
cmp eax, 0x10
jl 0x427c60
mov eax, dword [edi]
push eax
mov dword [edi + 8], ecx
call fcn.00414fe2
add esp, 4
mov dword [edi + 4], eax
xor eax, eax
jmp 0x40f813

Function at 0x40f820
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.00412f40
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret
Function at 0x43202a
Capabilities:
Read file on windows

Disassembly:
add byte [ecx], al
add byte [ebp + 0x24], dh
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x45c]
push eax
push 0x10000
push 1
push ecx
call fcn.00414d04
add esp, 0x10
mov dword [esi + 0x464], 0
mov ecx, dword [esi + 0x464]
mov edx, dword [esi + 0x45c]
mov al, byte [ecx + edx]
inc ecx
mov dword [esi + 0x464], ecx
pop esi
pop ebp
ret 4

Function at 0x432081
Capabilities:
Write file on windows

Disassembly:
and byte [ebx + 0x45896], cl
add byte [ecx + 0x50], dl
push 1
push edx
call fcn.004142b6
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
pop ebp
ret 4

Function at 0x4331a2
Capabilities:
Encode data using xor

Disassembly:
and eax, 0x34a30048
jne 0x4331f2
add byte [edi + 0x5b], bl
xor eax, eax
mov edi, 0x8d0c5d8b
inc ebp
invalid
Function at 0x444b5f
Capabilities:
Encode data using xor

Disassembly:
or dword [esi + 0x31], esp
cmp al, 0x43
xor word [ebx + eax*2], di
inc eax
cmp eax, edi
jl 0x444b60
pop edi
pop esi
push 0xc2295bc3
or byte [eax], al

Function at 0x44b002
Capabilities:
Encode data using xor

Disassembly:
push ebp
xchg byte [edx - 0x7f], cl
in al, dx
loopne 0x44b041
jge 0x44b01a
push ebx
jge 0x44b006
mov dword [esi + 0x57], edx
je 0x44b04a
mov ecx, dword [ebp + 0xc552485]
push ebx
push eax
call 0x8d962c6d
xchg ebp, eax
mov edx, dword [eax]
push ecx
lea edx, [ebp + 0x530c5524]
push edx
call 0x53512bc7
xor esi, esi
test edi, edi
je 0x44b04a
lea eax, [ebp + 0x530c5524]
push eax
call 0x53512c3c
push ebx
xor byte [esi + ebx], al
inc esi
cmp esi, edi
jb 0x44b036
pop edi
pop esi
push ecx
push 0xcc229e8
add byte [ebp - 0x7a], dl
dec edx
test ebx, ebx
je 0x44b091
or byte [edx + 2], ch
push edi
xor esi, esi
call fcn.00442cc2
cmp eax, 3
jne 0x44b0c8
push eax
push edi
mov esi, eax
call fcn.00442cc2
cmp eax, 7
jne 0x44b0c8
push 5
push edi
lea esi, [eax + 3]
call fcn.00442cc2
cmp eax, 0x1f
jne 0x44b0c8
push 8
push edi
lea esi, [eax + 0xa]
call fcn.00442cc2
cmp eax, 0xff
jne 0x44b0c8
invalid
push 8
push edi
lea esi, [eax + 0x29]
call fcn.00442cc2
cmp eax, 0xff
jne 0x44b0c8
invalid
pop edi
lea eax, [eax + esi + 3]
pop esi
sub edx, eax
add al, 0
Function at 0x4805bf
Capabilities:
Encode data using xor

Disassembly:
push 0x4073e8b1
push edx
jmp 0x4805c6
jmp 0x48058c
call 0x145e781
fnsave dword [ebp - 0x20]
call 0x1408f8a
fisttp qword [ebp - 0x48]
call 0x140229a
fisttp qword [ebp - 0x30]
call 0x140229a
fisttp qword [ebp - 0x60]
call 0x8e40229a
jne 0x4805f9
shr edi, 4
cmp ebx, 0x10
call 0x900848
add al, 0x83
sti
adc al, ch
push eax
add cl, byte [eax]
push ebx
add cl, byte [eax]
push esp
add cl, byte [eax]
add byte [ecx], al
add al, byte [edx]
add al, byte [edx]
add al, byte [eax]
add dword [ecx], ecx
or dword [ebp + 0x4cec81fd], edx
add dword [eax + 4], ebp
inc ebp
pop esi
xor ecx, dword [eax*4 - 0x17c36cd]
add dl, byte [eax]
inc dword [edi]
dec dword [ecx - 0x7600acc2]
dec ebp
loopne 0x4805ef
inc ebp
call 0x14c6e2f
mov dword [ebp - 0x14], ecx
lea eax, [edx + eax*4]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x44], ecx
cmp word [eax + 8], cx
jne 0x480665
cmp dword [eax], 0x2a
jne 0x480665
cmp byte [ebp + 0x14], al
dec dword [ebp + 8]
push eax
push edi
push ebx
push ecx
call 0x147f17f
fnsave dword [ebp - 0x20]
call 0x8e408f8a
jne 0x48066a
shr edi, 4
cmp ebx, 0x10
call 0xe9185446
dec ebp
fisttp qword [ebp - 0x30]
call 0x8a40bcba
pop ebp
inc ebx
mov dh, pe_nt_image_headers32
mov dword [ebp + 0x43], ebx
dec dword [ebp - 0x6ff372e9]
cmp word [ecx + 8], 0x33
jne 0xfb8809b9
add byte [edi], dl
mov eax, dword [eax + edx*4]
mov ecx, dword [eax]
push ecx
lea esi, [ebp - 0x30]
call fcn.0040e0ea
mov ecx, dword [ebp + 0x14]
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0xc]
push eax
call fcn.0040c30a
cmp dword [ebp - 0xc], 0xffffffe8
jne 0x480a82
push edi
mov edi, ecx
mov ecx, dword [eax - 0x73]
pop ebp
loopne 0x48069b
mov dword [0x5d89f8e0], eax
pop ebp
adc al, 0x8b
ret
test dword [ebp - 0x44], 0xfdd49500
je 0x480aa3
mov ecx, dword [edi]
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x51a008], 0x8088405
inc edx
mov dword [ebx + 0x51a008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f05c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x4fe54a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ab
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
jmp 0x41f0ca
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f13c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f125
test esi, esi
jbe 0x41f13c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f117
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f13c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0f4
jmp 0x41f13c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f13c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fe551
ret
Function at 0x420294
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x4ff8af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0x51c348]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0x51c348]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0x51b178]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420481
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ff8b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x401ac0
Capabilities:
Check os version

Disassembly:
sub esp, 0x56c
mov eax, dword [0x552a7c]
xor eax, esp
mov dword [esp + 0x568], eax
mov eax, dword [esp + 0x570]
push ebp
push esi
push edi
push 0x11c
lea ecx, [esp + 0x4c]
push 0
push ecx
mov dword [esp + 0x18], eax
call fcn.004f7580
push 0x11c
push 0
push ebx
mov dword [esp + 0x60], 0x11c
call fcn.004f7580
add esp, 0x18
push ebx
mov dword [ebx], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebx + 4], 5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
jne 0x401b64
push str.IsWow64Process
push str.kernel32
call ebp
push eax
call edi
mov esi, eax
mov dword [esp + 0x10], 0
test esi, esi
je 0x401b64
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x401b64
cmp dword [esp + 0x10], 0
jne 0x401c2b
push str.RtlGetVersion
push str.ntdll
call ebp
push eax
call edi
test eax, eax
je 0x401b7e
lea ecx, [esp + 0x48]
push ecx
call eax
mov eax, dword [ebx + 4]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 8]
lea edi, [eax + edx*2]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*2]
cmp eax, edi
jle 0x401bab
mov ecx, 0x47
lea esi, [esp + 0x48]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, eax
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x16e]
push ecx
mov word [esp + 0x170], ax
call fcn.004f7580
add esp, 0xc
lea esi, [esp + 0x164]
call fcn.004019c0
test eax, eax
jl 0x401c2b
lea edx, [esp + 0x14]
push edx
mov eax, esi
call fcn.00401c60
test eax, eax
je 0x401c2b
mov ecx, dword [esp + 0x24]
mov eax, ecx
shr eax, 0x10
movzx ecx, cx
lea edx, [eax + eax*4]
lea edx, [ecx + edx*2]
cmp edi, edx
jge 0x401c1e
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 8], ecx
mov ecx, dword [esp + 0xc]
shr eax, 0x10
mov dword [ebx + 0xc], eax
mov dword [ecx + 4], 1
jmp 0x401c36
mov edx, dword [esp + 0xc]
mov dword [edx + 4], 0
jmp 0x401c36
mov eax, dword [esp + 0xc]
mov dword [eax + 4], 0
mov ecx, dword [esp + 0x574]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.004f7567
add esp, 0x56c
ret 4
Function at 0x401c60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push ebx
push esi
push edi
push 2
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x401cde
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x401cd7
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x401cd6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x10], eax
test eax, eax
je 0x401ccf
push ebp
call fcn.004f9398
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x401ccf
mov ecx, dword [esp + 0x10]
push ebp
push ecx
push ebx
call fcn.004f9470
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
cmp ebx, esi
je 0x401d22
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push 0x54239c
push ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401d19
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x18]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov esi, 1
push ebx
call fcn.004f82be
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x4021e0
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x80
mov eax, dword [0x552a7c]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.00403540
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x94]
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x67452301
mov dword [esp + 0x20], 0xefcdab89
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x28], 0x10325476
mov dword [esp + 0x2c], 0xc3d2e1f0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x78], ebx
call fcn.00405060
add esp, 4
lea eax, [esp + 0x18]
lea ecx, [esp + 0x78]
call fcn.00405150
mov dword [esp + 0x10], ebx
jmp 0x402280
movzx ebx, byte [esp + ebx + 0x78]
mov eax, ebx
shr eax, 4
movzx ecx, word [eax*2 + str.0123456789abcdef]
mov eax, dword [esi]
mov ebp, dword [eax - 0xc]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
lea edi, [ebp + 1]
sub eax, edi
or edx, eax
mov dword [esp + 0x14], ecx
jge 0x4022b8
mov ecx, edi
mov eax, esi
call fcn.004044d0
mov ecx, dword [esi]
mov dx, word [esp + 0x14]
mov word [ecx + ebp*2], dx
test edi, edi
jl 0x402351
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x402351
mov dword [eax - 0xc], edi
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + edi*2], cx
mov eax, dword [esi]
and ebx, 0xf
movzx ebp, word [ebx*2 + str.0123456789abcdef]
mov ebx, dword [eax - 0xc]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
lea edi, [ebx + 1]
sub eax, edi
or edx, eax
jge 0x40230a
mov ecx, edi
mov eax, esi
call fcn.004044d0
mov ecx, dword [esi]
mov word [ecx + ebx*2], bp
test edi, edi
jl 0x402351
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x402351
mov ebx, dword [esp + 0x10]
mov dword [eax - 0xc], edi
mov edx, dword [esi]
inc ebx
xor eax, eax
mov word [edx + edi*2], ax
mov dword [esp + 0x10], ebx
cmp ebx, 0x14
jb 0x402280
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f7567
add esp, 0x80
ret
push 0x80070057
call fcn.00405010
int3