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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1002cac8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10016c09
cmp word [ebx], dx
jne 0x10016c09
or byte [eax + edi + 0x28], 4
jmp 0x10016c0e
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10016d71
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10016d51
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10016c4f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10016c85
cmp eax, edx
jae 0x10016c93
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10016c2a
jmp 0x10016d71
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10016d4c
cmp dword [ebp - 0x18], 0
je 0x10016d4c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1002cac8]
test byte [eax + edi + 0x28], 0x48
je 0x10016d22
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10016ce6
mov word [esi], cx
jmp 0x10016d1d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1002cac8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1002cac8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1002cac8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10016d71
pop eax
cmp word [ebp - 4], ax
jne 0x10016d32
cmp esi, ebx
jne 0x10016d32
mov word [esi], ax
jmp 0x10016d6e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100175fc
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10016d71
push 0xd
pop eax
jmp 0x10016d2d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1002cac8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10016d6b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10016d71
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001ad15
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001adb2
push ebx
push esi
call fcn.1001acde
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10019af2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001ad5f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001adb1
push edi
push eax
call fcn.1001796d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001ad7f
call fcn.100145ef
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001adb0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10019af2
add esp, 0x20
test eax, eax
jne 0x1001ad9e
push edi
call fcn.100145ef
jmp 0x1001ada6
push ebx
call fcn.100145ef
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001cf56
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10012c3c
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001cfc5
cmp esi, dword [ebp - 4]
je 0x1001cfc0
cmp dword [ebp + 0xc], 0
je 0x1001cfc0
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1001cf9d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1001caa8
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1001cfc7
xor eax, eax
inc eax
jmp 0x1001cfc7
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1001d02c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1002b0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10012c3c
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10012c3c
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1001d0a3
cmp word [ecx], dx
je 0x1001d0a3
mov eax, dword [0x10024be4]
push edi
dec eax
push eax
push 0x10024ad0
call fcn.1001cfcb
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1001d116
cmp word [eax], dx
je 0x1001d116
mov eax, dword [edi]
test eax, eax
je 0x1001d0c7
cmp word [eax], dx
je 0x1001d0c7
lea eax, [ebp - 0x10]
push eax
call fcn.1001c9ae
jmp 0x1001d0d0
lea eax, [ebp - 0x10]
push eax
call fcn.1001ca49
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1001d140
mov eax, dword [0x10024acc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100247c0
call fcn.1001cfcb
add esp, 0xc
test al, al
je 0x1001d140
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1001d10b
cmp word [eax], di
je 0x1001d10b
lea eax, [ebp - 0x10]
push eax
call fcn.1001c9ae
pop ecx
jmp 0x1001d142
lea eax, [ebp - 0x10]
push eax
call fcn.1001ca49
jmp 0x1001d108
mov eax, dword [edi]
test eax, eax
je 0x1001d12d
cmp word [eax], dx
je 0x1001d12d
lea eax, [ebp - 0x10]
push eax
call fcn.1001c963
pop ecx
jmp 0x1001d140
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1001d20b
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1001ce50
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1001d20b
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1001d20b
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1001d20b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001d198
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10014c60
test ebx, ebx
je 0x1001d206
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10014c60
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001d20b
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001d20b
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1001eb84
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1001d20d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100094a6
leave
ret
Function at 0x1001f0b1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1001f02d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1001f220
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1001f220
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1001f1d5
jg 0x1001f10d
test eax, eax
je 0x1001f1cb
push 1
push 0x1000
call fcn.10014629
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1001f130
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001f1c2
push 0x8000
push ebx
call fcn.1001ef5e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1001f159
jg 0x1001f154
cmp ecx, 0x1000
jb 0x1001f159
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10015e30
add esp, 0x10
cmp eax, 0xffffffff
je 0x1001f19e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1001f154
jl 0x1001f185
test ecx, ecx
jne 0x1001f146
push dword [ebp - 0xc]
push ebx
call fcn.1001ef5e
push esi
call fcn.100145ef
add esp, 0xc
xor ebx, ebx
jmp 0x1001f22e
cmp byte [edi + 0x24], 0
je 0x1001f1b5
cmp dword [edi + 0x20], 5
jne 0x1001f1b5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1001f1c0
mov ebx, dword [edi + 0x18]
jmp 0x1001f1c2
xor ebx, ebx
push esi
call fcn.100145ef
pop ecx
jmp 0x1001f22e
test ecx, ecx
jg 0x1001f197
jl 0x1001f1d5
test eax, eax
jae 0x1001f197
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100175fc
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1001f1f5
cmp byte [edi + 0x1c], 0
je 0x1001f197
jmp 0x1001f226
push ebx
call fcn.1001d70c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1001f197
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001f22e
cmp byte [edi + 0x1c], 0
je 0x1001f22b
mov ebx, dword [edi + 0x18]
jmp 0x1001f22e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100175fc
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100204f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002051d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002051d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4016f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x4c]
mov al, 0x45
mov byte [esp + 0x29], al
mov byte [esp + 0x2c], al
mov eax, dword [edi]
xor ecx, ecx
mov byte [esp + 0x28], 0x4b
mov byte [esp + 0x2a], 0x52
mov byte [esp + 0x2b], 0x4e
mov byte [esp + 0x2d], 0x4c
mov byte [esp + 0x2e], 0x33
mov byte [esp + 0x2f], 0x32
mov byte [esp + 0x30], 0x2e
mov byte [esp + 0x31], 0x64
mov byte [esp + 0x32], 0x6c
mov byte [esp + 0x33], 0x6c
mov byte [esp + 0x34], 0
mov cx, word [eax + 0x14]
lea edx, [esp + 0x1c]
mov bl, 0x74
lea esi, [ecx + eax + 0x18]
lea eax, [esp + 0x28]
push edx
push eax
mov byte [esp + 0x24], 0x56
mov byte [esp + 0x25], 0x69
mov byte [esp + 0x26], 0x72
mov byte [esp + 0x27], bl
mov byte [esp + 0x28], 0x75
mov byte [esp + 0x29], 0x61
mov byte [esp + 0x2a], 0x6c
mov byte [esp + 0x2b], 0x46
mov byte [esp + 0x2c], 0x72
mov byte [esp + 0x2d], 0x65
mov byte [esp + 0x2e], 0x65
mov byte [esp + 0x2f], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, dword [edi]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
cmp word [ebp + 6], 0
jbe 0x4018b0
add esi, 0x24
mov eax, dword [esi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov edi, eax
and ecx, 1
and edx, 1
shr edi, 0x1f
test eax, 0x2000000
je 0x4017ec
mov ecx, dword [esi - 0x14]
mov edx, dword [esi - 0x1c]
push 0x4000
push ecx
push edx
call dword [esp + 0x20]
jmp 0x401890
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [edi + ecx*2]
mov edi, dword [edx*4 + 0x42c830]
je 0x401806
or edi, 0x200
mov ecx, dword [esi - 0x14]
test ecx, ecx
jne 0x40181f
test al, 0x40
je 0x401816
mov ecx, dword [ebp + 0x20]
jmp 0x40181d
test al, 0x80
je 0x401890
mov ecx, dword [ebp + 0x24]
test ecx, ecx
jbe 0x401890
lea eax, [esp + 0x38]
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x40], 0x56
mov byte [esp + 0x41], 0x69
mov byte [esp + 0x42], 0x72
mov byte [esp + 0x43], bl
mov byte [esp + 0x44], 0x75
mov byte [esp + 0x45], 0x61
mov byte [esp + 0x46], 0x6c
mov byte [esp + 0x47], 0x50
mov byte [esp + 0x48], 0x72
mov byte [esp + 0x49], 0x6f
mov byte [esp + 0x4a], bl
mov byte [esp + 0x4b], 0x65
mov byte [esp + 0x4c], 0x63
mov byte [esp + 0x4d], bl
mov byte [esp + 0x4e], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esi - 0x14]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi - 0x1c]
push edi
push ecx
push edx
call eax
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
xor edx, edx
inc eax
mov ebp, dword [ecx]
add esi, 0x28
mov dword [esp + 0x10], eax
mov dx, word [ebp + 6]
cmp eax, edx
jl 0x4017b8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
Function at 0x401da0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, 0x5ab
and eax, 0xff
push esi
cdq
idiv ecx
mov esi, dword [esp + 0xc]
add dl, 0x3d
test esi, esi
jbe 0x401dcd
mov eax, dword [esp + 8]
mov cl, byte [eax]
xor cl, dl
add cl, dl
mov byte [eax], cl
inc eax
dec esi
jne 0x401dc1
pop esi
ret

Function at 0x401dd0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push 0x400
push 0x25800
push 0x407030
call fcn.00401da0
push 0x407030
call fcn.004012f0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x401e15
mov eax, dword [esp + 0x10]
push eax
push ebx
call fcn.00401af0
add esp, 8
test eax, eax
jne 0x401e19
push ebx
call fcn.00401b80
add esp, 4
pop edi
pop esi
pop ebx
ret
sub esp, 0x2a8
mov ecx, 0xaa
mov esi, str._______.___
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call eax
push ebx
call fcn.00401b80
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x50ce50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.QNhjSkbP
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x50ce72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50ce79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50ce68
mov eax, 1
add ebx, ebx
jne 0x50ce8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50ce80
jne 0x50ce9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50ce80
xor ecx, ecx
sub eax, 3
jb 0x50ceb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50cf22
mov ebp, eax
add ebx, ebx
jne 0x50cebb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50cec8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50ceec
inc ecx
add ebx, ebx
jne 0x50ced8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50cecd
jne 0x50cee9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50cecd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50cf0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50cefd
jmp 0x50ce6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50cf0c
add edi, ecx
jmp 0x50ce6e
pop esi
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x50cf6b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xeacc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xeb24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50cf29
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xeb2c]
or eax, eax
je 0x50cf65
mov dword [ebx], eax
add ebx, 4
jmp 0x50cf46
call dword [esi + 0xeb28]
mov ebp, dword [esi + 0xeb30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x50cf9f
sub esp, 0xffffff80
jmp section.bUItIFMf
Function at 0x40b801
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411a00
cmp edx, dword [eax]
je 0x40b823
add eax, 8
inc ecx
cmp eax, 0x411a90
jl 0x40b814
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411a00]
jne 0x40b951
mov eax, dword [0x41911c]
cmp eax, 1
je 0x40b92b
test eax, eax
jne 0x40b854
cmp dword [0x411488], 1
je 0x40b92b
cmp edx, 0xfc
je 0x40b951
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b88b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408740
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408910
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b8ce
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408910
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41050c
push edi
call fcn.00408fa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408740
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408750
lea eax, [ebp - 0xa0]
push 0x4104ec
push eax
call fcn.00408750
push dword [esi + 0x411a04]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408750
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040e2c6
add esp, 0x2c
pop edi
jmp 0x40b951
lea eax, [ebp + 8]
lea esi, [esi + 0x411a04]
push 0
push eax
push dword [esi]
call fcn.00408910
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
pushal
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp int.00401219
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

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

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x401916
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test ecx, ecx
je 0x401948
test dl, 3
je 0x401945
movzx eax, byte [edx]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [edi + eax*4]
inc edx
sub ecx, 1
jne 0x40192c
mov dword [ebp - 4], edx
lea eax, [edx + ecx]
mov esi, eax
mov dword [ebp + 0xc], esi
cmp ecx, 0xc
jb 0x401a2a
sub eax, 0xc
mov dword [ebp + 8], eax
xor ebx, dword [edx]
mov edx, dword [edx + 4]
mov eax, edx
shr eax, 8
movzx ecx, al
mov eax, edx
shr eax, 0x10
movzx eax, al
mov esi, dword [edi + ecx*4 + 0x1800]
xor esi, dword [edi + eax*4 + 0x1400]
mov eax, edx
shr eax, 0x18
xor esi, dword [edi + eax*4 + 0x1000]
movzx eax, dl
mov edx, dword [ebp - 4]
xor esi, dword [edi + eax*4 + 0x1c00]
mov eax, ebx
mov edx, dword [edx + 8]
shr eax, 8
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov ecx, dword [edi + ecx*4 + 0x2800]
xor ecx, dword [edi + eax*4 + 0x2400]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [edi + eax*4 + 0x800]
mov eax, edx
shr eax, 0x10
movzx eax, al
xor ecx, dword [edi + eax*4 + 0x400]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [edi + eax*4 + 0x2000]
movzx eax, bl
xor ecx, dword [edi + eax*4 + 0x2c00]
movzx eax, dl
shr edx, 0x18
xor ecx, dword [edi + eax*4 + 0xc00]
xor ecx, dword [edi + edx*4]
mov edx, dword [ebp - 4]
xor ecx, esi
add edx, 0xc
mov ebx, ecx
mov dword [ebp - 4], edx
cmp edx, dword [ebp + 8]
jbe 0x40195f
mov esi, dword [ebp + 0xc]
jmp 0x401a2a
movzx eax, byte [edx]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [edi + eax*4]
inc edx
cmp edx, esi
jb 0x401a1b
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8