joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403980
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret 8

Function at 0x4068ed
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4135d8
call fcn.00409684
mov edi, 0x94
mov eax, edi
call fcn.00405b00
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x418580], ecx
mov eax, dword [esi + 4]
mov dword [0x41858c], eax
mov edx, dword [esi + 8]
mov dword [0x418590], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x418584], esi
cmp ecx, 2
je 0x40694d
or esi, 0x8000
mov dword [0x418584], esi
shl eax, 8
add eax, edx
mov dword [0x418588], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x406988
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406988
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4069a0
cmp eax, 0x20b
je 0x40698d
mov dword [ebp - 0x1c], esi
jmp 0x4069b4
cmp dword [ecx + 0x84], 0xe
jbe 0x406988
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4069ae
cmp dword [ecx + 0x74], 0xe
jbe 0x406988
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004084c6
pop ecx
test eax, eax
jne 0x4069c8
push 0x1c
call fcn.00406873
pop ecx
call fcn.004083ec
test eax, eax
jne 0x4069d9
push 0x10
call fcn.00406873
pop ecx
mov dword [ebp - 4], esi
call fcn.0040a49f
test eax, eax
jge 0x4069ed
push 0x1b
call fcn.0040684e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x419c0c], eax
call fcn.0040a379
mov dword [0x418408], eax
call fcn.0040a2d7
test eax, eax
jge 0x406a13
push 8
call fcn.0040684e
pop ecx
call fcn.0040a08b
test eax, eax
jge 0x406a24
push 9
call fcn.0040684e
pop ecx
call fcn.00409b07
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x406a37
push eax
call fcn.0040684e
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040a022
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x406a58
movzx eax, word [ebp - 0x34]
jmp 0x406a5b
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.004021c3
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x406a79
push edi
call fcn.00409c26
call fcn.00409c48
jmp 0x406aab
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004096bd
ret
Function at 0x409c66
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
cmp edx, dword [eax*8 + 0x417a28]
je 0x409c86
inc eax
cmp eax, 0x12
jb 0x409c77
shl eax, 3
cmp edx, dword [eax + 0x417a28]
mov dword [ebp + 8], eax
jne 0x409e24
mov ecx, dword [0x418410]
cmp ecx, 1
je 0x409df9
test ecx, ecx
jne 0x409cb8
cmp dword [0x417664], 1
je 0x409df9
cmp edx, 0xfc
je 0x409e24
and byte [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x409cf3
push 5
pop ecx
mov esi, str._program_name_unknown_
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10c]
lea ebx, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409d02
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x409d3a
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409d1a
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x413a98
push ebx
call fcn.0040c8e0
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409d3f
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x417a2c]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409d56
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.00405b00
mov edx, esp
push 6
pop ecx
mov esi, str.Runtime_Error__n_nProgram:
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409d82
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409d8e
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x409da7
mov eax, dword [ebp + 8]
mov esi, 0x413a78
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x417a2c]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409dc2
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409dce
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0040c7dc
add esp, 0xc
jmp 0x409e24
mov ecx, dword [eax + 0x417a2c]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409e04
push 0
lea edx, [ebp - 4]
push edx
sub eax, esi
push eax
push ecx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40aaae
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
jne 0x40aacc
xor eax, eax
jmp 0x40ac3a
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x418ac0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x40aaff
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0040ceb3
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40abd1
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edi
jbe 0x40ac0c
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
mov dword [ebp - 8], edi
cmp ecx, dword [ebp + 0x10]
jae 0x40ab5a
mov edx, dword [ebp - 0xc]
inc dword [ebp - 0xc]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40ab4b
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 8]
mov byte [eax], dl
inc eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x400
jl 0x40ab2e
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40ab9a
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
cmp eax, edi
jl 0x40aba3
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x40ab1f
jmp 0x40aba5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
xor edi, edi
mov eax, dword [ebp - 0x10]
cmp eax, edi
jne 0x40ac35
cmp dword [ebp - 4], edi
je 0x40ac0c
push 5
pop esi
cmp dword [ebp - 4], esi
jne 0x40abfe
call fcn.0040c423
mov dword [eax], 9
call fcn.0040c42c
mov dword [eax], esi
jmp 0x40ac07
push edi
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40abf3
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], eax
jmp 0x40aba5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40aba5
push dword [ebp - 4]
call fcn.0040c435
pop ecx
or eax, 0xffffffff
jmp 0x40ac38
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40ac21
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x40ac21
xor eax, eax
jmp 0x40ac38
call fcn.0040c423
mov dword [eax], 0x1c
call fcn.0040c42c
mov dword [eax], edi
jmp 0x40ac07
sub eax, dword [ebp - 0x14]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x40c7dc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4186ec], ebx
push esi
push edi
jne 0x40c85c
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40c897
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x414204
push edi
call esi
test eax, eax
mov dword [0x4186ec], eax
je 0x40c897
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4186f0], eax
call esi
cmp dword [0x418580], 2
mov dword [0x4186f4], eax
jne 0x40c85c
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4186fc], eax
je 0x40c85c
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4186f8], eax
mov eax, dword [0x4186f8]
test eax, eax
je 0x40c8a1
call eax
test eax, eax
je 0x40c888
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4186fc]
test eax, eax
je 0x40c888
test byte [ebp - 8], 1
jne 0x40c8a1
cmp dword [0x41858c], 4
jb 0x40c89b
or byte [ebp + 0x12], 0x20
jmp 0x40c8c0
xor eax, eax
jmp 0x40c8d0
or byte [ebp + 0x12], 4
jmp 0x40c8c0
mov eax, dword [0x4186f0]
test eax, eax
je 0x40c8c0
call eax
mov ebx, eax
test ebx, ebx
je 0x40c8c0
mov eax, dword [0x4186f4]
test eax, eax
je 0x40c8c0
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4186ec]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4104ca
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00405b00
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41055f
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x418580]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x41055f
cmp eax, 1
je 0x410577
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41055f
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x410534
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x41055b
xor eax, eax
inc eax
jmp 0x410593
cmp esi, ebx
jae 0x410563
xor eax, eax
jmp 0x410593
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x418580]
jmp 0x410579
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411134
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x415290
call fcn.00409684
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x418850], edi
jne 0x411178
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x411163
mov dword [0x418850], ebx
jmp 0x411178
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x411178
mov dword [0x418850], 2
mov eax, dword [0x418850]
cmp eax, ebx
jne 0x411198
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x41125b
cmp eax, 2
je 0x4111a1
cmp eax, edi
jne 0x4111c9
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x4111b4
mov eax, dword [0x41875c]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x4111d0
xor eax, eax
jmp 0x41125b
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00405b00
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x411203
cmp esi, edi
jne 0x411219
push dword [ebp - 0x24]
call fcn.0040651c
pop ecx
mov esi, eax
cmp esi, edi
je 0x4111c9
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x24]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x41124c
cmp dword [ebp + 0x14], edi
jne 0x411236
push edi
push edi
jmp 0x41123c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], edi
je 0x411258
push esi
call fcn.004060c1
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004096bd
ret
Function at 0x411264
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4152a0
call fcn.00409684
xor esi, esi
cmp dword [0x418854], esi
jne 0x4112a8
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x411293
mov dword [0x418854], edi
jmp 0x4112a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4112a8
mov dword [0x418854], 2
mov eax, dword [0x418854]
cmp eax, 2
je 0x411389
cmp eax, esi
je 0x411389
cmp eax, 1
jne 0x4112ed
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4112d6
mov eax, dword [0x41875c]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x4112f4
xor eax, eax
jmp 0x41139b
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00405b00
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x41132a
cmp edi, esi
jne 0x411345
lea eax, [ebx + ebx]
push eax
call fcn.0040651c
pop ecx
mov edi, eax
cmp edi, esi
je 0x4112ed
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x411378
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x411362
push esi
push esi
jmp 0x411368
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x411384
push edi
call fcn.004060c1
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x41139b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004096bd
ret
Function at 0x411ad2
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 0xc], ebx
je 0x411b3a
push 0x3d
push esi
call fcn.00411cc5
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x411b3a
cmp esi, eax
je 0x411b3a
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x4185a0]
sete cl
cmp eax, dword [0x4185a4]
mov dword [ebp - 4], ecx
jne 0x411b20
mov edi, eax
call fcn.00411a71
mov dword [0x4185a0], eax
cmp eax, ebx
jne 0x411b79
cmp dword [ebp + 0xc], ebx
je 0x411b42
cmp dword [0x4185a8], ebx
je 0x411b42
call fcn.00411629
test eax, eax
je 0x411b79
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x411c83
push 4
call fcn.0040651c
cmp eax, ebx
pop ecx
mov dword [0x4185a0], eax
je 0x411b3a
mov dword [eax], ebx
cmp dword [0x4185a8], ebx
jne 0x411b79
push 4
call fcn.0040651c
cmp eax, ebx
pop ecx
mov dword [0x4185a8], eax
je 0x411b3a
mov dword [eax], ebx
mov edi, dword [ebp - 8]
mov ebx, dword [0x4185a0]
sub edi, esi
push esi
call fcn.00411a24
mov edi, eax
test edi, edi
pop ecx
jl 0x411bd5
cmp dword [ebx], 0
je 0x411bd5
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004060c1
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x411bba
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov esi, eax
jmp 0x411c0b
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x411bb1
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.0040a6e9
test eax, eax
mov esi, dword [ebp + 8]
pop ecx
pop ecx
je 0x411c0b
jmp 0x411c06
cmp dword [ebp - 4], 0
jne 0x411c7c
test edi, edi
jge 0x411be5
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.0040a6e9
test eax, eax
pop ecx
pop ecx
je 0x411b3a
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x4185a0], eax
cmp dword [ebp + 0xc], 0
je 0x411c67
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411c16
sub eax, edx
add eax, 2
push eax
call fcn.0040651c
mov edi, eax
test edi, edi
pop ecx
je 0x411c67
mov ecx, esi
sub eax, esi
mov dl, byte [ecx]
mov byte [eax + ecx], dl
inc ecx
test dl, dl
jne 0x411c33
mov ecx, dword [ebp - 8]
add eax, ecx
and byte [eax], dl
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x411c60
or dword [ebp - 0xc], 0xffffffff
push edi
call fcn.004060c1
pop ecx
cmp dword [ebp - 4], 0
je 0x411c74
push esi
call fcn.004060c1
pop ecx
mov eax, dword [ebp - 0xc]
jmp 0x411b3d
push esi
call fcn.004060c1
pop ecx
xor eax, eax
jmp 0x411b3d
Function at 0x1001587
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001150
call fcn.010017b0
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x1000000], 0x5a4d
jne 0x10015db
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x10015db
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x10015f3
cmp ecx, 0x20b
je 0x10015e0
mov dword [ebp - 0x1c], ebx
jmp 0x100160a
cmp dword [eax + 0x1000084], 0xe
jbe 0x10015db
xor ecx, ecx
cmp dword [eax + 0x10000f8], ebx
jmp 0x1001604
cmp dword [eax + 0x1000074], 0xe
jbe 0x10015db
xor ecx, ecx
cmp dword [eax + 0x10000e8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x1002340], edi
mov dword [0x1002344], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1002338]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1002334]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1002348], eax
call fcn.010017a8
cmp dword [0x1002008], ebx
jne 0x1001667
push fcn.010017a8
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01001791
push 0x10010a4
push 0x10010a0
call sub.msvcrt.dll__initterm
mov eax, dword [0x1002330]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100232c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x100109c
push 0x1001094
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x10016f2
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x10016d2
cmp cl, 0x22
jne 0x10016c3
cmp byte [eax], 0x22
jne 0x10016db
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x10016e6
cmp cl, 0x20
jbe 0x10016d7
test byte [ebp - 0x54], 1
je 0x10016fd
movzx ecx, word [ebp - 0x50]
jmp 0x1001700
cmp byte [eax], 0x20
jbe 0x10016db
inc eax
mov dword [ebp - 0x20], eax
jmp 0x10016f2
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call fcn.01001356
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x100171e
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x100175a
mov eax, esi
jmp 0x100176e
call fcn.010017eb
ret

Function at 0x450012
Capabilities:
Encode data using xor

Disassembly:
push dword fs:[0]
mov dword fs:[0], esp
xor ebx, ebx
push ebx
push ebx
push 0x80000000
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [0x44ff28]
sub edi, edi
sub ecx, ecx
mov cl, 0xe5
inc edi
loop 0x45003a
call 0x450042
pop esi
sub esi, 0xffffffc2
push esi
sub ebx, ebx
or ebx, 0x2394
mov al, byte [esi]
xor ax, di
xchg byte [esi], al
inc esi
sub ebx, 1
cmp ebx, 0
ja 0x450052
pop esi
mov esp, dword fs:[0]
pop dword fs:[0]
pop edi
pop ebp
jmp esi
Function at 0x411e0f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00411c85

Function at 0x440130
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.tJrdyPER
lea edi, [esi - 0x13000]
push edi
or ebp, 0xffffffff
jmp 0x440152
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x440159
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x440148
mov eax, 1
add ebx, ebx
jne 0x44016b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x440160
jne 0x44017c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x440160
xor ecx, ecx
sub eax, 3
jb 0x440190
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x440202
mov ebp, eax
add ebx, ebx
jne 0x44019b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4401a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4401cc
inc ecx
add ebx, ebx
jne 0x4401b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4401ad
jne 0x4401c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4401ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4401ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4401dd
jmp 0x44014e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4401ec
add edi, ecx
jmp 0x44014e
pop esi
lea edi, [esi + 0x3e000]
mov eax, dword [edi]
or eax, eax
je 0x440254
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4020c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x402b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x440209
mov ecx, edi
jns 0x440238
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 + 0x402bc]
or eax, eax
je 0x44024e
mov dword [ebx], eax
add ebx, 4
jmp 0x440226
call dword [esi + 0x402b8]
mov ebp, dword [esi + 0x402c0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x440288
sub esp, 0xffffff80
jmp section.NDltoTPW
Function at 0x10009aa0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], 0x10325476
pop ebp
ret