joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x304
push esi
mov esi, dword [esp + 0x30c]
push str.ZLIB.PYD
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4014dc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401584
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push 0x405158
call fcn.00402450
add esp, 8
test eax, eax
je 0x401584
push 0x405164
push eax
call fcn.00402160
add esp, 8
test eax, eax
je 0x401584
pop esi
add esp, 0x304
jmp eax
push str.zlib.pyd
push 0x406420
push str._s_s
lea eax, [esp + 0x10]
push 0x304
push eax
call dword [sym.imp.MSVCR90.dll__snprintf]
add esp, 0x14
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x401527
push str.initzlib
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401527
call eax
pop esi
add esp, 0x304
ret
push edi
push 0
mov eax, 0x405de0
call fcn.00401280
mov esi, eax
add esp, 4
mov edi, esi
test esi, esi
je 0x401583
push ebx
mov ebx, dword [sym.imp.MSVCR90.dll_strncmp]
push 0xb
push str._pythondll_
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x40155e
mov edx, dword [esi + 0xb]
lea edi, [esi + edx + 0xf]
push 0xa
push str._zlib.pyd_
push edi
call ebx
add esp, 0xc
pop ebx
test eax, eax
jne 0x40157c
add edi, 0xe
push edi
call fcn.00401440
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
add esp, 0x304
ret
Function at 0x401810
Capabilities:
Compiled with py2exe
Query environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebx
call fcn.00401150
add esp, 4
test eax, eax
jne 0x401829
mov eax, 0xff
pop ebx
ret
push ebx
call fcn.00401310
add esp, 4
test eax, eax
je 0x401822
mov eax, dword [0x40664c]
cmp dword [eax + 8], 0
push esi
je 0x401874
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
push edi
push 0
call esi
mov edi, dword [sym.imp.MSVCR90.dll_setbuf]
push eax
call edi
add esp, 8
push 0
call esi
add eax, 0x20
push eax
call edi
add esp, 8
push 0
call esi
add eax, 0x40
push eax
call edi
add esp, 8
pop edi
mov esi, dword [sym.imp.MSVCR90.dll_getenv]
push 0x405204
call esi
add esp, 4
test eax, eax
je 0x4018a3
push str.PY2EXE_VERBOSE
call esi
push eax
call dword [sym.imp.MSVCR90.dll_atoi]
mov ecx, dword [0x4057f4]
add esp, 8
mov dword [ecx], eax
jmp 0x4018af
mov edx, dword [0x4057f4]
mov dword [edx], 0
mov eax, dword [0x40580c]
mov dword [eax], 1
mov ecx, dword [0x4057fc]
mov dword [ecx], 1
mov edx, dword [0x40664c]
mov eax, dword [edx + 4]
mov ecx, dword [0x405804]
push 0x406100
mov dword [ecx], eax
call dword [0x40569c]
add esp, 4
call fcn.00401590
call dword [0x40570c]
test eax, eax
jne 0x401905
call fcn.00401620
test eax, eax
jne 0x40196b
call dword [0x405674]
jmp 0x40190e
call fcn.00401700
test eax, eax
jne 0x40196b
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40193b
push 1
call dword [0x4057ec]
push eax
push 0x405224
call dword [0x40578c]
add esp, 0xc
push ebx
call fcn.00401470
add esp, 4
pop esi
xor eax, eax
pop ebx
ret
push eax
call dword [0x40579c]
mov esi, eax
add esp, 4
test esi, esi
je 0x401960
push esi
push str.frozen
call dword [0x40578c]
push esi
call fcn.00401b70
add esp, 0xc
push ebx
call fcn.00401470
add esp, 4
xor eax, eax
pop esi
pop ebx
ret

Function at 0x401be0
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, edi
mov esi, 0x405670
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401bf1
sub eax, edx
add eax, edi
cmp eax, edi
je 0x401c0a
cmp byte [eax], 0x5c
je 0x401c0f
dec eax
cmp eax, edi
jne 0x401c00
cmp byte [eax], 0x5c
jne 0x401c10
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x401c2a
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x401c84
cmp dword [str.Py_Initialize], 0
je 0x401c55
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea esp, [esp]
mov eax, dword [esi]
push eax
push ebx
call edi
mov dword [esi + 4], eax
test eax, eax
je 0x401c5e
add esi, 8
cmp dword [esi], 0
jne 0x401c40
pop edi
pop esi
mov eax, 1
pop ebx
ret
push 0x40583c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi]
push ecx
push 0x40584c
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x401c90
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, 0x405670
test eax, eax
jne 0x401cad
mov eax, dword [esp + 8]
push eax
call fcn.00401be0
add esp, 4
pop esi
ret
mov ecx, dword [esp + 8]
push edi
push eax
push ecx
call fcn.00402450
mov edi, eax
add esp, 8
test edi, edi
je 0x401d19
cmp dword [str.Py_Initialize], 0
je 0x401ceb
jmp 0x401cd0
mov edx, dword [esi]
push edx
push edi
call fcn.00402160
add esp, 8
mov dword [esi + 4], eax
test eax, eax
je 0x401cf3
add esi, 8
cmp dword [esi], 0
jne 0x401cd0
pop edi
mov eax, 1
pop esi
ret
push str.undef_symbol
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi]
push eax
push str.undefined_symbol__s____exit__1__n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
pop edi
xor eax, eax
pop esi
ret

Function at 0x401e90
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [eax]
movzx ecx, word [eax + 0x14]
xor edx, edx
push esi
lea esi, [ecx + eax + 0x18]
mov dword [esp + 8], 0
cmp dx, word [eax + 6]
jae 0x401f37
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x401ef2
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x401f1b
mov ecx, dword [esi - 4]
push 4
push 0x1000
push edi
add ecx, ebx
push ecx
call ebp
push edi
push 0
push eax
mov dword [esi - 8], eax
call sub.MSVCR90.dll_memset
jmp 0x401f18
mov edx, dword [esi - 4]
push 4
push 0x1000
push eax
add edx, ebx
push edx
call ebp
mov ecx, dword [esi + 4]
add ecx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esi]
push eax
push ecx
push edi
call sub.MSVCR90.dll_memcpy
mov dword [esi - 8], edi
add esp, 0xc
mov edx, dword [esp + 0x20]
mov ecx, dword [edx]
mov eax, dword [esp + 0x10]
movzx edx, word [ecx + 6]
inc eax
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x401ec3
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret
Function at 0x46433d
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 8], 0
jne 0x464347
xor eax, eax
ret
jmp fcn.004640ca

Function at 0x464793
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x64], 1
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x68], ecx
ret

Function at 0x4647d2
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0xd0], 1
mov dword [eax + 8], 0xc1059ed8
mov dword [eax + 0xc], 0xcbbb9d5d
mov dword [eax + 0x10], 0x367cd507
mov dword [eax + 0x14], 0x629a292a
mov dword [eax + 0x18], 0x3070dd17
mov dword [eax + 0x1c], 0x9159015a
mov dword [eax + 0x20], 0xf70e5939
mov dword [eax + 0x24], 0x152fecd8
mov dword [eax + 0x28], 0xffc00b31
mov dword [eax + 0x2c], 0x67332667
mov dword [eax + 0x30], 0x68581511
mov dword [eax + 0x34], 0x8eb44a87
mov dword [eax + 0x38], 0x64f98fa7
mov dword [eax + 0x3c], 0xdb0c2e0d
mov dword [eax + 0x40], 0xbefa4fa4
mov dword [eax + 0x44], 0x47b5481d
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd4], ecx
mov dword [eax + 0xd8], 0x30
ret

Function at 0x464869
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0xd0], 1
mov dword [eax + 8], 0xf3bcc908
mov dword [eax + 0xc], 0x6a09e667
mov dword [eax + 0x10], 0x84caa73b
mov dword [eax + 0x14], 0xbb67ae85
mov dword [eax + 0x18], 0xfe94f82b
mov dword [eax + 0x1c], 0x3c6ef372
mov dword [eax + 0x20], 0x5f1d36f1
mov dword [eax + 0x24], 0xa54ff53a
mov dword [eax + 0x28], 0xade682d1
mov dword [eax + 0x2c], 0x510e527f
mov dword [eax + 0x30], 0x2b3e6c1f
mov dword [eax + 0x34], 0x9b05688c
mov dword [eax + 0x38], 0xfb41bd6b
mov dword [eax + 0x3c], 0x1f83d9ab
mov dword [eax + 0x40], 0x137e2179
mov dword [eax + 0x44], 0x5be0cd19
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd4], ecx
mov dword [eax + 0xd8], 0x40
ret

Function at 0x46495e
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x70], 1
mov dword [eax + 8], 0xc1059ed8
mov dword [eax + 0xc], 0x367cd507
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0xf70e5939
mov dword [eax + 0x18], 0xffc00b31
mov dword [eax + 0x1c], 0x68581511
mov dword [eax + 0x20], 0x64f98fa7
mov dword [eax + 0x24], 0xbefa4fa4
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], 0x1c
ret
Function at 0x4649b4
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x70], 1
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], 0x20
ret

Function at 0x464a0a
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 8], 0
mov ecx, dword [esp + 4]
je 0x464a42
push 0x10
pop edx
push esi
push edi
mov eax, dword [ecx]
mov esi, eax
shr esi, 8
mov edi, eax
shl edi, 8
xor esi, edi
and esi, 0xff00ff
shl eax, 8
xor esi, eax
rol esi, 0x10
dec edx
mov dword [ecx], esi
add ecx, 4
test edx, edx
jne 0x464a1a
pop edi
pop esi
ret

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

Disassembly:
mov edx, dword [esp + 4]
mov ecx, dword [esp + 8]
lea eax, [edx + 8]
mov dword [eax], ecx
xor ecx, ecx
push esi
inc ecx
push edi
mov esi, dword [eax]
mov edi, esi
shr edi, 0x1e
xor edi, esi
imul edi, edi, 0x6c078965
add edi, ecx
mov dword [eax + 4], edi
inc ecx
add eax, 4
cmp ecx, 0x270
jl 0x466d17
pop edi
mov dword [edx + 0x9c8], ecx
pop esi
ret

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

Disassembly:
mov ecx, dword [esp + 4]
cmp dword [ecx + 0x9c8], 0x270
jl 0x466dfd
push ebx
push ebp
push esi
push edi
xor esi, esi
mov ebx, 0x7fffffff
lea edi, [ecx + esi*4 + 0x63c]
mov eax, dword [edi - 0x630]
lea edx, [ecx + esi*4 + 8]
xor eax, dword [edx]
and eax, ebx
xor eax, dword [edx]
mov ebp, eax
shr eax, 1
and ebp, 1
xor eax, dword [ebp*4 + 0x1e1f0e40]
xor eax, dword [edi]
inc esi
cmp esi, 0xe3
mov dword [edx], eax
jl 0x466d5f
jmp 0x466dbd
lea edi, [ecx + esi*4 - 0x384]
mov eax, dword [edi + 0x390]
lea edx, [ecx + esi*4 + 8]
xor eax, dword [edx]
and eax, ebx
xor eax, dword [edx]
mov ebp, eax
shr eax, 1
and ebp, 1
xor eax, dword [ebp*4 + 0x1e1f0e40]
xor eax, dword [edi]
inc esi
mov dword [edx], eax
cmp esi, 0x26f
jl 0x466d93
mov eax, dword [ecx + 0x9c4]
xor eax, dword [ecx + 8]
pop edi
and eax, ebx
xor eax, dword [ecx + 0x9c4]
pop esi
mov edx, eax
and edx, 1
mov edx, dword [edx*4 + 0x1e1f0e40]
xor edx, dword [ecx + 0x638]
shr eax, 1
xor edx, eax
pop ebp
mov dword [ecx + 0x9c4], edx
and dword [ecx + 0x9c8], 0
pop ebx
mov eax, dword [ecx + 0x9c8]
mov edx, dword [ecx + eax*4 + 8]
inc eax
mov dword [ecx + 0x9c8], eax
mov eax, edx
shr eax, 0xb
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
ret
Function at 0x46bd3a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
xor ebx, ebx
cmp edi, ebx
je 0x46be3f
mov esi, dword [edi + 0x1c]
cmp esi, ebx
je 0x46be3f
cmp dword [edi + 0x20], ebx
je 0x46be3f
cmp dword [edi + 0x24], ebx
je 0x46be3f
push 2
mov dword [edi + 0x14], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0x18], ebx
pop edx
mov dword [edi + 0x2c], edx
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
cmp eax, ebx
mov dword [esi + 0x14], ebx
jge 0x46bd8c
neg eax
mov dword [esi + 0x18], eax
mov ecx, dword [esi + 0x18]
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0xffffffb9
push ebx
add eax, 0x71
push ebx
mov dword [esi + 4], eax
push ebx
cmp ecx, edx
jne 0x46bdac
call fcn.0046433d
jmp 0x46bdb1
call fcn.0046434c
add esp, 0xc
mov dword [edi + 0x30], eax
push esi
mov dword [esi + 0x28], ebx
call fcn.0046a1de
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x44]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x4c]
xor edx, edx
mov word [ecx + eax*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax + eax - 2]
push eax
push ebx
push dword [esi + 0x44]
call fcn.0043ac28
mov eax, dword [esi + 0x84]
imul eax, eax, 0xc
movzx ecx, word [eax + 0x1e18e332]
mov dword [esi + 0x80], ecx
movzx ecx, word [eax + 0x1e18e330]
mov dword [esi + 0x8c], ecx
movzx ecx, word [eax + 0x1e18e334]
add esp, 0x10
mov dword [esi + 0x90], ecx
movzx eax, word [eax + 0x1e18e336]
mov dword [esi + 0x7c], eax
push 2
pop eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x48], ebx
xor eax, eax
jmp 0x46be42
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
ret
Function at 0x474d65
Capabilities:
Hash data with md5

Disassembly:
push 0x1e1e5cb0
call fcn.0040b2f4
pop ecx
test eax, eax
jne 0x474d75
ret
and dword [eax + 0xc], 0
and dword [eax + 8], 0
mov dword [eax + 0x10], 0x67452301
mov dword [eax + 0x14], 0xefcdab89
mov dword [eax + 0x18], 0x98badcfe
mov dword [eax + 0x1c], 0x10325476
ret

Function at 0x483c5f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp edx, edi
jne 0x483c7b
push edi
call fcn.00420da1
pop ecx
jmp 0x483cf5
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], edi
je 0x483c93
mov dword [ebp - 8], eax
lea eax, [eax + edx - 1]
mov dword [ebp + 0xc], 1
jmp 0x483c9e
or dword [ebp + 0xc], 0xffffffff
lea ecx, [eax + edx - 1]
mov dword [ebp - 8], ecx
push ebx
mov ebx, dword [ebp + 0x14]
cmp ebx, edi
je 0x483cac
cmp byte [eax], 0x80
sbb ebx, ebx
inc ebx
mov ecx, dword [ebp + 0xc]
neg ecx
cmp ebx, edi
push esi
mov esi, eax
sete al
dec al
xor edi, edi
test edx, edx
jbe 0x483ccc
cmp byte [esi], al
jne 0x483ccc
inc edi
add esi, ecx
cmp edi, edx
jb 0x483cc1
mov esi, edx
sub esi, edi
test ebx, ebx
je 0x483cd9
cmp esi, edx
jae 0x483cd9
inc esi
push 0xf
xor edx, edx
lea eax, [esi*8 + 0xe]
pop ecx
div ecx
cmp eax, 0x7fffffff
jbe 0x483cf8
call fcn.004cb843
pop esi
pop ebx
pop edi
leave
ret
push eax
call fcn.00420d5a
mov edi, eax
xor eax, eax
pop ecx
mov dword [ebp - 0x14], edi
test edi, edi
je 0x483cf3
mov edx, dword [ebp - 8]
xor ecx, ecx
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], edx
test esi, esi
jbe 0x483d83
add edi, 0xc
mov dword [ebp - 0x10], esi
mov edx, dword [ebp - 8]
movzx edx, byte [edx]
test ebx, ebx
je 0x483d44
xor edx, 0xff
add edx, dword [ebp - 0xc]
mov esi, edx
shr esi, 8
mov dword [ebp - 0xc], esi
and edx, 0xff
shl edx, cl
add ecx, 8
or eax, edx
cmp ecx, 0xf
jb 0x483d66
mov edx, eax
and edx, 0x7fff
inc dword [ebp - 4]
mov word [edi], dx
inc edi
inc edi
shr eax, 0xf
sub ecx, 0xf
mov edx, dword [ebp + 0xc]
add dword [ebp - 8], edx
dec dword [ebp - 0x10]
jne 0x483d23
test ecx, ecx
je 0x483d83
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
inc dword [ebp - 4]
mov word [ecx + edx*2 + 0xc], ax
mov eax, dword [ebp - 4]
test ebx, ebx
je 0x483d8c
neg eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 8], eax
mov eax, ecx
call fcn.0043607e
jmp 0x483cf3
Function at 0x412ebe
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00412d3d

Function at 0x41704f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004169bd

Function at 0x41705a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416bf8

Function at 0x1001163
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10010c0
call fcn.0100134c
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x10011a0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10011a0
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10011b8
cmp eax, 0x20b
je 0x10011a5
mov dword [ebp - 0x1c], ebx
jmp 0x10011cc
cmp dword [ecx + 0x84], 0xe
jbe 0x10011a0
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x10011c6
cmp dword [ecx + 0x74], 0xe
jbe 0x10011a0
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1002218], 0xffffffff
or dword [0x100221c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1002214]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1002210]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1002220], eax
call fcn.01001348
cmp dword [section..data], ebx
jne 0x1001227
push fcn.01001348
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01001336
push 0x100106c
push 0x1001068
call sub.msvcrt.dll__initterm
mov eax, dword [0x100220c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1002208]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1001064
push 0x1001060
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x10012bd
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x1001291
cmp al, 0x22
jne 0x1001283
cmp byte [esi], 0x22
jne 0x100129a
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x10012a4
cmp al, 0x20
jbe 0x1001296
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x10012c8
movzx eax, word [ebp - 0x48]
jmp 0x10012cb
cmp byte [esi], 0x20
jbe 0x100129a
inc esi
mov dword [ebp - 0x34], esi
jmp 0x10012bd
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x10012e8
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100131d
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01001385
ret
Function at 0x402ab9
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4131c4], 0
jne 0x402ac7
call fcn.00402a8f
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402af4
test cl, 7
je 0x402af4
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4131c0]
dec esi
inc ecx
jmp 0x402ad5
cmp esi, 8
jb 0x402b78
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4131c0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4131c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4131c0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4131c0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4131c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4131c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4131c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4131c0]
dec edi
jne 0x402afe
xor edx, edx
test esi, esi
jbe 0x402b98
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4131c0]
inc edx
cmp edx, esi
jb 0x402b7f
pop ebx
pop edi
pop esi
ret 0xc
Function at 0x404b5b
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24e8
call fcn.00401200
push ebx
push esi
push edi
lea ecx, [ebp - 0x24e8]
call fcn.00403562
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x24e8]
push eax
push dword [ebp + 0xc]
push edi
call fcn.0040604c
test al, al
je 0x404cf4
cmp byte [ebp - 0x24e8], bl
je 0x404cf4
cmp byte [ebp - 0x1840], bl
je 0x404cf4
lea eax, [ebp - 0x1840]
push eax
lea eax, [ebp - 0x24e8]
push eax
call fcn.00407331
push eax
call fcn.0040d701
test eax, eax
je 0x404cf4
lea eax, [ebp - 0x1840]
push eax
push edi
call fcn.00407331
push eax
call fcn.0040d701
test eax, eax
jne 0x404cf4
mov esi, 0x400
push esi
push edi
lea eax, [ebp - 0x400]
push eax
call fcn.0040d7ac
push ebx
push str.rtmp_d
lea eax, [ebp - 0x400]
push eax
call fcn.00407331
push eax
call fcn.0040a54f
add esp, 0xc
push 0
lea eax, [ebp - 0x400]
push eax
call fcn.00405773
test al, al
je 0x404c33
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x404bed
push 0
lea eax, [ebp - 0x400]
push eax
call fcn.00405773
test al, al
jne 0x404cf4
push esi
push edi
lea eax, [ebp - 0x800]
push eax
call fcn.0040d7ac
lea eax, [ebp - 0x24e8]
push eax
call fcn.00407331
push eax
lea eax, [ebp - 0x800]
push eax
call fcn.00407331
push eax
call fcn.0040a3b6
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test eax, eax
je 0x404cf4
lea ecx, [ebp - 0x1420]
call fcn.00404ecf
push 0
push edi
xor bl, bl
call fcn.00405773
test al, al
jne 0x404cbb
push 1
push 0
push edi
lea ecx, [ebp - 0x1420]
call fcn.004051e4
mov bl, al
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x400]
push eax
call esi
test bl, bl
je 0x404ce5
lea ecx, [ebp - 0x1420]
call fcn.00404f3a
lea ecx, [ebp - 0x1420]
call fcn.00404fb8
lea ecx, [ebp - 0x1420]
call fcn.00405080
mov al, 1
jmp 0x404cf6
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8