joyce8/EMBER2024-capa huggingface dataset:
Function at 0x711bb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0x1f6000]
lea eax, [edi + 0x2ee680]
push dword [eax]
mov dword [eax], 0xe56bcc3f
push eax
push edi
or ebp, 0xffffffff
jmp 0x711be2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x711be9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x711bd8
mov eax, 1
add ebx, ebx
jne 0x711bfb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x711c0c
jne 0x711c2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x711c2b
dec eax
add ebx, ebx
jne 0x711c18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x711bf0
add ebx, ebx
jne 0x711c27
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x711c7d
xor ecx, ecx
sub eax, 3
jb 0x711c43
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x711cb2
sar eax, 1
mov ebp, eax
jmp 0x711c4e
add ebx, ebx
jne 0x711c4e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x711c1c
inc ecx
add ebx, ebx
jne 0x711c5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x711c1c
add ebx, ebx
jne 0x711c69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x711c5e
jne 0x711c7a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x711c5e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x711c9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x711c8e
jmp 0x711bde
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x711c9c
add edi, ecx
jmp 0x711bde
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x108e5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x711cbe
cmp byte [edi], 0x25
jne 0x711cbe
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 0x711cc3
lea edi, [esi + 0x304000]
mov eax, dword [edi]
or eax, eax
je 0x711d3b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3111e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3113dc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x711cf0
mov ecx, edi
jns 0x711d1f
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 + 0x3113e4]
or eax, eax
je 0x711d35
mov dword [ebx], eax
add ebx, 4
jmp 0x711d0d
call dword [esi + 0x3113e0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x711d6c
cmp al, 0xef
ja 0x711d5f
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x711d41
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x711d4e
mov ebp, dword [esi + 0x3113e8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x711da0
sub esp, 0xffffff80
jmp 0x5c7c40
Function at 0x407160
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 0x407315
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 0x407314
mov eax, dword [0x40b090]
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 0x40730c
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 0x4072ce
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 + 0x4090f8]
movzx ebx, byte [eax]
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f8]
movzx ebx, byte [eax + 1]
xor ebx, ecx
and ebx, 0xff
add eax, 1
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f8]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f8]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f8]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f8]
movzx ebx, byte [eax + 1]
add eax, 1
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f8]
movzx ebx, byte [eax + 1]
add eax, 1
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f8]
add eax, 1
sub edi, 8
sub ebp, 1
mov esi, ecx
jne 0x4071f0
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
test edi, edi
je 0x4072ef
movzx ecx, byte [eax]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x4090f8]
add eax, 1
sub edi, 1
jne 0x4072d2
cmp edx, 0x1000
je 0x4071c0
mov edx, dword [0x40b090]
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 0x407320
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 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4082ae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x480ba8]
jne 0x4082b8
repz ret
jmp fcn.0040a42a

Function at 0x40b86f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040832f
and dword [ebp - 4], 0
cmp dword [0x4824e8], 0
mov ebx, eax
jne 0x40b920
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b9d1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b9d1
push eax
call fcn.004082bd
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4824e8], eax
call esi
push eax
call fcn.004082bd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4824ec], eax
call esi
push eax
call fcn.004082bd
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4824f0], eax
call esi
push eax
call fcn.004082bd
pop ecx
mov dword [0x4824f8], eax
test eax, eax
je 0x40b920
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004082bd
pop ecx
mov dword [0x4824f4], eax
mov eax, dword [0x4824f4]
cmp eax, ebx
je 0x40b978
cmp dword [0x4824f8], ebx
je 0x40b978
push eax
call fcn.00408338
push dword [0x4824f8]
mov esi, eax
call fcn.00408338
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b978
test edi, edi
je 0x40b978
call esi
test eax, eax
je 0x40b96f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b96f
test byte [ebp - 0xc], 1
jne 0x40b978
or dword [ebp + 0x10], 0x200000
jmp 0x40b9b1
mov eax, dword [0x4824ec]
cmp eax, ebx
je 0x40b9b1
push eax
call fcn.00408338
pop ecx
test eax, eax
je 0x40b9b1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b9b1
mov eax, dword [0x4824f0]
cmp eax, ebx
je 0x40b9b1
push eax
call fcn.00408338
pop ecx
test eax, eax
je 0x40b9b1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4824e8]
call fcn.00408338
pop ecx
test eax, eax
je 0x40b9d1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b9d3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d790
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov eax, dword [0x480534]
add eax, 0x1b0d
mov dword [0x480530], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 4], eax
mov eax, dword [0x480530]
sub eax, 0x26d
mov dword [0x480530], eax
mov dword [ebp - 8], 0
jmp 0x40d820
mov dword [ebp - 0x10], 1
jmp 0x40d8e2
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [ecx + eax*2 - 0x10]
cmp eax, 0x6c
je 0x40d8b9
jmp 0x40d8d1
mov dword [0x480534], 0xb09
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx eax, word [eax + ecx*2]
cmp eax, 0
je 0x40d82b
jmp 0x40d82d
cmp dword [ebp - 8], 0x104
jl 0x40d803
jmp 0x40d83c
jmp 0x40d83c
jmp 0x40d82f
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x40d820
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [ecx + eax*2 - 0x1a]
cmp eax, 0x6c
jne 0x40d8db
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx eax, word [eax + ecx*2 - 0x18]
cmp eax, 0x6f
jne 0x40d8d9
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx eax, word [eax + ecx*2 - 0x16]
cmp eax, 0x61
jne 0x40d8d7
mov eax, dword [0x480534]
sub eax, 0x27d
mov dword [0x480530], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx eax, word [eax + ecx*2 - 0x14]
cmp eax, 0x64
jne 0x40d8d5
mov dword [0x480534], 0xd6f
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx eax, word [eax + ecx*2 - 0x12]
cmp eax, 0x64
je 0x40d7e8
jmp 0x40d8d3
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [ecx + eax*2 - 0xe]
cmp eax, 0x6c
je 0x40d7dc
jmp 0x40d8d1
jmp 0x40d8d3
jmp 0x40d8d5
jmp 0x40d8d7
jmp 0x40d8d9
jmp 0x40d8db
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
add esp, 0x10
pop ebp
ret

Function at 0x40dc40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [fcn.0040dc40]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x40dc78
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
jne 0x40dc76
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x40dcb0
jmp 0x40dc78
mov eax, dword [ebp - 8]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 8], eax
mov dword [0x480530], 0x6b9
mov al, 1
test al, 1
jne 0x40dc4f
jmp 0x40dc9a
mov eax, dword [0x480530]
add eax, 0x1c7d
mov dword [0x480534], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add esp, 8
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x408ecc
nop
mov ecx, 0x17f35df9
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x47f55360
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x40225f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push edi
mov byte [ebp - 0x104], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 4], 0
mov eax, 0x4021cb
sub eax, 0x401cf5
mov dword [ebp - 4], eax
push 8
push 0x408008
lea ecx, [ebp - 0x104]
push ecx
call fcn.00406350
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
push 0x401cf5
lea eax, [ebp - 0x104]
push eax
call fcn.00406464
add esp, 0xc
push 0x100
push 0
lea ecx, [ebp - 0x104]
push ecx
call fcn.00406890
add esp, 0xc
call fcn.00401d3d
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x406464
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x40648a
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 0x10]
jge 0x40654c
mov edx, dword [ebp - 0xc]
add edx, 1
and edx, 0x800000ff
jns 0x4064ac
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax]
mov edx, dword [ebp - 0x10]
add edx, ecx
and edx, 0x800000ff
jns 0x4064ce
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov byte [ebp - 4], cl
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
mov al, byte [ebp - 4]
mov byte [edx], al
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x40651d
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 4], al
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp - 4]
and eax, 0xff
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
mov byte [ecx], dl
jmp 0x406481
mov esp, ebp
pop ebp
ret
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x401c41
Capabilities:
Parse pe header

Disassembly:
push 0x60
push 0x407520
call 0xd4501c52
mov edi, 0x94
mov eax, edi
call 0x5c5e1c5e
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [0x40705c]
mov ecx, dword [esi + 0x10]
mov dword [0x4096b4], ecx
mov eax, dword [esi + 4]
mov dword [0x4096c0], eax
mov edx, dword [esi + 8]
mov dword [0x4096c4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4096b8], esi
cmp ecx, 2
je 0x401ca1
or esi, 0x8000
mov dword [0x4096b8], esi
shl eax, 8
add eax, edx
mov dword [0x4096bc], eax
xor esi, esi
push esi
mov edi, dword [0x407050]
call edi
cmp word [eax], 0x5a4d
jne 0x401cdc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401cdc
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401cf4
cmp eax, 0x20b
je 0x401ce1
mov dword [ebp - 0x1c], esi
jmp 0x401d08
cmp dword [ecx + 0x84], 0xe
jbe 0x401cdc
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x401d02
cmp dword [ecx + 0x74], 0xe
jbe 0x401cdc
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call 0xa5e1d13
pop ecx
test eax, eax
jne 0x401d34
cmp dword [0x409698], 1
jne 0x401d21
call 0xbf551d26
push 0x1c
call 0x48541d2d
push 0xff
call 0xad521d37
pop ecx
pop ecx
call 0x685d1d3e
mov dword [ebp - 4], esi
call 0xbd5b1d46
test eax, eax
jge 0x401d4d
push 0x1b
call 0x184c1d51
pop ecx
call dword [0x407058]
mov dword [0x409c70], eax
call 0x9b5a1d62
mov dword [0x409690], eax
call 0xf9591d6c
test eax, eax
jge 0x401d73
push 8
call 0x184c1d77
pop ecx
call 0xc6571d7d
test eax, eax
jge 0x401d84
push 9
call 0x184c1d88
pop ecx
push 1
call 0xdd521d90
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x401d9a
push eax
call 0x184c1d9e
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [0x407054]
call 0x69571db1
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x401dbb
movzx eax, word [ebp - 0x40]
jmp 0x401dbe
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call 0xe3431dd1
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x401ddc
push edi
call 0x8541de1
call 0x2a541de6
jmp 0x401e0e
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call 0xf511e21
ret
Function at 0x401df0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407048
call sym._EnterCriticalSection_4
mov ebx, dword [0x407040]
sub esp, 4
test ebx, ebx
je 0x401e3b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401e34
test esi, esi
je 0x401e34
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e10
mov dword [esp], 0x407048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402020
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402070
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402148
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4020ae
cmp eax, 4
jne 0x4020d0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4020be
cmp edx, 4
je 0x4020be
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402020

Function at 0x431005
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x43100c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
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
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x402ba0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
sbb eax, 0x5f
dec eax
neg edi
sub edx, 0xdd
rcl eax, 0xe9
dec edx
not edx
or eax, 0x86
mov esi, 0x6e
neg eax
dec esi
inc esi
and esi, 0x26
bswap esi
and eax, 0x60
not edx
ror ebx, 0x63
not edi
neg eax
and edx, 0xb1
bswap esi
imul edi
sbb ebx, 0x5a
imul edx
rol edx, 0xd4
and esi, 0xc9
bswap edi
sub edx, 0xbd
dec esi
mov edi, 0xa1
ror esi, 0xf7
inc esi
rcl edi, 0x46
rcr edi, 0x14
inc esi
rcr eax, 0x3e
or ebx, 0x2a
ror edi, 0x8f
dec eax
neg edx
mov esi, 0xfe
not ebx
imul edi
inc edi
mov eax, 0xec
dec ebx
inc eax
add esi, 0x62
rcr eax, 0x18
and edx, 0x5d
xor ecx, ecx
xor edi, edi
rol edi, 0x5e
dec ebx
sub eax, 0xa8
inc edx
neg edi
dec edi
imul eax
rcl ebx, 0x3f
bswap edx
add esi, 0x42
inc ebx
neg edx
imul edx
not esi
imul esi
or eax, 0x9b
bswap eax
rcl ebx, 0x91
dec ebx
bswap edx
and edx, 0x61
bswap edx
inc eax
sub edi, 6
inc edi
ror esi, 0xf7
rcl esi, 1
or eax, 0xdb
sbb esi, 0xa7
sub edx, 0x62
not edi
not edi
imul ebx
mov ebx, 0x79
not edi
imul edx
sbb eax, 0x87
dec ebx
dec ebx
dec ebx
add edx, 0xe2
and eax, 0xfc
or edx, 0x61
and edx, 0xc7
bswap eax
not eax
imul edx
bswap ebx
bswap edi
or edi, 0xd5
mov ecx, dword [ebp + 0xc]
inc esi
dec esi
imul edx
imul ebx
bswap eax
bswap eax
rcr ebx, 0xa2
rcl edi, 0x5f
dec eax
add edi, 0xa5
imul eax
dec edi
rcl ebx, 0xb9
and edi, 0xf
rcl edi, 0xf3
inc esi
dec esi
rcl esi, 0x8d
rol edi, 0x98
not edx
ror ebx, 0x59
sub edi, 0xd9
bswap edx
rcl esi, 0x28
not ebx
rol eax, 0xf2
inc edx
rcl ebx, 0xa
neg esi
bswap eax
rol ebx, 0xa7
sbb eax, 0x36
rcr edi, 0x47
not eax
rcl ebx, 0x15
sbb edi, 0x5f
bswap esi
sbb esi, 0x65
bswap ebx
rol ebx, 0x68
or ebx, 0x24
sbb edx, 0x47
rcr eax, 0x2b
sub edx, 0x90
dec ebx
imul edi
mov edi, 0xb4
mov ebx, 0xd3
inc edi
inc ebx
mov edi, dword [ebp + 8]
mov eax, eax
xor ebx, eax
xor ebx, ebx
xor esi, eax
mov esi, eax
xor eax, eax
mov eax, eax
xor ebx, eax
xor eax, ebx
xor esi, ebx
xor ebx, esi
xor esi, ebx
not byte [edi]
mov esi, ebx
xor ebx, esi
xor eax, esi
xor eax, eax
xor ebx, eax
mov ebx, ebx
xor esi, eax
mov esi, esi
xor ebx, esi
sub byte [edi], 0x89
mov eax, eax
xor ebx, esi
mov eax, ebx
xor ebx, eax
mov ebx, ebx
xor eax, ebx
xor eax, esi
xor esi, eax
mov ebx, esi
add byte [edi], 0x57
mov ebx, ebx
mov eax, esi
xor eax, esi
mov eax, eax
mov ebx, ebx
xor esi, esi
xor ebx, esi
mov eax, ebx
xor esi, ebx
imul byte [edi]
inc edi
loop 0x402d4a
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..reloc
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x3d1d3df5
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
mov eax, section..text
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x9912e6e
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x45163845
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x7e142ff5
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219