joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4628a0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4628b7
add esp, 0xfffffff0
call fcn.0040366c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00423d24
mov eax, dword [0x4ec594]
cmp word [eax + 2], 0
jne 0x4628df
mov eax, dword [0x4ec594]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00464008
mov eax, dword [0x4ec6e0]
cmp word [eax + 2], 0
jne 0x4628f9
mov eax, dword [0x4ec6e0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00464200
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41ad0c]
call fcn.00403318
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41ad0c]
call fcn.00403318
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x426190]
call fcn.0042d7b4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x462a80
mov eax, dword [0x4ec3f8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042db84
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4647a0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4ec3f8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d9b8
test eax, eax
je 0x4629ee
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409524
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d9e0
test eax, eax
je 0x462a02
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040446c
mov eax, dword [0x4ec1d4]
cmp byte [eax], 0
jne 0x462a36
mov eax, ebx
call fcn.00462ba8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0046497c
mov eax, ebx
call fcn.00465340
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x462a76
call fcn.004036c4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x462e28
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4edbb8]
cmp dword [eax + 0x30], 0
je 0x462ed2
cmp dword [ebx + 0x94], 0
jne 0x462ecc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x462db8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x462ecc
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x462e92
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x462ecc
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041d3ac
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x462ea1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x463a34
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x463a69
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004042ec
jmp 0x463a76
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404250
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x464b58
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x464b99
mov eax, esi
call fcn.0044ad2c
test al, al
je 0x464b99
mov eax, dword [ebx + 0x84]
call fcn.0044aa28
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x464b99
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044aa28
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x487ab4
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x487ad9
cmp dword [esp + 4], 5
jb 0x487ad9
mov al, 1
jmp 0x487adb
xor eax, eax
add esp, 0x94
ret
Function at 0x49af68
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff88
mov dword [esp + 4], edx
mov dword [esp], eax
lea eax, [esp + 0x39]
xor ecx, ecx
mov edx, 0x3f
call fcn.00402cf0
lea edx, [esp + 0xc]
mov ecx, 0x2d
mov eax, dword [esp]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x49b0ed
mov edi, 1
xor esi, esi
jmp 0x49b02d
mov al, byte [esp + edi + 0xb]
xor edx, edx
mov dl, al
shr edx, 2
and dl, 0x3f
and edx, 0xff
mov dl, byte [edx + 0x4e7d24]
mov byte [esp + esi + 0x39], dl
mov edx, eax
shl edx, 4
xor eax, eax
mov al, byte [esp + edi + 0xc]
shr eax, 4
or dl, al
and dl, 0x3f
xor eax, eax
mov al, dl
mov al, byte [eax + 0x4e7d24]
mov byte [esp + esi + 0x3a], al
mov dl, byte [esp + edi + 0xc]
shl edx, 2
mov al, byte [esp + edi + 0xd]
xor ecx, ecx
mov cl, al
shr ecx, 6
or dl, cl
and dl, 0x3f
and edx, 0xff
mov dl, byte [edx + 0x4e7d24]
mov byte [esp + esi + 0x3b], dl
mov edx, eax
and dl, 0x3f
xor eax, eax
mov al, dl
mov al, byte [eax + 0x4e7d24]
mov byte [esp + esi + 0x3c], al
add edi, 3
add esi, 4
mov eax, dword [esp + 8]
sub eax, 2
cmp edi, eax
jle 0x49afae
cmp edi, dword [esp + 8]
jg 0x49b0d3
mov al, byte [esp + edi + 0xb]
xor edx, edx
mov dl, al
shr edx, 2
and dl, 0x3f
and edx, 0xff
mov dl, byte [edx + 0x4e7d24]
mov byte [esp + esi + 0x39], dl
cmp edi, dword [esp + 8]
jne 0x49b08a
mov edx, eax
shl edx, 4
and dl, 0x30
and dl, 0x3f
xor eax, eax
mov al, dl
mov al, byte [eax + 0x4e7d24]
mov byte [esp + esi + 0x3a], al
mov byte [esp + esi + 0x3b], 0x3d
jmp 0x49b0cb
mov edx, eax
shl edx, 4
and dl, 0x30
xor eax, eax
mov al, byte [esp + edi + 0xc]
shr eax, 4
and al, 0xf
or dl, al
and dl, 0x3f
xor eax, eax
mov al, dl
mov al, byte [eax + 0x4e7d24]
mov byte [esp + esi + 0x3a], al
mov dl, byte [esp + edi + 0xc]
shl edx, 2
and dl, 0x3c
and dl, 0x3f
xor eax, eax
mov al, dl
mov al, byte [eax + 0x4e7d24]
mov byte [esp + esi + 0x3b], al
mov byte [esp + esi + 0x3c], 0x3d
add esi, 4
lea edx, [esp + 0x39]
mov ecx, esi
mov eax, dword [esp + 4]
mov ebx, dword [eax]
call dword [ebx + 0x10]
cmp dword [esp + 8], 0x2d
jge 0x49af85
add esp, 0x78
pop edi
pop esi
pop ebx
ret

Function at 0x49b620
Capabilities:
Encrypt data using des

Disassembly:
push ebx
mov ecx, edx
and cl, 0x20
mov ebx, edx
and bl, 0x1e
and ebx, 0xff
shr ebx, 1
or cl, bl
and dl, 1
shl edx, 4
or cl, dl
mov edx, ecx
and edx, 0xff
and eax, 0xff
shl eax, 3
lea eax, [eax*8 + 0x4e7f14]
mov al, byte [eax + edx]
and al, 0xf
pop ebx
ret
Function at 0x49b65c
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
test ebx, ebx
js 0x49b674
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x49b66d
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 7
call fcn.00402cf0
xor edx, edx
mov eax, 0x4e8114
mov bl, byte [eax]
mov ecx, ebx
and cl, 7
and ecx, 0xff
push ecx
mov ecx, 7
pop esi
sub ecx, esi
mov esi, 1
shl esi, cl
xor ecx, ecx
mov cl, bl
shr ecx, 3
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebx + ecx]
and esi, ecx
je 0x49b6de
mov ecx, edx
and ecx, 7
push ecx
mov ecx, 7
pop ebx
sub ecx, ebx
mov bl, 1
shl bl, cl
mov ecx, edx
shr ecx, 3
mov esi, dword [ebp - 8]
or byte [esi + ecx], bl
inc edx
inc eax
cmp edx, 0x38
jne 0x49b692
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x49b91c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x49b935
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x49b92e
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x49b947
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x49b940
mov eax, esp
mov dword [ebp - 4], ecx
push 5
lea ecx, [ebp - 0xa]
call fcn.0049b510
mov ebx, 6
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
xor byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x49b961
mov al, byte [ebp - 0xa]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0x12], dl
and al, 3
shl eax, 4
mov dl, byte [ebp - 9]
xor ecx, ecx
mov cl, dl
shr ecx, 4
or al, cl
mov byte [ebp - 0x11], al
and dl, 0xf
shl edx, 2
mov al, byte [ebp - 8]
xor ecx, ecx
mov cl, al
shr ecx, 6
or dl, cl
mov byte [ebp - 0x10], dl
and al, 0x3f
mov byte [ebp - 0xf], al
mov al, byte [ebp - 7]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0xe], dl
and al, 3
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 6]
shr edx, 4
or al, dl
mov byte [ebp - 0xd], al
mov al, byte [ebp - 6]
and al, 0xf
shl eax, 2
xor edx, edx
mov dl, byte [ebp - 5]
shr edx, 6
or al, dl
mov byte [ebp - 0xc], al
mov al, byte [ebp - 5]
and al, 0x3f
mov byte [ebp - 0xb], al
xor ebx, ebx
lea esi, [ebp - 0x12]
mov eax, ebx
mov dl, byte [esi]
call fcn.0049b620
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 8
jne 0x49b9e6
mov ebx, 4
lea eax, [ebp - 0x12]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
shl ecx, 4
or cl, byte [eax + 1]
mov byte [edx], cl
inc edx
add eax, 2
dec ebx
jne 0x49ba03
lea eax, [ebp - 0xa]
mov edx, 5
call fcn.0049b5a0
mov ebx, 4
lea eax, [ebp - 0xa]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x49ba2c
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49ba44
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x49ba5d
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x49ba56
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x49ba71
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0049b408
test bl, bl
jne 0x49bb44
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x4edeb0
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x49baa8
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x49babc
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0049b91c
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov bl, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x49baee
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x49ba9d
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x49bb11
mov eax, 4
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x49bb22
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x49bb36
jmp 0x49bbff
cmp bl, 1
jne 0x49bbff
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x4edf0a
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x49bb64
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x49bb78
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0049b91c
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
mov cl, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x49bbaa
sub ebx, 6
inc dword [ebp - 8]
jne 0x49bb59
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
mov cl, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x49bbd1
mov eax, 4
mov ebx, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x49bbe2
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov cl, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x49bbf6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0049b48c
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x4dfd16
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc0
mov esi, 0x4e8e0c
mov ecx, 4
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
mov edx, dword [0x4e8e1f]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dx, word [0x4e8e23]
cmp dword [0x4e8e08], 1
mov word [esp + 8], dx
jne 0x4dfebe
mov byte [esp + 0xc], 0x4d
mov byte [esp + 0xd], 0x75
mov byte [esp + 0xe], 0x74
mov byte [esp + 0xf], 0x65
mov byte [esp + 0x10], 0x78
mov byte [esp + 0x11], 0x54
mov byte [esp + 0x12], 0x6f
mov byte [esp + 0x13], 0x50
mov byte [esp + 0x14], 0x72
mov byte [esp + 0x15], 0x6f
mov byte [esp + 0x16], 0x74
mov byte [esp + 0x17], 0x65
mov byte [esp + 0x18], 0x63
mov byte [esp + 0x19], 0x74
mov byte [esp + 0x1a], 0x50
mov byte [esp + 0x1b], 0x6f
mov byte [esp + 0x1c], 0x72
mov byte [esp + 0x1d], 0x74
mov dword [esp + 0x20], 0xc
xor ecx, ecx
mov dword [esp + 0x28], ecx
push 1
lea eax, [esp + 0x30]
push eax
call fcn.004def51
add esp, 8
test eax, eax
jne 0x4dfdd9
xor eax, eax
jmp 0x4dfec3
push esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea edx, [esp + 0x2c]
push edx
call fcn.004df007
add esp, 0x2c
test eax, eax
jne 0x4dfe04
xor eax, eax
jmp 0x4dfec3
push dword [esp]
call fcn.004deede
pop ecx
mov esi, eax
add esi, 0x10
push esi
push 0x40
call fcn.004df634
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x4dfe2a
xor eax, eax
jmp 0x4dfec3
push 2
push esi
push ebx
call fcn.004df0c9
add esp, 0xc
test eax, eax
jne 0x4dfe41
xor eax, eax
jmp 0x4dfec3
push dword [esp]
push 0xf2000000
push 2
push ebx
call fcn.004df146
add esp, 0x10
test eax, eax
jne 0x4dfe5c
xor eax, eax
jmp 0x4dfec3
push 0
push ebx
push 1
lea edx, [esp + 0x38]
push edx
call fcn.004df1de
add esp, 0x10
test eax, eax
jne 0x4dfe76
xor eax, eax
jmp 0x4dfec3
lea edx, [esp + 0x2c]
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], edx
push ecx
push 0
lea eax, [esp + 0x28]
push eax
call fcn.004dfc9d
add esp, 0xc
mov dword [0x4e8e08], eax
test ebx, ebx
je 0x4dfea2
push ebx
call fcn.004df5bc
pop ecx
cmp dword [esp], 0
je 0x4dfeb1
push dword [esp]
call fcn.004df5bc
pop ecx
cmp dword [0x4e8e08], 0
jne 0x4dfebe
xor eax, eax
jmp 0x4dfec3
mov eax, 1
add esp, 0x40
pop edi
pop esi
pop ebx
ret
Function at 0x4dfeca
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 8], eax
mov esi, 0x4e8e26
lea edi, [ebp - 0x18]
mov ecx, 3
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x18], 0x5c
mov byte [ebp - 0x17], 0x5c
mov byte [ebp - 0x16], 0x2e
mov byte [ebp - 0x15], 0x5c
mov byte [ebp - 0x14], 0x4c
mov byte [ebp - 0x13], 0x50
mov byte [ebp - 0x12], 0x54
mov byte [ebp - 0x11], 0x47
mov byte [ebp - 0x10], 0x41
mov byte [ebp - 0xf], 0x31
mov byte [ebp - 0xe], 0
mov byte [ebp - 0xd], 0
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
jmp 0x4e003e
add al, 0x30
mov byte [ebp - 0xf], al
call fcn.004dfd16
push 0x9c40
push dword [0x4e8e08]
call fcn.004dfb97
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x4dff58
mov eax, 0x4f1b
jmp 0x4e0066
push 0
push 0x80
push 3
push 0
push 7
push 0xc0000000
lea edx, [ebp - 0x18]
push edx
call fcn.004df42a
add esp, 0x1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4e0005
push 0
lea eax, [ebp - 4]
push eax
push 0x24
push dword [ebp + 0x10]
push 0x2c
push dword [ebp + 0xc]
push 0xc60031b4
push esi
call fcn.004df4b8
add esp, 0x20
mov ebx, eax
test ebx, ebx
je 0x4e003e
call fcn.004df7aa
mov ebx, eax
cmp ebx, 0x57
jne 0x4dffd2
push esi
call fcn.004df6b3
pop ecx
push dword [0x4e8e08]
call fcn.004dfc2a
pop ecx
mov eax, 0x753c
jmp 0x4e0066
push esi
call fcn.004df6b3
pop ecx
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.004e3426
add esp, 8
mov ebx, eax
push dword [0x4e8e08]
call fcn.004dfc2a
pop ecx
test ebx, ebx
jne 0x4dfffd
mov eax, ebx
jmp 0x4e0066
inc byte [0x4e8e25]
jmp 0x4e003e
call fcn.004df7aa
push dword [0x4e8e08]
mov ebx, eax
call fcn.004dfc2a
pop ecx
cmp ebx, 2
jne 0x4e0025
inc byte [0x4e8e25]
jmp 0x4e003e
cmp ebx, 5
jne 0x4e0037
inc dword [ebp - 8]
push 0xa
call fcn.004df559
pop ecx
jmp 0x4e003e
mov eax, 0x4f1a
jmp 0x4e0066
mov al, byte [0x4e8e25]
cmp al, 4
jae 0x4e0051
cmp dword [ebp - 8], 0xa
jl 0x4dff2b
cmp byte [0x4e8e25], 3
jbe 0x4e0061
mov byte [0x4e8e25], 1
mov eax, 0x4f1a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e0353
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x10], edx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret
Function at 0x1002955a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10029599
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10029599
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10029599
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10029599
cmp dword [ecx + 0x74], 0xe
jbe 0x10029599
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1002bf24
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 0x1002bfc1
push ebx
push esi
call fcn.1002beed
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.1002be81
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002bf6e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002bfc0
push edi
push eax
call fcn.1002a822
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1002bf8e
call fcn.1002a870
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002bfbf
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1002be81
add esp, 0x20
test eax, eax
jne 0x1002bfad
push edi
call fcn.1002a870
jmp 0x1002bfb5
push ebx
call fcn.1002a870
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 0x1002c22e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10034780
push 0x10034778
push str.FlsAlloc
push 0x1f
call fcn.1002c14a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002c262
push dword [ebp + 8]
mov ecx, esi
call dword [0x10032150]
call esi
jmp 0x1002c268
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002c2ac
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10034790
push 0x10034788
push str.FlsGetValue
push 0x21
call fcn.1002c14a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002c2e3
push dword [ebp + 8]
mov ecx, esi
call dword [0x10032150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1002c2eb
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10034798
push 0x10034790
push str.FlsSetValue
push 0x22
call fcn.1002c14a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002c325
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10032150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10031830
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003185d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003185d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cb9c
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cbcd
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cbb5
add dl, dl
jne 0x41cbd8
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc29
xor eax, eax
add dl, dl
jne 0x41cbe5
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ccc6
add dl, dl
jne 0x41cbf4
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbff
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc0a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc15
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cc1f
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cbc4
mov eax, 1
add dl, dl
jne 0x41cc37
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc42
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc2e
sub eax, ebx
mov ebx, 1
jne 0x41cc75
mov ecx, 1
add dl, dl
jne 0x41cc5b
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc66
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc52
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cbc4
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cc8c
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc97
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc83
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cbc4
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cce7
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cbc4
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret