joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407010
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 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x416213
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00416292
jae 0x41621f
xor ecx, ecx
call fcn.00416292
jae 0x416249
xor eax, eax
call fcn.00416292
jae 0x41625a
mov al, 0x10
call fcn.00416292
adc al, al
jae 0x41623b
jne 0x416287
stosb byte es:[edi], al
jmp 0x416220
call fcn.0041629e
dec ecx
loop 0x416266
mov eax, ebp
call fcn.0041629c
jmp 0x416288
lodsb al, byte [esi]
shr eax, 1
je 0x4162ae
adc ecx, 2
mov ebp, eax
jmp 0x416288
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0041629c
cmp eax, 0x7d00
jae 0x416286
cmp eax, 0x500
jae 0x416287
cmp eax, 0x7f
ja 0x416288
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x416220
pop ebp
ret 8
Function at 0x40fcd0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push ebp
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40fdc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40fd0f
cmp eax, 3
je 0x40fd19
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40fd19
test al, 0x10
je 0x40fd19
xor esi, esi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8
movzx ecx, word [ebx]
push edi
xor edi, edi
mov eax, ebx
test cx, cx
je 0x40fd48
movzx ecx, cx
lea esp, [esp]
cmp cx, 0x5c
jne 0x40fd38
mov edi, eax
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40fd30
test edi, edi
jne 0x40fd66
mov esi, 0x80070003
push esi
push 0x82
push str..dirutil.cpp
call fcn.00410700
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8
push ebp
xor eax, eax
push ebx
mov word [edi], ax
call fcn.0040fcd0
mov esi, eax
mov ecx, 0x5c
mov word [edi], cx
test esi, esi
jl 0x40fdc0
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40fdbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40fda7
mov esi, 1
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8
test eax, eax
jle 0x40fdb5
and eax, 0xffff
or eax, 0x80070000
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret 8
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x40fdd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x434150]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
mov esi, dword [esp + 0x41c]
push edi
mov edi, dword [esp + 0x424]
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40fe65
cmp eax, 0x104
jae 0x40fe65
lea ecx, [esp + 0x210]
push ecx
push 0
push esi
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40fe4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40fe3d
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jl 0x40fe48
mov esi, 0x80004005
push esi
push 0x53
jmp 0x40fe87
mov ecx, dword [esp + 0x428]
lea eax, [esp + 0x210]
push eax
push ecx
push edi
call fcn.00401c70
jmp 0x40fe93
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40fe79
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jl 0x40fe84
mov esi, 0x80004005
push esi
push 0x4e
push str..dirutil.cpp
call fcn.00410700
mov eax, esi
mov ecx, dword [esp + 0x418]
pop edi
pop esi
xor ecx, esp
call fcn.00411220
add esp, 0x414
ret 0xc
Function at 0x410070
Capabilities:
Delete file
Write file on windows

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x10]
push ebp
push esi
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push edx
xor ebp, ebp
push ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
call fcn.0040ff30
mov esi, eax
test esi, esi
jl 0x410171
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edi
push ebp
push 0x80
push eax
push ebp
push ebp
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x410104
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4100e7
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jl 0x4100f2
mov esi, 0x80004005
push esi
push 0xe7
push str.._resrutil.cpp
call fcn.00410700
jmp 0x41015b
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push 0
lea edx, [esp + 0x18]
push edx
push eax
push ecx
push edi
mov ebp, 1
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410154
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x410139
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jl 0x410144
mov esi, 0x80004005
push esi
push 0xed
push str.._resrutil.cpp
call fcn.00410700
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
test esi, esi
jge 0x41016f
test ebp, ebp
je 0x41016f
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret 0xc

Function at 0x4103a0
Capabilities:
Move file

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor esi, esi
xor ebp, ebp
test edi, edi
je 0x4103b3
lea ebp, [esi + 1]
cmp dword [esp + 0x20], esi
je 0x4103bc
or ebp, 2
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4104a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x4103f9
cmp eax, 0x50
je 0x4103eb
cmp eax, 0xb7
jne 0x4103f9
mov esi, 1
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0x10
cmp eax, 3
jne 0x410499
movzx ecx, word [ebx]
xor edi, edi
mov eax, ebx
test cx, cx
je 0x41048b
movzx ecx, cx
cmp cx, 0x5c
jne 0x41041d
mov edi, eax
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x410415
test edi, edi
je 0x41048b
xor ecx, ecx
push ecx
push ebx
mov word [edi], cx
call fcn.0040fcd0
mov esi, eax
mov edx, 0x5c
mov word [edi], dx
test esi, esi
jl 0x4104a9
mov eax, dword [esp + 0x14]
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4104a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41046c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jge 0x4104a9
push esi
push 0x42e
push str.._fileutil.cpp
call fcn.00410700
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0x10
mov esi, 0x80070003
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0x10
test eax, eax
jle 0x4104a7
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x4104c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x220
mov eax, dword [0x434150]
xor eax, esp
mov dword [esp + 0x21c], eax
mov ecx, dword [esp + 0x228]
mov eax, dword [esp + 0x224]
mov edx, dword [esp + 0x22c]
push ebx
push esi
push edi
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x23c]
push ecx
xor ebx, ebx
push 0x104
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
mov esi, 0x80004005
mov dword [esp + 0x14], ebx
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x410554
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x410539
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jge 0x410554
push esi
push 0x4be
push str.._fileutil.cpp
call fcn.00410700
jmp 0x41060c
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x410560
cmp edi, 0xffffffff
jne 0x4105dc
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push edx
push ebx
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x20]
push str._s_s_05d._s
push edx
call fcn.0040fcb0
mov esi, eax
add esp, 0x18
test esi, esi
jl 0x41060b
mov eax, dword [esp + 0x10]
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push eax
call ebp
mov edi, eax
cmp edi, 0xffffffff
jne 0x4105d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4105c1
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, 0x80070050
jne 0x4105cf
xor esi, esi
jmp 0x4105d3
test esi, esi
jl 0x41060b
inc ebx
cmp ebx, 0x3e8
jl 0x410560
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4105e9
mov dword [eax], edi
or edi, 0xffffffff
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4105ff
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov dword [esp + 0x10], 0
cmp edi, 0xffffffff
je 0x41060b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41061a
push eax
call fcn.0040f4e0
mov ecx, dword [esp + 0x228]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00411220
add esp, 0x220
ret 0x10

Function at 0x411220
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x434150]
jne 0x41122a
repz ret
jmp fcn.00417d7c
Function at 0x423d7c
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.0041a877
and dword [ebp - 4], 0
cmp dword [0x4360b8], 0
mov ebx, eax
jne 0x423e2d
push 0x42e7dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x423ede
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x423ede
push eax
call fcn.0041a805
mov dword [esp], 0x42e7c0
push edi
mov dword [0x4360b8], eax
call esi
push eax
call fcn.0041a805
mov dword [esp], 0x42e7ac
push edi
mov dword [0x4360bc], eax
call esi
push eax
call fcn.0041a805
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4360c0], eax
call esi
push eax
call fcn.0041a805
pop ecx
mov dword [0x4360c8], eax
test eax, eax
je 0x423e2d
push 0x42e778
push edi
call esi
push eax
call fcn.0041a805
pop ecx
mov dword [0x4360c4], eax
mov eax, dword [0x4360c4]
cmp eax, ebx
je 0x423e85
cmp dword [0x4360c8], ebx
je 0x423e85
push eax
call fcn.0041a880
push dword [0x4360c8]
mov esi, eax
call fcn.0041a880
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x423e85
test edi, edi
je 0x423e85
call esi
test eax, eax
je 0x423e7c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x423e7c
test byte [ebp - 0xc], 1
jne 0x423e85
or dword [ebp + 0x10], 0x200000
jmp 0x423ebe
mov eax, dword [0x4360bc]
cmp eax, ebx
je 0x423ebe
push eax
call fcn.0041a880
pop ecx
test eax, eax
je 0x423ebe
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x423ebe
mov eax, dword [0x4360c0]
cmp eax, ebx
je 0x423ebe
push eax
call fcn.0041a880
pop ecx
test eax, eax
je 0x423ebe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4360b8]
call fcn.0041a880
pop ecx
test eax, eax
je 0x423ede
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x423ee0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402680
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x402f18
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a034], 0
je 0x402f79
cmp word [0x40a208], 0xd7b2
jne 0x402f41
cmp dword [0x40a210], 0
jbe 0x402f41
mov eax, 0x40a204
call dword [0x40a220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x409060
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x402fa0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409024], 0
jne 0x402f95
push 0
push 0x409058
push 0x409060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403c00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub eax, 0x119f45c6
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0040382a
push eax
push esi
push dword [ebp + 8]
call fcn.004037df
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
inc ebp
loop 0x403cc5
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0040382a
push eax
push esi
push dword [ebp + 8]
call fcn.004037df
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0040381a
jl 0x403c53
movsd dword es:[edi], dword [esi]
clc
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.0040381a
hlt

Function at 0x403ec8
Capabilities:
Inspect section memory permissions

Disassembly:
rol dword [ebx], 0x40
add al, 0xeb
test eax, 0xeb0c5d89
push es
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x403ef1
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x403f0f
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
invalid
Function at 0x404058
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [edx + 0x51fffffc], esi
mov byte [ebp - 0x34d], 0x75
invalid
invalid
invalid

Function at 0x4057d8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.004037df
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
jne 0x4057fd
jmp 0x4051bc

Function at 0x407080
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4070a1
mov eax, 0xff
call fcn.00402680
xor byte [esi], al
inc esi
dec ebx
jne 0x407091
pop esi
pop ebx
ret
Function at 0x12b7ef0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x12b80d4
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa1b000]
push edi
or ebp, 0xffffffff
jmp 0x12b7f1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x12b7f21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12b7f10
mov eax, 1
add ebx, ebx
jne 0x12b7f33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x12b7f44
jne 0x12b7f63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12b7f63
dec eax
add ebx, ebx
jne 0x12b7f50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x12b7f28
add ebx, ebx
jne 0x12b7f5f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x12b7fb5
xor ecx, ecx
sub eax, 3
jb 0x12b7f7b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x12b7fea
sar eax, 1
mov ebp, eax
jmp 0x12b7f86
add ebx, ebx
jne 0x12b7f86
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12b7f54
inc ecx
add ebx, ebx
jne 0x12b7f94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12b7f54
add ebx, ebx
jne 0x12b7fa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x12b7f96
jne 0x12b7fb2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x12b7f96
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x12b7fd4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x12b7fc6
jmp 0x12b7f16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x12b7fd4
add edi, ecx
jmp 0x12b7f16
pop esi
mov edi, esi
mov ecx, 0xea6c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x12b7ff2
cmp byte [edi], 0x2f
jne 0x12b7ff2
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 0x12b7ff7
lea edi, [esi + 0xe93000]
mov eax, dword [edi]
or eax, eax
je 0x12b8066
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xeb8cac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xeb8e64]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x12b8024
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xeb8e68]
or eax, eax
je 0x12b8060
mov dword [ebx], eax
add ebx, 4
jmp 0x12b8041
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x12b8097
cmp al, 0xef
ja 0x12b808a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x12b806c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x12b8079
mov ebp, dword [esi + 0xeb8e6c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x12b80cb
sub esp, 0xffffff80
jmp 0x6d42a4
Function at 0x4d49a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518e10
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x532014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
mov ecx, 0x5330ec
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.004e80c0
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov ecx, 0x532a8c
push eax
call fcn.004e80c0
mov esi, dword [0x5330fc]
xor ebx, ebx
mov edi, dword [0x533100]
nop word [eax + eax]
cmp edi, 0x10
mov byte [ebx + 0x536390], bl
mov eax, ebx
mov ecx, 0x5330ec
cmovae ecx, dword [0x5330ec]
cdq
idiv esi
mov al, byte [edx + ecx]
mov byte [ebx + 0x5364a0], al
inc ebx
cmp ebx, 0x100
jl 0x4d4a20
xor edi, edi
xor esi, esi
mov dl, byte [esi + 0x536390]
movzx eax, byte [esi + 0x5364a0]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x4d4a74
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [edi + 0x536390]
mov byte [esi + 0x536390], al
inc esi
mov byte [edi + 0x536390], dl
cmp esi, 0x100
jl 0x4d4a50
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.004d4690
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x4d4ac9
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d4abf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d4b1f
push edx
push ecx
call fcn.004ed663
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x4d4b0b
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d4b01
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d4b1f
push edx
push ecx
call fcn.004ed663
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00506c6a
int3
Function at 0x4d70a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0x532014]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x84]
mov esi, ecx
push eax
push 0
call 0x4bc0000
nop
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x4d7289
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x4d7289
push 0x44
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.005040f0
add esp, 0xc
lea eax, [esp + 0x20]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [esp + 0xa4]
push eax
call 0x4bc00d4
nop
test eax, eax
je 0x4d7289
push 4
push 0x1000
push 4
push 0
call 0x4bb0d75
nop
push eax
mov dword [esp + 0x1c], eax
mov dword [eax], 0x10007
push dword [esp + 0x28]
call 0x4ba0006
nop
test eax, eax
je 0x4d7289
push 0
push 4
lea eax, [esp + 0x24]
push eax
push 0x528df8
push dword [esp + 0x30]
call 0x4ba0352
nop
mov eax, dword [edi + 0x34]
cmp dword [esp + 0x1c], eax
jne 0x4d71ac
push 0x528dfc
push 0x528e14
call 0x4bb0a65
nop
push eax
call 0x4ba0120
nop
push dword [esp + 0x1c]
push dword [esp + 0x24]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [esp + 0x30]
call 0x4ba029f
nop
mov dword [esp + 0x14], eax
test eax, eax
je 0x4d7289
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [esp + 0x30]
call 0x4bb0f5b
nop
xor eax, eax
mov dword [esp + 0x10], 0
cmp ax, word [edi + 6]
jae 0x4d7243
mov dword [esp + 0xc], eax
call fcn.004d6ef0
push eax
call 0x4bb09cc
nop
mov ecx, dword [esp + 0xc]
add ecx, esi
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
call 0x4bb0f5b
nop
mov ecx, dword [esp + 0x10]
movzx eax, word [edi + 6]
inc ecx
add dword [esp + 0xc], 0x28
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0x4d71f2
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xa4]
add eax, 8
push eax
push dword [esp + 0x30]
call 0x4bb0f5b
nop
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x28]
add eax, dword [esp + 0x14]
push ecx
mov dword [ecx + 0xb0], eax
push dword [esp + 0x28]
call 0x4ba0440
nop
push dword [esp + 0x24]
call 0x4bb0b4f
nop
push 0x8000
push 0
push esi
call 0x4bb0ead
nop
mov ecx, dword [esp + 0x18c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.004ecff1
mov esp, ebp
pop ebp
ret